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 sql/resource-manager] Reorganized sql readme.md and extracted Java section to a separate file. #2768

Merged
merged 5 commits into from
Dec 13, 2018
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* 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.sql.v2014_04_01;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.sql.v2014_04_01.implementation.SqlManager;
import com.microsoft.azure.management.sql.v2014_04_01.implementation.AdvisorListResultInner;
import com.microsoft.azure.management.sql.v2014_04_01.implementation.AdvisorInner;
import java.util.List;

/**
* Type representing AdvisorListResult.
*/
public interface AdvisorListResult extends HasInner<AdvisorListResultInner>, HasManager<SqlManager> {
/**
* @return the value value.
*/
List<AdvisorInner> value();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/**
* 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.sql.v2014_04_01;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for AdvisorStatus.
*/
public enum AdvisorStatus {
/** Enum value GA. */
GA("GA"),

/** Enum value PublicPreview. */
PUBLIC_PREVIEW("PublicPreview"),

/** Enum value LimitedPublicPreview. */
LIMITED_PUBLIC_PREVIEW("LimitedPublicPreview"),

/** Enum value PrivatePreview. */
PRIVATE_PREVIEW("PrivatePreview");

/** The actual serialized value for a AdvisorStatus instance. */
private String value;

AdvisorStatus(String value) {
this.value = value;
}

/**
* Parses a serialized value to a AdvisorStatus instance.
*
* @param value the serialized value to parse.
* @return the parsed AdvisorStatus object, or null if unable to parse.
*/
@JsonCreator
public static AdvisorStatus fromString(String value) {
AdvisorStatus[] items = AdvisorStatus.values();
for (AdvisorStatus item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

@JsonValue
@Override
public String toString() {
return this.value;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/**
* 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.sql.v2014_04_01;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for AutoExecuteStatus.
*/
public enum AutoExecuteStatus {
/** Enum value Enabled. */
ENABLED("Enabled"),

/** Enum value Disabled. */
DISABLED("Disabled"),

/** Enum value Default. */
DEFAULT("Default");

/** The actual serialized value for a AutoExecuteStatus instance. */
private String value;

AutoExecuteStatus(String value) {
this.value = value;
}

/**
* Parses a serialized value to a AutoExecuteStatus instance.
*
* @param value the serialized value to parse.
* @return the parsed AutoExecuteStatus object, or null if unable to parse.
*/
@JsonCreator
public static AutoExecuteStatus fromString(String value) {
AutoExecuteStatus[] items = AutoExecuteStatus.values();
for (AutoExecuteStatus item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

@JsonValue
@Override
public String toString() {
return this.value;
}
}
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.sql.v2014_04_01;

import com.microsoft.azure.arm.collection.SupportsCreating;
import rx.Observable;
import com.microsoft.azure.management.sql.v2014_04_01.implementation.BackupLongTermRetentionPoliciesInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing BackupLongTermRetentionPolicies.
*/
public interface BackupLongTermRetentionPolicies extends SupportsCreating<BackupLongTermRetentionPolicy.DefinitionStages.Blank>, HasInner<BackupLongTermRetentionPoliciesInner> {
/**
* Returns a database backup long term retention policy.
*
* @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 serverName The name of the server.
* @param databaseName The name of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BackupLongTermRetentionPolicy> getAsync(String resourceGroupName, String serverName, String databaseName);

/**
* Returns a database backup long term retention policy.
*
* @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 serverName The name of the server.
* @param databaseName The name of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BackupLongTermRetentionPolicy> listByDatabaseAsync(String resourceGroupName, String serverName, String databaseName);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
/**
* 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.sql.v2014_04_01;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.sql.v2014_04_01.implementation.BackupLongTermRetentionPolicyInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.model.Updatable;
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.sql.v2014_04_01.implementation.SqlManager;

/**
* Type representing BackupLongTermRetentionPolicy.
*/
public interface BackupLongTermRetentionPolicy extends HasInner<BackupLongTermRetentionPolicyInner>, Indexable, Refreshable<BackupLongTermRetentionPolicy>, Updatable<BackupLongTermRetentionPolicy.Update>, HasManager<SqlManager> {
/**
* @return the id value.
*/
String id();

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

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

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

/**
* @return the state value.
*/
BackupLongTermRetentionPolicyState state();

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

/**
* The entirety of the BackupLongTermRetentionPolicy definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithDatabasis, DefinitionStages.WithRecoveryServicesBackupPolicyResourceId, DefinitionStages.WithState, DefinitionStages.WithCreate {
}

/**
* Grouping of BackupLongTermRetentionPolicy definition stages.
*/
interface DefinitionStages {
/**
* The first stage of a BackupLongTermRetentionPolicy definition.
*/
interface Blank extends WithDatabasis {
}

/**
* The stage of the backuplongtermretentionpolicy definition allowing to specify Databasis.
*/
interface WithDatabasis {
/**
* Specifies resourceGroupName, serverName, databaseName.
*/
WithRecoveryServicesBackupPolicyResourceId withExistingDatabasis(String resourceGroupName, String serverName, String databaseName);
}

/**
* The stage of the backuplongtermretentionpolicy definition allowing to specify RecoveryServicesBackupPolicyResourceId.
*/
interface WithRecoveryServicesBackupPolicyResourceId {
/**
* Specifies recoveryServicesBackupPolicyResourceId.
*/
WithState withRecoveryServicesBackupPolicyResourceId(String recoveryServicesBackupPolicyResourceId);
}

/**
* The stage of the backuplongtermretentionpolicy definition allowing to specify State.
*/
interface WithState {
/**
* Specifies state.
*/
WithCreate withState(BackupLongTermRetentionPolicyState state);
}

/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<BackupLongTermRetentionPolicy> {
}
}
/**
* The template for a BackupLongTermRetentionPolicy update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<BackupLongTermRetentionPolicy> {
}

/**
* Grouping of BackupLongTermRetentionPolicy update stages.
*/
interface UpdateStages {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/**
* 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.sql.v2014_04_01;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for BackupLongTermRetentionPolicyState.
*/
public enum BackupLongTermRetentionPolicyState {
/** Enum value Disabled. */
DISABLED("Disabled"),

/** Enum value Enabled. */
ENABLED("Enabled");

/** The actual serialized value for a BackupLongTermRetentionPolicyState instance. */
private String value;

BackupLongTermRetentionPolicyState(String value) {
this.value = value;
}

/**
* Parses a serialized value to a BackupLongTermRetentionPolicyState instance.
*
* @param value the serialized value to parse.
* @return the parsed BackupLongTermRetentionPolicyState object, or null if unable to parse.
*/
@JsonCreator
public static BackupLongTermRetentionPolicyState fromString(String value) {
BackupLongTermRetentionPolicyState[] items = BackupLongTermRetentionPolicyState.values();
for (BackupLongTermRetentionPolicyState item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

@JsonValue
@Override
public String toString() {
return this.value;
}
}
Loading