Skip to content

Commit f8a67c3

Browse files
Upgrade cdn to 2020-09 (#1370)
1 parent 3b5e98e commit f8a67c3

267 files changed

Lines changed: 35495 additions & 2090 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

api-specs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"dir": "azure-mgmt-cdn",
6565
"source": "specification/cdn/resource-manager/readme.md",
6666
"package": "com.microsoft.azure.management.cdn",
67-
"args": "--payload-flattening-threshold=2 --tag=package-2017-10"
67+
"args": "--payload-flattening-threshold=2 --tag=package-2020-09"
6868
},
6969
"cognitiveservices": {
7070
"dir": "azure-mgmt-cognitiveservices",
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.cdn;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* The JSON object that contains the properties to secure a domain.
15+
*/
16+
public class AFDDomainHttpsParameters {
17+
/**
18+
* Defines the source of the SSL certificate. Possible values include:
19+
* 'CustomerCertificate', 'ManagedCertificate'.
20+
*/
21+
@JsonProperty(value = "certificateType", required = true)
22+
private AfdCertificateType certificateType;
23+
24+
/**
25+
* TLS protocol version that will be used for Https. Possible values
26+
* include: 'TLS10', 'TLS12'.
27+
*/
28+
@JsonProperty(value = "minimumTlsVersion")
29+
private AfdMinimumTlsVersion minimumTlsVersion;
30+
31+
/**
32+
* Resource reference to the secret. ie. subs/rg/profile/secret.
33+
*/
34+
@JsonProperty(value = "secret")
35+
private ResourceReference secret;
36+
37+
/**
38+
* Get defines the source of the SSL certificate. Possible values include: 'CustomerCertificate', 'ManagedCertificate'.
39+
*
40+
* @return the certificateType value
41+
*/
42+
public AfdCertificateType certificateType() {
43+
return this.certificateType;
44+
}
45+
46+
/**
47+
* Set defines the source of the SSL certificate. Possible values include: 'CustomerCertificate', 'ManagedCertificate'.
48+
*
49+
* @param certificateType the certificateType value to set
50+
* @return the AFDDomainHttpsParameters object itself.
51+
*/
52+
public AFDDomainHttpsParameters withCertificateType(AfdCertificateType certificateType) {
53+
this.certificateType = certificateType;
54+
return this;
55+
}
56+
57+
/**
58+
* Get tLS protocol version that will be used for Https. Possible values include: 'TLS10', 'TLS12'.
59+
*
60+
* @return the minimumTlsVersion value
61+
*/
62+
public AfdMinimumTlsVersion minimumTlsVersion() {
63+
return this.minimumTlsVersion;
64+
}
65+
66+
/**
67+
* Set tLS protocol version that will be used for Https. Possible values include: 'TLS10', 'TLS12'.
68+
*
69+
* @param minimumTlsVersion the minimumTlsVersion value to set
70+
* @return the AFDDomainHttpsParameters object itself.
71+
*/
72+
public AFDDomainHttpsParameters withMinimumTlsVersion(AfdMinimumTlsVersion minimumTlsVersion) {
73+
this.minimumTlsVersion = minimumTlsVersion;
74+
return this;
75+
}
76+
77+
/**
78+
* Get resource reference to the secret. ie. subs/rg/profile/secret.
79+
*
80+
* @return the secret value
81+
*/
82+
public ResourceReference secret() {
83+
return this.secret;
84+
}
85+
86+
/**
87+
* Set resource reference to the secret. ie. subs/rg/profile/secret.
88+
*
89+
* @param secret the secret value to set
90+
* @return the AFDDomainHttpsParameters object itself.
91+
*/
92+
public AFDDomainHttpsParameters withSecret(ResourceReference secret) {
93+
this.secret = secret;
94+
return this;
95+
}
96+
97+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.cdn;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
import com.microsoft.rest.serializer.JsonFlatten;
13+
14+
/**
15+
* The domain JSON object required for domain creation or update.
16+
*/
17+
@JsonFlatten
18+
public class AFDDomainUpdateParameters {
19+
/**
20+
* The configuration specifying how to enable HTTPS for the domain - using
21+
* AzureFrontDoor managed certificate or user's own certificate. If not
22+
* specified, enabling ssl uses AzureFrontDoor managed certificate by
23+
* default.
24+
*/
25+
@JsonProperty(value = "properties.tlsSettings")
26+
private AFDDomainHttpsParameters tlsSettings;
27+
28+
/**
29+
* Resource reference to the Azure DNS zone.
30+
*/
31+
@JsonProperty(value = "properties.azureDnsZone")
32+
private ResourceReference azureDnsZone;
33+
34+
/**
35+
* Get the configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default.
36+
*
37+
* @return the tlsSettings value
38+
*/
39+
public AFDDomainHttpsParameters tlsSettings() {
40+
return this.tlsSettings;
41+
}
42+
43+
/**
44+
* Set the configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default.
45+
*
46+
* @param tlsSettings the tlsSettings value to set
47+
* @return the AFDDomainUpdateParameters object itself.
48+
*/
49+
public AFDDomainUpdateParameters withTlsSettings(AFDDomainHttpsParameters tlsSettings) {
50+
this.tlsSettings = tlsSettings;
51+
return this;
52+
}
53+
54+
/**
55+
* Get resource reference to the Azure DNS zone.
56+
*
57+
* @return the azureDnsZone value
58+
*/
59+
public ResourceReference azureDnsZone() {
60+
return this.azureDnsZone;
61+
}
62+
63+
/**
64+
* Set resource reference to the Azure DNS zone.
65+
*
66+
* @param azureDnsZone the azureDnsZone value to set
67+
* @return the AFDDomainUpdateParameters object itself.
68+
*/
69+
public AFDDomainUpdateParameters withAzureDnsZone(ResourceReference azureDnsZone) {
70+
this.azureDnsZone = azureDnsZone;
71+
return this;
72+
}
73+
74+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.cdn;
10+
11+
import java.util.Collection;
12+
import com.fasterxml.jackson.annotation.JsonCreator;
13+
import com.microsoft.rest.ExpandableStringEnum;
14+
15+
/**
16+
* Defines values for AFDEndpointProtocols.
17+
*/
18+
public final class AFDEndpointProtocols extends ExpandableStringEnum<AFDEndpointProtocols> {
19+
/** Static value Http for AFDEndpointProtocols. */
20+
public static final AFDEndpointProtocols HTTP = fromString("Http");
21+
22+
/** Static value Https for AFDEndpointProtocols. */
23+
public static final AFDEndpointProtocols HTTPS = fromString("Https");
24+
25+
/**
26+
* Creates or finds a AFDEndpointProtocols from its string representation.
27+
* @param name a name to look for
28+
* @return the corresponding AFDEndpointProtocols
29+
*/
30+
@JsonCreator
31+
public static AFDEndpointProtocols fromString(String name) {
32+
return fromString(name, AFDEndpointProtocols.class);
33+
}
34+
35+
/**
36+
* @return known AFDEndpointProtocols values
37+
*/
38+
public static Collection<AFDEndpointProtocols> values() {
39+
return values(AFDEndpointProtocols.class);
40+
}
41+
}
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.cdn;
10+
11+
import java.util.Map;
12+
import com.fasterxml.jackson.annotation.JsonProperty;
13+
import com.microsoft.rest.serializer.JsonFlatten;
14+
15+
/**
16+
* Properties required to create or update an endpoint.
17+
*/
18+
@JsonFlatten
19+
public class AFDEndpointUpdateParameters {
20+
/**
21+
* Endpoint tags.
22+
*/
23+
@JsonProperty(value = "tags")
24+
private Map<String, String> tags;
25+
26+
/**
27+
* Send and receive timeout on forwarding request to the origin. When
28+
* timeout is reached, the request fails and returns.
29+
*/
30+
@JsonProperty(value = "properties.originResponseTimeoutSeconds")
31+
private Integer originResponseTimeoutSeconds;
32+
33+
/**
34+
* Whether to enable use of this rule. Permitted values are 'Enabled' or
35+
* 'Disabled'. Possible values include: 'Enabled', 'Disabled'.
36+
*/
37+
@JsonProperty(value = "properties.enabledState")
38+
private EnabledState enabledState;
39+
40+
/**
41+
* Get endpoint tags.
42+
*
43+
* @return the tags value
44+
*/
45+
public Map<String, String> tags() {
46+
return this.tags;
47+
}
48+
49+
/**
50+
* Set endpoint tags.
51+
*
52+
* @param tags the tags value to set
53+
* @return the AFDEndpointUpdateParameters object itself.
54+
*/
55+
public AFDEndpointUpdateParameters withTags(Map<String, String> tags) {
56+
this.tags = tags;
57+
return this;
58+
}
59+
60+
/**
61+
* Get send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns.
62+
*
63+
* @return the originResponseTimeoutSeconds value
64+
*/
65+
public Integer originResponseTimeoutSeconds() {
66+
return this.originResponseTimeoutSeconds;
67+
}
68+
69+
/**
70+
* Set send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns.
71+
*
72+
* @param originResponseTimeoutSeconds the originResponseTimeoutSeconds value to set
73+
* @return the AFDEndpointUpdateParameters object itself.
74+
*/
75+
public AFDEndpointUpdateParameters withOriginResponseTimeoutSeconds(Integer originResponseTimeoutSeconds) {
76+
this.originResponseTimeoutSeconds = originResponseTimeoutSeconds;
77+
return this;
78+
}
79+
80+
/**
81+
* Get whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'.
82+
*
83+
* @return the enabledState value
84+
*/
85+
public EnabledState enabledState() {
86+
return this.enabledState;
87+
}
88+
89+
/**
90+
* Set whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'.
91+
*
92+
* @param enabledState the enabledState value to set
93+
* @return the AFDEndpointUpdateParameters object itself.
94+
*/
95+
public AFDEndpointUpdateParameters withEnabledState(EnabledState enabledState) {
96+
this.enabledState = enabledState;
97+
return this;
98+
}
99+
100+
}

0 commit comments

Comments
 (0)