Skip to content

Commit 0faae6e

Browse files
mgmt, upgrade CDN to 2021-06-01 (Azure#26961)
1 parent dadf9dd commit 0faae6e

File tree

325 files changed

+18251
-9199
lines changed

Some content is hidden

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

325 files changed

+18251
-9199
lines changed

sdk/resourcemanager/api-specs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"dir": "azure-resourcemanager-cdn",
7979
"source": "specification/cdn/resource-manager/readme.md",
8080
"package": "com.azure.resourcemanager.cdn",
81-
"args": "--tag=package-2020-09 --rename-model=CdnEndpoint:EndpointResource"
81+
"args": "--tag=package-2021-06 --rename-model=CdnEndpoint:EndpointResource"
8282
},
8383
"cognitiveservices": {
8484
"dir": "azure-resourcemanager-cognitiveservices",

sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebAppsClientImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5822,7 +5822,7 @@ Mono<Response<Void>> syncRepositorySlot(
58225822
@Post(
58235823
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}"
58245824
+ "/slots/{slot}/syncfunctiontriggers")
5825-
@ExpectedResponses({204})
5825+
@ExpectedResponses({200, 204})
58265826
@UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
58275827
Mono<Response<Void>> syncFunctionTriggersSlot(
58285828
@HostParam("$host") String endpoint,
@@ -6335,7 +6335,7 @@ Mono<Response<Void>> syncRepository(
63356335
@Post(
63366336
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}"
63376337
+ "/syncfunctiontriggers")
6338-
@ExpectedResponses({204})
6338+
@ExpectedResponses({200, 204})
63396339
@UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class)
63406340
Mono<Response<Void>> syncFunctionTriggers(
63416341
@HostParam("$host") String endpoint,

sdk/resourcemanager/azure-resourcemanager-cdn/CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22

33
## 2.12.0-beta.1 (Unreleased)
44

5-
### Features Added
6-
75
### Breaking Changes
86

9-
### Bugs Fixed
7+
- Azure Front Door.
8+
- Changed in class `CheckNameAvailabilityInput` that `type` no longer have a default value and hence required to be specified.
109

1110
### Other Changes
1211

12+
#### Dependency Updates
13+
14+
- Updated `api-version` to `2021-06-01`.
15+
1316
## 2.11.0 (2022-01-17)
1417

1518
### Other Changes

sdk/resourcemanager/azure-resourcemanager-cdn/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<javaModulesSurefireArgLine>
4444
--add-opens com.azure.resourcemanager.cdn/com.azure.resourcemanager.cdn=ALL-UNNAMED
4545
</javaModulesSurefireArgLine>
46+
<revapi.skip>true</revapi.skip>
4647
</properties>
4748

4849
<developers>

sdk/resourcemanager/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/AfdCustomDomainsClient.java

Lines changed: 139 additions & 168 deletions
Large diffs are not rendered by default.

sdk/resourcemanager/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/AfdEndpointsClient.java

Lines changed: 209 additions & 189 deletions
Large diffs are not rendered by default.

sdk/resourcemanager/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/AfdOriginGroupsClient.java

Lines changed: 102 additions & 70 deletions
Large diffs are not rendered by default.

sdk/resourcemanager/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/AfdOriginsClient.java

Lines changed: 89 additions & 58 deletions
Large diffs are not rendered by default.

sdk/resourcemanager/azure-resourcemanager-cdn/src/main/java/com/azure/resourcemanager/cdn/fluent/AfdProfilesClient.java

Lines changed: 39 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
import com.azure.core.http.rest.PagedIterable;
1111
import com.azure.core.http.rest.Response;
1212
import com.azure.core.util.Context;
13+
import com.azure.resourcemanager.cdn.fluent.models.CheckNameAvailabilityOutputInner;
1314
import com.azure.resourcemanager.cdn.fluent.models.UsageInner;
14-
import com.azure.resourcemanager.cdn.fluent.models.ValidateCustomDomainOutputInner;
15+
import com.azure.resourcemanager.cdn.models.CheckHostnameAvailabilityInput;
1516
import reactor.core.publisher.Mono;
1617

1718
/** An instance of this class provides access to all the operations defined in AfdProfilesClient. */
@@ -20,11 +21,12 @@ public interface AfdProfilesClient {
2021
* Checks the quota and actual usage of endpoints under the given CDN profile.
2122
*
2223
* @param resourceGroupName Name of the Resource group within the Azure subscription.
23-
* @param profileName Name of the CDN profile which is unique within the resource group.
24+
* @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is
25+
* unique within the resource group.
2426
* @throws IllegalArgumentException thrown if parameters fail the validation.
2527
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2628
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
27-
* @return the list usages operation response.
29+
* @return the list usages operation response as paginated response with {@link PagedFlux}.
2830
*/
2931
@ServiceMethod(returns = ReturnType.COLLECTION)
3032
PagedFlux<UsageInner> listResourceUsageAsync(String resourceGroupName, String profileName);
@@ -33,11 +35,12 @@ public interface AfdProfilesClient {
3335
* Checks the quota and actual usage of endpoints under the given CDN profile.
3436
*
3537
* @param resourceGroupName Name of the Resource group within the Azure subscription.
36-
* @param profileName Name of the CDN profile which is unique within the resource group.
38+
* @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is
39+
* unique within the resource group.
3740
* @throws IllegalArgumentException thrown if parameters fail the validation.
3841
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3942
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
40-
* @return the list usages operation response.
43+
* @return the list usages operation response as paginated response with {@link PagedIterable}.
4144
*/
4245
@ServiceMethod(returns = ReturnType.COLLECTION)
4346
PagedIterable<UsageInner> listResourceUsage(String resourceGroupName, String profileName);
@@ -46,12 +49,13 @@ public interface AfdProfilesClient {
4649
* Checks the quota and actual usage of endpoints under the given CDN profile.
4750
*
4851
* @param resourceGroupName Name of the Resource group within the Azure subscription.
49-
* @param profileName Name of the CDN profile which is unique within the resource group.
52+
* @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is
53+
* unique within the resource group.
5054
* @param context The context to associate with this operation.
5155
* @throws IllegalArgumentException thrown if parameters fail the validation.
5256
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
5357
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
54-
* @return the list usages operation response.
58+
* @return the list usages operation response as paginated response with {@link PagedIterable}.
5559
*/
5660
@ServiceMethod(returns = ReturnType.COLLECTION)
5761
PagedIterable<UsageInner> listResourceUsage(String resourceGroupName, String profileName, Context context);
@@ -60,60 +64,68 @@ public interface AfdProfilesClient {
6064
* Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS.
6165
*
6266
* @param resourceGroupName Name of the Resource group within the Azure subscription.
63-
* @param profileName Name of the CDN profile which is unique within the resource group.
64-
* @param hostname The host name of the custom domain. Must be a domain name.
67+
* @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is
68+
* unique within the resource group.
69+
* @param checkHostnameAvailabilityInput Custom domain to be validated.
6570
* @throws IllegalArgumentException thrown if parameters fail the validation.
6671
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
6772
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
68-
* @return output of custom domain validation.
73+
* @return output of check name availability API along with {@link Response} on successful completion of {@link
74+
* Mono}.
6975
*/
7076
@ServiceMethod(returns = ReturnType.SINGLE)
71-
Mono<Response<ValidateCustomDomainOutputInner>> checkHostnameAvailabilityWithResponseAsync(
72-
String resourceGroupName, String profileName, String hostname);
77+
Mono<Response<CheckNameAvailabilityOutputInner>> checkHostnameAvailabilityWithResponseAsync(
78+
String resourceGroupName, String profileName, CheckHostnameAvailabilityInput checkHostnameAvailabilityInput);
7379

7480
/**
7581
* Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS.
7682
*
7783
* @param resourceGroupName Name of the Resource group within the Azure subscription.
78-
* @param profileName Name of the CDN profile which is unique within the resource group.
79-
* @param hostname The host name of the custom domain. Must be a domain name.
84+
* @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is
85+
* unique within the resource group.
86+
* @param checkHostnameAvailabilityInput Custom domain to be validated.
8087
* @throws IllegalArgumentException thrown if parameters fail the validation.
8188
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
8289
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
83-
* @return output of custom domain validation.
90+
* @return output of check name availability API on successful completion of {@link Mono}.
8491
*/
8592
@ServiceMethod(returns = ReturnType.SINGLE)
86-
Mono<ValidateCustomDomainOutputInner> checkHostnameAvailabilityAsync(
87-
String resourceGroupName, String profileName, String hostname);
93+
Mono<CheckNameAvailabilityOutputInner> checkHostnameAvailabilityAsync(
94+
String resourceGroupName, String profileName, CheckHostnameAvailabilityInput checkHostnameAvailabilityInput);
8895

8996
/**
9097
* Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS.
9198
*
9299
* @param resourceGroupName Name of the Resource group within the Azure subscription.
93-
* @param profileName Name of the CDN profile which is unique within the resource group.
94-
* @param hostname The host name of the custom domain. Must be a domain name.
100+
* @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is
101+
* unique within the resource group.
102+
* @param checkHostnameAvailabilityInput Custom domain to be validated.
95103
* @throws IllegalArgumentException thrown if parameters fail the validation.
96104
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
97105
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
98-
* @return output of custom domain validation.
106+
* @return output of check name availability API.
99107
*/
100108
@ServiceMethod(returns = ReturnType.SINGLE)
101-
ValidateCustomDomainOutputInner checkHostnameAvailability(
102-
String resourceGroupName, String profileName, String hostname);
109+
CheckNameAvailabilityOutputInner checkHostnameAvailability(
110+
String resourceGroupName, String profileName, CheckHostnameAvailabilityInput checkHostnameAvailabilityInput);
103111

104112
/**
105113
* Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS.
106114
*
107115
* @param resourceGroupName Name of the Resource group within the Azure subscription.
108-
* @param profileName Name of the CDN profile which is unique within the resource group.
109-
* @param hostname The host name of the custom domain. Must be a domain name.
116+
* @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is
117+
* unique within the resource group.
118+
* @param checkHostnameAvailabilityInput Custom domain to be validated.
110119
* @param context The context to associate with this operation.
111120
* @throws IllegalArgumentException thrown if parameters fail the validation.
112121
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
113122
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
114-
* @return output of custom domain validation.
123+
* @return output of check name availability API along with {@link Response}.
115124
*/
116125
@ServiceMethod(returns = ReturnType.SINGLE)
117-
Response<ValidateCustomDomainOutputInner> checkHostnameAvailabilityWithResponse(
118-
String resourceGroupName, String profileName, String hostname, Context context);
126+
Response<CheckNameAvailabilityOutputInner> checkHostnameAvailabilityWithResponse(
127+
String resourceGroupName,
128+
String profileName,
129+
CheckHostnameAvailabilityInput checkHostnameAvailabilityInput,
130+
Context context);
119131
}

0 commit comments

Comments
 (0)