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

[AutoPR sdk/mysql/mgmt-v2017_12_01] Set publicNetworkAccess to read only in MySQL Flexible Server swagger #3890

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
14 changes: 8 additions & 6 deletions sdk/mysql/mgmt-v2017_12_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
<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-mysql</artifactId>
<version>1.0.0-beta-4</version>
<artifactId>azure-mgmt-dbformysql</artifactId>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for DBforMySQL Management</name>
<description>This package contains Microsoft DBforMySQL Management SDK.</description>
<name>Microsoft Azure SDK for DBForMySQL Management</name>
<description>This package contains Microsoft DBForMySQL Management SDK.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<licenses>
<license>
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,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.mysql.v2017_12_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 @@ -16,12 +16,12 @@
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.mysql.v2017_12_01.implementation.MySQLManager;
import com.microsoft.azure.management.mysql.v2017_12_01.implementation.DBForMySQLManager;

/**
* Type representing Configuration.
*/
public interface Configuration extends HasInner<ConfigurationInner>, Indexable, Refreshable<Configuration>, Updatable<Configuration.Update>, HasManager<MySQLManager> {
public interface Configuration extends HasInner<ConfigurationInner>, Indexable, Refreshable<Configuration>, Updatable<Configuration.Update>, HasManager<DBForMySQLManager> {
/**
* @return the allowedValues value.
*/
Expand Down 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 @@ -16,12 +16,12 @@
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.mysql.v2017_12_01.implementation.MySQLManager;
import com.microsoft.azure.management.mysql.v2017_12_01.implementation.DBForMySQLManager;

/**
* Type representing Database.
*/
public interface Database extends HasInner<DatabaseInner>, Indexable, Refreshable<Database>, Updatable<Database.Update>, HasManager<MySQLManager> {
public interface Database extends HasInner<DatabaseInner>, Indexable, Refreshable<Database>, Updatable<Database.Update>, HasManager<DBForMySQLManager> {
/**
* @return the charset value.
*/
Expand Down 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.mysql.v2017_12_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.mysql.v2017_12_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 @@ -16,12 +16,12 @@
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.mysql.v2017_12_01.implementation.MySQLManager;
import com.microsoft.azure.management.mysql.v2017_12_01.implementation.DBForMySQLManager;

/**
* Type representing FirewallRule.
*/
public interface FirewallRule extends HasInner<FirewallRuleInner>, Indexable, Refreshable<FirewallRule>, Updatable<FirewallRule.Update>, HasManager<MySQLManager> {
public interface FirewallRule extends HasInner<FirewallRuleInner>, Indexable, Refreshable<FirewallRule>, Updatable<FirewallRule.Update>, HasManager<DBForMySQLManager> {
/**
* @return the endIpAddress value.
*/
Expand Down 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
@@ -0,0 +1,38 @@
/**
* 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.mysql.v2017_12_01;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for IdentityType.
*/
public final class IdentityType extends ExpandableStringEnum<IdentityType> {
/** Static value SystemAssigned for IdentityType. */
public static final IdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned");

/**
* Creates or finds a IdentityType from its string representation.
* @param name a name to look for
* @return the corresponding IdentityType
*/
@JsonCreator
public static IdentityType fromString(String name) {
return fromString(name, IdentityType.class);
}

/**
* @return known IdentityType values
*/
public static Collection<IdentityType> values() {
return values(IdentityType.class);
}
}
Loading