Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
0b9a131
Generated from c08434af1cb56f1fa3725832d1ffa878ba40cc38
AutorestCI Sep 20, 2018
d7e5248
Generated from 012871adbed086a294aa444ca9e6c4f2989fba02
AutorestCI Sep 20, 2018
6ea5893
Generated from d6fbf20ed7b6465697cc2648b873d064eb4f61ef
AutorestCI Sep 20, 2018
73e9a71
Generated from 8a25eead9ebfb8d6c5646444a75053d99796d81b
AutorestCI Sep 21, 2018
68c6b7e
Generated from a0fca65e2cfdf21d578bf31c2ba3d32175b01ca1
AutorestCI Sep 21, 2018
0982d82
Generated from 50ccd76b49a9496daf577a1e864fd02545219148
AutorestCI Sep 26, 2018
1ab6cb4
Generated from 0b4eb2d1aa3ab17a1d8e4934a0c5e701652a8815
AutorestCI Sep 26, 2018
97ee8e1
Generated from 65c3f9035c6cb5f5620e2399e32d16bdce532a14
AutorestCI Sep 26, 2018
947387a
Generated from e56826f5f026884b10068a2485cfebbaa071c508
AutorestCI Sep 26, 2018
01c5a65
Generated from 85504133b58ae743ecc9872a35b94f28ff583a99
AutorestCI Sep 26, 2018
82dc497
Generated from 0778f5efeb06cb6dec9e8f09bd0c366d9a0186dc
AutorestCI Sep 26, 2018
c3cd412
Generated from 02cd2dfacf4029001b5cf0c7d4088cdbd348dfeb
AutorestCI Sep 26, 2018
2a44549
Generated from 7d62b8f150f3365546d829897148b68574419a03
AutorestCI Sep 26, 2018
3121ed4
Generated from 623592768a8c3742d252c0951171a8c3da297b6b
AutorestCI Sep 26, 2018
c82ff01
Generated from b27aa5cbd9414e799aa2f6b3d60a5c971b78b2a2
AutorestCI Sep 26, 2018
360fe05
Generated from bddac2cafda2e1fac0a66343049233d456d140b0
AutorestCI Sep 26, 2018
1143c93
Generated from cfab25795b85b379821d2b4fa43a7f3293c0a03d
AutorestCI Sep 26, 2018
346eda2
Generated from d6711a99e3ec80a0dfb83f9aaef8b956c99a6162
AutorestCI Sep 26, 2018
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
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 nameAvailabilityInputs Set the name parameter in the NameAvailabilityInputs 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(NameAvailabilityInputs nameAvailabilityInputs);

/**
* Check if an IoT Central application subdomain is available.
*
* @param subdomainAvailabilityInputs Set the subdomain parameter in the SubdomainAvailabilityInputs 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(SubdomainAvailabilityInputs subdomainAvailabilityInputs);

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,48 +15,29 @@
*/
public class ErrorDetails {
/**
* The error code.
* The error property.
*/
@JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
private String code;
@JsonProperty(value = "error")
private ErrorResponseBody error;

/**
* 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;

/**
* Get the error code.
*
* @return the code value
*/
public String code() {
return this.code;
}

/**
* Get the error message.
* Get the error value.
*
* @return the message value
* @return the error value
*/
public String message() {
return this.message;
public ErrorResponseBody error() {
return this.error;
}

/**
* Get the target of the particular error.
* Set the error value.
*
* @return the target value
* @param error the error value to set
* @return the ErrorDetails object itself.
*/
public String target() {
return this.target;
public ErrorDetails withError(ErrorResponseBody error) {
this.error = error;
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 {
/**
* Error code, intended to be consumed programmatically.
*/
@JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
private String code;

/**
* Description of the error, intended for display in user interface.
*/
@JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
private String message;

/**
* Target of the particular error, for example name of the property.
*/
@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 error code, intended to be consumed programmatically.
*
* @return the code value
*/
public String code() {
return this.code;
}

/**
* Get description of the error, intended for display in user interface.
*
* @return the message value
*/
public String message() {
return this.message;
}

/**
* Get target of the particular error, for example name of the property.
*
* @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")
private String name;

/**
* The name of the IoT Central resource name 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 name of the IoT Central resource name to query.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* Set the name of the IoT Central resource name 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 @@ -17,9 +17,21 @@ public class OperationInputs {
/**
* The name of the IoT Central application instance to check.
*/
@JsonProperty(value = "name", required = true)
@JsonProperty(value = "name")
private String name;

/**
* The subdomain of the IoT Central application instance to check.
*/
@JsonProperty(value = "subdomain")
private String subdomain;

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

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

/**
* 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 OperationInputs object itself.
*/
public OperationInputs withSubdomain(String subdomain) {
this.subdomain = subdomain;
return this;
}

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

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

}
Loading