Skip to content

Commit

Permalink
[AutoPR web/resource-manager] WebApps - Add ResourceHealthMetadata.js…
Browse files Browse the repository at this point in the history
…on to readme.md for SDK generation (#2336)

* Generated from 1c9e1028cea9b1119b0fb396906d412c6d228c8e

WebApps - Add ResourceHealthMetadata.json to readme.md for SDK generation

* Generated from 4038e1418fea2b1092005a07b4ff72442d0038a1

Change deleted site model to be proxy only resource
  • Loading branch information
AutorestCI authored Aug 28, 2018
1 parent fcf3c04 commit b791de2
Show file tree
Hide file tree
Showing 11 changed files with 1,738 additions and 7 deletions.
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
@@ -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 @@ -29,6 +29,7 @@
import com.microsoft.azure.management.appservice.v2018_02_01.WebApps;
import com.microsoft.azure.management.appservice.v2018_02_01.AppServiceEnvironments;
import com.microsoft.azure.management.appservice.v2018_02_01.AppServicePlans;
import com.microsoft.azure.management.appservice.v2018_02_01.ResourceHealthMetadatas;
import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl;
import com.microsoft.azure.arm.resources.implementation.ManagerCore;

Expand All @@ -49,6 +50,7 @@ public final class CertificateRegistrationManager extends ManagerCore<Certificat
private WebApps webApps;
private AppServiceEnvironments appServiceEnvironments;
private AppServicePlans appServicePlans;
private ResourceHealthMetadatas resourceHealthMetadatas;
/**
* Get a Configurable instance that can be used to create CertificateRegistrationManager with optional configuration.
*
Expand Down Expand Up @@ -226,6 +228,16 @@ public AppServicePlans appServicePlans() {
return this.appServicePlans;
}

/**
* @return Entry point to manage ResourceHealthMetadatas.
*/
public ResourceHealthMetadatas resourceHealthMetadatas() {
if (this.resourceHealthMetadatas == null) {
this.resourceHealthMetadatas = new ResourceHealthMetadatasImpl(this);
}
return this.resourceHealthMetadatas;
}

/**
* The implementation for Configurable interface.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public Integer deletedSiteId() {
return this.inner().deletedSiteId();
}

@Override
public String deletedSiteKind() {
return this.inner().deletedSiteKind();
}

@Override
public String deletedSiteName() {
return this.inner().deletedSiteName();
Expand All @@ -38,6 +43,21 @@ public String deletedTimestamp() {
return this.inner().deletedTimestamp();
}

@Override
public String id() {
return this.inner().id();
}

@Override
public String kind() {
return this.inner().kind();
}

@Override
public String name() {
return this.inner().name();
}

@Override
public String resourceGroup() {
return this.inner().resourceGroup();
Expand All @@ -53,4 +73,9 @@ public String subscription() {
return this.inner().subscription();
}

@Override
public String type() {
return this.inner().type();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,47 +9,56 @@
package com.microsoft.azure.management.appservice.v2018_02_01.implementation;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.management.appservice.v2018_02_01.ProxyOnlyResource;

/**
* A deleted app.
*/
public class DeletedSiteInner {
@JsonFlatten
public class DeletedSiteInner extends ProxyOnlyResource {
/**
* Numeric id for the deleted site.
*/
@JsonProperty(value = "deletedSiteId", access = JsonProperty.Access.WRITE_ONLY)
@JsonProperty(value = "properties.deletedSiteId", access = JsonProperty.Access.WRITE_ONLY)
private Integer deletedSiteId;

/**
* Time in UTC when the app was deleted.
*/
@JsonProperty(value = "deletedTimestamp", access = JsonProperty.Access.WRITE_ONLY)
@JsonProperty(value = "properties.deletedTimestamp", access = JsonProperty.Access.WRITE_ONLY)
private String deletedTimestamp;

/**
* Subscription containing the deleted site.
*/
@JsonProperty(value = "subscription", access = JsonProperty.Access.WRITE_ONLY)
@JsonProperty(value = "properties.subscription", access = JsonProperty.Access.WRITE_ONLY)
private String subscription;

/**
* ResourceGroup that contained the deleted site.
*/
@JsonProperty(value = "resourceGroup", access = JsonProperty.Access.WRITE_ONLY)
@JsonProperty(value = "properties.resourceGroup", access = JsonProperty.Access.WRITE_ONLY)
private String resourceGroup;

/**
* Name of the deleted site.
*/
@JsonProperty(value = "deletedSiteName", access = JsonProperty.Access.WRITE_ONLY)
@JsonProperty(value = "properties.deletedSiteName", access = JsonProperty.Access.WRITE_ONLY)
private String deletedSiteName;

/**
* Slot of the deleted site.
*/
@JsonProperty(value = "slot", access = JsonProperty.Access.WRITE_ONLY)
@JsonProperty(value = "properties.slot", access = JsonProperty.Access.WRITE_ONLY)
private String slot;

/**
* Kind of site that was deleted.
*/
@JsonProperty(value = "properties.kind", access = JsonProperty.Access.WRITE_ONLY)
private String deletedSiteKind;

/**
* Get numeric id for the deleted site.
*
Expand Down Expand Up @@ -104,4 +113,13 @@ public String slot() {
return this.slot;
}

/**
* Get kind of site that was deleted.
*
* @return the deletedSiteKind value
*/
public String deletedSiteKind() {
return this.deletedSiteKind;
}

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

import com.microsoft.azure.management.appservice.v2018_02_01.ResourceHealthMetadata;
import com.microsoft.azure.arm.model.implementation.WrapperImpl;

class ResourceHealthMetadataImpl extends WrapperImpl<ResourceHealthMetadataInner> implements ResourceHealthMetadata {
private final CertificateRegistrationManager manager;
ResourceHealthMetadataImpl(ResourceHealthMetadataInner inner, CertificateRegistrationManager manager) {
super(inner);
this.manager = manager;
}

@Override
public CertificateRegistrationManager manager() {
return this.manager;
}

@Override
public String category() {
return this.inner().category();
}

@Override
public String id() {
return this.inner().id();
}

@Override
public String kind() {
return this.inner().kind();
}

@Override
public String name() {
return this.inner().name();
}

@Override
public Boolean signalAvailability() {
return this.inner().signalAvailability();
}

@Override
public String type() {
return this.inner().type();
}

}
Loading

0 comments on commit b791de2

Please sign in to comment.