1010import com .azure .core .http .rest .PagedIterable ;
1111import com .azure .core .http .rest .Response ;
1212import com .azure .core .util .Context ;
13+ import com .azure .resourcemanager .cdn .fluent .models .CheckNameAvailabilityOutputInner ;
1314import com .azure .resourcemanager .cdn .fluent .models .UsageInner ;
14- import com .azure .resourcemanager .cdn .fluent . models .ValidateCustomDomainOutputInner ;
15+ import com .azure .resourcemanager .cdn .models .CheckHostnameAvailabilityInput ;
1516import 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