-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR appconfiguration/resource-manager] 2019-02-01-preview (#3408)
* Generated from 2bb0f75efee5b84434edfe63a1ad73d74749ee95 2019-02-01-preview * Generated from ed4c436bb8fe501958dc615138eb68deabc3ebf4 Added ruby spec. Removed Node spec. Fixed spelling error in 'utilizing'. Removed BOM from the beginning of example files.
- Loading branch information
1 parent
6326b1b
commit b597c6e
Showing
17 changed files
with
3,467 additions
and
0 deletions.
There are no files selected for viewing
77 changes: 77 additions & 0 deletions
77
...java/com/microsoft/azure/management/appconfiguration/CheckNameAvailabilityParameters.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/** | ||
* 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.appconfiguration; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Parameters used for checking whether a resource name is available. | ||
*/ | ||
public class CheckNameAvailabilityParameters { | ||
/** | ||
* The name to check for availability. | ||
*/ | ||
@JsonProperty(value = "name", required = true) | ||
private String name; | ||
|
||
/** | ||
* The resource type to check for name availability. | ||
*/ | ||
@JsonProperty(value = "type", required = true) | ||
private String type; | ||
|
||
/** | ||
* Creates an instance of CheckNameAvailabilityParameters class. | ||
* @param name the name to check for availability. | ||
*/ | ||
public CheckNameAvailabilityParameters() { | ||
type = "Microsoft.AppConfiguration/configurationStores"; | ||
} | ||
|
||
/** | ||
* Get the name to check for availability. | ||
* | ||
* @return the name value | ||
*/ | ||
public String name() { | ||
return this.name; | ||
} | ||
|
||
/** | ||
* Set the name to check for availability. | ||
* | ||
* @param name the name value to set | ||
* @return the CheckNameAvailabilityParameters object itself. | ||
*/ | ||
public CheckNameAvailabilityParameters withName(String name) { | ||
this.name = name; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the resource type to check for name availability. | ||
* | ||
* @return the type value | ||
*/ | ||
public String type() { | ||
return this.type; | ||
} | ||
|
||
/** | ||
* Set the resource type to check for name availability. | ||
* | ||
* @param type the type value to set | ||
* @return the CheckNameAvailabilityParameters object itself. | ||
*/ | ||
public CheckNameAvailabilityParameters withType(String type) { | ||
this.type = type; | ||
return this; | ||
} | ||
|
||
} |
70 changes: 70 additions & 0 deletions
70
...a/com/microsoft/azure/management/appconfiguration/ConfigurationStoreUpdateParameters.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/** | ||
* 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.appconfiguration; | ||
|
||
import java.util.Map; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* The parameters for updating a configuration store. | ||
*/ | ||
public class ConfigurationStoreUpdateParameters { | ||
/** | ||
* The properties for updating a configuration store. | ||
*/ | ||
@JsonProperty(value = "properties") | ||
private Object properties; | ||
|
||
/** | ||
* The ARM resource tags. | ||
*/ | ||
@JsonProperty(value = "tags") | ||
private Map<String, String> tags; | ||
|
||
/** | ||
* Get the properties for updating a configuration store. | ||
* | ||
* @return the properties value | ||
*/ | ||
public Object properties() { | ||
return this.properties; | ||
} | ||
|
||
/** | ||
* Set the properties for updating a configuration store. | ||
* | ||
* @param properties the properties value to set | ||
* @return the ConfigurationStoreUpdateParameters object itself. | ||
*/ | ||
public ConfigurationStoreUpdateParameters withProperties(Object properties) { | ||
this.properties = properties; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the ARM resource tags. | ||
* | ||
* @return the tags value | ||
*/ | ||
public Map<String, String> tags() { | ||
return this.tags; | ||
} | ||
|
||
/** | ||
* Set the ARM resource tags. | ||
* | ||
* @param tags the tags value to set | ||
* @return the ConfigurationStoreUpdateParameters object itself. | ||
*/ | ||
public ConfigurationStoreUpdateParameters withTags(Map<String, String> tags) { | ||
this.tags = tags; | ||
return this; | ||
} | ||
|
||
} |
69 changes: 69 additions & 0 deletions
69
...appconfiguration/src/main/java/com/microsoft/azure/management/appconfiguration/Error.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/** | ||
* 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.appconfiguration; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* AppConfiguration error object. | ||
*/ | ||
public class Error { | ||
/** | ||
* Error code. | ||
*/ | ||
@JsonProperty(value = "code") | ||
private String code; | ||
|
||
/** | ||
* Error message. | ||
*/ | ||
@JsonProperty(value = "message") | ||
private String message; | ||
|
||
/** | ||
* Get error code. | ||
* | ||
* @return the code value | ||
*/ | ||
public String code() { | ||
return this.code; | ||
} | ||
|
||
/** | ||
* Set error code. | ||
* | ||
* @param code the code value to set | ||
* @return the Error object itself. | ||
*/ | ||
public Error withCode(String code) { | ||
this.code = code; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get error message. | ||
* | ||
* @return the message value | ||
*/ | ||
public String message() { | ||
return this.message; | ||
} | ||
|
||
/** | ||
* Set error message. | ||
* | ||
* @param message the message value to set | ||
* @return the Error object itself. | ||
*/ | ||
public Error withMessage(String message) { | ||
this.message = message; | ||
return this; | ||
} | ||
|
||
} |
44 changes: 44 additions & 0 deletions
44
...uration/src/main/java/com/microsoft/azure/management/appconfiguration/ErrorException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** | ||
* 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.appconfiguration; | ||
|
||
import com.microsoft.rest.RestException; | ||
import okhttp3.ResponseBody; | ||
import retrofit2.Response; | ||
|
||
/** | ||
* Exception thrown for an invalid response with Error information. | ||
*/ | ||
public class ErrorException extends RestException { | ||
/** | ||
* Initializes a new instance of the ErrorException class. | ||
* | ||
* @param message the exception message or the response content if a message is not available | ||
* @param response the HTTP response | ||
*/ | ||
public ErrorException(final String message, final Response<ResponseBody> response) { | ||
super(message, response); | ||
} | ||
|
||
/** | ||
* Initializes a new instance of the ErrorException class. | ||
* | ||
* @param message the exception message or the response content if a message is not available | ||
* @param response the HTTP response | ||
* @param body the deserialized response body | ||
*/ | ||
public ErrorException(final String message, final Response<ResponseBody> response, final Error body) { | ||
super(message, response, body); | ||
} | ||
|
||
@Override | ||
public Error body() { | ||
return (Error) super.body(); | ||
} | ||
} |
110 changes: 110 additions & 0 deletions
110
...main/java/com/microsoft/azure/management/appconfiguration/OperationDefinitionDisplay.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
/** | ||
* 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.appconfiguration; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* The display information for a configuration store operation. | ||
*/ | ||
public class OperationDefinitionDisplay { | ||
/** | ||
* The resource provider name: Microsoft App Configuration.". | ||
*/ | ||
@JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY) | ||
private String provider; | ||
|
||
/** | ||
* The resource on which the operation is performed. | ||
*/ | ||
@JsonProperty(value = "resource") | ||
private String resource; | ||
|
||
/** | ||
* The operation that users can perform. | ||
*/ | ||
@JsonProperty(value = "operation") | ||
private String operation; | ||
|
||
/** | ||
* The description for the operation. | ||
*/ | ||
@JsonProperty(value = "description") | ||
private String description; | ||
|
||
/** | ||
* Get the resource provider name: Microsoft App Configuration.". | ||
* | ||
* @return the provider value | ||
*/ | ||
public String provider() { | ||
return this.provider; | ||
} | ||
|
||
/** | ||
* Get the resource on which the operation is performed. | ||
* | ||
* @return the resource value | ||
*/ | ||
public String resource() { | ||
return this.resource; | ||
} | ||
|
||
/** | ||
* Set the resource on which the operation is performed. | ||
* | ||
* @param resource the resource value to set | ||
* @return the OperationDefinitionDisplay object itself. | ||
*/ | ||
public OperationDefinitionDisplay withResource(String resource) { | ||
this.resource = resource; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the operation that users can perform. | ||
* | ||
* @return the operation value | ||
*/ | ||
public String operation() { | ||
return this.operation; | ||
} | ||
|
||
/** | ||
* Set the operation that users can perform. | ||
* | ||
* @param operation the operation value to set | ||
* @return the OperationDefinitionDisplay object itself. | ||
*/ | ||
public OperationDefinitionDisplay withOperation(String operation) { | ||
this.operation = operation; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the description for the operation. | ||
* | ||
* @return the description value | ||
*/ | ||
public String description() { | ||
return this.description; | ||
} | ||
|
||
/** | ||
* Set the description for the operation. | ||
* | ||
* @param description the description value to set | ||
* @return the OperationDefinitionDisplay object itself. | ||
*/ | ||
public OperationDefinitionDisplay withDescription(String description) { | ||
this.description = description; | ||
return this; | ||
} | ||
|
||
} |
Oops, something went wrong.