Skip to content

Commit

Permalink
[AutoPR] iotcentral/resource-manager (Azure#2413)
Browse files Browse the repository at this point in the history
* Generated from 1dda4e455040e612e0553c6d9503d29509cde751 (Azure#2247)

Add iotcentral version 2018-09-01

* [AutoPR iotcentral/resource-manager] IoTCentral - Add ARM endpoint, update model responses/inputs to align with expected values (Azure#2431)

* Generated from ddbb8ffb2dd676863a74cd5d44748fbd93a93025

Update models to align with expected responses

* Generated from 09b4a4594660bc1c21dc7122a3784f64867a041e

Fix build errors

* Generated from 1c89739e3a40c9bf7a6f40e86367d50e6b88f776

Add required field to definitions

* Generated from 2a67d7be3a9b0c1f55324bd0059ff0dc1077a4ff

Remove typo

* Generated from f0df5982f4b75520b1b163b84ea33c9a81d6e79b

add x-ms-client-flatten to errorSchema
  • Loading branch information
AutorestCI authored and jianghaolu committed Oct 30, 2018
1 parent 1408944 commit 80b8793
Show file tree
Hide file tree
Showing 11 changed files with 564 additions and 38 deletions.
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.iotcentral.v2018_09_01;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iotcentral.v2018_09_01.implementation.IoTCentralManager;
import com.microsoft.azure.management.iotcentral.v2018_09_01.implementation.AppAvailabilityInfoInner;

/**
* Type representing AppAvailabilityInfo.
*/
public interface AppAvailabilityInfo extends HasInner<AppAvailabilityInfoInner>, HasManager<IoTCentralManager> {
/**
* @return the message value.
*/
String message();

/**
* @return the nameAvailable value.
*/
Boolean nameAvailable();

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,19 @@ public interface Apps extends SupportsCreating<App.DefinitionStages.Blank>, Supp
/**
* Check if an IoT Central application name is available.
*
* @param name The name of the IoT Central application instance to check.
* @param operationInputs Set the name parameter in the OperationInputs structure to the name of the IoT Central application to check.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<AppNameAvailabilityInfo> checkNameAvailabilityAsync(String name);
Observable<AppAvailabilityInfo> checkNameAvailabilityAsync(OperationInputs operationInputs);

/**
* Check if an IoT Central application subdomain is available.
*
* @param operationInputs Set the name parameter in the OperationInputs structure to the subdomain of the IoT Central application to check.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<AppAvailabilityInfo> checkSubdomainAvailabilityAsync(OperationInputs operationInputs);

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,39 @@

package com.microsoft.azure.management.iotcentral.v2018_09_01;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;

/**
* Error details.
*/
@JsonFlatten
public class ErrorDetails {
/**
* The error code.
*/
@JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
@JsonProperty(value = "error.code", access = JsonProperty.Access.WRITE_ONLY)
private String code;

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

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

/**
* A list of additional details about the error.
*/
@JsonProperty(value = "error.details")
private List<ErrorResponseBody> details;

/**
* Get the error code.
*
Expand Down Expand Up @@ -59,4 +68,24 @@ public String target() {
return this.target;
}

/**
* Get a list of additional details about the error.
*
* @return the details value
*/
public List<ErrorResponseBody> details() {
return this.details;
}

/**
* Set a list of additional details about the error.
*
* @param details the details value to set
* @return the ErrorDetails object itself.
*/
public ErrorDetails withDetails(List<ErrorResponseBody> details) {
this.details = details;
return this;
}

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

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

/**
* Details of error response.
*/
public class ErrorResponseBody {
/**
* 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 target of the particular error.
*/
@JsonProperty(value = "target", access = JsonProperty.Access.WRITE_ONLY)
private String target;

/**
* A list of additional details about the error.
*/
@JsonProperty(value = "details")
private List<ErrorResponseBody> details;

/**
* 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 target of the particular error.
*
* @return the target value
*/
public String target() {
return this.target;
}

/**
* Get a list of additional details about the error.
*
* @return the details value
*/
public List<ErrorResponseBody> details() {
return this.details;
}

/**
* Set a list of additional details about the error.
*
* @param details the details value to set
* @return the ErrorResponseBody object itself.
*/
public ErrorResponseBody withDetails(List<ErrorResponseBody> details) {
this.details = details;
return this;
}

}
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.iotcentral.v2018_09_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Input values.
*/
public class NameAvailabilityInputs {
/**
* The name of the IoT Central application instance to check.
*/
@JsonProperty(value = "name", required = true)
private String name;

/**
* The type of the IoT Central resource to query.
*/
@JsonProperty(value = "type")
private String type;

/**
* Get the name of the IoT Central application instance to check.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set the name of the IoT Central application instance to check.
*
* @param name the name value to set
* @return the NameAvailabilityInputs object itself.
*/
public NameAvailabilityInputs withName(String name) {
this.name = name;
return this;
}

/**
* Get the type of the IoT Central resource to query.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* Set the type of the IoT Central resource to query.
*
* @param type the type value to set
* @return the NameAvailabilityInputs object itself.
*/
public NameAvailabilityInputs withType(String type) {
this.type = type;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ public class OperationInputs {
@JsonProperty(value = "name", required = true)
private String name;

/**
* The type of the IoT Central resource to query.
*/
@JsonProperty(value = "type")
private String type;

/**
* Get the name of the IoT Central application instance to check.
*
Expand All @@ -40,4 +46,24 @@ public OperationInputs withName(String name) {
return this;
}

/**
* Get the type of the IoT Central resource to query.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* Set the type of the IoT Central resource to query.
*
* @param type the type value to set
* @return the OperationInputs object itself.
*/
public OperationInputs withType(String type) {
this.type = type;
return this;
}

}
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.iotcentral.v2018_09_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Input values.
*/
public class SubdomainAvailabilityInputs {
/**
* The subdomain of the IoT Central application instance to check.
*/
@JsonProperty(value = "subdomain", required = true)
private String subdomain;

/**
* The type of the IoT Central resource to query.
*/
@JsonProperty(value = "type")
private String type;

/**
* Get the subdomain of the IoT Central application instance to check.
*
* @return the subdomain value
*/
public String subdomain() {
return this.subdomain;
}

/**
* Set the subdomain of the IoT Central application instance to check.
*
* @param subdomain the subdomain value to set
* @return the SubdomainAvailabilityInputs object itself.
*/
public SubdomainAvailabilityInputs withSubdomain(String subdomain) {
this.subdomain = subdomain;
return this;
}

/**
* Get the type of the IoT Central resource to query.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* Set the type of the IoT Central resource to query.
*
* @param type the type value to set
* @return the SubdomainAvailabilityInputs object itself.
*/
public SubdomainAvailabilityInputs withType(String type) {
this.type = type;
return this;
}

}
Loading

0 comments on commit 80b8793

Please sign in to comment.