Skip to content

Commit fd56dd2

Browse files
XiaofeiCaobsndxz
andauthored
mgmt appservice, upgrade api-version 2022-03 (#29796)
* codegen * session records * credcheck * use helloworld as oneDeploy artifact * changelog * revapi.skip=true * changelog * related session records * remove `Inner` of CsmDeploymentStatusInner * add protect test * supports getDeploymentStatus remove * checkstyle and spotbugs * change getDeploymentStatus to async implementation * remove unnecessary null check * nit, change test to use sync version deploymentStatus * change getDeploymentStatus return type and implementation * remove getDeployStatus polling * fix getDeploymentStatus for DeploymentSlot * add status code to * session-records Co-authored-by: caoxiaofei <[email protected]>
1 parent 85623d9 commit fd56dd2

File tree

516 files changed

+44887
-13312
lines changed

Some content is hidden

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

516 files changed

+44887
-13312
lines changed

sdk/resourcemanager/api-specs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dir": "azure-resourcemanager-appservice",
1010
"source": "specification/web/resource-manager/readme.md",
1111
"package": "com.azure.resourcemanager.appservice",
12-
"args": "--tag=package-2021-03 --add-inner=AppServiceCertificate --name-for-ungrouped-operations=ResourceProvider",
12+
"args": "--tag=package-2022-03 --add-inner=AppServiceCertificate --remove-inner=CsmDeploymentStatus --name-for-ungrouped-operations=ResourceProvider",
1313
"note": "Add status code '200' to 'syncFunctionTriggers'"
1414
},
1515
"appservice-hybrid": {

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,25 @@
44

55
### Features Added
66

7+
- Supported `getDeploymentStatus` in `SupportsOneDeploy`.
8+
79
### Breaking Changes
810

11+
- Merged multiple classes `AppServiceCertificateOrderPatchResourcePropertiesAppServiceCertificateNotRenewableReasonsItem`,
12+
`AppServiceCertificateOrderPropertiesAppServiceCertificateNotRenewableReasonsItem`,
13+
`DomainPatchResourcePropertiesDomainNotRenewableReasonsItem` and `DomainPropertiesDomainNotRenewableReasonsItem`
14+
into one class `ResourceNotRenewableReason`.
15+
- `AppServiceEnvironmentPatchResource` was removed.
16+
- `ValidateRequest` was removed.
17+
918
### Bugs Fixed
1019

1120
### Other Changes
1221

22+
#### Dependency Updates
23+
24+
- Updated `api-version` to `2022-03-01`.
25+
1326
## 2.16.0 (2022-06-24)
1427

1528
### Other Changes

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
--add-opens com.azure.resourcemanager.resources/com.azure.resourcemanager.resources.fluentcore.arm=ALL-UNNAMED
5050
--add-opens com.azure.resourcemanager.storage/com.azure.resourcemanager.storage=ALL-UNNAMED
5151
</javaModulesSurefireArgLine>
52+
<revapi.skip>true</revapi.skip>
5253
</properties>
5354

5455
<developers>

sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/AppServiceEnvironmentsClient.java

Lines changed: 349 additions & 5 deletions
Large diffs are not rendered by default.

sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/ResourceProvidersClient.java

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
import com.azure.resourcemanager.appservice.fluent.models.SkuInfosInner;
2222
import com.azure.resourcemanager.appservice.fluent.models.SourceControlInner;
2323
import com.azure.resourcemanager.appservice.fluent.models.UserInner;
24+
import com.azure.resourcemanager.appservice.fluent.models.ValidateRequestInner;
2425
import com.azure.resourcemanager.appservice.fluent.models.ValidateResponseInner;
2526
import com.azure.resourcemanager.appservice.fluent.models.VnetValidationFailureDetailsInner;
2627
import com.azure.resourcemanager.appservice.models.CsmMoveResourceEnvelope;
2728
import com.azure.resourcemanager.appservice.models.ResourceNameAvailabilityRequest;
2829
import com.azure.resourcemanager.appservice.models.SkuName;
29-
import com.azure.resourcemanager.appservice.models.ValidateRequest;
3030
import com.azure.resourcemanager.appservice.models.VnetParameters;
3131
import reactor.core.publisher.Mono;
3232

@@ -387,6 +387,19 @@ Mono<Response<ResourceNameAvailabilityInner>> checkNameAvailabilityWithResponseA
387387
Response<ResourceNameAvailabilityInner> checkNameAvailabilityWithResponse(
388388
ResourceNameAvailabilityRequest request, Context context);
389389

390+
/**
391+
* Get custom hostnames under this subscription.
392+
*
393+
* @param hostname Specific hostname.
394+
* @throws IllegalArgumentException thrown if parameters fail the validation.
395+
* @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is
396+
* rejected by server.
397+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
398+
* @return custom hostnames under this subscription as paginated response with {@link PagedFlux}.
399+
*/
400+
@ServiceMethod(returns = ReturnType.COLLECTION)
401+
PagedFlux<CustomHostnameSitesInner> listCustomHostnameSitesAsync(String hostname);
402+
390403
/**
391404
* Get custom hostnames under this subscription.
392405
*
@@ -412,6 +425,7 @@ Response<ResourceNameAvailabilityInner> checkNameAvailabilityWithResponse(
412425
/**
413426
* Get custom hostnames under this subscription.
414427
*
428+
* @param hostname Specific hostname.
415429
* @param context The context to associate with this operation.
416430
* @throws IllegalArgumentException thrown if parameters fail the validation.
417431
* @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is
@@ -420,7 +434,7 @@ Response<ResourceNameAvailabilityInner> checkNameAvailabilityWithResponse(
420434
* @return custom hostnames under this subscription as paginated response with {@link PagedIterable}.
421435
*/
422436
@ServiceMethod(returns = ReturnType.COLLECTION)
423-
PagedIterable<CustomHostnameSitesInner> listCustomHostnameSites(Context context);
437+
PagedIterable<CustomHostnameSitesInner> listCustomHostnameSites(String hostname, Context context);
424438

425439
/**
426440
* Description for Gets list of available geo regions plus ministamps.
@@ -792,7 +806,7 @@ Response<Void> moveWithResponse(
792806
*/
793807
@ServiceMethod(returns = ReturnType.SINGLE)
794808
Mono<Response<ValidateResponseInner>> validateWithResponseAsync(
795-
String resourceGroupName, ValidateRequest validateRequest);
809+
String resourceGroupName, ValidateRequestInner validateRequest);
796810

