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 cdn/resource-manager] adding standard_microsoft in pricing tier #2318

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
@@ -0,0 +1,132 @@
/**
* 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.cdn;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Defines the parameters for the cache expiration action.
*/
public class CacheExpirationActionParameters {
/**
* The odatatype property.
*/
@JsonProperty(value = "@odata\\.type", required = true)
private String odatatype;

/**
* Caching behavior for the requests that include query strings. Possible
* values include: 'BypassCache', 'Override', 'SetIfMissing'.
*/
@JsonProperty(value = "cacheBehavior", required = true)
private String cacheBehavior;

/**
* The level at which the content needs to be cached.
*/
@JsonProperty(value = "cacheType", required = true)
private String cacheType;

/**
* The duration for which the the content needs to be cached. Allowed
* format is [d.]hh:mm:ss.
*/
@JsonProperty(value = "cacheDuration")
private String cacheDuration;

/**
* Creates an instance of CacheExpirationActionParameters class.
* @param cacheBehavior caching behavior for the requests that include query strings. Possible values include: 'BypassCache', 'Override', 'SetIfMissing'.
*/
public CacheExpirationActionParameters() {
odatatype = "Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters";
cacheType = "All";
}

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

/**
* Set the odatatype value.
*
* @param odatatype the odatatype value to set
* @return the CacheExpirationActionParameters object itself.
*/
public CacheExpirationActionParameters withOdatatype(String odatatype) {
this.odatatype = odatatype;
return this;
}

/**
* Get caching behavior for the requests that include query strings. Possible values include: 'BypassCache', 'Override', 'SetIfMissing'.
*
* @return the cacheBehavior value
*/
public String cacheBehavior() {
return this.cacheBehavior;
}

/**
* Set caching behavior for the requests that include query strings. Possible values include: 'BypassCache', 'Override', 'SetIfMissing'.
*
* @param cacheBehavior the cacheBehavior value to set
* @return the CacheExpirationActionParameters object itself.
*/
public CacheExpirationActionParameters withCacheBehavior(String cacheBehavior) {
this.cacheBehavior = cacheBehavior;
return this;
}

/**
* Get the level at which the content needs to be cached.
*
* @return the cacheType value
*/
public String cacheType() {
return this.cacheType;
}

/**
* Set the level at which the content needs to be cached.
*
* @param cacheType the cacheType value to set
* @return the CacheExpirationActionParameters object itself.
*/
public CacheExpirationActionParameters withCacheType(String cacheType) {
this.cacheType = cacheType;
return this;
}

/**
* Get the duration for which the the content needs to be cached. Allowed format is [d.]hh:mm:ss.
*
* @return the cacheDuration value
*/
public String cacheDuration() {
return this.cacheDuration;
}

/**
* Set the duration for which the the content needs to be cached. Allowed format is [d.]hh:mm:ss.
*
* @param cacheDuration the cacheDuration value to set
* @return the CacheExpirationActionParameters object itself.
*/
public CacheExpirationActionParameters withCacheDuration(String cacheDuration) {
this.cacheDuration = cacheDuration;
return this;
}

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

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Input of CheckNameAvailability API.
*/
public class CheckNameAvailabilityInput {
/**
* The resource name to validate.
*/
@JsonProperty(value = "name", required = true)
private String name;

/**
* The type of the resource whose name is to be validated.
*/
@JsonProperty(value = "type", required = true)
private String type;

/**
* Creates an instance of CheckNameAvailabilityInput class.
* @param name the resource name to validate.
*/
public CheckNameAvailabilityInput() {
type = "Microsoft.Cdn/Profiles/Endpoints";
}

/**
* Get the resource name to validate.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set the resource name to validate.
*
* @param name the name value to set
* @return the CheckNameAvailabilityInput object itself.
*/
public CheckNameAvailabilityInput withName(String name) {
this.name = name;
return this;
}

/**
* Get the type of the resource whose name is to be validated.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* Set the type of the resource whose name is to be validated.
*
* @param type the type value to set
* @return the CheckNameAvailabilityInput object itself.
*/
public CheckNameAvailabilityInput 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.cdn;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* CIDR Ip address.
*/
public class CidrIpAddress {
/**
* Ip adress itself.
*/
@JsonProperty(value = "baseIpAddress")
private String baseIpAddress;

/**
* The length of the prefix of the ip address.
*/
@JsonProperty(value = "prefixLength")
private Integer prefixLength;

/**
* Get ip adress itself.
*
* @return the baseIpAddress value
*/
public String baseIpAddress() {
return this.baseIpAddress;
}

/**
* Set ip adress itself.
*
* @param baseIpAddress the baseIpAddress value to set
* @return the CidrIpAddress object itself.
*/
public CidrIpAddress withBaseIpAddress(String baseIpAddress) {
this.baseIpAddress = baseIpAddress;
return this;
}

/**
* Get the length of the prefix of the ip address.
*
* @return the prefixLength value
*/
public Integer prefixLength() {
return this.prefixLength;
}

/**
* Set the length of the prefix of the ip address.
*
* @param prefixLength the prefixLength value to set
* @return the CidrIpAddress object itself.
*/
public CidrIpAddress withPrefixLength(Integer prefixLength) {
this.prefixLength = prefixLength;
return this;
}

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

import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;

/**
* The customDomain JSON object required for custom domain creation or update.
*/
@JsonFlatten
public class CustomDomainParameters {
/**
* The host name of the custom domain. Must be a domain name.
*/
@JsonProperty(value = "properties.hostName", required = true)
private String hostName;

/**
* Get the host name of the custom domain. Must be a domain name.
*
* @return the hostName value
*/
public String hostName() {
return this.hostName;
}

/**
* Set the host name of the custom domain. Must be a domain name.
*
* @param hostName the hostName value to set
* @return the CustomDomainParameters object itself.
*/
public CustomDomainParameters withHostName(String hostName) {
this.hostName = hostName;
return this;
}

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

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for CustomDomainResourceState.
*/
public final class CustomDomainResourceState extends ExpandableStringEnum<CustomDomainResourceState> {
/** Static value Creating for CustomDomainResourceState. */
public static final CustomDomainResourceState CREATING = fromString("Creating");

/** Static value Active for CustomDomainResourceState. */
public static final CustomDomainResourceState ACTIVE = fromString("Active");

/** Static value Deleting for CustomDomainResourceState. */
public static final CustomDomainResourceState DELETING = fromString("Deleting");

/**
* Creates or finds a CustomDomainResourceState from its string representation.
* @param name a name to look for
* @return the corresponding CustomDomainResourceState
*/
@JsonCreator
public static CustomDomainResourceState fromString(String name) {
return fromString(name, CustomDomainResourceState.class);
}

/**
* @return known CustomDomainResourceState values
*/
public static Collection<CustomDomainResourceState> values() {
return values(CustomDomainResourceState.class);
}
}
Loading