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 iotcentral/resource-manager] Add IOT central app templates api in swagger #3238

Closed
Closed
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
Expand Up @@ -11,15 +11,15 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.0.0</version>
<version>0.0.3-beta</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>azure-mgmt-iotcentral</artifactId>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for IoTCentral Management</name>
<description>This package contains Microsoft IoTCentral Management SDK.</description>
<url>https://github.com/Azure/azure-libraries-for-java</url>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<licenses>
<license>
<name>The MIT License (MIT)</name>
Expand All @@ -28,8 +28,8 @@
</license>
</licenses>
<scm>
<url>scm:git:https://github.com/Azure/azure-libraries-for-java</url>
<connection>scm:git:[email protected]:Azure/azure-libraries-for-java.git</connection>
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</connection>
<tag>HEAD</tag>
</scm>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,36 +77,44 @@ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<Wit
interface WithSku {
/**
* Specifies sku.
*/
* @param sku A valid instance SKU
* @return the next definition stage
*/
WithCreate withSku(AppSkuInfo sku);
}

/**
* The stage of the app update allowing to specify DisplayName.
* The stage of the app definition allowing to specify DisplayName.
*/
interface WithDisplayName {
/**
* Specifies displayName.
* @param displayName The display name of the application
* @return the next definition stage
*/
WithCreate withDisplayName(String displayName);
}

/**
* The stage of the app update allowing to specify Subdomain.
* The stage of the app definition allowing to specify Subdomain.
*/
interface WithSubdomain {
/**
* Specifies subdomain.
* @param subdomain The subdomain of the application
* @return the next definition stage
*/
WithCreate withSubdomain(String subdomain);
}

/**
* The stage of the app update allowing to specify Template.
* The stage of the app definition allowing to specify Template.
*/
interface WithTemplate {
/**
* Specifies template.
* @param template The ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch
* @return the next definition stage
*/
WithCreate withTemplate(String template);
}
Expand All @@ -130,31 +138,37 @@ interface Update extends Appliable<App>, Resource.UpdateWithTags<Update>, Update
*/
interface UpdateStages {
/**
* The stage of the app {0} allowing to specify DisplayName.
* The stage of the app update allowing to specify DisplayName.
*/
interface WithDisplayName {
/**
* Specifies displayName.
* @param displayName The display name of the application
* @return the next update stage
*/
Update withDisplayName(String displayName);
}

/**
* The stage of the app {0} allowing to specify Subdomain.
* The stage of the app update allowing to specify Subdomain.
*/
interface WithSubdomain {
/**
* Specifies subdomain.
* @param subdomain The subdomain of the application
* @return the next update stage
*/
Update withSubdomain(String subdomain);
}

/**
* The stage of the app {0} allowing to specify Template.
* The stage of the app update allowing to specify Template.
*/
interface WithTemplate {
/**
* Specifies template.
* @param template The ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch
* @return the next update stage
*/
Update withTemplate(String template);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ public String apiVersion() {
return this.apiVersion;
}

/** Gets or sets the preferred language for the response. */
/** The preferred language for the response. */
private String acceptLanguage;

/**
* Gets Gets or sets the preferred language for the response.
* Gets The preferred language for the response.
*
* @return the acceptLanguage value.
*/
Expand All @@ -76,7 +76,7 @@ public String acceptLanguage() {
}

/**
* Sets Gets or sets the preferred language for the response.
* Sets The preferred language for the response.
*
* @param acceptLanguage the acceptLanguage value.
* @return the service client itself
Expand All @@ -86,11 +86,11 @@ public IotCentralClientImpl withAcceptLanguage(String acceptLanguage) {
return this;
}

/** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */
/** The retry timeout in seconds for Long Running Operations. Default value is 30. */
private int longRunningOperationRetryTimeout;

/**
* Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* Gets The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @return the longRunningOperationRetryTimeout value.
*/
Expand All @@ -99,7 +99,7 @@ public int longRunningOperationRetryTimeout() {
}

/**
* Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* Sets The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value.
* @return the service client itself
Expand All @@ -109,11 +109,11 @@ public IotCentralClientImpl withLongRunningOperationRetryTimeout(int longRunning
return this;
}

/** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */
/** Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */
private boolean generateClientRequestId;

/**
* Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
* @return the generateClientRequestId value.
*/
Expand All @@ -122,7 +122,7 @@ public boolean generateClientRequestId() {
}

/**
* Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
* @param generateClientRequestId the generateClientRequestId value.
* @return the service client itself
Expand Down Expand Up @@ -205,6 +205,6 @@ protected void initialize() {
*/
@Override
public String userAgent() {
return String.format("%s (%s, %s)", super.userAgent(), "IotCentralClient", "2017-07-01-privatepreview");
return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "IotCentralClient", "2017-07-01-privatepreview");
}
}
8 changes: 4 additions & 4 deletions iotcentral/resource-manager/v2018_09_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.0.0</version>
<version>0.0.3-beta</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>azure-mgmt-iotcentral</artifactId>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for IoTCentral Management</name>
<description>This package contains Microsoft IoTCentral Management SDK.</description>
<url>https://github.com/Azure/azure-libraries-for-java</url>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<licenses>
<license>
<name>The MIT License (MIT)</name>
Expand All @@ -28,8 +28,8 @@
</license>
</licenses>
<scm>
<url>scm:git:https://github.com/Azure/azure-libraries-for-java</url>
<connection>scm:git:[email protected]:Azure/azure-libraries-for-java.git</connection>
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</connection>
<tag>HEAD</tag>
</scm>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,36 +77,44 @@ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<Wit
interface WithSku {
/**
* Specifies sku.
*/
* @param sku A valid instance SKU
* @return the next definition stage
*/
WithCreate withSku(AppSkuInfo sku);
}

/**
* The stage of the app update allowing to specify DisplayName.
* The stage of the app definition allowing to specify DisplayName.
*/
interface WithDisplayName {
/**
* Specifies displayName.
* @param displayName The display name of the application
* @return the next definition stage
*/
WithCreate withDisplayName(String displayName);
}

/**
* The stage of the app update allowing to specify Subdomain.
* The stage of the app definition allowing to specify Subdomain.
*/
interface WithSubdomain {
/**
* Specifies subdomain.
* @param subdomain The subdomain of the application
* @return the next definition stage
*/
WithCreate withSubdomain(String subdomain);
}

/**
* The stage of the app update allowing to specify Template.
* The stage of the app definition allowing to specify Template.
*/
interface WithTemplate {
/**
* Specifies template.
* @param template The ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch
* @return the next definition stage
*/
WithCreate withTemplate(String template);
}
Expand All @@ -130,31 +138,37 @@ interface Update extends Appliable<App>, Resource.UpdateWithTags<Update>, Update
*/
interface UpdateStages {
/**
* The stage of the app {0} allowing to specify DisplayName.
* The stage of the app update allowing to specify DisplayName.
*/
interface WithDisplayName {
/**
* Specifies displayName.
* @param displayName The display name of the application
* @return the next update stage
*/
Update withDisplayName(String displayName);
}

/**
* The stage of the app {0} allowing to specify Subdomain.
* The stage of the app update allowing to specify Subdomain.
*/
interface WithSubdomain {
/**
* Specifies subdomain.
* @param subdomain The subdomain of the application
* @return the next update stage
*/
Update withSubdomain(String subdomain);
}

/**
* The stage of the app {0} allowing to specify Template.
* The stage of the app update allowing to specify Template.
*/
interface WithTemplate {
/**
* Specifies template.
* @param template The ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch
* @return the next update stage
*/
Update withTemplate(String template);
}
Expand Down
Loading