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 web/resource-manager] WebApps - Add ResourceHealthMetadata.json to readme.md for SDK generation #2336

Merged
merged 2 commits into from
Aug 28, 2018
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
Expand Up @@ -45,6 +45,11 @@ public interface AppServicePlan extends HasInner<AppServicePlanInner>, Resource,
*/
HostingEnvironmentProfile hostingEnvironmentProfile();

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

/**
* @return the isSpot value.
*/
Expand Down Expand Up @@ -177,6 +182,16 @@ interface WithHostingEnvironmentProfile {
WithCreate withHostingEnvironmentProfile(HostingEnvironmentProfile hostingEnvironmentProfile);
}

/**
* The stage of the appserviceplan update allowing to specify HyperV.
*/
interface WithHyperV {
/**
* Specifies hyperV.
*/
WithCreate withHyperV(Boolean hyperV);
}

/**
* The stage of the appserviceplan update allowing to specify IsSpot.
*/
Expand Down Expand Up @@ -282,13 +297,13 @@ interface WithWorkerTierName {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<AppServicePlan>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithAdminSiteName, DefinitionStages.WithFreeOfferExpirationTime, DefinitionStages.WithHostingEnvironmentProfile, DefinitionStages.WithIsSpot, DefinitionStages.WithIsXenon, DefinitionStages.WithKind, DefinitionStages.WithPerSiteScaling, DefinitionStages.WithReserved, DefinitionStages.WithSku, DefinitionStages.WithSpotExpirationTime, DefinitionStages.WithTargetWorkerCount, DefinitionStages.WithTargetWorkerSizeId, DefinitionStages.WithWorkerTierName {
interface WithCreate extends Creatable<AppServicePlan>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithAdminSiteName, DefinitionStages.WithFreeOfferExpirationTime, DefinitionStages.WithHostingEnvironmentProfile, DefinitionStages.WithHyperV, DefinitionStages.WithIsSpot, DefinitionStages.WithIsXenon, DefinitionStages.WithKind, DefinitionStages.WithPerSiteScaling, DefinitionStages.WithReserved, DefinitionStages.WithSku, DefinitionStages.WithSpotExpirationTime, DefinitionStages.WithTargetWorkerCount, DefinitionStages.WithTargetWorkerSizeId, DefinitionStages.WithWorkerTierName {
}
}
/**
* The template for a AppServicePlan update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<AppServicePlan>, Resource.UpdateWithTags<Update>, UpdateStages.WithAdminSiteName, UpdateStages.WithFreeOfferExpirationTime, UpdateStages.WithHostingEnvironmentProfile, UpdateStages.WithIsSpot, UpdateStages.WithIsXenon, UpdateStages.WithKind, UpdateStages.WithPerSiteScaling, UpdateStages.WithReserved, UpdateStages.WithSpotExpirationTime, UpdateStages.WithTargetWorkerCount, UpdateStages.WithTargetWorkerSizeId, UpdateStages.WithWorkerTierName {
interface Update extends Appliable<AppServicePlan>, Resource.UpdateWithTags<Update>, UpdateStages.WithAdminSiteName, UpdateStages.WithFreeOfferExpirationTime, UpdateStages.WithHostingEnvironmentProfile, UpdateStages.WithHyperV, UpdateStages.WithIsSpot, UpdateStages.WithIsXenon, UpdateStages.WithKind, UpdateStages.WithPerSiteScaling, UpdateStages.WithReserved, UpdateStages.WithSpotExpirationTime, UpdateStages.WithTargetWorkerCount, UpdateStages.WithTargetWorkerSizeId, UpdateStages.WithWorkerTierName {
}

/**
Expand Down Expand Up @@ -325,6 +340,16 @@ interface WithHostingEnvironmentProfile {
Update withHostingEnvironmentProfile(HostingEnvironmentProfile hostingEnvironmentProfile);
}

/**
* The stage of the appserviceplan {0} allowing to specify HyperV.
*/
interface WithHyperV {
/**
* Specifies hyperV.
*/
Update withHyperV(Boolean hyperV);
}

/**
* The stage of the appserviceplan {0} allowing to specify IsSpot.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,19 @@ public class AppServicePlanPatchResource extends ProxyOnlyResource {
private Boolean reserved;

/**
* If Hyper-V container app service plan &lt;code&gt;true&lt;/code&gt;,
* &lt;code&gt;false&lt;/code&gt; otherwise.
* Obsolete: If Hyper-V container app service plan
* &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt; otherwise.
*/
@JsonProperty(value = "properties.isXenon")
private Boolean isXenon;

/**
* If Hyper-V container app service plan &lt;code&gt;true&lt;/code&gt;,
* &lt;code&gt;false&lt;/code&gt; otherwise.
*/
@JsonProperty(value = "properties.hyperV")
private Boolean hyperV;

/**
* Scaling worker count.
*/
Expand Down Expand Up @@ -353,7 +360,7 @@ public AppServicePlanPatchResource withReserved(Boolean reserved) {
}

/**
* Get if Hyper-V container app service plan &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt; otherwise.
* Get obsolete: If Hyper-V container app service plan &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt; otherwise.
*
* @return the isXenon value
*/
Expand All @@ -362,7 +369,7 @@ public Boolean isXenon() {
}

/**
* Set if Hyper-V container app service plan &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt; otherwise.
* Set obsolete: If Hyper-V container app service plan &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt; otherwise.
*
* @param isXenon the isXenon value to set
* @return the AppServicePlanPatchResource object itself.
Expand All @@ -372,6 +379,26 @@ public AppServicePlanPatchResource withIsXenon(Boolean isXenon) {
return this;
}

/**
* Get if Hyper-V container app service plan &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt; otherwise.
*
* @return the hyperV value
*/
public Boolean hyperV() {
return this.hyperV;
}

/**
* Set if Hyper-V container app service plan &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt; otherwise.
*
* @param hyperV the hyperV value to set
* @return the AppServicePlanPatchResource object itself.
*/
public AppServicePlanPatchResource withHyperV(Boolean hyperV) {
this.hyperV = hyperV;
return this;
}

/**
* Get scaling worker count.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ public interface DeletedSite extends HasInner<DeletedSiteInner>, HasManager<Cert
*/
Integer deletedSiteId();

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

/**
* @return the deletedSiteName value.
*/
Expand All @@ -32,6 +37,21 @@ public interface DeletedSite extends HasInner<DeletedSiteInner>, HasManager<Cert
*/
String deletedTimestamp();

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

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

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

/**
* @return the resourceGroup value.
*/
Expand All @@ -47,4 +67,9 @@ public interface DeletedSite extends HasInner<DeletedSiteInner>, HasManager<Cert
*/
String subscription();

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ public interface HostingEnvironmentAppServicePlan extends HasInner<AppServicePla
*/
HostingEnvironmentProfile hostingEnvironmentProfile();

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

/**
* @return the id value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ public interface HostingEnvironmentSite extends HasInner<SiteInner>, HasManager<
*/
Boolean httpsOnly();

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

/**
* @return the id value.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/**
* 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.appservice.v2018_02_01;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager;
import com.microsoft.azure.management.appservice.v2018_02_01.implementation.ResourceHealthMetadataInner;

/**
* Type representing ResourceHealthMetadata.
*/
public interface ResourceHealthMetadata extends HasInner<ResourceHealthMetadataInner>, HasManager<CertificateRegistrationManager> {
/**
* @return the category value.
*/
String category();

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

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

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

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

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

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

import rx.Observable;

/**
* Type representing ResourceHealthMetadatas.
*/
public interface ResourceHealthMetadatas {
/**
* Gets the category of ResourceHealthMetadata to use for the given site as a collection.
* Gets the category of ResourceHealthMetadata to use for the given site as a collection.
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ResourceHealthMetadata> listBySiteAsync(final String resourceGroupName, final String name);

/**
* Gets the category of ResourceHealthMetadata to use for the given site.
* Gets the category of ResourceHealthMetadata to use for the given site.
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ResourceHealthMetadata> getBySiteAsync(String resourceGroupName, String name);

/**
* List all ResourceHealthMetadata for all sites in the subscription.
* List all ResourceHealthMetadata for all sites in the subscription.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ResourceHealthMetadata> listAsync();

/**
* List all ResourceHealthMetadata for all sites in the resource group in the subscription.
* List all ResourceHealthMetadata for all sites in the resource group in the subscription.
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ResourceHealthMetadata> listByResourceGroupAsync(final String resourceGroupName);

/**
* Gets the category of ResourceHealthMetadata to use for the given site as a collection.
* Gets the category of ResourceHealthMetadata to use for the given site as a collection.
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app.
* @param slot Name of web app slot. If not specified then will default to production slot.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ResourceHealthMetadata> listBySiteSlotAsync(final String resourceGroupName, final String name, final String slot);

/**
* Gets the category of ResourceHealthMetadata to use for the given site.
* Gets the category of ResourceHealthMetadata to use for the given site.
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of web app
* @param slot Name of web app slot. If not specified then will default to production slot.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ResourceHealthMetadata> getBySiteSlotAsync(String resourceGroupName, String name, String slot);

}
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ public interface ServerfarmSite extends HasInner<SiteInner>, HasManager<Certific
*/
Boolean httpsOnly();

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

/**
* @return the id value.
*/
Expand Down
Loading