797811
/**
798812
* Description for Validate if a resource can be created.
@@ -806,7 +820,7 @@ Mono<Response<ValidateResponseInner>> validateWithResponseAsync(
806820
* @return describes the result of resource validation on successful completion of {@link Mono}.
807821
*/
808822
@ServiceMethod(returns = ReturnType.SINGLE)
809-
Mono<ValidateResponseInner> validateAsync(String resourceGroupName, ValidateRequest validateRequest);
823+
Mono<ValidateResponseInner> validateAsync(String resourceGroupName, ValidateRequestInner validateRequest);
810824

811825
/**
812826
* Description for Validate if a resource can be created.
@@ -820,7 +834,7 @@ Mono<Response<ValidateResponseInner>> validateWithResponseAsync(
820834
* @return describes the result of resource validation.
821835
*/
822836
@ServiceMethod(returns = ReturnType.SINGLE)
823-
ValidateResponseInner validate(String resourceGroupName, ValidateRequest validateRequest);
837+
ValidateResponseInner validate(String resourceGroupName, ValidateRequestInner validateRequest);
824838

825839
/**
826840
* Description for Validate if a resource can be created.
@@ -836,7 +850,7 @@ Mono<Response<ValidateResponseInner>> validateWithResponseAsync(
836850
*/
837851
@ServiceMethod(returns = ReturnType.SINGLE)
838852
Response<ValidateResponseInner> validateWithResponse(
839-
String resourceGroupName, ValidateRequest validateRequest, Context context);
853+
String resourceGroupName, ValidateRequestInner validateRequest, Context context);
840854

841855
/**
842856
* Description for Validate whether a resource can be moved.

0 commit comments

Comments
 (0)