Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR sdk/mariadb/mgmt-v2018_06_01] Remove duplication of TrackedResource in mariaDB and mySQL #14509

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions sdk/mariadb/mgmt-v2018_06_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<relativePath>../../parents/azure-arm-parent</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-mariadb</artifactId>
<version>1.0.0-beta-1</version>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for MariaDB Management</name>
<description>This package contains Microsoft MariaDB Management SDK.</description>
Expand Down Expand Up @@ -71,6 +71,8 @@
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
<version>1.6.5</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.mariadb.v2018_06_01;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.AdvisorInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.MariaDBManager;

/**
* Type representing Advisor.
*/
public interface Advisor extends HasInner<AdvisorInner>, Indexable, Refreshable<Advisor>, HasManager<MariaDBManager> {
/**
* @return the id value.
*/
String id();

/**
* @return the name value.
*/
String name();

/**
* @return the properties value.
*/
Object properties();

/**
* @return the type value.
*/
String type();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.mariadb.v2018_06_01;

import rx.Observable;
import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.AdvisorsInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing Advisors.
*/
public interface Advisors extends HasInner<AdvisorsInner> {
/**
* Get a recommendation action advisor.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param advisorName The advisor name for recommendation action.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<Advisor> getAsync(String resourceGroupName, String serverName, String advisorName);

/**
* List recommendation action advisors.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<Advisor> listByServerAsync(final String resourceGroupName, final String serverName);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.mariadb.v2018_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.azure.ProxyResource;

/**
* The resource model definition for a Azure Resource Manager resource with an
* etag.
*/
public class AzureEntityResource extends ProxyResource {
/**
* Resource Etag.
*/
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;

/**
* Get resource Etag.
*
* @return the etag value
*/
public String etag() {
return this.etag;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ interface Blank extends WithServer {
interface WithServer {
/**
* Specifies resourceGroupName, serverName.
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal
* @param resourceGroupName The name of the resource group. The name is case insensitive
* @param serverName The name of the server
* @return the next definition stage
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public interface Configurations extends SupportsCreating<Configuration.Definitio
/**
* Gets information about a configuration of server.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param configurationName The name of the server configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand All @@ -31,7 +31,7 @@ public interface Configurations extends SupportsCreating<Configuration.Definitio
/**
* List all the configurations in a given server.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ interface Blank extends WithServer {
interface WithServer {
/**
* Specifies resourceGroupName, serverName.
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal
* @param resourceGroupName The name of the resource group. The name is case insensitive
* @param serverName The name of the server
* @return the next definition stage
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public interface Databases extends SupportsCreating<Database.DefinitionStages.Bl
/**
* Gets information about a database.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand All @@ -32,7 +32,7 @@ public interface Databases extends SupportsCreating<Database.DefinitionStages.Bl
/**
* List all the databases in a given server.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand All @@ -42,7 +42,7 @@ public interface Databases extends SupportsCreating<Database.DefinitionStages.Bl
/**
* Deletes a database.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.mariadb.v2018_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The resource management error additional info.
*/
public class ErrorAdditionalInfo {
/**
* The additional info type.
*/
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;

/**
* The additional info.
*/
@JsonProperty(value = "info", access = JsonProperty.Access.WRITE_ONLY)
private Object info;

/**
* Get the additional info type.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* Get the additional info.
*
* @return the info value
*/
public Object info() {
return this.info;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.mariadb.v2018_06_01;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The resource management error response.
*/
public class ErrorResponse {
/**
* The error code.
*/
@JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
private String code;

/**
* The error message.
*/
@JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
private String message;

/**
* The error target.
*/
@JsonProperty(value = "target", access = JsonProperty.Access.WRITE_ONLY)
private String target;

/**
* The error details.
*/
@JsonProperty(value = "details", access = JsonProperty.Access.WRITE_ONLY)
private List<ErrorResponse> details;

/**
* The error additional info.
*/
@JsonProperty(value = "additionalInfo", access = JsonProperty.Access.WRITE_ONLY)
private List<ErrorAdditionalInfo> additionalInfo;

/**
* Get the error code.
*
* @return the code value
*/
public String code() {
return this.code;
}

/**
* Get the error message.
*
* @return the message value
*/
public String message() {
return this.message;
}

/**
* Get the error target.
*
* @return the target value
*/
public String target() {
return this.target;
}

/**
* Get the error details.
*
* @return the details value
*/
public List<ErrorResponse> details() {
return this.details;
}

/**
* Get the error additional info.
*
* @return the additionalInfo value
*/
public List<ErrorAdditionalInfo> additionalInfo() {
return this.additionalInfo;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ interface Blank extends WithServer {
interface WithServer {
/**
* Specifies resourceGroupName, serverName.
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal
* @param resourceGroupName The name of the resource group. The name is case insensitive
* @param serverName The name of the server
* @return the next definition stage
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public interface FirewallRules extends SupportsCreating<FirewallRule.DefinitionS
/**
* Gets information about a server firewall rule.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand All @@ -32,7 +32,7 @@ public interface FirewallRules extends SupportsCreating<FirewallRule.DefinitionS
/**
* List all the firewall rules in a given server.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand All @@ -42,7 +42,7 @@ public interface FirewallRules extends SupportsCreating<FirewallRule.DefinitionS
/**
* Deletes a server firewall rule.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
package com.microsoft.azure.management.mariadb.v2018_06_01;

import rx.Observable;
import com.microsoft.azure.management.mariadb.v2018_06_01.PerformanceTierProperties;
import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.LocationBasedPerformanceTiersInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing LocationBasedPerformanceTiers.
*/
public interface LocationBasedPerformanceTiers {
public interface LocationBasedPerformanceTiers extends HasInner<LocationBasedPerformanceTiersInner> {
/**
* List all the performance tiers at specified location in a given subscription.
*
Expand Down
Loading