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_preview] Add Databases APIs to PostgreSQL 2020-02-14-preview #5607

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
12 changes: 7 additions & 5 deletions sdk/mysql/mgmt-v2017_12_01_preview/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>
<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,35 @@
/**
* 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_preview;

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

/**
* Entity Resource.
* The resource model definition for an 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_preview.implementation.MySQLManager;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.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
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_preview.implementation.MySQLManager;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.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
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_preview.implementation.MySQLManager;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.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
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_preview;

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);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* 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_preview;

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

/**
* Defines values for InfrastructureEncryption.
*/
public final class InfrastructureEncryption extends ExpandableStringEnum<InfrastructureEncryption> {
/** Static value Enabled for InfrastructureEncryption. */
public static final InfrastructureEncryption ENABLED = fromString("Enabled");

/** Static value Disabled for InfrastructureEncryption. */
public static final InfrastructureEncryption DISABLED = fromString("Disabled");

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

/**
* @return known InfrastructureEncryption values
*/
public static Collection<InfrastructureEncryption> values() {
return values(InfrastructureEncryption.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.LogFileInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.MySQLManager;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.DBForMySQLManager;
import org.joda.time.DateTime;

/**
* Type representing LogFile.
*/
public interface LogFile extends HasInner<LogFileInner>, HasManager<MySQLManager> {
public interface LogFile extends HasInner<LogFileInner>, HasManager<DBForMySQLManager> {
/**
* @return the createdTime value.
*/
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_preview;

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

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

/** Static value TLS1_1 for MinimalTlsVersionEnum. */
public static final MinimalTlsVersionEnum TLS1_1 = fromString("TLS1_1");

/** Static value TLS1_2 for MinimalTlsVersionEnum. */
public static final MinimalTlsVersionEnum TLS1_2 = fromString("TLS1_2");

/** Static value TLSEnforcementDisabled for MinimalTlsVersionEnum. */
public static final MinimalTlsVersionEnum TLSENFORCEMENT_DISABLED = fromString("TLSEnforcementDisabled");

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

/**
* @return known MinimalTlsVersionEnum values
*/
public static Collection<MinimalTlsVersionEnum> values() {
return values(MinimalTlsVersionEnum.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.MySQLManager;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.DBForMySQLManager;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.NameAvailabilityInner;

/**
* Type representing NameAvailability.
*/
public interface NameAvailability extends HasInner<NameAvailabilityInner>, HasManager<MySQLManager> {
public interface NameAvailability extends HasInner<NameAvailabilityInner>, HasManager<DBForMySQLManager> {
/**
* @return the message value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.MySQLManager;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.DBForMySQLManager;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.OperationListResultInner;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.OperationInner;
import java.util.List;

/**
* Type representing OperationListResult.
*/
public interface OperationListResult extends HasInner<OperationListResultInner>, HasManager<MySQLManager> {
public interface OperationListResult extends HasInner<OperationListResultInner>, HasManager<DBForMySQLManager> {
/**
* @return the value value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.PerformanceTierPropertiesInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.MySQLManager;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.DBForMySQLManager;
import java.util.List;

/**
* Type representing PerformanceTierProperties.
*/
public interface PerformanceTierProperties extends HasInner<PerformanceTierPropertiesInner>, HasManager<MySQLManager> {
public interface PerformanceTierProperties extends HasInner<PerformanceTierPropertiesInner>, HasManager<DBForMySQLManager> {
/**
* @return the id value.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
/**
* 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_preview;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Properties of a private endpoint connection.
*/
public class PrivateEndpointConnectionProperties {
/**
* Private endpoint which the connection belongs to.
*/
@JsonProperty(value = "privateEndpoint")
private PrivateEndpointProperty privateEndpoint;

/**
* Connection state of the private endpoint connection.
*/
@JsonProperty(value = "privateLinkServiceConnectionState")
private PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState;

/**
* State of the private endpoint connection. Possible values include:
* 'Approving', 'Ready', 'Dropping', 'Failed', 'Rejecting'.
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private PrivateEndpointProvisioningState provisioningState;

/**
* Get private endpoint which the connection belongs to.
*
* @return the privateEndpoint value
*/
public PrivateEndpointProperty privateEndpoint() {
return this.privateEndpoint;
}

/**
* Set private endpoint which the connection belongs to.
*
* @param privateEndpoint the privateEndpoint value to set
* @return the PrivateEndpointConnectionProperties object itself.
*/
public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpointProperty privateEndpoint) {
this.privateEndpoint = privateEndpoint;
return this;
}

/**
* Get connection state of the private endpoint connection.
*
* @return the privateLinkServiceConnectionState value
*/
public PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState() {
return this.privateLinkServiceConnectionState;
}

/**
* Set connection state of the private endpoint connection.
*
* @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set
* @return the PrivateEndpointConnectionProperties object itself.
*/
public PrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState) {
this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
return this;
}

/**
* Get state of the private endpoint connection. Possible values include: 'Approving', 'Ready', 'Dropping', 'Failed', 'Rejecting'.
*
* @return the provisioningState value
*/
public PrivateEndpointProvisioningState provisioningState() {
return this.provisioningState;
}

}
Loading