Skip to content
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
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 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