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] Adding BillingMeters API #3

Merged
merged 4 commits into from
Mar 30, 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 @@ -15,10 +15,11 @@
*/
public class ManagedServiceIdentity {
/**
* Type of managed service identity.
* Type of managed service identity. Possible values include:
* 'SystemAssigned'.
*/
@JsonProperty(value = "type")
private Object type;
private ManagedServiceIdentityType type;

/**
* Tenant of managed service identity.
Expand All @@ -37,7 +38,7 @@ public class ManagedServiceIdentity {
*
* @return the type value
*/
public Object type() {
public ManagedServiceIdentityType type() {
return this.type;
}

Expand All @@ -47,7 +48,7 @@ public Object type() {
* @param type the type value to set
* @return the ManagedServiceIdentity object itself.
*/
public ManagedServiceIdentity withType(Object type) {
public ManagedServiceIdentity withType(ManagedServiceIdentityType type) {
this.type = type;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
/**
* 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.web.implementation;

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

/**
* App Service billing entity that contains information about meter which the
* Azure billing system utilizes to charge users for services.
*/
@JsonFlatten
public class BillingMeterInner extends ProxyOnlyResource {
/**
* Meter GUID onboarded in Commerce.
*/
@JsonProperty(value = "properties.meterId")
private String meterId;

/**
* Azure Location of billable resource.
*/
@JsonProperty(value = "properties.billingLocation")
private String billingLocation;

/**
* Short Name from App Service Azure pricing Page.
*/
@JsonProperty(value = "properties.shortName")
private String shortName;

/**
* Friendly name of the meter.
*/
@JsonProperty(value = "properties.friendlyName")
private String friendlyName;

/**
* App Service resource type meter used for.
*/
@JsonProperty(value = "properties.resourceType")
private String resourceType;

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

/**
* Set the meterId value.
*
* @param meterId the meterId value to set
* @return the BillingMeterInner object itself.
*/
public BillingMeterInner withMeterId(String meterId) {
this.meterId = meterId;
return this;
}

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

/**
* Set the billingLocation value.
*
* @param billingLocation the billingLocation value to set
* @return the BillingMeterInner object itself.
*/
public BillingMeterInner withBillingLocation(String billingLocation) {
this.billingLocation = billingLocation;
return this;
}

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

/**
* Set the shortName value.
*
* @param shortName the shortName value to set
* @return the BillingMeterInner object itself.
*/
public BillingMeterInner withShortName(String shortName) {
this.shortName = shortName;
return this;
}

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

/**
* Set the friendlyName value.
*
* @param friendlyName the friendlyName value to set
* @return the BillingMeterInner object itself.
*/
public BillingMeterInner withFriendlyName(String friendlyName) {
this.friendlyName = friendlyName;
return this;
}

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

/**
* Set the resourceType value.
*
* @param resourceType the resourceType value to set
* @return the BillingMeterInner object itself.
*/
public BillingMeterInner withResourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}

}
Loading