From 6db7be63fdeea5710991148870c517dbf7f03114 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Fri, 21 May 2021 10:04:48 +0800 Subject: [PATCH 1/2] update appservice --- sdk/resourcemanager/api-specs.json | 2 +- .../appservice/fluent/WebAppsClient.java | 105 +++++-- .../fluent/WebSiteManagementClient.java | 45 +-- .../fluent/models/AppServicePlanInner.java | 30 ++ .../fluent/models/CertificateInner.java | 52 ++-- .../models/CsmOperationDescriptionInner.java | 26 ++ .../fluent/models/SiteAuthSettingsInner.java | 66 ++--- .../models/SiteAuthSettingsV2Inner.java | 48 ++-- .../fluent/models/SiteConfigInner.java | 150 +++++++--- .../models/SiteConfigResourceInner.java | 150 +++++++--- .../appservice/fluent/models/SiteInner.java | 115 ++++++-- .../fluent/models/SitePatchResourceInner.java | 85 ++++-- .../models/StaticSiteArmResourceInner.java | 168 +++++------ .../AppServiceEnvironmentsClientImpl.java | 6 +- .../AppServicePlansClientImpl.java | 18 +- .../CertificatesClientImpl.java | 6 +- .../RecommendationsClientImpl.java | 30 +- .../implementation/WebAppsClientImpl.java | 268 +++++++++++++++--- .../WebSiteManagementClientImpl.java | 96 ++++--- .../appservice/models/AppRegistration.java | 14 +- .../models/AppServicePlanPatchResource.java | 29 ++ .../appservice/models/Apple.java | 23 +- .../appservice/models/AppleRegistration.java | 14 +- .../appservice/models/AuthPlatform.java | 34 ++- .../appservice/models/AutoHealTriggers.java | 58 ++-- .../models/AzureActiveDirectory.java | 45 +-- .../models/AzureActiveDirectoryLogin.java | 12 +- .../AzureActiveDirectoryRegistration.java | 57 +++- .../AzureActiveDirectoryValidation.java | 20 +- .../appservice/models/AzureStaticWebApps.java | 17 +- .../AzureStaticWebAppsRegistration.java | 8 +- .../models/BlobStorageTokenStore.java | 11 +- .../models/CertificatePatchResource.java | 52 ++-- .../appservice/models/ClientRegistration.java | 14 +- .../appservice/models/CookieExpiration.java | 15 +- .../models/CustomOpenIdConnectProvider.java | 27 +- .../appservice/models/Facebook.java | 30 +- .../models/FileSystemTokenStore.java | 8 +- .../appservice/models/ForwardProxy.java | 20 +- .../appservice/models/GitHub.java | 24 +- .../appservice/models/GlobalValidation.java | 46 ++- .../appservice/models/Google.java | 31 +- .../appservice/models/HttpSettings.java | 26 +- .../appservice/models/HttpSettingsRoutes.java | 9 +- .../appservice/models/IdentityProviders.java | 161 ++++++----- .../appservice/models/JwtClaimChecks.java | 14 +- .../models/LegacyMicrosoftAccount.java | 35 ++- .../appservice/models/Login.java | 52 ++-- .../appservice/models/LoginRoutes.java | 8 +- .../appservice/models/LoginScopes.java | 8 +- .../appservice/models/Nonce.java | 17 +- .../models/OpenIdConnectClientCredential.java | 17 +- .../models/OpenIdConnectConfig.java | 35 +-- .../appservice/models/OpenIdConnectLogin.java | 14 +- .../models/OpenIdConnectRegistration.java | 23 +- .../appservice/models/StackMajorVersion.java | 136 ++++----- .../models/StaticSitePatchResource.java | 168 +++++------ .../models/StatusCodesBasedTrigger.java | 52 ++-- .../appservice/models/TokenStore.java | 40 ++- .../appservice/models/Twitter.java | 18 +- .../models/TwitterRegistration.java | 24 +- 61 files changed, 1888 insertions(+), 1044 deletions(-) diff --git a/sdk/resourcemanager/api-specs.json b/sdk/resourcemanager/api-specs.json index d6c83f848c18..5b0354e1b4b2 100644 --- a/sdk/resourcemanager/api-specs.json +++ b/sdk/resourcemanager/api-specs.json @@ -21,7 +21,7 @@ "dir": "azure-resourcemanager-appservice", "source": "specification/web/resource-manager/readme.md", "package": "com.azure.resourcemanager.appservice", - "args": "--payload-flattening-threshold=1 --tag=package-2020-12 --add-inner=AppServiceCertificate --name-for-ungrouped-operations=ResourceProvider", + "args": "--payload-flattening-threshold=1 --tag=package-2021-01 --add-inner=AppServiceCertificate --name-for-ungrouped-operations=ResourceProvider", "note": "Add status code '200' to 'syncFunctionTriggers'" }, "authorization": { diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/WebAppsClient.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/WebAppsClient.java index ceb673893281..62343b7aeff1 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/WebAppsClient.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/WebAppsClient.java @@ -1697,7 +1697,7 @@ Response updateAuthSettingsWithResponse( * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is * rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono> updateAuthSettingsV2WithResponseAsync( @@ -1713,7 +1713,7 @@ Mono> updateAuthSettingsV2WithResponseAsync( * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is * rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono updateAuthSettingsV2Async( @@ -1729,7 +1729,7 @@ Mono updateAuthSettingsV2Async( * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is * rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) SiteAuthSettingsV2Inner updateAuthSettingsV2( @@ -1746,7 +1746,7 @@ SiteAuthSettingsV2Inner updateAuthSettingsV2( * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is * rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) Response updateAuthSettingsV2WithResponse( @@ -1761,7 +1761,7 @@ Response updateAuthSettingsV2WithResponse( * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is * rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono> getAuthSettingsV2WithResponseAsync(String resourceGroupName, String name); @@ -1775,7 +1775,7 @@ Response updateAuthSettingsV2WithResponse( * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is * rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono getAuthSettingsV2Async(String resourceGroupName, String name); @@ -1789,7 +1789,7 @@ Response updateAuthSettingsV2WithResponse( * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is * rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) SiteAuthSettingsV2Inner getAuthSettingsV2(String resourceGroupName, String name); @@ -1804,7 +1804,7 @@ Response updateAuthSettingsV2WithResponse( * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is * rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getAuthSettingsV2WithResponse( @@ -7961,6 +7961,79 @@ Mono> getSwiftVirtualNetworkConnectionWithRes Response getSwiftVirtualNetworkConnectionWithResponse( String resourceGroupName, String name, Context context); + /** + * Description for Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true + * when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not in + * use by another App Service Plan other than the one this App is in. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return swift Virtual Network Contract. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> createOrUpdateSwiftVirtualNetworkConnectionWithCheckWithResponseAsync( + String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope); + + /** + * Description for Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true + * when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not in + * use by another App Service Plan other than the one this App is in. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return swift Virtual Network Contract. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateSwiftVirtualNetworkConnectionWithCheckAsync( + String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope); + + /** + * Description for Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true + * when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not in + * use by another App Service Plan other than the one this App is in. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return swift Virtual Network Contract. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SwiftVirtualNetworkInner createOrUpdateSwiftVirtualNetworkConnectionWithCheck( + String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope); + + /** + * Description for Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true + * when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not in + * use by another App Service Plan other than the one this App is in. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return swift Virtual Network Contract. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response createOrUpdateSwiftVirtualNetworkConnectionWithCheckWithResponse( + String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope, Context context); + /** * Description for Deletes a Swift Virtual Network connection from an app (or deployment slot). * @@ -12928,7 +13001,7 @@ Response getAuthSettingsSlotWithResponse( * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is * rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono> updateAuthSettingsV2SlotWithResponseAsync( @@ -12945,7 +13018,7 @@ Mono> updateAuthSettingsV2SlotWithResponseAsyn * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is * rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono updateAuthSettingsV2SlotAsync( @@ -12962,7 +13035,7 @@ Mono updateAuthSettingsV2SlotAsync( * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is * rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) SiteAuthSettingsV2Inner updateAuthSettingsV2Slot( @@ -12980,7 +13053,7 @@ SiteAuthSettingsV2Inner updateAuthSettingsV2Slot( * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is * rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) Response updateAuthSettingsV2SlotWithResponse( @@ -13001,7 +13074,7 @@ Response updateAuthSettingsV2SlotWithResponse( * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is * rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono> getAuthSettingsV2SlotWithResponseAsync( @@ -13018,7 +13091,7 @@ Mono> getAuthSettingsV2SlotWithResponseAsync( * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is * rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono getAuthSettingsV2SlotAsync(String resourceGroupName, String name, String slot); @@ -13034,7 +13107,7 @@ Mono> getAuthSettingsV2SlotWithResponseAsync( * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is * rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) SiteAuthSettingsV2Inner getAuthSettingsV2Slot(String resourceGroupName, String name, String slot); @@ -13051,7 +13124,7 @@ Mono> getAuthSettingsV2SlotWithResponseAsync( * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is * rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getAuthSettingsV2SlotWithResponse( diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/WebSiteManagementClient.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/WebSiteManagementClient.java index 08f870b27e60..1252fcf3ed6f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/WebSiteManagementClient.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/WebSiteManagementClient.java @@ -86,6 +86,20 @@ public interface WebSiteManagementClient { */ DomainRegistrationProvidersClient getDomainRegistrationProviders(); + /** + * Gets the AppServiceEnvironmentsClient object to access its operations. + * + * @return the AppServiceEnvironmentsClient object. + */ + AppServiceEnvironmentsClient getAppServiceEnvironments(); + + /** + * Gets the AppServicePlansClient object to access its operations. + * + * @return the AppServicePlansClient object. + */ + AppServicePlansClient getAppServicePlans(); + /** * Gets the CertificatesClient object to access its operations. * @@ -129,18 +143,18 @@ public interface WebSiteManagementClient { RecommendationsClient getRecommendations(); /** - * Gets the ResourceProvidersClient object to access its operations. + * Gets the ResourceHealthMetadatasClient object to access its operations. * - * @return the ResourceProvidersClient object. + * @return the ResourceHealthMetadatasClient object. */ - ResourceProvidersClient getResourceProviders(); + ResourceHealthMetadatasClient getResourceHealthMetadatas(); /** - * Gets the WebAppsClient object to access its operations. + * Gets the ResourceProvidersClient object to access its operations. * - * @return the WebAppsClient object. + * @return the ResourceProvidersClient object. */ - WebAppsClient getWebApps(); + ResourceProvidersClient getResourceProviders(); /** * Gets the StaticSitesClient object to access its operations. @@ -150,23 +164,16 @@ public interface WebSiteManagementClient { StaticSitesClient getStaticSites(); /** - * Gets the AppServiceEnvironmentsClient object to access its operations. - * - * @return the AppServiceEnvironmentsClient object. - */ - AppServiceEnvironmentsClient getAppServiceEnvironments(); - - /** - * Gets the AppServicePlansClient object to access its operations. + * Gets the WebAppsClient object to access its operations. * - * @return the AppServicePlansClient object. + * @return the WebAppsClient object. */ - AppServicePlansClient getAppServicePlans(); + WebAppsClient getWebApps(); /** - * Gets the ResourceHealthMetadatasClient object to access its operations. + * Gets the KubeEnvironmentsClient object to access its operations. * - * @return the ResourceHealthMetadatasClient object. + * @return the KubeEnvironmentsClient object. */ - ResourceHealthMetadatasClient getResourceHealthMetadatas(); + KubeEnvironmentsClient getKubeEnvironments(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServicePlanInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServicePlanInner.java index 1255275c3915..1333b6516e2a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServicePlanInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServicePlanInner.java @@ -8,6 +8,7 @@ import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.appservice.models.ExtendedLocation; import com.azure.resourcemanager.appservice.models.HostingEnvironmentProfile; import com.azure.resourcemanager.appservice.models.KubeEnvironmentProfile; import com.azure.resourcemanager.appservice.models.ProvisioningState; @@ -30,6 +31,12 @@ public class AppServicePlanInner extends Resource { @JsonProperty(value = "sku") private SkuDescription sku; + /* + * Extended Location. + */ + @JsonProperty(value = "extendedLocation") + private ExtendedLocation extendedLocation; + /* * Target worker tier assigned to the App Service plan. */ @@ -187,6 +194,26 @@ public AppServicePlanInner withSku(SkuDescription sku) { return this; } + /** + * Get the extendedLocation property: Extended Location. + * + * @return the extendedLocation value. + */ + public ExtendedLocation extendedLocation() { + return this.extendedLocation; + } + + /** + * Set the extendedLocation property: Extended Location. + * + * @param extendedLocation the extendedLocation value to set. + * @return the AppServicePlanInner object itself. + */ + public AppServicePlanInner withExtendedLocation(ExtendedLocation extendedLocation) { + this.extendedLocation = extendedLocation; + return this; + } + /** * Get the workerTierName property: Target worker tier assigned to the App Service plan. * @@ -572,6 +599,9 @@ public void validate() { if (sku() != null) { sku().validate(); } + if (extendedLocation() != null) { + extendedLocation().validate(); + } if (hostingEnvironmentProfile() != null) { hostingEnvironmentProfile().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CertificateInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CertificateInner.java index 97e3097bb915..f2825bad8e1d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CertificateInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CertificateInner.java @@ -23,6 +23,12 @@ public class CertificateInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(CertificateInner.class); + /* + * Certificate password. + */ + @JsonProperty(value = "properties.password") + private String password; + /* * Friendly name of the certificate. */ @@ -77,12 +83,6 @@ public class CertificateInner extends Resource { @JsonProperty(value = "properties.expirationDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime expirationDate; - /* - * Certificate password. - */ - @JsonProperty(value = "properties.password") - private String password; - /* * Certificate thumbprint. */ @@ -158,6 +158,26 @@ public class CertificateInner extends Resource { @JsonProperty(value = "kind") private String kind; + /** + * Get the password property: Certificate password. + * + * @return the password value. + */ + public String password() { + return this.password; + } + + /** + * Set the password property: Certificate password. + * + * @param password the password value to set. + * @return the CertificateInner object itself. + */ + public CertificateInner withPassword(String password) { + this.password = password; + return this; + } + /** * Get the friendlyName property: Friendly name of the certificate. * @@ -261,26 +281,6 @@ public OffsetDateTime expirationDate() { return this.expirationDate; } - /** - * Get the password property: Certificate password. - * - * @return the password value. - */ - public String password() { - return this.password; - } - - /** - * Set the password property: Certificate password. - * - * @param password the password value to set. - * @return the CertificateInner object itself. - */ - public CertificateInner withPassword(String password) { - this.password = password; - return this; - } - /** * Get the thumbprint property: Certificate thumbprint. * diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CsmOperationDescriptionInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CsmOperationDescriptionInner.java index e3cab8d6f2e9..9fcfcce14b1e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CsmOperationDescriptionInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CsmOperationDescriptionInner.java @@ -22,6 +22,12 @@ public final class CsmOperationDescriptionInner { @JsonProperty(value = "name") private String name; + /* + * The isDataAction property. + */ + @JsonProperty(value = "isDataAction") + private Boolean isDataAction; + /* * Meta data about operation used for display in portal. */ @@ -60,6 +66,26 @@ public CsmOperationDescriptionInner withName(String name) { return this; } + /** + * Get the isDataAction property: The isDataAction property. + * + * @return the isDataAction value. + */ + public Boolean isDataAction() { + return this.isDataAction; + } + + /** + * Set the isDataAction property: The isDataAction property. + * + * @param isDataAction the isDataAction value to set. + * @return the CsmOperationDescriptionInner object itself. + */ + public CsmOperationDescriptionInner withIsDataAction(Boolean isDataAction) { + this.isDataAction = isDataAction; + return this; + } + /** * Get the display property: Meta data about operation used for display in portal. * diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteAuthSettingsInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteAuthSettingsInner.java index 0b018141dd19..e1b18d339169 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteAuthSettingsInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteAuthSettingsInner.java @@ -36,15 +36,6 @@ public class SiteAuthSettingsInner extends ProxyOnlyResource { @JsonProperty(value = "properties.runtimeVersion") private String runtimeVersion; - /* - * The ConfigVersion of the Authentication / Authorization feature in use - * for the current app. - * The setting in this value can control the behavior of the control plane - * for Authentication / Authorization. - */ - @JsonProperty(value = "properties.configVersion") - private String configVersion; - /* * The action to take when an unauthenticated client attempts to access the * app. @@ -347,6 +338,15 @@ public class SiteAuthSettingsInner extends ProxyOnlyResource { @JsonProperty(value = "properties.authFilePath") private String authFilePath; + /* + * The ConfigVersion of the Authentication / Authorization feature in use + * for the current app. + * The setting in this value can control the behavior of the control plane + * for Authentication / Authorization. + */ + @JsonProperty(value = "properties.configVersion") + private String configVersion; + /** * Get the enabled property: <code>true</code> if the Authentication / Authorization feature is enabled * for the current app; otherwise, <code>false</code>. @@ -393,30 +393,6 @@ public SiteAuthSettingsInner withRuntimeVersion(String runtimeVersion) { return this; } - /** - * Get the configVersion property: The ConfigVersion of the Authentication / Authorization feature in use for the - * current app. The setting in this value can control the behavior of the control plane for Authentication / - * Authorization. - * - * @return the configVersion value. - */ - public String configVersion() { - return this.configVersion; - } - - /** - * Set the configVersion property: The ConfigVersion of the Authentication / Authorization feature in use for the - * current app. The setting in this value can control the behavior of the control plane for Authentication / - * Authorization. - * - * @param configVersion the configVersion value to set. - * @return the SiteAuthSettingsInner object itself. - */ - public SiteAuthSettingsInner withConfigVersion(String configVersion) { - this.configVersion = configVersion; - return this; - } - /** * Get the unauthenticatedClientAction property: The action to take when an unauthenticated client attempts to * access the app. @@ -1231,6 +1207,30 @@ public SiteAuthSettingsInner withAuthFilePath(String authFilePath) { return this; } + /** + * Get the configVersion property: The ConfigVersion of the Authentication / Authorization feature in use for the + * current app. The setting in this value can control the behavior of the control plane for Authentication / + * Authorization. + * + * @return the configVersion value. + */ + public String configVersion() { + return this.configVersion; + } + + /** + * Set the configVersion property: The ConfigVersion of the Authentication / Authorization feature in use for the + * current app. The setting in this value can control the behavior of the control plane for Authentication / + * Authorization. + * + * @param configVersion the configVersion value to set. + * @return the SiteAuthSettingsInner object itself. + */ + public SiteAuthSettingsInner withConfigVersion(String configVersion) { + this.configVersion = configVersion; + return this; + } + /** {@inheritDoc} */ @Override public SiteAuthSettingsInner withKind(String kind) { diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteAuthSettingsV2Inner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteAuthSettingsV2Inner.java index ae527502d4b8..151cb72f9542 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteAuthSettingsV2Inner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteAuthSettingsV2Inner.java @@ -16,44 +16,51 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The SiteAuthSettingsV2 model. */ +/** Configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @JsonFlatten @Fluent public class SiteAuthSettingsV2Inner extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(SiteAuthSettingsV2Inner.class); /* - * The platform property. + * The configuration settings of the platform of App Service + * Authentication/Authorization. */ @JsonProperty(value = "properties.platform") private AuthPlatform platform; /* - * The globalValidation property. + * The configuration settings that determines the validation flow of users + * using App Service Authentication/Authorization. */ @JsonProperty(value = "properties.globalValidation") private GlobalValidation globalValidation; /* - * The identityProviders property. + * The configuration settings of each of the identity providers used to + * configure App Service Authentication/Authorization. */ @JsonProperty(value = "properties.identityProviders") private IdentityProviders identityProviders; /* - * The login property. + * The configuration settings of the login flow of users using App Service + * Authentication/Authorization. */ @JsonProperty(value = "properties.login") private Login login; /* - * The httpSettings property. + * The configuration settings of the HTTP requests for authentication and + * authorization requests made against App Service + * Authentication/Authorization. */ @JsonProperty(value = "properties.httpSettings") private HttpSettings httpSettings; /** - * Get the platform property: The platform property. + * Get the platform property: The configuration settings of the platform of App Service + * Authentication/Authorization. * * @return the platform value. */ @@ -62,7 +69,8 @@ public AuthPlatform platform() { } /** - * Set the platform property: The platform property. + * Set the platform property: The configuration settings of the platform of App Service + * Authentication/Authorization. * * @param platform the platform value to set. * @return the SiteAuthSettingsV2Inner object itself. @@ -73,7 +81,8 @@ public SiteAuthSettingsV2Inner withPlatform(AuthPlatform platform) { } /** - * Get the globalValidation property: The globalValidation property. + * Get the globalValidation property: The configuration settings that determines the validation flow of users using + * App Service Authentication/Authorization. * * @return the globalValidation value. */ @@ -82,7 +91,8 @@ public GlobalValidation globalValidation() { } /** - * Set the globalValidation property: The globalValidation property. + * Set the globalValidation property: The configuration settings that determines the validation flow of users using + * App Service Authentication/Authorization. * * @param globalValidation the globalValidation value to set. * @return the SiteAuthSettingsV2Inner object itself. @@ -93,7 +103,8 @@ public SiteAuthSettingsV2Inner withGlobalValidation(GlobalValidation globalValid } /** - * Get the identityProviders property: The identityProviders property. + * Get the identityProviders property: The configuration settings of each of the identity providers used to + * configure App Service Authentication/Authorization. * * @return the identityProviders value. */ @@ -102,7 +113,8 @@ public IdentityProviders identityProviders() { } /** - * Set the identityProviders property: The identityProviders property. + * Set the identityProviders property: The configuration settings of each of the identity providers used to + * configure App Service Authentication/Authorization. * * @param identityProviders the identityProviders value to set. * @return the SiteAuthSettingsV2Inner object itself. @@ -113,7 +125,8 @@ public SiteAuthSettingsV2Inner withIdentityProviders(IdentityProviders identityP } /** - * Get the login property: The login property. + * Get the login property: The configuration settings of the login flow of users using App Service + * Authentication/Authorization. * * @return the login value. */ @@ -122,7 +135,8 @@ public Login login() { } /** - * Set the login property: The login property. + * Set the login property: The configuration settings of the login flow of users using App Service + * Authentication/Authorization. * * @param login the login value to set. * @return the SiteAuthSettingsV2Inner object itself. @@ -133,7 +147,8 @@ public SiteAuthSettingsV2Inner withLogin(Login login) { } /** - * Get the httpSettings property: The httpSettings property. + * Get the httpSettings property: The configuration settings of the HTTP requests for authentication and + * authorization requests made against App Service Authentication/Authorization. * * @return the httpSettings value. */ @@ -142,7 +157,8 @@ public HttpSettings httpSettings() { } /** - * Set the httpSettings property: The httpSettings property. + * Set the httpSettings property: The configuration settings of the HTTP requests for authentication and + * authorization requests made against App Service Authentication/Authorization. * * @param httpSettings the httpSettings value to set. * @return the SiteAuthSettingsV2Inner object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteConfigInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteConfigInner.java index 86028915f0a7..f0f6cfa6cf5c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteConfigInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteConfigInner.java @@ -122,6 +122,18 @@ public final class SiteConfigInner { @JsonProperty(value = "httpLoggingEnabled") private Boolean httpLoggingEnabled; + /* + * Flag to use Managed Identity Creds for ACR pull + */ + @JsonProperty(value = "acrUseManagedIdentityCreds") + private Boolean acrUseManagedIdentityCreds; + + /* + * If using user managed identity, the user managed identity ClientId + */ + @JsonProperty(value = "acrUserManagedIdentityID") + private String acrUserManagedIdentityId; + /* * HTTP logs directory size limit. */ @@ -147,12 +159,6 @@ public final class SiteConfigInner { @JsonProperty(value = "appSettings") private List appSettings; - /* - * List of Azure Storage Accounts. - */ - @JsonProperty(value = "azureStorageAccounts") - private Map azureStorageAccounts; - /* * Connection strings. */ @@ -446,6 +452,18 @@ public final class SiteConfigInner { @JsonProperty(value = "minimumElasticInstanceCount") private Integer minimumElasticInstanceCount; + /* + * List of Azure Storage Accounts. + */ + @JsonProperty(value = "azureStorageAccounts") + private Map azureStorageAccounts; + + /* + * Property to allow or block all public traffic. + */ + @JsonProperty(value = "publicNetworkAccess") + private String publicNetworkAccess; + /** * Get the numberOfWorkers property: Number of workers. * @@ -732,6 +750,46 @@ public SiteConfigInner withHttpLoggingEnabled(Boolean httpLoggingEnabled) { return this; } + /** + * Get the acrUseManagedIdentityCreds property: Flag to use Managed Identity Creds for ACR pull. + * + * @return the acrUseManagedIdentityCreds value. + */ + public Boolean acrUseManagedIdentityCreds() { + return this.acrUseManagedIdentityCreds; + } + + /** + * Set the acrUseManagedIdentityCreds property: Flag to use Managed Identity Creds for ACR pull. + * + * @param acrUseManagedIdentityCreds the acrUseManagedIdentityCreds value to set. + * @return the SiteConfigInner object itself. + */ + public SiteConfigInner withAcrUseManagedIdentityCreds(Boolean acrUseManagedIdentityCreds) { + this.acrUseManagedIdentityCreds = acrUseManagedIdentityCreds; + return this; + } + + /** + * Get the acrUserManagedIdentityId property: If using user managed identity, the user managed identity ClientId. + * + * @return the acrUserManagedIdentityId value. + */ + public String acrUserManagedIdentityId() { + return this.acrUserManagedIdentityId; + } + + /** + * Set the acrUserManagedIdentityId property: If using user managed identity, the user managed identity ClientId. + * + * @param acrUserManagedIdentityId the acrUserManagedIdentityId value to set. + * @return the SiteConfigInner object itself. + */ + public SiteConfigInner withAcrUserManagedIdentityId(String acrUserManagedIdentityId) { + this.acrUserManagedIdentityId = acrUserManagedIdentityId; + return this; + } + /** * Get the logsDirectorySizeLimit property: HTTP logs directory size limit. * @@ -814,26 +872,6 @@ public SiteConfigInner withAppSettings(List appSettings) { return this; } - /** - * Get the azureStorageAccounts property: List of Azure Storage Accounts. - * - * @return the azureStorageAccounts value. - */ - public Map azureStorageAccounts() { - return this.azureStorageAccounts; - } - - /** - * Set the azureStorageAccounts property: List of Azure Storage Accounts. - * - * @param azureStorageAccounts the azureStorageAccounts value to set. - * @return the SiteConfigInner object itself. - */ - public SiteConfigInner withAzureStorageAccounts(Map azureStorageAccounts) { - this.azureStorageAccounts = azureStorageAccounts; - return this; - } - /** * Get the connectionStrings property: Connection strings. * @@ -1757,6 +1795,46 @@ public SiteConfigInner withMinimumElasticInstanceCount(Integer minimumElasticIns return this; } + /** + * Get the azureStorageAccounts property: List of Azure Storage Accounts. + * + * @return the azureStorageAccounts value. + */ + public Map azureStorageAccounts() { + return this.azureStorageAccounts; + } + + /** + * Set the azureStorageAccounts property: List of Azure Storage Accounts. + * + * @param azureStorageAccounts the azureStorageAccounts value to set. + * @return the SiteConfigInner object itself. + */ + public SiteConfigInner withAzureStorageAccounts(Map azureStorageAccounts) { + this.azureStorageAccounts = azureStorageAccounts; + return this; + } + + /** + * Get the publicNetworkAccess property: Property to allow or block all public traffic. + * + * @return the publicNetworkAccess value. + */ + public String publicNetworkAccess() { + return this.publicNetworkAccess; + } + + /** + * Set the publicNetworkAccess property: Property to allow or block all public traffic. + * + * @param publicNetworkAccess the publicNetworkAccess value to set. + * @return the SiteConfigInner object itself. + */ + public SiteConfigInner withPublicNetworkAccess(String publicNetworkAccess) { + this.publicNetworkAccess = publicNetworkAccess; + return this; + } + /** * Validates the instance. * @@ -1766,16 +1844,6 @@ public void validate() { if (appSettings() != null) { appSettings().forEach(e -> e.validate()); } - if (azureStorageAccounts() != null) { - azureStorageAccounts() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } if (connectionStrings() != null) { connectionStrings().forEach(e -> e.validate()); } @@ -1815,5 +1883,15 @@ public void validate() { if (scmIpSecurityRestrictions() != null) { scmIpSecurityRestrictions().forEach(e -> e.validate()); } + if (azureStorageAccounts() != null) { + azureStorageAccounts() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } } } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteConfigResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteConfigResourceInner.java index fda84de79c3d..370d0232d293 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteConfigResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteConfigResourceInner.java @@ -125,6 +125,18 @@ public class SiteConfigResourceInner extends ProxyOnlyResource { @JsonProperty(value = "properties.httpLoggingEnabled") private Boolean httpLoggingEnabled; + /* + * Flag to use Managed Identity Creds for ACR pull + */ + @JsonProperty(value = "properties.acrUseManagedIdentityCreds") + private Boolean acrUseManagedIdentityCreds; + + /* + * If using user managed identity, the user managed identity ClientId + */ + @JsonProperty(value = "properties.acrUserManagedIdentityID") + private String acrUserManagedIdentityId; + /* * HTTP logs directory size limit. */ @@ -150,12 +162,6 @@ public class SiteConfigResourceInner extends ProxyOnlyResource { @JsonProperty(value = "properties.appSettings") private List appSettings; - /* - * List of Azure Storage Accounts. - */ - @JsonProperty(value = "properties.azureStorageAccounts") - private Map azureStorageAccounts; - /* * Connection strings. */ @@ -449,6 +455,18 @@ public class SiteConfigResourceInner extends ProxyOnlyResource { @JsonProperty(value = "properties.minimumElasticInstanceCount") private Integer minimumElasticInstanceCount; + /* + * List of Azure Storage Accounts. + */ + @JsonProperty(value = "properties.azureStorageAccounts") + private Map azureStorageAccounts; + + /* + * Property to allow or block all public traffic. + */ + @JsonProperty(value = "properties.publicNetworkAccess") + private String publicNetworkAccess; + /** * Get the numberOfWorkers property: Number of workers. * @@ -735,6 +753,46 @@ public SiteConfigResourceInner withHttpLoggingEnabled(Boolean httpLoggingEnabled return this; } + /** + * Get the acrUseManagedIdentityCreds property: Flag to use Managed Identity Creds for ACR pull. + * + * @return the acrUseManagedIdentityCreds value. + */ + public Boolean acrUseManagedIdentityCreds() { + return this.acrUseManagedIdentityCreds; + } + + /** + * Set the acrUseManagedIdentityCreds property: Flag to use Managed Identity Creds for ACR pull. + * + * @param acrUseManagedIdentityCreds the acrUseManagedIdentityCreds value to set. + * @return the SiteConfigResourceInner object itself. + */ + public SiteConfigResourceInner withAcrUseManagedIdentityCreds(Boolean acrUseManagedIdentityCreds) { + this.acrUseManagedIdentityCreds = acrUseManagedIdentityCreds; + return this; + } + + /** + * Get the acrUserManagedIdentityId property: If using user managed identity, the user managed identity ClientId. + * + * @return the acrUserManagedIdentityId value. + */ + public String acrUserManagedIdentityId() { + return this.acrUserManagedIdentityId; + } + + /** + * Set the acrUserManagedIdentityId property: If using user managed identity, the user managed identity ClientId. + * + * @param acrUserManagedIdentityId the acrUserManagedIdentityId value to set. + * @return the SiteConfigResourceInner object itself. + */ + public SiteConfigResourceInner withAcrUserManagedIdentityId(String acrUserManagedIdentityId) { + this.acrUserManagedIdentityId = acrUserManagedIdentityId; + return this; + } + /** * Get the logsDirectorySizeLimit property: HTTP logs directory size limit. * @@ -817,26 +875,6 @@ public SiteConfigResourceInner withAppSettings(List appSettings) return this; } - /** - * Get the azureStorageAccounts property: List of Azure Storage Accounts. - * - * @return the azureStorageAccounts value. - */ - public Map azureStorageAccounts() { - return this.azureStorageAccounts; - } - - /** - * Set the azureStorageAccounts property: List of Azure Storage Accounts. - * - * @param azureStorageAccounts the azureStorageAccounts value to set. - * @return the SiteConfigResourceInner object itself. - */ - public SiteConfigResourceInner withAzureStorageAccounts(Map azureStorageAccounts) { - this.azureStorageAccounts = azureStorageAccounts; - return this; - } - /** * Get the connectionStrings property: Connection strings. * @@ -1762,6 +1800,46 @@ public SiteConfigResourceInner withMinimumElasticInstanceCount(Integer minimumEl return this; } + /** + * Get the azureStorageAccounts property: List of Azure Storage Accounts. + * + * @return the azureStorageAccounts value. + */ + public Map azureStorageAccounts() { + return this.azureStorageAccounts; + } + + /** + * Set the azureStorageAccounts property: List of Azure Storage Accounts. + * + * @param azureStorageAccounts the azureStorageAccounts value to set. + * @return the SiteConfigResourceInner object itself. + */ + public SiteConfigResourceInner withAzureStorageAccounts(Map azureStorageAccounts) { + this.azureStorageAccounts = azureStorageAccounts; + return this; + } + + /** + * Get the publicNetworkAccess property: Property to allow or block all public traffic. + * + * @return the publicNetworkAccess value. + */ + public String publicNetworkAccess() { + return this.publicNetworkAccess; + } + + /** + * Set the publicNetworkAccess property: Property to allow or block all public traffic. + * + * @param publicNetworkAccess the publicNetworkAccess value to set. + * @return the SiteConfigResourceInner object itself. + */ + public SiteConfigResourceInner withPublicNetworkAccess(String publicNetworkAccess) { + this.publicNetworkAccess = publicNetworkAccess; + return this; + } + /** {@inheritDoc} */ @Override public SiteConfigResourceInner withKind(String kind) { @@ -1780,16 +1858,6 @@ public void validate() { if (appSettings() != null) { appSettings().forEach(e -> e.validate()); } - if (azureStorageAccounts() != null) { - azureStorageAccounts() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } if (connectionStrings() != null) { connectionStrings().forEach(e -> e.validate()); } @@ -1829,5 +1897,15 @@ public void validate() { if (scmIpSecurityRestrictions() != null) { scmIpSecurityRestrictions().forEach(e -> e.validate()); } + if (azureStorageAccounts() != null) { + azureStorageAccounts() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } } } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteInner.java index 4b27f82d5f99..9516bd84ac5b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteInner.java @@ -10,6 +10,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.appservice.models.ClientCertMode; import com.azure.resourcemanager.appservice.models.CloningInfo; +import com.azure.resourcemanager.appservice.models.ExtendedLocation; import com.azure.resourcemanager.appservice.models.HostingEnvironmentProfile; import com.azure.resourcemanager.appservice.models.HostnameSslState; import com.azure.resourcemanager.appservice.models.ManagedServiceIdentity; @@ -36,6 +37,12 @@ public class SiteInner extends Resource { @JsonProperty(value = "identity") private ManagedServiceIdentity identity; + /* + * Extended Location. + */ + @JsonProperty(value = "extendedLocation") + private ExtendedLocation extendedLocation; + /* * Current state of the app. */ @@ -274,12 +281,6 @@ public class SiteInner extends Resource { @JsonProperty(value = "properties.slotSwapStatus", access = JsonProperty.Access.WRITE_ONLY) private SlotSwapStatus slotSwapStatus; - /* - * Identity to use for Key Vault Reference authentication. - */ - @JsonProperty(value = "properties.keyVaultReferenceIdentity") - private String keyVaultReferenceIdentity; - /* * HttpsOnly: configures a web site to accept only https requests. Issues * redirect for @@ -306,6 +307,21 @@ public class SiteInner extends Resource { @JsonProperty(value = "properties.storageAccountRequired") private Boolean storageAccountRequired; + /* + * Identity to use for Key Vault Reference authentication. + */ + @JsonProperty(value = "properties.keyVaultReferenceIdentity") + private String keyVaultReferenceIdentity; + + /* + * Azure Resource Manager ID of the Virtual network and subnet to be joined + * by Regional VNET Integration. + * This must be of the form + * /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} + */ + @JsonProperty(value = "properties.virtualNetworkSubnetId") + private String virtualNetworkSubnetId; + /* * Kind of resource. */ @@ -332,6 +348,26 @@ public SiteInner withIdentity(ManagedServiceIdentity identity) { return this; } + /** + * Get the extendedLocation property: Extended Location. + * + * @return the extendedLocation value. + */ + public ExtendedLocation extendedLocation() { + return this.extendedLocation; + } + + /** + * Set the extendedLocation property: Extended Location. + * + * @param extendedLocation the extendedLocation value to set. + * @return the SiteInner object itself. + */ + public SiteInner withExtendedLocation(ExtendedLocation extendedLocation) { + this.extendedLocation = extendedLocation; + return this; + } + /** * Get the state property: Current state of the app. * @@ -875,26 +911,6 @@ public SlotSwapStatus slotSwapStatus() { return this.slotSwapStatus; } - /** - * Get the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication. - * - * @return the keyVaultReferenceIdentity value. - */ - public String keyVaultReferenceIdentity() { - return this.keyVaultReferenceIdentity; - } - - /** - * Set the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication. - * - * @param keyVaultReferenceIdentity the keyVaultReferenceIdentity value to set. - * @return the SiteInner object itself. - */ - public SiteInner withKeyVaultReferenceIdentity(String keyVaultReferenceIdentity) { - this.keyVaultReferenceIdentity = keyVaultReferenceIdentity; - return this; - } - /** * Get the httpsOnly property: HttpsOnly: configures a web site to accept only https requests. Issues redirect for * http requests. @@ -966,6 +982,50 @@ public SiteInner withStorageAccountRequired(Boolean storageAccountRequired) { return this; } + /** + * Get the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication. + * + * @return the keyVaultReferenceIdentity value. + */ + public String keyVaultReferenceIdentity() { + return this.keyVaultReferenceIdentity; + } + + /** + * Set the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication. + * + * @param keyVaultReferenceIdentity the keyVaultReferenceIdentity value to set. + * @return the SiteInner object itself. + */ + public SiteInner withKeyVaultReferenceIdentity(String keyVaultReferenceIdentity) { + this.keyVaultReferenceIdentity = keyVaultReferenceIdentity; + return this; + } + + /** + * Get the virtualNetworkSubnetId property: Azure Resource Manager ID of the Virtual network and subnet to be joined + * by Regional VNET Integration. This must be of the form + * /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + * + * @return the virtualNetworkSubnetId value. + */ + public String virtualNetworkSubnetId() { + return this.virtualNetworkSubnetId; + } + + /** + * Set the virtualNetworkSubnetId property: Azure Resource Manager ID of the Virtual network and subnet to be joined + * by Regional VNET Integration. This must be of the form + * /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + * + * @param virtualNetworkSubnetId the virtualNetworkSubnetId value to set. + * @return the SiteInner object itself. + */ + public SiteInner withVirtualNetworkSubnetId(String virtualNetworkSubnetId) { + this.virtualNetworkSubnetId = virtualNetworkSubnetId; + return this; + } + /** * Get the kind property: Kind of resource. * @@ -1009,6 +1069,9 @@ public void validate() { if (identity() != null) { identity().validate(); } + if (extendedLocation() != null) { + extendedLocation().validate(); + } if (hostnameSslStates() != null) { hostnameSslStates().forEach(e -> e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SitePatchResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SitePatchResourceInner.java index a2488d87b38d..6ada9172e4e9 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SitePatchResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SitePatchResourceInner.java @@ -273,12 +273,6 @@ public class SitePatchResourceInner extends ProxyOnlyResource { @JsonProperty(value = "properties.slotSwapStatus", access = JsonProperty.Access.WRITE_ONLY) private SlotSwapStatus slotSwapStatus; - /* - * Identity to use for Key Vault Reference authentication. - */ - @JsonProperty(value = "properties.keyVaultReferenceIdentity") - private String keyVaultReferenceIdentity; - /* * HttpsOnly: configures a web site to accept only https requests. Issues * redirect for @@ -305,6 +299,21 @@ public class SitePatchResourceInner extends ProxyOnlyResource { @JsonProperty(value = "properties.storageAccountRequired") private Boolean storageAccountRequired; + /* + * Identity to use for Key Vault Reference authentication. + */ + @JsonProperty(value = "properties.keyVaultReferenceIdentity") + private String keyVaultReferenceIdentity; + + /* + * Azure Resource Manager ID of the Virtual network and subnet to be joined + * by Regional VNET Integration. + * This must be of the form + * /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} + */ + @JsonProperty(value = "properties.virtualNetworkSubnetId") + private String virtualNetworkSubnetId; + /** * Get the identity property: Managed service identity. * @@ -868,26 +877,6 @@ public SlotSwapStatus slotSwapStatus() { return this.slotSwapStatus; } - /** - * Get the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication. - * - * @return the keyVaultReferenceIdentity value. - */ - public String keyVaultReferenceIdentity() { - return this.keyVaultReferenceIdentity; - } - - /** - * Set the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication. - * - * @param keyVaultReferenceIdentity the keyVaultReferenceIdentity value to set. - * @return the SitePatchResourceInner object itself. - */ - public SitePatchResourceInner withKeyVaultReferenceIdentity(String keyVaultReferenceIdentity) { - this.keyVaultReferenceIdentity = keyVaultReferenceIdentity; - return this; - } - /** * Get the httpsOnly property: HttpsOnly: configures a web site to accept only https requests. Issues redirect for * http requests. @@ -959,6 +948,50 @@ public SitePatchResourceInner withStorageAccountRequired(Boolean storageAccountR return this; } + /** + * Get the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication. + * + * @return the keyVaultReferenceIdentity value. + */ + public String keyVaultReferenceIdentity() { + return this.keyVaultReferenceIdentity; + } + + /** + * Set the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication. + * + * @param keyVaultReferenceIdentity the keyVaultReferenceIdentity value to set. + * @return the SitePatchResourceInner object itself. + */ + public SitePatchResourceInner withKeyVaultReferenceIdentity(String keyVaultReferenceIdentity) { + this.keyVaultReferenceIdentity = keyVaultReferenceIdentity; + return this; + } + + /** + * Get the virtualNetworkSubnetId property: Azure Resource Manager ID of the Virtual network and subnet to be joined + * by Regional VNET Integration. This must be of the form + * /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + * + * @return the virtualNetworkSubnetId value. + */ + public String virtualNetworkSubnetId() { + return this.virtualNetworkSubnetId; + } + + /** + * Set the virtualNetworkSubnetId property: Azure Resource Manager ID of the Virtual network and subnet to be joined + * by Regional VNET Integration. This must be of the form + * /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + * + * @param virtualNetworkSubnetId the virtualNetworkSubnetId value to set. + * @return the SitePatchResourceInner object itself. + */ + public SitePatchResourceInner withVirtualNetworkSubnetId(String virtualNetworkSubnetId) { + this.virtualNetworkSubnetId = virtualNetworkSubnetId; + return this; + } + /** {@inheritDoc} */ @Override public SitePatchResourceInner withKind(String kind) { diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteArmResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteArmResourceInner.java index f3bd5c7bfb0b..cad851426ff8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteArmResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteArmResourceInner.java @@ -56,13 +56,6 @@ public class StaticSiteArmResourceInner extends Resource { @JsonProperty(value = "properties.branch") private String branch; - /* - * The provider that submitted the last deployment to the primary - * environment of the static site. - */ - @JsonProperty(value = "properties.provider", access = JsonProperty.Access.WRITE_ONLY) - private String provider; - /* * The custom domains associated with this static site. */ @@ -82,18 +75,32 @@ public class StaticSiteArmResourceInner extends Resource { @JsonProperty(value = "properties.buildProperties") private StaticSiteBuildProperties buildProperties; - /* - * Template options for generating a new repository. - */ - @JsonProperty(value = "properties.templateProperties") - private StaticSiteTemplateOptions templateProperties; - /* * Private endpoint connections */ @JsonProperty(value = "properties.privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY) private List privateEndpointConnections; + /* + * State indicating whether staging environments are allowed or not allowed + * for a static web app. + */ + @JsonProperty(value = "properties.stagingEnvironmentPolicy") + private StagingEnvironmentPolicy stagingEnvironmentPolicy; + + /* + * false if config file is locked for this static web app; + * otherwise, true. + */ + @JsonProperty(value = "properties.allowConfigFileUpdates") + private Boolean allowConfigFileUpdates; + + /* + * Template options for generating a new repository. + */ + @JsonProperty(value = "properties.templateProperties") + private StaticSiteTemplateOptions templateProperties; + /* * The content distribution endpoint for the static site. */ @@ -113,18 +120,11 @@ public class StaticSiteArmResourceInner extends Resource { private List userProvidedFunctionApps; /* - * State indicating whether staging environments are allowed or not allowed - * for a static web app. - */ - @JsonProperty(value = "properties.stagingEnvironmentPolicy") - private StagingEnvironmentPolicy stagingEnvironmentPolicy; - - /* - * false if config file is locked for this static web app; - * otherwise, true. + * The provider that submitted the last deployment to the primary + * environment of the static site. */ - @JsonProperty(value = "properties.allowConfigFileUpdates") - private Boolean allowConfigFileUpdates; + @JsonProperty(value = "properties.provider", access = JsonProperty.Access.WRITE_ONLY) + private String provider; /* * Kind of resource. @@ -221,16 +221,6 @@ public StaticSiteArmResourceInner withBranch(String branch) { return this; } - /** - * Get the provider property: The provider that submitted the last deployment to the primary environment of the - * static site. - * - * @return the provider value. - */ - public String provider() { - return this.provider; - } - /** * Get the customDomains property: The custom domains associated with this static site. * @@ -282,26 +272,6 @@ public StaticSiteArmResourceInner withBuildProperties(StaticSiteBuildProperties return this; } - /** - * Get the templateProperties property: Template options for generating a new repository. - * - * @return the templateProperties value. - */ - public StaticSiteTemplateOptions templateProperties() { - return this.templateProperties; - } - - /** - * Set the templateProperties property: Template options for generating a new repository. - * - * @param templateProperties the templateProperties value to set. - * @return the StaticSiteArmResourceInner object itself. - */ - public StaticSiteArmResourceInner withTemplateProperties(StaticSiteTemplateOptions templateProperties) { - this.templateProperties = templateProperties; - return this; - } - /** * Get the privateEndpointConnections property: Private endpoint connections. * @@ -311,33 +281,6 @@ public List privateEndpo return this.privateEndpointConnections; } - /** - * Get the contentDistributionEndpoint property: The content distribution endpoint for the static site. - * - * @return the contentDistributionEndpoint value. - */ - public String contentDistributionEndpoint() { - return this.contentDistributionEndpoint; - } - - /** - * Get the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication. - * - * @return the keyVaultReferenceIdentity value. - */ - public String keyVaultReferenceIdentity() { - return this.keyVaultReferenceIdentity; - } - - /** - * Get the userProvidedFunctionApps property: User provided function apps registered with the static site. - * - * @return the userProvidedFunctionApps value. - */ - public List userProvidedFunctionApps() { - return this.userProvidedFunctionApps; - } - /** * Get the stagingEnvironmentPolicy property: State indicating whether staging environments are allowed or not * allowed for a static web app. @@ -382,6 +325,63 @@ public StaticSiteArmResourceInner withAllowConfigFileUpdates(Boolean allowConfig return this; } + /** + * Get the templateProperties property: Template options for generating a new repository. + * + * @return the templateProperties value. + */ + public StaticSiteTemplateOptions templateProperties() { + return this.templateProperties; + } + + /** + * Set the templateProperties property: Template options for generating a new repository. + * + * @param templateProperties the templateProperties value to set. + * @return the StaticSiteArmResourceInner object itself. + */ + public StaticSiteArmResourceInner withTemplateProperties(StaticSiteTemplateOptions templateProperties) { + this.templateProperties = templateProperties; + return this; + } + + /** + * Get the contentDistributionEndpoint property: The content distribution endpoint for the static site. + * + * @return the contentDistributionEndpoint value. + */ + public String contentDistributionEndpoint() { + return this.contentDistributionEndpoint; + } + + /** + * Get the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication. + * + * @return the keyVaultReferenceIdentity value. + */ + public String keyVaultReferenceIdentity() { + return this.keyVaultReferenceIdentity; + } + + /** + * Get the userProvidedFunctionApps property: User provided function apps registered with the static site. + * + * @return the userProvidedFunctionApps value. + */ + public List userProvidedFunctionApps() { + return this.userProvidedFunctionApps; + } + + /** + * Get the provider property: The provider that submitted the last deployment to the primary environment of the + * static site. + * + * @return the provider value. + */ + public String provider() { + return this.provider; + } + /** * Get the kind property: Kind of resource. * @@ -431,12 +431,12 @@ public void validate() { if (buildProperties() != null) { buildProperties().validate(); } - if (templateProperties() != null) { - templateProperties().validate(); - } if (privateEndpointConnections() != null) { privateEndpointConnections().forEach(e -> e.validate()); } + if (templateProperties() != null) { + templateProperties().validate(); + } if (userProvidedFunctionApps() != null) { userProvidedFunctionApps().forEach(e -> e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/AppServiceEnvironmentsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/AppServiceEnvironmentsClientImpl.java index cb8c09aab52a..f8de2c8fd7fc 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/AppServiceEnvironmentsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/AppServiceEnvironmentsClientImpl.java @@ -637,9 +637,9 @@ Mono> listUsages( @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("name") String name, - @QueryParam(value = "$filter", encoded = true) String filter, @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @QueryParam(value = "$filter", encoded = true) String filter, @HeaderParam("Accept") String accept, Context context); @@ -7545,9 +7545,9 @@ private Mono> listUsagesSinglePageAsync( this.client.getEndpoint(), resourceGroupName, name, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context)) .>map( @@ -7605,9 +7605,9 @@ private Mono> listUsagesSinglePageAsync( this.client.getEndpoint(), resourceGroupName, name, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context) .map( diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/AppServicePlansClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/AppServicePlansClientImpl.java index ddbc3cb43154..f8e3d6b64530 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/AppServicePlansClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/AppServicePlansClientImpl.java @@ -316,11 +316,11 @@ Mono> listWebApps( @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("name") String name, + @PathParam("subscriptionId") String subscriptionId, + @QueryParam("api-version") String apiVersion, @QueryParam("$skipToken") String skipToken, @QueryParam(value = "$filter", encoded = true) String filter, @QueryParam("$top") String top, - @PathParam("subscriptionId") String subscriptionId, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -349,9 +349,9 @@ Mono> listUsages( @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("name") String name, - @QueryParam(value = "$filter", encoded = true) String filter, @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @QueryParam(value = "$filter", encoded = true) String filter, @HeaderParam("Accept") String accept, Context context); @@ -3076,11 +3076,11 @@ private Mono> listWebAppsSinglePageAsync( this.client.getEndpoint(), resourceGroupName, name, + this.client.getSubscriptionId(), + this.client.getApiVersion(), skipToken, filter, top, - this.client.getSubscriptionId(), - this.client.getApiVersion(), accept, context)) .>map( @@ -3140,11 +3140,11 @@ private Mono> listWebAppsSinglePageAsync( this.client.getEndpoint(), resourceGroupName, name, + this.client.getSubscriptionId(), + this.client.getApiVersion(), skipToken, filter, top, - this.client.getSubscriptionId(), - this.client.getApiVersion(), accept, context) .map( @@ -3455,9 +3455,9 @@ private Mono> listUsagesSinglePageAsync( this.client.getEndpoint(), resourceGroupName, name, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context)) .>map( @@ -3514,9 +3514,9 @@ private Mono> listUsagesSinglePageAsync( this.client.getEndpoint(), resourceGroupName, name, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context) .map( diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/CertificatesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/CertificatesClientImpl.java index 0b83b57ec1ec..bdf5c6f9fc90 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/CertificatesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/CertificatesClientImpl.java @@ -77,9 +77,9 @@ private interface CertificatesService { @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> list( @HostParam("$host") String endpoint, - @QueryParam(value = "$filter", encoded = true) String filter, @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @QueryParam(value = "$filter", encoded = true) String filter, @HeaderParam("Accept") String accept, Context context); @@ -209,9 +209,9 @@ private Mono> listSinglePageAsync(String filter) service .list( this.client.getEndpoint(), - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context)) .>map( @@ -256,9 +256,9 @@ private Mono> listSinglePageAsync(String filter, return service .list( this.client.getEndpoint(), - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context) .map( diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/RecommendationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/RecommendationsClientImpl.java index 5035dbe8acaf..fda311e79b29 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/RecommendationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/RecommendationsClientImpl.java @@ -68,9 +68,9 @@ private interface RecommendationsService { Mono> list( @HostParam("$host") String endpoint, @QueryParam("featured") Boolean featured, - @QueryParam(value = "$filter", encoded = true) String filter, @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @QueryParam(value = "$filter", encoded = true) String filter, @HeaderParam("Accept") String accept, Context context); @@ -108,9 +108,9 @@ Mono> listHistoryForHostingEnvironment( @PathParam("resourceGroupName") String resourceGroupName, @PathParam("hostingEnvironmentName") String hostingEnvironmentName, @QueryParam("expiredOnly") Boolean expiredOnly, - @QueryParam(value = "$filter", encoded = true) String filter, @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @QueryParam(value = "$filter", encoded = true) String filter, @HeaderParam("Accept") String accept, Context context); @@ -125,9 +125,9 @@ Mono> listRecommendedRulesForHostingEnvironme @PathParam("resourceGroupName") String resourceGroupName, @PathParam("hostingEnvironmentName") String hostingEnvironmentName, @QueryParam("featured") Boolean featured, - @QueryParam(value = "$filter", encoded = true) String filter, @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @QueryParam(value = "$filter", encoded = true) String filter, @HeaderParam("Accept") String accept, Context context); @@ -209,9 +209,9 @@ Mono> listHistoryForWebApp( @PathParam("resourceGroupName") String resourceGroupName, @PathParam("siteName") String siteName, @QueryParam("expiredOnly") Boolean expiredOnly, - @QueryParam(value = "$filter", encoded = true) String filter, @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @QueryParam(value = "$filter", encoded = true) String filter, @HeaderParam("Accept") String accept, Context context); @@ -226,9 +226,9 @@ Mono> listRecommendedRulesForWebApp( @PathParam("resourceGroupName") String resourceGroupName, @PathParam("siteName") String siteName, @QueryParam("featured") Boolean featured, - @QueryParam(value = "$filter", encoded = true) String filter, @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @QueryParam(value = "$filter", encoded = true) String filter, @HeaderParam("Accept") String accept, Context context); @@ -382,9 +382,9 @@ private Mono> listSinglePageAsync(Boolean fea .list( this.client.getEndpoint(), featured, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context)) .>map( @@ -434,9 +434,9 @@ private Mono> listSinglePageAsync( .list( this.client.getEndpoint(), featured, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context) .map( @@ -816,9 +816,9 @@ private Mono> listHistoryForHostingEnvironmen resourceGroupName, hostingEnvironmentName, expiredOnly, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context)) .>map( @@ -881,9 +881,9 @@ private Mono> listHistoryForHostingEnvironmen resourceGroupName, hostingEnvironmentName, expiredOnly, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context) .map( @@ -1061,9 +1061,9 @@ private Mono> listRecommendedRulesForHostingE resourceGroupName, hostingEnvironmentName, featured, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context)) .>map( @@ -1125,9 +1125,9 @@ private Mono> listRecommendedRulesForHostingE resourceGroupName, hostingEnvironmentName, featured, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context) .map( @@ -2053,9 +2053,9 @@ private Mono> listHistoryForWebAppSinglePageA resourceGroupName, siteName, expiredOnly, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context)) .>map( @@ -2116,9 +2116,9 @@ private Mono> listHistoryForWebAppSinglePageA resourceGroupName, siteName, expiredOnly, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context) .map( @@ -2284,9 +2284,9 @@ private Mono> listRecommendedRulesForWebAppSi resourceGroupName, siteName, featured, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context)) .>map( @@ -2346,9 +2346,9 @@ private Mono> listRecommendedRulesForWebAppSi resourceGroupName, siteName, featured, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context) .map( diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebAppsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebAppsClientImpl.java index 5885eadb028c..b2683a9192f2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebAppsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebAppsClientImpl.java @@ -2067,6 +2067,22 @@ Mono> getSwiftVirtualNetworkConnection( @HeaderParam("Accept") String accept, Context context); + @Headers({"Content-Type: application/json"}) + @Put( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}" + + "/networkConfig/virtualNetwork") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) + Mono> createOrUpdateSwiftVirtualNetworkConnectionWithCheck( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("name") String name, + @PathParam("subscriptionId") String subscriptionId, + @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") SwiftVirtualNetworkInner connectionEnvelope, + @HeaderParam("Accept") String accept, + Context context); + @Headers({"Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}" @@ -2238,9 +2254,9 @@ Mono> listPerfMonCounters( @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("name") String name, - @QueryParam(value = "$filter", encoded = true) String filter, @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @QueryParam(value = "$filter", encoded = true) String filter, @HeaderParam("Accept") String accept, Context context); @@ -4910,9 +4926,9 @@ Mono> listPerfMonCountersSlot( @PathParam("resourceGroupName") String resourceGroupName, @PathParam("name") String name, @PathParam("slot") String slot, - @QueryParam(value = "$filter", encoded = true) String filter, @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @QueryParam(value = "$filter", encoded = true) String filter, @HeaderParam("Accept") String accept, Context context); @@ -5836,9 +5852,9 @@ Mono> listUsagesSlot( @PathParam("resourceGroupName") String resourceGroupName, @PathParam("name") String name, @PathParam("slot") String slot, - @QueryParam(value = "$filter", encoded = true) String filter, @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @QueryParam(value = "$filter", encoded = true) String filter, @HeaderParam("Accept") String accept, Context context); @@ -6224,7 +6240,7 @@ Mono> syncRepository( @Post( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}" + "/syncfunctiontriggers") - @ExpectedResponses({200, 204}) + @ExpectedResponses({204}) @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) Mono> syncFunctionTriggers( @HostParam("$host") String endpoint, @@ -6341,9 +6357,9 @@ Mono> listUsages( @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("name") String name, - @QueryParam(value = "$filter", encoded = true) String filter, @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @QueryParam(value = "$filter", encoded = true) String filter, @HeaderParam("Accept") String accept, Context context); @@ -11336,7 +11352,7 @@ public Response getAuthSettingsWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> updateAuthSettingsV2WithResponseAsync( @@ -11393,7 +11409,7 @@ public Mono> updateAuthSettingsV2WithResponseA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateAuthSettingsV2WithResponseAsync( @@ -11446,7 +11462,7 @@ private Mono> updateAuthSettingsV2WithResponse * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono updateAuthSettingsV2Async( @@ -11471,7 +11487,7 @@ public Mono updateAuthSettingsV2Async( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) public SiteAuthSettingsV2Inner updateAuthSettingsV2( @@ -11489,7 +11505,7 @@ public SiteAuthSettingsV2Inner updateAuthSettingsV2( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response updateAuthSettingsV2WithResponse( @@ -11505,7 +11521,7 @@ public Response updateAuthSettingsV2WithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getAuthSettingsV2WithResponseAsync( @@ -11554,7 +11570,7 @@ public Mono> getAuthSettingsV2WithResponseAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getAuthSettingsV2WithResponseAsync( @@ -11599,7 +11615,7 @@ private Mono> getAuthSettingsV2WithResponseAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono getAuthSettingsV2Async(String resourceGroupName, String name) { @@ -11622,7 +11638,7 @@ public Mono getAuthSettingsV2Async(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) public SiteAuthSettingsV2Inner getAuthSettingsV2(String resourceGroupName, String name) { @@ -11638,7 +11654,7 @@ public SiteAuthSettingsV2Inner getAuthSettingsV2(String resourceGroupName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getAuthSettingsV2WithResponse( @@ -28226,6 +28242,192 @@ public Response getSwiftVirtualNetworkConnectionWithRe return getSwiftVirtualNetworkConnectionWithResponseAsync(resourceGroupName, name, context).block(); } + /** + * Description for Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true + * when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not in + * use by another App Service Plan other than the one this App is in. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return swift Virtual Network Contract. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> + createOrUpdateSwiftVirtualNetworkConnectionWithCheckWithResponseAsync( + String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (name == null) { + return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (connectionEnvelope == null) { + return Mono + .error(new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null.")); + } else { + connectionEnvelope.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .createOrUpdateSwiftVirtualNetworkConnectionWithCheck( + this.client.getEndpoint(), + resourceGroupName, + name, + this.client.getSubscriptionId(), + this.client.getApiVersion(), + connectionEnvelope, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Description for Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true + * when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not in + * use by another App Service Plan other than the one this App is in. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return swift Virtual Network Contract. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + createOrUpdateSwiftVirtualNetworkConnectionWithCheckWithResponseAsync( + String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (name == null) { + return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (connectionEnvelope == null) { + return Mono + .error(new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null.")); + } else { + connectionEnvelope.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .createOrUpdateSwiftVirtualNetworkConnectionWithCheck( + this.client.getEndpoint(), + resourceGroupName, + name, + this.client.getSubscriptionId(), + this.client.getApiVersion(), + connectionEnvelope, + accept, + context); + } + + /** + * Description for Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true + * when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not in + * use by another App Service Plan other than the one this App is in. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return swift Virtual Network Contract. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateSwiftVirtualNetworkConnectionWithCheckAsync( + String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + return createOrUpdateSwiftVirtualNetworkConnectionWithCheckWithResponseAsync( + resourceGroupName, name, connectionEnvelope) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Description for Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true + * when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not in + * use by another App Service Plan other than the one this App is in. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return swift Virtual Network Contract. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SwiftVirtualNetworkInner createOrUpdateSwiftVirtualNetworkConnectionWithCheck( + String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + return createOrUpdateSwiftVirtualNetworkConnectionWithCheckAsync(resourceGroupName, name, connectionEnvelope) + .block(); + } + + /** + * Description for Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true + * when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not in + * use by another App Service Plan other than the one this App is in. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return swift Virtual Network Contract. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createOrUpdateSwiftVirtualNetworkConnectionWithCheckWithResponse( + String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope, Context context) { + return createOrUpdateSwiftVirtualNetworkConnectionWithCheckWithResponseAsync( + resourceGroupName, name, connectionEnvelope, context) + .block(); + } + /** * Description for Deletes a Swift Virtual Network connection from an app (or deployment slot). * @@ -30068,9 +30270,9 @@ private Mono> listPerfMonCountersSinglePageA this.client.getEndpoint(), resourceGroupName, name, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context)) .>map( @@ -30128,9 +30330,9 @@ private Mono> listPerfMonCountersSinglePageA this.client.getEndpoint(), resourceGroupName, name, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context) .map( @@ -41232,7 +41434,7 @@ public Response getAuthSettingsSlotWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> updateAuthSettingsV2SlotWithResponseAsync( @@ -41294,7 +41496,7 @@ public Mono> updateAuthSettingsV2SlotWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateAuthSettingsV2SlotWithResponseAsync( @@ -41356,7 +41558,7 @@ private Mono> updateAuthSettingsV2SlotWithResp * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono updateAuthSettingsV2SlotAsync( @@ -41382,7 +41584,7 @@ public Mono updateAuthSettingsV2SlotAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) public SiteAuthSettingsV2Inner updateAuthSettingsV2Slot( @@ -41401,7 +41603,7 @@ public SiteAuthSettingsV2Inner updateAuthSettingsV2Slot( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response updateAuthSettingsV2SlotWithResponse( @@ -41424,7 +41626,7 @@ public Response updateAuthSettingsV2SlotWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getAuthSettingsV2SlotWithResponseAsync( @@ -41479,7 +41681,7 @@ public Mono> getAuthSettingsV2SlotWithResponse * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getAuthSettingsV2SlotWithResponseAsync( @@ -41530,7 +41732,7 @@ private Mono> getAuthSettingsV2SlotWithRespons * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono getAuthSettingsV2SlotAsync( @@ -41556,7 +41758,7 @@ public Mono getAuthSettingsV2SlotAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) public SiteAuthSettingsV2Inner getAuthSettingsV2Slot(String resourceGroupName, String name, String slot) { @@ -41574,7 +41776,7 @@ public SiteAuthSettingsV2Inner getAuthSettingsV2Slot(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getAuthSettingsV2SlotWithResponse( @@ -61053,9 +61255,9 @@ private Mono> listPerfMonCountersSlotSingleP resourceGroupName, name, slot, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context)) .>map( @@ -61118,9 +61320,9 @@ private Mono> listPerfMonCountersSlotSingleP resourceGroupName, name, slot, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context) .map( @@ -72467,9 +72669,9 @@ private Mono> listUsagesSlotSinglePageAsync( resourceGroupName, name, slot, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context)) .>map( @@ -72533,9 +72735,9 @@ private Mono> listUsagesSlotSinglePageAsync( resourceGroupName, name, slot, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context) .map( @@ -78358,9 +78560,9 @@ private Mono> listUsagesSinglePageAsync( this.client.getEndpoint(), resourceGroupName, name, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context)) .>map( @@ -78418,9 +78620,9 @@ private Mono> listUsagesSinglePageAsync( this.client.getEndpoint(), resourceGroupName, name, - filter, this.client.getSubscriptionId(), this.client.getApiVersion(), + filter, accept, context) .map( diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebSiteManagementClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebSiteManagementClientImpl.java index 927b72358bef..faa2131e6601 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebSiteManagementClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebSiteManagementClientImpl.java @@ -20,6 +20,7 @@ import com.azure.resourcemanager.appservice.fluent.DomainRegistrationProvidersClient; import com.azure.resourcemanager.appservice.fluent.DomainsClient; import com.azure.resourcemanager.appservice.fluent.GlobalsClient; +import com.azure.resourcemanager.appservice.fluent.KubeEnvironmentsClient; import com.azure.resourcemanager.appservice.fluent.ProvidersClient; import com.azure.resourcemanager.appservice.fluent.RecommendationsClient; import com.azure.resourcemanager.appservice.fluent.ResourceHealthMetadatasClient; @@ -180,6 +181,30 @@ public DomainRegistrationProvidersClient getDomainRegistrationProviders() { return this.domainRegistrationProviders; } + /** The AppServiceEnvironmentsClient object to access its operations. */ + private final AppServiceEnvironmentsClient appServiceEnvironments; + + /** + * Gets the AppServiceEnvironmentsClient object to access its operations. + * + * @return the AppServiceEnvironmentsClient object. + */ + public AppServiceEnvironmentsClient getAppServiceEnvironments() { + return this.appServiceEnvironments; + } + + /** The AppServicePlansClient object to access its operations. */ + private final AppServicePlansClient appServicePlans; + + /** + * Gets the AppServicePlansClient object to access its operations. + * + * @return the AppServicePlansClient object. + */ + public AppServicePlansClient getAppServicePlans() { + return this.appServicePlans; + } + /** The CertificatesClient object to access its operations. */ private final CertificatesClient certificates; @@ -252,28 +277,28 @@ public RecommendationsClient getRecommendations() { return this.recommendations; } - /** The ResourceProvidersClient object to access its operations. */ - private final ResourceProvidersClient resourceProviders; + /** The ResourceHealthMetadatasClient object to access its operations. */ + private final ResourceHealthMetadatasClient resourceHealthMetadatas; /** - * Gets the ResourceProvidersClient object to access its operations. + * Gets the ResourceHealthMetadatasClient object to access its operations. * - * @return the ResourceProvidersClient object. + * @return the ResourceHealthMetadatasClient object. */ - public ResourceProvidersClient getResourceProviders() { - return this.resourceProviders; + public ResourceHealthMetadatasClient getResourceHealthMetadatas() { + return this.resourceHealthMetadatas; } - /** The WebAppsClient object to access its operations. */ - private final WebAppsClient webApps; + /** The ResourceProvidersClient object to access its operations. */ + private final ResourceProvidersClient resourceProviders; /** - * Gets the WebAppsClient object to access its operations. + * Gets the ResourceProvidersClient object to access its operations. * - * @return the WebAppsClient object. + * @return the ResourceProvidersClient object. */ - public WebAppsClient getWebApps() { - return this.webApps; + public ResourceProvidersClient getResourceProviders() { + return this.resourceProviders; } /** The StaticSitesClient object to access its operations. */ @@ -288,40 +313,28 @@ public StaticSitesClient getStaticSites() { return this.staticSites; } - /** The AppServiceEnvironmentsClient object to access its operations. */ - private final AppServiceEnvironmentsClient appServiceEnvironments; - - /** - * Gets the AppServiceEnvironmentsClient object to access its operations. - * - * @return the AppServiceEnvironmentsClient object. - */ - public AppServiceEnvironmentsClient getAppServiceEnvironments() { - return this.appServiceEnvironments; - } - - /** The AppServicePlansClient object to access its operations. */ - private final AppServicePlansClient appServicePlans; + /** The WebAppsClient object to access its operations. */ + private final WebAppsClient webApps; /** - * Gets the AppServicePlansClient object to access its operations. + * Gets the WebAppsClient object to access its operations. * - * @return the AppServicePlansClient object. + * @return the WebAppsClient object. */ - public AppServicePlansClient getAppServicePlans() { - return this.appServicePlans; + public WebAppsClient getWebApps() { + return this.webApps; } - /** The ResourceHealthMetadatasClient object to access its operations. */ - private final ResourceHealthMetadatasClient resourceHealthMetadatas; + /** The KubeEnvironmentsClient object to access its operations. */ + private final KubeEnvironmentsClient kubeEnvironments; /** - * Gets the ResourceHealthMetadatasClient object to access its operations. + * Gets the KubeEnvironmentsClient object to access its operations. * - * @return the ResourceHealthMetadatasClient object. + * @return the KubeEnvironmentsClient object. */ - public ResourceHealthMetadatasClient getResourceHealthMetadatas() { - return this.resourceHealthMetadatas; + public KubeEnvironmentsClient getKubeEnvironments() { + return this.kubeEnvironments; } /** @@ -348,24 +361,25 @@ public ResourceHealthMetadatasClient getResourceHealthMetadatas() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2020-12-01"; + this.apiVersion = "2021-01-01"; this.appServiceCertificateOrders = new AppServiceCertificateOrdersClientImpl(this); this.certificateOrdersDiagnostics = new CertificateOrdersDiagnosticsClientImpl(this); this.certificateRegistrationProviders = new CertificateRegistrationProvidersClientImpl(this); this.domains = new DomainsClientImpl(this); this.topLevelDomains = new TopLevelDomainsClientImpl(this); this.domainRegistrationProviders = new DomainRegistrationProvidersClientImpl(this); + this.appServiceEnvironments = new AppServiceEnvironmentsClientImpl(this); + this.appServicePlans = new AppServicePlansClientImpl(this); this.certificates = new CertificatesClientImpl(this); this.deletedWebApps = new DeletedWebAppsClientImpl(this); this.diagnostics = new DiagnosticsClientImpl(this); this.globals = new GlobalsClientImpl(this); this.providers = new ProvidersClientImpl(this); this.recommendations = new RecommendationsClientImpl(this); + this.resourceHealthMetadatas = new ResourceHealthMetadatasClientImpl(this); this.resourceProviders = new ResourceProvidersClientImpl(this); - this.webApps = new WebAppsClientImpl(this); this.staticSites = new StaticSitesClientImpl(this); - this.appServiceEnvironments = new AppServiceEnvironmentsClientImpl(this); - this.appServicePlans = new AppServicePlansClientImpl(this); - this.resourceHealthMetadatas = new ResourceHealthMetadatasClientImpl(this); + this.webApps = new WebAppsClientImpl(this); + this.kubeEnvironments = new KubeEnvironmentsClientImpl(this); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppRegistration.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppRegistration.java index 3c27d1375044..f604d53613f2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppRegistration.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppRegistration.java @@ -10,26 +10,26 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The AppRegistration model. */ +/** The configuration settings of the app registration for providers that have app ids and app secrets. */ @JsonFlatten @Fluent public class AppRegistration extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(AppRegistration.class); /* - * The appId property. + * The App ID of the app used for login. */ @JsonProperty(value = "properties.appId") private String appId; /* - * The appSecretSettingName property. + * The app setting name that contains the app secret. */ @JsonProperty(value = "properties.appSecretSettingName") private String appSecretSettingName; /** - * Get the appId property: The appId property. + * Get the appId property: The App ID of the app used for login. * * @return the appId value. */ @@ -38,7 +38,7 @@ public String appId() { } /** - * Set the appId property: The appId property. + * Set the appId property: The App ID of the app used for login. * * @param appId the appId value to set. * @return the AppRegistration object itself. @@ -49,7 +49,7 @@ public AppRegistration withAppId(String appId) { } /** - * Get the appSecretSettingName property: The appSecretSettingName property. + * Get the appSecretSettingName property: The app setting name that contains the app secret. * * @return the appSecretSettingName value. */ @@ -58,7 +58,7 @@ public String appSecretSettingName() { } /** - * Set the appSecretSettingName property: The appSecretSettingName property. + * Set the appSecretSettingName property: The app setting name that contains the app secret. * * @param appSecretSettingName the appSecretSettingName value to set. * @return the AppRegistration object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppServicePlanPatchResource.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppServicePlanPatchResource.java index adb5b9e826c1..15747eb84e28 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppServicePlanPatchResource.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppServicePlanPatchResource.java @@ -64,6 +64,13 @@ public class AppServicePlanPatchResource extends ProxyOnlyResource { @JsonProperty(value = "properties.perSiteScaling") private Boolean perSiteScaling; + /* + * ServerFarm supports ElasticScale. Apps in this plan will scale as if the + * ServerFarm was ElasticPremium sku + */ + @JsonProperty(value = "properties.elasticScaleEnabled") + private Boolean elasticScaleEnabled; + /* * Maximum number of total workers allowed for this ElasticScaleEnabled App * Service Plan @@ -252,6 +259,28 @@ public AppServicePlanPatchResource withPerSiteScaling(Boolean perSiteScaling) { return this; } + /** + * Get the elasticScaleEnabled property: ServerFarm supports ElasticScale. Apps in this plan will scale as if the + * ServerFarm was ElasticPremium sku. + * + * @return the elasticScaleEnabled value. + */ + public Boolean elasticScaleEnabled() { + return this.elasticScaleEnabled; + } + + /** + * Set the elasticScaleEnabled property: ServerFarm supports ElasticScale. Apps in this plan will scale as if the + * ServerFarm was ElasticPremium sku. + * + * @param elasticScaleEnabled the elasticScaleEnabled value to set. + * @return the AppServicePlanPatchResource object itself. + */ + public AppServicePlanPatchResource withElasticScaleEnabled(Boolean elasticScaleEnabled) { + this.elasticScaleEnabled = elasticScaleEnabled; + return this; + } + /** * Get the maximumElasticWorkerCount property: Maximum number of total workers allowed for this ElasticScaleEnabled * App Service Plan. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Apple.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Apple.java index 2b995ab51f1b..a751305af9da 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Apple.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Apple.java @@ -10,32 +10,34 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The Apple model. */ +/** The configuration settings of the Apple provider. */ @JsonFlatten @Fluent public class Apple extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(Apple.class); /* - * The enabled property. + * false if the Apple provider should not be enabled despite + * the set registration; otherwise, true. */ @JsonProperty(value = "properties.enabled") private Boolean enabled; /* - * The registration property. + * The configuration settings of the Apple registration. */ @JsonProperty(value = "properties.registration") private AppleRegistration registration; /* - * The login property. + * The configuration settings of the login flow. */ @JsonProperty(value = "properties.login") private LoginScopes login; /** - * Get the enabled property: The enabled property. + * Get the enabled property: <code>false</code> if the Apple provider should not be enabled despite the + * set registration; otherwise, <code>true</code>. * * @return the enabled value. */ @@ -44,7 +46,8 @@ public Boolean enabled() { } /** - * Set the enabled property: The enabled property. + * Set the enabled property: <code>false</code> if the Apple provider should not be enabled despite the + * set registration; otherwise, <code>true</code>. * * @param enabled the enabled value to set. * @return the Apple object itself. @@ -55,7 +58,7 @@ public Apple withEnabled(Boolean enabled) { } /** - * Get the registration property: The registration property. + * Get the registration property: The configuration settings of the Apple registration. * * @return the registration value. */ @@ -64,7 +67,7 @@ public AppleRegistration registration() { } /** - * Set the registration property: The registration property. + * Set the registration property: The configuration settings of the Apple registration. * * @param registration the registration value to set. * @return the Apple object itself. @@ -75,7 +78,7 @@ public Apple withRegistration(AppleRegistration registration) { } /** - * Get the login property: The login property. + * Get the login property: The configuration settings of the login flow. * * @return the login value. */ @@ -84,7 +87,7 @@ public LoginScopes login() { } /** - * Set the login property: The login property. + * Set the login property: The configuration settings of the login flow. * * @param login the login value to set. * @return the Apple object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppleRegistration.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppleRegistration.java index 47482e545a01..b4ec95951374 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppleRegistration.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppleRegistration.java @@ -10,26 +10,26 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The AppleRegistration model. */ +/** The configuration settings of the registration for the Apple provider. */ @JsonFlatten @Fluent public class AppleRegistration extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(AppleRegistration.class); /* - * The clientId property. + * The Client ID of the app used for login. */ @JsonProperty(value = "properties.clientId") private String clientId; /* - * The clientSecretSettingName property. + * The app setting name that contains the client secret. */ @JsonProperty(value = "properties.clientSecretSettingName") private String clientSecretSettingName; /** - * Get the clientId property: The clientId property. + * Get the clientId property: The Client ID of the app used for login. * * @return the clientId value. */ @@ -38,7 +38,7 @@ public String clientId() { } /** - * Set the clientId property: The clientId property. + * Set the clientId property: The Client ID of the app used for login. * * @param clientId the clientId value to set. * @return the AppleRegistration object itself. @@ -49,7 +49,7 @@ public AppleRegistration withClientId(String clientId) { } /** - * Get the clientSecretSettingName property: The clientSecretSettingName property. + * Get the clientSecretSettingName property: The app setting name that contains the client secret. * * @return the clientSecretSettingName value. */ @@ -58,7 +58,7 @@ public String clientSecretSettingName() { } /** - * Set the clientSecretSettingName property: The clientSecretSettingName property. + * Set the clientSecretSettingName property: The app setting name that contains the client secret. * * @param clientSecretSettingName the clientSecretSettingName value to set. * @return the AppleRegistration object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AuthPlatform.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AuthPlatform.java index 006df7cdce51..8ced545a0de5 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AuthPlatform.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AuthPlatform.java @@ -10,32 +10,39 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The AuthPlatform model. */ +/** The configuration settings of the platform of App Service Authentication/Authorization. */ @JsonFlatten @Fluent public class AuthPlatform extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(AuthPlatform.class); /* - * The enabled property. + * true if the Authentication / Authorization feature is + * enabled for the current app; otherwise, false. */ @JsonProperty(value = "properties.enabled") private Boolean enabled; /* - * The runtimeVersion property. + * The RuntimeVersion of the Authentication / Authorization feature in use + * for the current app. + * The setting in this value can control the behavior of certain features + * in the Authentication / Authorization module. */ @JsonProperty(value = "properties.runtimeVersion") private String runtimeVersion; /* - * The configFilePath property. + * The path of the config file containing auth settings if they come from a + * file. + * If the path is relative, base will the site's root directory. */ @JsonProperty(value = "properties.configFilePath") private String configFilePath; /** - * Get the enabled property: The enabled property. + * Get the enabled property: <code>true</code> if the Authentication / Authorization feature is enabled + * for the current app; otherwise, <code>false</code>. * * @return the enabled value. */ @@ -44,7 +51,8 @@ public Boolean enabled() { } /** - * Set the enabled property: The enabled property. + * Set the enabled property: <code>true</code> if the Authentication / Authorization feature is enabled + * for the current app; otherwise, <code>false</code>. * * @param enabled the enabled value to set. * @return the AuthPlatform object itself. @@ -55,7 +63,9 @@ public AuthPlatform withEnabled(Boolean enabled) { } /** - * Get the runtimeVersion property: The runtimeVersion property. + * Get the runtimeVersion property: The RuntimeVersion of the Authentication / Authorization feature in use for the + * current app. The setting in this value can control the behavior of certain features in the Authentication / + * Authorization module. * * @return the runtimeVersion value. */ @@ -64,7 +74,9 @@ public String runtimeVersion() { } /** - * Set the runtimeVersion property: The runtimeVersion property. + * Set the runtimeVersion property: The RuntimeVersion of the Authentication / Authorization feature in use for the + * current app. The setting in this value can control the behavior of certain features in the Authentication / + * Authorization module. * * @param runtimeVersion the runtimeVersion value to set. * @return the AuthPlatform object itself. @@ -75,7 +87,8 @@ public AuthPlatform withRuntimeVersion(String runtimeVersion) { } /** - * Get the configFilePath property: The configFilePath property. + * Get the configFilePath property: The path of the config file containing auth settings if they come from a file. + * If the path is relative, base will the site's root directory. * * @return the configFilePath value. */ @@ -84,7 +97,8 @@ public String configFilePath() { } /** - * Set the configFilePath property: The configFilePath property. + * Set the configFilePath property: The path of the config file containing auth settings if they come from a file. + * If the path is relative, base will the site's root directory. * * @param configFilePath the configFilePath value to set. * @return the AuthPlatform object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AutoHealTriggers.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AutoHealTriggers.java index 1a5e344a07bb..04bd0975cb08 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AutoHealTriggers.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AutoHealTriggers.java @@ -33,12 +33,6 @@ public final class AutoHealTriggers { @JsonProperty(value = "statusCodes") private List statusCodes; - /* - * A rule based on status codes ranges. - */ - @JsonProperty(value = "statusCodesRange") - private List statusCodesRange; - /* * A rule based on request execution time. */ @@ -51,6 +45,12 @@ public final class AutoHealTriggers { @JsonProperty(value = "slowRequestsWithPath") private List slowRequestsWithPath; + /* + * A rule based on status codes ranges. + */ + @JsonProperty(value = "statusCodesRange") + private List statusCodesRange; + /** * Get the requests property: A rule based on total requests. * @@ -111,26 +111,6 @@ public AutoHealTriggers withStatusCodes(List statusCode return this; } - /** - * Get the statusCodesRange property: A rule based on status codes ranges. - * - * @return the statusCodesRange value. - */ - public List statusCodesRange() { - return this.statusCodesRange; - } - - /** - * Set the statusCodesRange property: A rule based on status codes ranges. - * - * @param statusCodesRange the statusCodesRange value to set. - * @return the AutoHealTriggers object itself. - */ - public AutoHealTriggers withStatusCodesRange(List statusCodesRange) { - this.statusCodesRange = statusCodesRange; - return this; - } - /** * Get the slowRequests property: A rule based on request execution time. * @@ -171,6 +151,26 @@ public AutoHealTriggers withSlowRequestsWithPath(List return this; } + /** + * Get the statusCodesRange property: A rule based on status codes ranges. + * + * @return the statusCodesRange value. + */ + public List statusCodesRange() { + return this.statusCodesRange; + } + + /** + * Set the statusCodesRange property: A rule based on status codes ranges. + * + * @param statusCodesRange the statusCodesRange value to set. + * @return the AutoHealTriggers object itself. + */ + public AutoHealTriggers withStatusCodesRange(List statusCodesRange) { + this.statusCodesRange = statusCodesRange; + return this; + } + /** * Validates the instance. * @@ -183,14 +183,14 @@ public void validate() { if (statusCodes() != null) { statusCodes().forEach(e -> e.validate()); } - if (statusCodesRange() != null) { - statusCodesRange().forEach(e -> e.validate()); - } if (slowRequests() != null) { slowRequests().validate(); } if (slowRequestsWithPath() != null) { slowRequestsWithPath().forEach(e -> e.validate()); } + if (statusCodesRange() != null) { + statusCodesRange().forEach(e -> e.validate()); + } } } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureActiveDirectory.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureActiveDirectory.java index 6787ff103e73..0d0abb9d0544 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureActiveDirectory.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureActiveDirectory.java @@ -10,44 +10,52 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The AzureActiveDirectory model. */ +/** The configuration settings of the Azure Active directory provider. */ @JsonFlatten @Fluent public class AzureActiveDirectory extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureActiveDirectory.class); /* - * The enabled property. + * false if the Azure Active Directory provider should not be + * enabled despite the set registration; otherwise, true. */ @JsonProperty(value = "properties.enabled") private Boolean enabled; /* - * The registration property. + * The configuration settings of the Azure Active Directory app + * registration. */ @JsonProperty(value = "properties.registration") private AzureActiveDirectoryRegistration registration; /* - * The login property. + * The configuration settings of the Azure Active Directory login flow. */ @JsonProperty(value = "properties.login") private AzureActiveDirectoryLogin login; /* - * The validation property. + * The configuration settings of the Azure Active Directory token + * validation flow. */ @JsonProperty(value = "properties.validation") private AzureActiveDirectoryValidation validation; /* - * The isAutoProvisioned property. + * Gets a value indicating whether the Azure AD configuration was + * auto-provisioned using 1st party tooling. + * This is an internal flag primarily intended to support the Azure + * Management Portal. Users should not + * read or write to this property. */ @JsonProperty(value = "properties.isAutoProvisioned") private Boolean isAutoProvisioned; /** - * Get the enabled property: The enabled property. + * Get the enabled property: <code>false</code> if the Azure Active Directory provider should not be + * enabled despite the set registration; otherwise, <code>true</code>. * * @return the enabled value. */ @@ -56,7 +64,8 @@ public Boolean enabled() { } /** - * Set the enabled property: The enabled property. + * Set the enabled property: <code>false</code> if the Azure Active Directory provider should not be + * enabled despite the set registration; otherwise, <code>true</code>. * * @param enabled the enabled value to set. * @return the AzureActiveDirectory object itself. @@ -67,7 +76,7 @@ public AzureActiveDirectory withEnabled(Boolean enabled) { } /** - * Get the registration property: The registration property. + * Get the registration property: The configuration settings of the Azure Active Directory app registration. * * @return the registration value. */ @@ -76,7 +85,7 @@ public AzureActiveDirectoryRegistration registration() { } /** - * Set the registration property: The registration property. + * Set the registration property: The configuration settings of the Azure Active Directory app registration. * * @param registration the registration value to set. * @return the AzureActiveDirectory object itself. @@ -87,7 +96,7 @@ public AzureActiveDirectory withRegistration(AzureActiveDirectoryRegistration re } /** - * Get the login property: The login property. + * Get the login property: The configuration settings of the Azure Active Directory login flow. * * @return the login value. */ @@ -96,7 +105,7 @@ public AzureActiveDirectoryLogin login() { } /** - * Set the login property: The login property. + * Set the login property: The configuration settings of the Azure Active Directory login flow. * * @param login the login value to set. * @return the AzureActiveDirectory object itself. @@ -107,7 +116,7 @@ public AzureActiveDirectory withLogin(AzureActiveDirectoryLogin login) { } /** - * Get the validation property: The validation property. + * Get the validation property: The configuration settings of the Azure Active Directory token validation flow. * * @return the validation value. */ @@ -116,7 +125,7 @@ public AzureActiveDirectoryValidation validation() { } /** - * Set the validation property: The validation property. + * Set the validation property: The configuration settings of the Azure Active Directory token validation flow. * * @param validation the validation value to set. * @return the AzureActiveDirectory object itself. @@ -127,7 +136,9 @@ public AzureActiveDirectory withValidation(AzureActiveDirectoryValidation valida } /** - * Get the isAutoProvisioned property: The isAutoProvisioned property. + * Get the isAutoProvisioned property: Gets a value indicating whether the Azure AD configuration was + * auto-provisioned using 1st party tooling. This is an internal flag primarily intended to support the Azure + * Management Portal. Users should not read or write to this property. * * @return the isAutoProvisioned value. */ @@ -136,7 +147,9 @@ public Boolean isAutoProvisioned() { } /** - * Set the isAutoProvisioned property: The isAutoProvisioned property. + * Set the isAutoProvisioned property: Gets a value indicating whether the Azure AD configuration was + * auto-provisioned using 1st party tooling. This is an internal flag primarily intended to support the Azure + * Management Portal. Users should not read or write to this property. * * @param isAutoProvisioned the isAutoProvisioned value to set. * @return the AzureActiveDirectory object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureActiveDirectoryLogin.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureActiveDirectoryLogin.java index 9219b2dcfb11..c96adb110798 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureActiveDirectoryLogin.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureActiveDirectoryLogin.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The AzureActiveDirectoryLogin model. */ +/** The configuration settings of the Azure Active Directory login flow. */ @JsonFlatten @Fluent public class AzureActiveDirectoryLogin extends ProxyOnlyResource { @@ -24,7 +24,9 @@ public class AzureActiveDirectoryLogin extends ProxyOnlyResource { private Boolean disableWwwAuthenticate; /* - * The loginParameters property. + * Login parameters to send to the OpenID Connect authorization endpoint + * when + * a user logs in. Each parameter must be in the form "key=value". */ @JsonProperty(value = "properties.loginParameters") private List loginParameters; @@ -50,7 +52,8 @@ public AzureActiveDirectoryLogin withDisableWwwAuthenticate(Boolean disableWwwAu } /** - * Get the loginParameters property: The loginParameters property. + * Get the loginParameters property: Login parameters to send to the OpenID Connect authorization endpoint when a + * user logs in. Each parameter must be in the form "key=value". * * @return the loginParameters value. */ @@ -59,7 +62,8 @@ public List loginParameters() { } /** - * Set the loginParameters property: The loginParameters property. + * Set the loginParameters property: Login parameters to send to the OpenID Connect authorization endpoint when a + * user logs in. Each parameter must be in the form "key=value". * * @param loginParameters the loginParameters value to set. * @return the AzureActiveDirectoryLogin object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureActiveDirectoryRegistration.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureActiveDirectoryRegistration.java index 08f37296ceec..46d7062d4be8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureActiveDirectoryRegistration.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureActiveDirectoryRegistration.java @@ -10,38 +10,56 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The AzureActiveDirectoryRegistration model. */ +/** The configuration settings of the Azure Active Directory app registration. */ @JsonFlatten @Fluent public class AzureActiveDirectoryRegistration extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureActiveDirectoryRegistration.class); /* - * The openIdIssuer property. + * The OpenID Connect Issuer URI that represents the entity which issues + * access tokens for this application. + * When using Azure Active Directory, this value is the URI of the + * directory tenant, e.g. + * https://login.microsoftonline.com/v2.0/{tenant-guid}/. + * This URI is a case-sensitive identifier for the token issuer. + * More information on OpenID Connect Discovery: + * http://openid.net/specs/openid-connect-discovery-1_0.html */ @JsonProperty(value = "properties.openIdIssuer") private String openIdIssuer; /* - * The clientId property. + * The Client ID of this relying party application, known as the client_id. + * This setting is required for enabling OpenID Connection authentication + * with Azure Active Directory or + * other 3rd party OpenID Connect providers. + * More information on OpenID Connect: + * http://openid.net/specs/openid-connect-core-1_0.html */ @JsonProperty(value = "properties.clientId") private String clientId; /* - * The clientSecretSettingName property. + * The app setting name that contains the client secret of the relying + * party application. */ @JsonProperty(value = "properties.clientSecretSettingName") private String clientSecretSettingName; /* - * The clientSecretCertificateThumbprint property. + * An alternative to the client secret, that is the thumbprint of a + * certificate used for signing purposes. This property acts as + * a replacement for the Client Secret. It is also optional. */ @JsonProperty(value = "properties.clientSecretCertificateThumbprint") private String clientSecretCertificateThumbprint; /** - * Get the openIdIssuer property: The openIdIssuer property. + * Get the openIdIssuer property: The OpenID Connect Issuer URI that represents the entity which issues access + * tokens for this application. When using Azure Active Directory, this value is the URI of the directory tenant, + * e.g. https://login.microsoftonline.com/v2.0/{tenant-guid}/. This URI is a case-sensitive identifier for the token + * issuer. More information on OpenID Connect Discovery: http://openid.net/specs/openid-connect-discovery-1_0.html. * * @return the openIdIssuer value. */ @@ -50,7 +68,10 @@ public String openIdIssuer() { } /** - * Set the openIdIssuer property: The openIdIssuer property. + * Set the openIdIssuer property: The OpenID Connect Issuer URI that represents the entity which issues access + * tokens for this application. When using Azure Active Directory, this value is the URI of the directory tenant, + * e.g. https://login.microsoftonline.com/v2.0/{tenant-guid}/. This URI is a case-sensitive identifier for the token + * issuer. More information on OpenID Connect Discovery: http://openid.net/specs/openid-connect-discovery-1_0.html. * * @param openIdIssuer the openIdIssuer value to set. * @return the AzureActiveDirectoryRegistration object itself. @@ -61,7 +82,9 @@ public AzureActiveDirectoryRegistration withOpenIdIssuer(String openIdIssuer) { } /** - * Get the clientId property: The clientId property. + * Get the clientId property: The Client ID of this relying party application, known as the client_id. This setting + * is required for enabling OpenID Connection authentication with Azure Active Directory or other 3rd party OpenID + * Connect providers. More information on OpenID Connect: http://openid.net/specs/openid-connect-core-1_0.html. * * @return the clientId value. */ @@ -70,7 +93,9 @@ public String clientId() { } /** - * Set the clientId property: The clientId property. + * Set the clientId property: The Client ID of this relying party application, known as the client_id. This setting + * is required for enabling OpenID Connection authentication with Azure Active Directory or other 3rd party OpenID + * Connect providers. More information on OpenID Connect: http://openid.net/specs/openid-connect-core-1_0.html. * * @param clientId the clientId value to set. * @return the AzureActiveDirectoryRegistration object itself. @@ -81,7 +106,8 @@ public AzureActiveDirectoryRegistration withClientId(String clientId) { } /** - * Get the clientSecretSettingName property: The clientSecretSettingName property. + * Get the clientSecretSettingName property: The app setting name that contains the client secret of the relying + * party application. * * @return the clientSecretSettingName value. */ @@ -90,7 +116,8 @@ public String clientSecretSettingName() { } /** - * Set the clientSecretSettingName property: The clientSecretSettingName property. + * Set the clientSecretSettingName property: The app setting name that contains the client secret of the relying + * party application. * * @param clientSecretSettingName the clientSecretSettingName value to set. * @return the AzureActiveDirectoryRegistration object itself. @@ -101,7 +128,9 @@ public AzureActiveDirectoryRegistration withClientSecretSettingName(String clien } /** - * Get the clientSecretCertificateThumbprint property: The clientSecretCertificateThumbprint property. + * Get the clientSecretCertificateThumbprint property: An alternative to the client secret, that is the thumbprint + * of a certificate used for signing purposes. This property acts as a replacement for the Client Secret. It is also + * optional. * * @return the clientSecretCertificateThumbprint value. */ @@ -110,7 +139,9 @@ public String clientSecretCertificateThumbprint() { } /** - * Set the clientSecretCertificateThumbprint property: The clientSecretCertificateThumbprint property. + * Set the clientSecretCertificateThumbprint property: An alternative to the client secret, that is the thumbprint + * of a certificate used for signing purposes. This property acts as a replacement for the Client Secret. It is also + * optional. * * @param clientSecretCertificateThumbprint the clientSecretCertificateThumbprint value to set. * @return the AzureActiveDirectoryRegistration object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureActiveDirectoryValidation.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureActiveDirectoryValidation.java index 2a387e94a2e6..a5e5ed835ab0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureActiveDirectoryValidation.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureActiveDirectoryValidation.java @@ -11,26 +11,29 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The AzureActiveDirectoryValidation model. */ +/** The configuration settings of the Azure Active Directory token validation flow. */ @JsonFlatten @Fluent public class AzureActiveDirectoryValidation extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureActiveDirectoryValidation.class); /* - * The jwtClaimChecks property. + * The configuration settings of the checks that should be made while + * validating the JWT Claims. */ @JsonProperty(value = "properties.jwtClaimChecks") private JwtClaimChecks jwtClaimChecks; /* - * The allowedAudiences property. + * The list of audiences that can make successful + * authentication/authorization requests. */ @JsonProperty(value = "properties.allowedAudiences") private List allowedAudiences; /** - * Get the jwtClaimChecks property: The jwtClaimChecks property. + * Get the jwtClaimChecks property: The configuration settings of the checks that should be made while validating + * the JWT Claims. * * @return the jwtClaimChecks value. */ @@ -39,7 +42,8 @@ public JwtClaimChecks jwtClaimChecks() { } /** - * Set the jwtClaimChecks property: The jwtClaimChecks property. + * Set the jwtClaimChecks property: The configuration settings of the checks that should be made while validating + * the JWT Claims. * * @param jwtClaimChecks the jwtClaimChecks value to set. * @return the AzureActiveDirectoryValidation object itself. @@ -50,7 +54,8 @@ public AzureActiveDirectoryValidation withJwtClaimChecks(JwtClaimChecks jwtClaim } /** - * Get the allowedAudiences property: The allowedAudiences property. + * Get the allowedAudiences property: The list of audiences that can make successful authentication/authorization + * requests. * * @return the allowedAudiences value. */ @@ -59,7 +64,8 @@ public List allowedAudiences() { } /** - * Set the allowedAudiences property: The allowedAudiences property. + * Set the allowedAudiences property: The list of audiences that can make successful authentication/authorization + * requests. * * @param allowedAudiences the allowedAudiences value to set. * @return the AzureActiveDirectoryValidation object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureStaticWebApps.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureStaticWebApps.java index 1c084e92d996..2a7c8cf6acf2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureStaticWebApps.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureStaticWebApps.java @@ -10,26 +10,28 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The AzureStaticWebApps model. */ +/** The configuration settings of the Azure Static Web Apps provider. */ @JsonFlatten @Fluent public class AzureStaticWebApps extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureStaticWebApps.class); /* - * The enabled property. + * false if the Azure Static Web Apps provider should not be + * enabled despite the set registration; otherwise, true. */ @JsonProperty(value = "properties.enabled") private Boolean enabled; /* - * The registration property. + * The configuration settings of the Azure Static Web Apps registration. */ @JsonProperty(value = "properties.registration") private AzureStaticWebAppsRegistration registration; /** - * Get the enabled property: The enabled property. + * Get the enabled property: <code>false</code> if the Azure Static Web Apps provider should not be + * enabled despite the set registration; otherwise, <code>true</code>. * * @return the enabled value. */ @@ -38,7 +40,8 @@ public Boolean enabled() { } /** - * Set the enabled property: The enabled property. + * Set the enabled property: <code>false</code> if the Azure Static Web Apps provider should not be + * enabled despite the set registration; otherwise, <code>true</code>. * * @param enabled the enabled value to set. * @return the AzureStaticWebApps object itself. @@ -49,7 +52,7 @@ public AzureStaticWebApps withEnabled(Boolean enabled) { } /** - * Get the registration property: The registration property. + * Get the registration property: The configuration settings of the Azure Static Web Apps registration. * * @return the registration value. */ @@ -58,7 +61,7 @@ public AzureStaticWebAppsRegistration registration() { } /** - * Set the registration property: The registration property. + * Set the registration property: The configuration settings of the Azure Static Web Apps registration. * * @param registration the registration value to set. * @return the AzureStaticWebApps object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureStaticWebAppsRegistration.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureStaticWebAppsRegistration.java index 255e7d0c9ab1..1b9fe21ac981 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureStaticWebAppsRegistration.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureStaticWebAppsRegistration.java @@ -10,20 +10,20 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The AzureStaticWebAppsRegistration model. */ +/** The configuration settings of the registration for the Azure Static Web Apps provider. */ @JsonFlatten @Fluent public class AzureStaticWebAppsRegistration extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureStaticWebAppsRegistration.class); /* - * The clientId property. + * The Client ID of the app used for login. */ @JsonProperty(value = "properties.clientId") private String clientId; /** - * Get the clientId property: The clientId property. + * Get the clientId property: The Client ID of the app used for login. * * @return the clientId value. */ @@ -32,7 +32,7 @@ public String clientId() { } /** - * Set the clientId property: The clientId property. + * Set the clientId property: The Client ID of the app used for login. * * @param clientId the clientId value to set. * @return the AzureStaticWebAppsRegistration object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/BlobStorageTokenStore.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/BlobStorageTokenStore.java index 279313fdedbf..a3f5e549f321 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/BlobStorageTokenStore.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/BlobStorageTokenStore.java @@ -10,20 +10,22 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The BlobStorageTokenStore model. */ +/** The configuration settings of the storage of the tokens if blob storage is used. */ @JsonFlatten @Fluent public class BlobStorageTokenStore extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(BlobStorageTokenStore.class); /* - * The sasUrlSettingName property. + * The name of the app setting containing the SAS URL of the blob storage + * containing the tokens. */ @JsonProperty(value = "properties.sasUrlSettingName") private String sasUrlSettingName; /** - * Get the sasUrlSettingName property: The sasUrlSettingName property. + * Get the sasUrlSettingName property: The name of the app setting containing the SAS URL of the blob storage + * containing the tokens. * * @return the sasUrlSettingName value. */ @@ -32,7 +34,8 @@ public String sasUrlSettingName() { } /** - * Set the sasUrlSettingName property: The sasUrlSettingName property. + * Set the sasUrlSettingName property: The name of the app setting containing the SAS URL of the blob storage + * containing the tokens. * * @param sasUrlSettingName the sasUrlSettingName value to set. * @return the BlobStorageTokenStore object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CertificatePatchResource.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CertificatePatchResource.java index fa6d8ab76275..3ceca89030ad 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CertificatePatchResource.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CertificatePatchResource.java @@ -19,6 +19,12 @@ public class CertificatePatchResource extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(CertificatePatchResource.class); + /* + * Certificate password. + */ + @JsonProperty(value = "properties.password") + private String password; + /* * Friendly name of the certificate. */ @@ -73,12 +79,6 @@ public class CertificatePatchResource extends ProxyOnlyResource { @JsonProperty(value = "properties.expirationDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime expirationDate; - /* - * Certificate password. - */ - @JsonProperty(value = "properties.password") - private String password; - /* * Certificate thumbprint. */ @@ -148,6 +148,26 @@ public class CertificatePatchResource extends ProxyOnlyResource { @JsonProperty(value = "properties.domainValidationMethod") private String domainValidationMethod; + /** + * Get the password property: Certificate password. + * + * @return the password value. + */ + public String password() { + return this.password; + } + + /** + * Set the password property: Certificate password. + * + * @param password the password value to set. + * @return the CertificatePatchResource object itself. + */ + public CertificatePatchResource withPassword(String password) { + this.password = password; + return this; + } + /** * Get the friendlyName property: Friendly name of the certificate. * @@ -251,26 +271,6 @@ public OffsetDateTime expirationDate() { return this.expirationDate; } - /** - * Get the password property: Certificate password. - * - * @return the password value. - */ - public String password() { - return this.password; - } - - /** - * Set the password property: Certificate password. - * - * @param password the password value to set. - * @return the CertificatePatchResource object itself. - */ - public CertificatePatchResource withPassword(String password) { - this.password = password; - return this; - } - /** * Get the thumbprint property: Certificate thumbprint. * diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ClientRegistration.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ClientRegistration.java index 77000a353a86..5ac1f20052d4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ClientRegistration.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ClientRegistration.java @@ -10,26 +10,26 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The ClientRegistration model. */ +/** The configuration settings of the app registration for providers that have client ids and client secrets. */ @JsonFlatten @Fluent public class ClientRegistration extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(ClientRegistration.class); /* - * The clientId property. + * The Client ID of the app used for login. */ @JsonProperty(value = "properties.clientId") private String clientId; /* - * The clientSecretSettingName property. + * The app setting name that contains the client secret. */ @JsonProperty(value = "properties.clientSecretSettingName") private String clientSecretSettingName; /** - * Get the clientId property: The clientId property. + * Get the clientId property: The Client ID of the app used for login. * * @return the clientId value. */ @@ -38,7 +38,7 @@ public String clientId() { } /** - * Set the clientId property: The clientId property. + * Set the clientId property: The Client ID of the app used for login. * * @param clientId the clientId value to set. * @return the ClientRegistration object itself. @@ -49,7 +49,7 @@ public ClientRegistration withClientId(String clientId) { } /** - * Get the clientSecretSettingName property: The clientSecretSettingName property. + * Get the clientSecretSettingName property: The app setting name that contains the client secret. * * @return the clientSecretSettingName value. */ @@ -58,7 +58,7 @@ public String clientSecretSettingName() { } /** - * Set the clientSecretSettingName property: The clientSecretSettingName property. + * Set the clientSecretSettingName property: The app setting name that contains the client secret. * * @param clientSecretSettingName the clientSecretSettingName value to set. * @return the ClientRegistration object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CookieExpiration.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CookieExpiration.java index 90ae69ef29e6..d070f348539c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CookieExpiration.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CookieExpiration.java @@ -10,26 +10,27 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The CookieExpiration model. */ +/** The configuration settings of the session cookie's expiration. */ @JsonFlatten @Fluent public class CookieExpiration extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(CookieExpiration.class); /* - * The convention property. + * The convention used when determining the session cookie's expiration. */ @JsonProperty(value = "properties.convention") private CookieExpirationConvention convention; /* - * The timeToExpiration property. + * The time after the request is made when the session cookie should + * expire. */ @JsonProperty(value = "properties.timeToExpiration") private String timeToExpiration; /** - * Get the convention property: The convention property. + * Get the convention property: The convention used when determining the session cookie's expiration. * * @return the convention value. */ @@ -38,7 +39,7 @@ public CookieExpirationConvention convention() { } /** - * Set the convention property: The convention property. + * Set the convention property: The convention used when determining the session cookie's expiration. * * @param convention the convention value to set. * @return the CookieExpiration object itself. @@ -49,7 +50,7 @@ public CookieExpiration withConvention(CookieExpirationConvention convention) { } /** - * Get the timeToExpiration property: The timeToExpiration property. + * Get the timeToExpiration property: The time after the request is made when the session cookie should expire. * * @return the timeToExpiration value. */ @@ -58,7 +59,7 @@ public String timeToExpiration() { } /** - * Set the timeToExpiration property: The timeToExpiration property. + * Set the timeToExpiration property: The time after the request is made when the session cookie should expire. * * @param timeToExpiration the timeToExpiration value to set. * @return the CookieExpiration object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CustomOpenIdConnectProvider.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CustomOpenIdConnectProvider.java index 334da4dc71d6..42ccee7e3a01 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CustomOpenIdConnectProvider.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CustomOpenIdConnectProvider.java @@ -10,32 +10,36 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The CustomOpenIdConnectProvider model. */ +/** The configuration settings of the custom Open ID Connect provider. */ @JsonFlatten @Fluent public class CustomOpenIdConnectProvider extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(CustomOpenIdConnectProvider.class); /* - * The enabled property. + * false if the custom Open ID provider provider should not be + * enabled; otherwise, true. */ @JsonProperty(value = "properties.enabled") private Boolean enabled; /* - * The registration property. + * The configuration settings of the app registration for the custom Open + * ID Connect provider. */ @JsonProperty(value = "properties.registration") private OpenIdConnectRegistration registration; /* - * The login property. + * The configuration settings of the login flow of the custom Open ID + * Connect provider. */ @JsonProperty(value = "properties.login") private OpenIdConnectLogin login; /** - * Get the enabled property: The enabled property. + * Get the enabled property: <code>false</code> if the custom Open ID provider provider should not be + * enabled; otherwise, <code>true</code>. * * @return the enabled value. */ @@ -44,7 +48,8 @@ public Boolean enabled() { } /** - * Set the enabled property: The enabled property. + * Set the enabled property: <code>false</code> if the custom Open ID provider provider should not be + * enabled; otherwise, <code>true</code>. * * @param enabled the enabled value to set. * @return the CustomOpenIdConnectProvider object itself. @@ -55,7 +60,8 @@ public CustomOpenIdConnectProvider withEnabled(Boolean enabled) { } /** - * Get the registration property: The registration property. + * Get the registration property: The configuration settings of the app registration for the custom Open ID Connect + * provider. * * @return the registration value. */ @@ -64,7 +70,8 @@ public OpenIdConnectRegistration registration() { } /** - * Set the registration property: The registration property. + * Set the registration property: The configuration settings of the app registration for the custom Open ID Connect + * provider. * * @param registration the registration value to set. * @return the CustomOpenIdConnectProvider object itself. @@ -75,7 +82,7 @@ public CustomOpenIdConnectProvider withRegistration(OpenIdConnectRegistration re } /** - * Get the login property: The login property. + * Get the login property: The configuration settings of the login flow of the custom Open ID Connect provider. * * @return the login value. */ @@ -84,7 +91,7 @@ public OpenIdConnectLogin login() { } /** - * Set the login property: The login property. + * Set the login property: The configuration settings of the login flow of the custom Open ID Connect provider. * * @param login the login value to set. * @return the CustomOpenIdConnectProvider object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Facebook.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Facebook.java index 5439831acfb2..71fe1452cca2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Facebook.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Facebook.java @@ -10,38 +10,41 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The Facebook model. */ +/** The configuration settings of the Facebook provider. */ @JsonFlatten @Fluent public class Facebook extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(Facebook.class); /* - * The enabled property. + * false if the Facebook provider should not be enabled + * despite the set registration; otherwise, true. */ @JsonProperty(value = "properties.enabled") private Boolean enabled; /* - * The registration property. + * The configuration settings of the app registration for the Facebook + * provider. */ @JsonProperty(value = "properties.registration") private AppRegistration registration; /* - * The graphApiVersion property. + * The version of the Facebook api to be used while logging in. */ @JsonProperty(value = "properties.graphApiVersion") private String graphApiVersion; /* - * The login property. + * The configuration settings of the login flow. */ @JsonProperty(value = "properties.login") private LoginScopes login; /** - * Get the enabled property: The enabled property. + * Get the enabled property: <code>false</code> if the Facebook provider should not be enabled despite + * the set registration; otherwise, <code>true</code>. * * @return the enabled value. */ @@ -50,7 +53,8 @@ public Boolean enabled() { } /** - * Set the enabled property: The enabled property. + * Set the enabled property: <code>false</code> if the Facebook provider should not be enabled despite + * the set registration; otherwise, <code>true</code>. * * @param enabled the enabled value to set. * @return the Facebook object itself. @@ -61,7 +65,7 @@ public Facebook withEnabled(Boolean enabled) { } /** - * Get the registration property: The registration property. + * Get the registration property: The configuration settings of the app registration for the Facebook provider. * * @return the registration value. */ @@ -70,7 +74,7 @@ public AppRegistration registration() { } /** - * Set the registration property: The registration property. + * Set the registration property: The configuration settings of the app registration for the Facebook provider. * * @param registration the registration value to set. * @return the Facebook object itself. @@ -81,7 +85,7 @@ public Facebook withRegistration(AppRegistration registration) { } /** - * Get the graphApiVersion property: The graphApiVersion property. + * Get the graphApiVersion property: The version of the Facebook api to be used while logging in. * * @return the graphApiVersion value. */ @@ -90,7 +94,7 @@ public String graphApiVersion() { } /** - * Set the graphApiVersion property: The graphApiVersion property. + * Set the graphApiVersion property: The version of the Facebook api to be used while logging in. * * @param graphApiVersion the graphApiVersion value to set. * @return the Facebook object itself. @@ -101,7 +105,7 @@ public Facebook withGraphApiVersion(String graphApiVersion) { } /** - * Get the login property: The login property. + * Get the login property: The configuration settings of the login flow. * * @return the login value. */ @@ -110,7 +114,7 @@ public LoginScopes login() { } /** - * Set the login property: The login property. + * Set the login property: The configuration settings of the login flow. * * @param login the login value to set. * @return the Facebook object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/FileSystemTokenStore.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/FileSystemTokenStore.java index d5742d8c441a..f347be6faf09 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/FileSystemTokenStore.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/FileSystemTokenStore.java @@ -10,20 +10,20 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The FileSystemTokenStore model. */ +/** The configuration settings of the storage of the tokens if a file system is used. */ @JsonFlatten @Fluent public class FileSystemTokenStore extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(FileSystemTokenStore.class); /* - * The directory property. + * The directory in which the tokens will be stored. */ @JsonProperty(value = "properties.directory") private String directory; /** - * Get the directory property: The directory property. + * Get the directory property: The directory in which the tokens will be stored. * * @return the directory value. */ @@ -32,7 +32,7 @@ public String directory() { } /** - * Set the directory property: The directory property. + * Set the directory property: The directory in which the tokens will be stored. * * @param directory the directory value to set. * @return the FileSystemTokenStore object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ForwardProxy.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ForwardProxy.java index aa32741e6319..bc26fb193b40 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ForwardProxy.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ForwardProxy.java @@ -10,32 +10,32 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The ForwardProxy model. */ +/** The configuration settings of a forward proxy used to make the requests. */ @JsonFlatten @Fluent public class ForwardProxy extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(ForwardProxy.class); /* - * The convention property. + * The convention used to determine the url of the request made. */ @JsonProperty(value = "properties.convention") private ForwardProxyConvention convention; /* - * The customHostHeaderName property. + * The name of the header containing the host of the request. */ @JsonProperty(value = "properties.customHostHeaderName") private String customHostHeaderName; /* - * The customProtoHeaderName property. + * The name of the header containing the scheme of the request. */ @JsonProperty(value = "properties.customProtoHeaderName") private String customProtoHeaderName; /** - * Get the convention property: The convention property. + * Get the convention property: The convention used to determine the url of the request made. * * @return the convention value. */ @@ -44,7 +44,7 @@ public ForwardProxyConvention convention() { } /** - * Set the convention property: The convention property. + * Set the convention property: The convention used to determine the url of the request made. * * @param convention the convention value to set. * @return the ForwardProxy object itself. @@ -55,7 +55,7 @@ public ForwardProxy withConvention(ForwardProxyConvention convention) { } /** - * Get the customHostHeaderName property: The customHostHeaderName property. + * Get the customHostHeaderName property: The name of the header containing the host of the request. * * @return the customHostHeaderName value. */ @@ -64,7 +64,7 @@ public String customHostHeaderName() { } /** - * Set the customHostHeaderName property: The customHostHeaderName property. + * Set the customHostHeaderName property: The name of the header containing the host of the request. * * @param customHostHeaderName the customHostHeaderName value to set. * @return the ForwardProxy object itself. @@ -75,7 +75,7 @@ public ForwardProxy withCustomHostHeaderName(String customHostHeaderName) { } /** - * Get the customProtoHeaderName property: The customProtoHeaderName property. + * Get the customProtoHeaderName property: The name of the header containing the scheme of the request. * * @return the customProtoHeaderName value. */ @@ -84,7 +84,7 @@ public String customProtoHeaderName() { } /** - * Set the customProtoHeaderName property: The customProtoHeaderName property. + * Set the customProtoHeaderName property: The name of the header containing the scheme of the request. * * @param customProtoHeaderName the customProtoHeaderName value to set. * @return the ForwardProxy object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/GitHub.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/GitHub.java index 6e1d0d68b5b2..3b2dbd68fc22 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/GitHub.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/GitHub.java @@ -10,32 +10,35 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The GitHub model. */ +/** The configuration settings of the GitHub provider. */ @JsonFlatten @Fluent public class GitHub extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(GitHub.class); /* - * The enabled property. + * false if the GitHub provider should not be enabled despite + * the set registration; otherwise, true. */ @JsonProperty(value = "properties.enabled") private Boolean enabled; /* - * The registration property. + * The configuration settings of the app registration for the GitHub + * provider. */ @JsonProperty(value = "properties.registration") private ClientRegistration registration; /* - * The login property. + * The configuration settings of the login flow. */ @JsonProperty(value = "properties.login") private LoginScopes login; /** - * Get the enabled property: The enabled property. + * Get the enabled property: <code>false</code> if the GitHub provider should not be enabled despite the + * set registration; otherwise, <code>true</code>. * * @return the enabled value. */ @@ -44,7 +47,8 @@ public Boolean enabled() { } /** - * Set the enabled property: The enabled property. + * Set the enabled property: <code>false</code> if the GitHub provider should not be enabled despite the + * set registration; otherwise, <code>true</code>. * * @param enabled the enabled value to set. * @return the GitHub object itself. @@ -55,7 +59,7 @@ public GitHub withEnabled(Boolean enabled) { } /** - * Get the registration property: The registration property. + * Get the registration property: The configuration settings of the app registration for the GitHub provider. * * @return the registration value. */ @@ -64,7 +68,7 @@ public ClientRegistration registration() { } /** - * Set the registration property: The registration property. + * Set the registration property: The configuration settings of the app registration for the GitHub provider. * * @param registration the registration value to set. * @return the GitHub object itself. @@ -75,7 +79,7 @@ public GitHub withRegistration(ClientRegistration registration) { } /** - * Get the login property: The login property. + * Get the login property: The configuration settings of the login flow. * * @return the login value. */ @@ -84,7 +88,7 @@ public LoginScopes login() { } /** - * Set the login property: The login property. + * Set the login property: The configuration settings of the login flow. * * @param login the login value to set. * @return the GitHub object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/GlobalValidation.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/GlobalValidation.java index 59a060b605a1..4a120265c057 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/GlobalValidation.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/GlobalValidation.java @@ -11,38 +11,49 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The GlobalValidation model. */ +/** + * The configuration settings that determines the validation flow of users using App Service + * Authentication/Authorization. + */ @JsonFlatten @Fluent public class GlobalValidation extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(GlobalValidation.class); /* - * The requireAuthentication property. + * true if the authentication flow is required any request is + * made; otherwise, false. */ @JsonProperty(value = "properties.requireAuthentication") private Boolean requireAuthentication; /* - * The unauthenticatedClientAction property. + * The action to take when an unauthenticated client attempts to access the + * app. */ @JsonProperty(value = "properties.unauthenticatedClientAction") private UnauthenticatedClientActionV2 unauthenticatedClientAction; /* - * The redirectToProvider property. + * The default authentication provider to use when multiple providers are + * configured. + * This setting is only needed if multiple providers are configured and the + * unauthenticated client + * action is set to "RedirectToLoginPage". */ @JsonProperty(value = "properties.redirectToProvider") private String redirectToProvider; /* - * The excludedPaths property. + * The paths for which unauthenticated flow would not be redirected to the + * login page. */ @JsonProperty(value = "properties.excludedPaths") private List excludedPaths; /** - * Get the requireAuthentication property: The requireAuthentication property. + * Get the requireAuthentication property: <code>true</code> if the authentication flow is required any + * request is made; otherwise, <code>false</code>. * * @return the requireAuthentication value. */ @@ -51,7 +62,8 @@ public Boolean requireAuthentication() { } /** - * Set the requireAuthentication property: The requireAuthentication property. + * Set the requireAuthentication property: <code>true</code> if the authentication flow is required any + * request is made; otherwise, <code>false</code>. * * @param requireAuthentication the requireAuthentication value to set. * @return the GlobalValidation object itself. @@ -62,7 +74,8 @@ public GlobalValidation withRequireAuthentication(Boolean requireAuthentication) } /** - * Get the unauthenticatedClientAction property: The unauthenticatedClientAction property. + * Get the unauthenticatedClientAction property: The action to take when an unauthenticated client attempts to + * access the app. * * @return the unauthenticatedClientAction value. */ @@ -71,7 +84,8 @@ public UnauthenticatedClientActionV2 unauthenticatedClientAction() { } /** - * Set the unauthenticatedClientAction property: The unauthenticatedClientAction property. + * Set the unauthenticatedClientAction property: The action to take when an unauthenticated client attempts to + * access the app. * * @param unauthenticatedClientAction the unauthenticatedClientAction value to set. * @return the GlobalValidation object itself. @@ -82,7 +96,9 @@ public GlobalValidation withUnauthenticatedClientAction(UnauthenticatedClientAct } /** - * Get the redirectToProvider property: The redirectToProvider property. + * Get the redirectToProvider property: The default authentication provider to use when multiple providers are + * configured. This setting is only needed if multiple providers are configured and the unauthenticated client + * action is set to "RedirectToLoginPage". * * @return the redirectToProvider value. */ @@ -91,7 +107,9 @@ public String redirectToProvider() { } /** - * Set the redirectToProvider property: The redirectToProvider property. + * Set the redirectToProvider property: The default authentication provider to use when multiple providers are + * configured. This setting is only needed if multiple providers are configured and the unauthenticated client + * action is set to "RedirectToLoginPage". * * @param redirectToProvider the redirectToProvider value to set. * @return the GlobalValidation object itself. @@ -102,7 +120,8 @@ public GlobalValidation withRedirectToProvider(String redirectToProvider) { } /** - * Get the excludedPaths property: The excludedPaths property. + * Get the excludedPaths property: The paths for which unauthenticated flow would not be redirected to the login + * page. * * @return the excludedPaths value. */ @@ -111,7 +130,8 @@ public List excludedPaths() { } /** - * Set the excludedPaths property: The excludedPaths property. + * Set the excludedPaths property: The paths for which unauthenticated flow would not be redirected to the login + * page. * * @param excludedPaths the excludedPaths value to set. * @return the GlobalValidation object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Google.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Google.java index 815776fd53ed..1ee75afe0621 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Google.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Google.java @@ -10,38 +10,42 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The Google model. */ +/** The configuration settings of the Google provider. */ @JsonFlatten @Fluent public class Google extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(Google.class); /* - * The enabled property. + * false if the Google provider should not be enabled despite + * the set registration; otherwise, true. */ @JsonProperty(value = "properties.enabled") private Boolean enabled; /* - * The registration property. + * The configuration settings of the app registration for the Google + * provider. */ @JsonProperty(value = "properties.registration") private ClientRegistration registration; /* - * The login property. + * The configuration settings of the login flow. */ @JsonProperty(value = "properties.login") private LoginScopes login; /* - * The validation property. + * The configuration settings of the Azure Active Directory token + * validation flow. */ @JsonProperty(value = "properties.validation") private AllowedAudiencesValidation validation; /** - * Get the enabled property: The enabled property. + * Get the enabled property: <code>false</code> if the Google provider should not be enabled despite the + * set registration; otherwise, <code>true</code>. * * @return the enabled value. */ @@ -50,7 +54,8 @@ public Boolean enabled() { } /** - * Set the enabled property: The enabled property. + * Set the enabled property: <code>false</code> if the Google provider should not be enabled despite the + * set registration; otherwise, <code>true</code>. * * @param enabled the enabled value to set. * @return the Google object itself. @@ -61,7 +66,7 @@ public Google withEnabled(Boolean enabled) { } /** - * Get the registration property: The registration property. + * Get the registration property: The configuration settings of the app registration for the Google provider. * * @return the registration value. */ @@ -70,7 +75,7 @@ public ClientRegistration registration() { } /** - * Set the registration property: The registration property. + * Set the registration property: The configuration settings of the app registration for the Google provider. * * @param registration the registration value to set. * @return the Google object itself. @@ -81,7 +86,7 @@ public Google withRegistration(ClientRegistration registration) { } /** - * Get the login property: The login property. + * Get the login property: The configuration settings of the login flow. * * @return the login value. */ @@ -90,7 +95,7 @@ public LoginScopes login() { } /** - * Set the login property: The login property. + * Set the login property: The configuration settings of the login flow. * * @param login the login value to set. * @return the Google object itself. @@ -101,7 +106,7 @@ public Google withLogin(LoginScopes login) { } /** - * Get the validation property: The validation property. + * Get the validation property: The configuration settings of the Azure Active Directory token validation flow. * * @return the validation value. */ @@ -110,7 +115,7 @@ public AllowedAudiencesValidation validation() { } /** - * Set the validation property: The validation property. + * Set the validation property: The configuration settings of the Azure Active Directory token validation flow. * * @param validation the validation value to set. * @return the Google object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/HttpSettings.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/HttpSettings.java index 37edeef669c3..5435e9e1a91f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/HttpSettings.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/HttpSettings.java @@ -10,32 +10,37 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The HttpSettings model. */ +/** + * The configuration settings of the HTTP requests for authentication and authorization requests made against App + * Service Authentication/Authorization. + */ @JsonFlatten @Fluent public class HttpSettings extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(HttpSettings.class); /* - * The requireHttps property. + * false if the authentication/authorization responses not + * having the HTTPS scheme are permissible; otherwise, true. */ @JsonProperty(value = "properties.requireHttps") private Boolean requireHttps; /* - * The routes property. + * The configuration settings of the paths HTTP requests. */ @JsonProperty(value = "properties.routes") private HttpSettingsRoutes routes; /* - * The forwardProxy property. + * The configuration settings of a forward proxy used to make the requests. */ @JsonProperty(value = "properties.forwardProxy") private ForwardProxy forwardProxy; /** - * Get the requireHttps property: The requireHttps property. + * Get the requireHttps property: <code>false</code> if the authentication/authorization responses not + * having the HTTPS scheme are permissible; otherwise, <code>true</code>. * * @return the requireHttps value. */ @@ -44,7 +49,8 @@ public Boolean requireHttps() { } /** - * Set the requireHttps property: The requireHttps property. + * Set the requireHttps property: <code>false</code> if the authentication/authorization responses not + * having the HTTPS scheme are permissible; otherwise, <code>true</code>. * * @param requireHttps the requireHttps value to set. * @return the HttpSettings object itself. @@ -55,7 +61,7 @@ public HttpSettings withRequireHttps(Boolean requireHttps) { } /** - * Get the routes property: The routes property. + * Get the routes property: The configuration settings of the paths HTTP requests. * * @return the routes value. */ @@ -64,7 +70,7 @@ public HttpSettingsRoutes routes() { } /** - * Set the routes property: The routes property. + * Set the routes property: The configuration settings of the paths HTTP requests. * * @param routes the routes value to set. * @return the HttpSettings object itself. @@ -75,7 +81,7 @@ public HttpSettings withRoutes(HttpSettingsRoutes routes) { } /** - * Get the forwardProxy property: The forwardProxy property. + * Get the forwardProxy property: The configuration settings of a forward proxy used to make the requests. * * @return the forwardProxy value. */ @@ -84,7 +90,7 @@ public ForwardProxy forwardProxy() { } /** - * Set the forwardProxy property: The forwardProxy property. + * Set the forwardProxy property: The configuration settings of a forward proxy used to make the requests. * * @param forwardProxy the forwardProxy value to set. * @return the HttpSettings object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/HttpSettingsRoutes.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/HttpSettingsRoutes.java index 0f708a3748d0..384462a4d4df 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/HttpSettingsRoutes.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/HttpSettingsRoutes.java @@ -10,20 +10,21 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The HttpSettingsRoutes model. */ +/** The configuration settings of the paths HTTP requests. */ @JsonFlatten @Fluent public class HttpSettingsRoutes extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(HttpSettingsRoutes.class); /* - * The apiPrefix property. + * The prefix that should precede all the authentication/authorization + * paths. */ @JsonProperty(value = "properties.apiPrefix") private String apiPrefix; /** - * Get the apiPrefix property: The apiPrefix property. + * Get the apiPrefix property: The prefix that should precede all the authentication/authorization paths. * * @return the apiPrefix value. */ @@ -32,7 +33,7 @@ public String apiPrefix() { } /** - * Set the apiPrefix property: The apiPrefix property. + * Set the apiPrefix property: The prefix that should precede all the authentication/authorization paths. * * @param apiPrefix the apiPrefix value to set. * @return the HttpSettingsRoutes object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/IdentityProviders.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/IdentityProviders.java index 67f8d0693668..4b08c90bfdff 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/IdentityProviders.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/IdentityProviders.java @@ -11,68 +11,73 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** The IdentityProviders model. */ +/** + * The configuration settings of each of the identity providers used to configure App Service + * Authentication/Authorization. + */ @JsonFlatten @Fluent public class IdentityProviders extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(IdentityProviders.class); /* - * The azureActiveDirectory property. + * The configuration settings of the Azure Active directory provider. */ @JsonProperty(value = "properties.azureActiveDirectory") private AzureActiveDirectory azureActiveDirectory; /* - * The facebook property. + * The configuration settings of the Facebook provider. */ @JsonProperty(value = "properties.facebook") private Facebook facebook; /* - * The gitHub property. + * The configuration settings of the GitHub provider. */ @JsonProperty(value = "properties.gitHub") private GitHub gitHub; /* - * The google property. + * The configuration settings of the Google provider. */ @JsonProperty(value = "properties.google") private Google google; /* - * The legacyMicrosoftAccount property. + * The configuration settings of the Twitter provider. */ - @JsonProperty(value = "properties.legacyMicrosoftAccount") - private LegacyMicrosoftAccount legacyMicrosoftAccount; + @JsonProperty(value = "properties.twitter") + private Twitter twitter; /* - * The twitter property. + * The map of the name of the alias of each custom Open ID Connect provider + * to the + * configuration settings of the custom Open ID Connect provider. */ - @JsonProperty(value = "properties.twitter") - private Twitter twitter; + @JsonProperty(value = "properties.customOpenIdConnectProviders") + private Map customOpenIdConnectProviders; + + /* + * The configuration settings of the legacy Microsoft Account provider. + */ + @JsonProperty(value = "properties.legacyMicrosoftAccount") + private LegacyMicrosoftAccount legacyMicrosoftAccount; /* - * The apple property. + * The configuration settings of the Apple provider. */ @JsonProperty(value = "properties.apple") private Apple apple; /* - * The azureStaticWebApps property. + * The configuration settings of the Azure Static Web Apps provider. */ @JsonProperty(value = "properties.azureStaticWebApps") private AzureStaticWebApps azureStaticWebApps; - /* - * Dictionary of - */ - @JsonProperty(value = "properties.customOpenIdConnectProviders") - private Map customOpenIdConnectProviders; - /** - * Get the azureActiveDirectory property: The azureActiveDirectory property. + * Get the azureActiveDirectory property: The configuration settings of the Azure Active directory provider. * * @return the azureActiveDirectory value. */ @@ -81,7 +86,7 @@ public AzureActiveDirectory azureActiveDirectory() { } /** - * Set the azureActiveDirectory property: The azureActiveDirectory property. + * Set the azureActiveDirectory property: The configuration settings of the Azure Active directory provider. * * @param azureActiveDirectory the azureActiveDirectory value to set. * @return the IdentityProviders object itself. @@ -92,7 +97,7 @@ public IdentityProviders withAzureActiveDirectory(AzureActiveDirectory azureActi } /** - * Get the facebook property: The facebook property. + * Get the facebook property: The configuration settings of the Facebook provider. * * @return the facebook value. */ @@ -101,7 +106,7 @@ public Facebook facebook() { } /** - * Set the facebook property: The facebook property. + * Set the facebook property: The configuration settings of the Facebook provider. * * @param facebook the facebook value to set. * @return the IdentityProviders object itself. @@ -112,7 +117,7 @@ public IdentityProviders withFacebook(Facebook facebook) { } /** - * Get the gitHub property: The gitHub property. + * Get the gitHub property: The configuration settings of the GitHub provider. * * @return the gitHub value. */ @@ -121,7 +126,7 @@ public GitHub gitHub() { } /** - * Set the gitHub property: The gitHub property. + * Set the gitHub property: The configuration settings of the GitHub provider. * * @param gitHub the gitHub value to set. * @return the IdentityProviders object itself. @@ -132,7 +137,7 @@ public IdentityProviders withGitHub(GitHub gitHub) { } /** - * Get the google property: The google property. + * Get the google property: The configuration settings of the Google provider. * * @return the google value. */ @@ -141,7 +146,7 @@ public Google google() { } /** - * Set the google property: The google property. + * Set the google property: The configuration settings of the Google provider. * * @param google the google value to set. * @return the IdentityProviders object itself. @@ -152,103 +157,105 @@ public IdentityProviders withGoogle(Google google) { } /** - * Get the legacyMicrosoftAccount property: The legacyMicrosoftAccount property. + * Get the twitter property: The configuration settings of the Twitter provider. * - * @return the legacyMicrosoftAccount value. + * @return the twitter value. */ - public LegacyMicrosoftAccount legacyMicrosoftAccount() { - return this.legacyMicrosoftAccount; + public Twitter twitter() { + return this.twitter; } /** - * Set the legacyMicrosoftAccount property: The legacyMicrosoftAccount property. + * Set the twitter property: The configuration settings of the Twitter provider. * - * @param legacyMicrosoftAccount the legacyMicrosoftAccount value to set. + * @param twitter the twitter value to set. * @return the IdentityProviders object itself. */ - public IdentityProviders withLegacyMicrosoftAccount(LegacyMicrosoftAccount legacyMicrosoftAccount) { - this.legacyMicrosoftAccount = legacyMicrosoftAccount; + public IdentityProviders withTwitter(Twitter twitter) { + this.twitter = twitter; return this; } /** - * Get the twitter property: The twitter property. + * Get the customOpenIdConnectProviders property: The map of the name of the alias of each custom Open ID Connect + * provider to the configuration settings of the custom Open ID Connect provider. * - * @return the twitter value. + * @return the customOpenIdConnectProviders value. */ - public Twitter twitter() { - return this.twitter; + public Map customOpenIdConnectProviders() { + return this.customOpenIdConnectProviders; } /** - * Set the twitter property: The twitter property. + * Set the customOpenIdConnectProviders property: The map of the name of the alias of each custom Open ID Connect + * provider to the configuration settings of the custom Open ID Connect provider. * - * @param twitter the twitter value to set. + * @param customOpenIdConnectProviders the customOpenIdConnectProviders value to set. * @return the IdentityProviders object itself. */ - public IdentityProviders withTwitter(Twitter twitter) { - this.twitter = twitter; + public IdentityProviders withCustomOpenIdConnectProviders( + Map customOpenIdConnectProviders) { + this.customOpenIdConnectProviders = customOpenIdConnectProviders; return this; } /** - * Get the apple property: The apple property. + * Get the legacyMicrosoftAccount property: The configuration settings of the legacy Microsoft Account provider. * - * @return the apple value. + * @return the legacyMicrosoftAccount value. */ - public Apple apple() { - return this.apple; + public LegacyMicrosoftAccount legacyMicrosoftAccount() { + return this.legacyMicrosoftAccount; } /** - * Set the apple property: The apple property. + * Set the legacyMicrosoftAccount property: The configuration settings of the legacy Microsoft Account provider. * - * @param apple the apple value to set. + * @param legacyMicrosoftAccount the legacyMicrosoftAccount value to set. * @return the IdentityProviders object itself. */ - public IdentityProviders withApple(Apple apple) { - this.apple = apple; + public IdentityProviders withLegacyMicrosoftAccount(LegacyMicrosoftAccount legacyMicrosoftAccount) { + this.legacyMicrosoftAccount = legacyMicrosoftAccount; return this; } /** - * Get the azureStaticWebApps property: The azureStaticWebApps property. + * Get the apple property: The configuration settings of the Apple provider. * - * @return the azureStaticWebApps value. + * @return the apple value. */ - public AzureStaticWebApps azureStaticWebApps() { - return this.azureStaticWebApps; + public Apple apple() { + return this.apple; } /** - * Set the azureStaticWebApps property: The azureStaticWebApps property. + * Set the apple property: The configuration settings of the Apple provider. * - * @param azureStaticWebApps the azureStaticWebApps value to set. + * @param apple the apple value to set. * @return the IdentityProviders object itself. */ - public IdentityProviders withAzureStaticWebApps(AzureStaticWebApps azureStaticWebApps) { - this.azureStaticWebApps = azureStaticWebApps; + public IdentityProviders withApple(Apple apple) { + this.apple = apple; return this; } /** - * Get the customOpenIdConnectProviders property: Dictionary of <CustomOpenIdConnectProvider>. + * Get the azureStaticWebApps property: The configuration settings of the Azure Static Web Apps provider. * - * @return the customOpenIdConnectProviders value. + * @return the azureStaticWebApps value. */ - public Map customOpenIdConnectProviders() { - return this.customOpenIdConnectProviders; + public AzureStaticWebApps azureStaticWebApps() { + return this.azureStaticWebApps; } /** - * Set the customOpenIdConnectProviders property: Dictionary of <CustomOpenIdConnectProvider>. + * Set the azureStaticWebApps property: The configuration settings of the Azure Static Web Apps provider. * - * @param customOpenIdConnectProviders the customOpenIdConnectProviders value to set. + * @param azureStaticWebApps the azureStaticWebApps value to set. * @return the IdentityProviders object itself. */ - public IdentityProviders withCustomOpenIdConnectProviders( - Map customOpenIdConnectProviders) { - this.customOpenIdConnectProviders = customOpenIdConnectProviders; + public IdentityProviders withAzureStaticWebApps(AzureStaticWebApps azureStaticWebApps) { + this.azureStaticWebApps = azureStaticWebApps; return this; } @@ -279,18 +286,9 @@ public void validate() { if (google() != null) { google().validate(); } - if (legacyMicrosoftAccount() != null) { - legacyMicrosoftAccount().validate(); - } if (twitter() != null) { twitter().validate(); } - if (apple() != null) { - apple().validate(); - } - if (azureStaticWebApps() != null) { - azureStaticWebApps().validate(); - } if (customOpenIdConnectProviders() != null) { customOpenIdConnectProviders() .values() @@ -301,5 +299,14 @@ public void validate() { } }); } + if (legacyMicrosoftAccount() != null) { + legacyMicrosoftAccount().validate(); + } + if (apple() != null) { + apple().validate(); + } + if (azureStaticWebApps() != null) { + azureStaticWebApps().validate(); + } } } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/JwtClaimChecks.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/JwtClaimChecks.java index 68c418a3659a..c6589fd80233 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/JwtClaimChecks.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/JwtClaimChecks.java @@ -11,26 +11,26 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The JwtClaimChecks model. */ +/** The configuration settings of the checks that should be made while validating the JWT Claims. */ @JsonFlatten @Fluent public class JwtClaimChecks extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(JwtClaimChecks.class); /* - * The allowedGroups property. + * The list of the allowed groups. */ @JsonProperty(value = "properties.allowedGroups") private List allowedGroups; /* - * The allowedClientApplications property. + * The list of the allowed client applications. */ @JsonProperty(value = "properties.allowedClientApplications") private List allowedClientApplications; /** - * Get the allowedGroups property: The allowedGroups property. + * Get the allowedGroups property: The list of the allowed groups. * * @return the allowedGroups value. */ @@ -39,7 +39,7 @@ public List allowedGroups() { } /** - * Set the allowedGroups property: The allowedGroups property. + * Set the allowedGroups property: The list of the allowed groups. * * @param allowedGroups the allowedGroups value to set. * @return the JwtClaimChecks object itself. @@ -50,7 +50,7 @@ public JwtClaimChecks withAllowedGroups(List allowedGroups) { } /** - * Get the allowedClientApplications property: The allowedClientApplications property. + * Get the allowedClientApplications property: The list of the allowed client applications. * * @return the allowedClientApplications value. */ @@ -59,7 +59,7 @@ public List allowedClientApplications() { } /** - * Set the allowedClientApplications property: The allowedClientApplications property. + * Set the allowedClientApplications property: The list of the allowed client applications. * * @param allowedClientApplications the allowedClientApplications value to set. * @return the JwtClaimChecks object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/LegacyMicrosoftAccount.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/LegacyMicrosoftAccount.java index 09279e26de04..07891b0d4b31 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/LegacyMicrosoftAccount.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/LegacyMicrosoftAccount.java @@ -10,38 +10,42 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The LegacyMicrosoftAccount model. */ +/** The configuration settings of the legacy Microsoft Account provider. */ @JsonFlatten @Fluent public class LegacyMicrosoftAccount extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(LegacyMicrosoftAccount.class); /* - * The enabled property. + * false if the legacy Microsoft Account provider should not + * be enabled despite the set registration; otherwise, true. */ @JsonProperty(value = "properties.enabled") private Boolean enabled; /* - * The registration property. + * The configuration settings of the app registration for the legacy + * Microsoft Account provider. */ @JsonProperty(value = "properties.registration") private ClientRegistration registration; /* - * The login property. + * The configuration settings of the login flow. */ @JsonProperty(value = "properties.login") private LoginScopes login; /* - * The validation property. + * The configuration settings of the legacy Microsoft Account provider + * token validation flow. */ @JsonProperty(value = "properties.validation") private AllowedAudiencesValidation validation; /** - * Get the enabled property: The enabled property. + * Get the enabled property: <code>false</code> if the legacy Microsoft Account provider should not be + * enabled despite the set registration; otherwise, <code>true</code>. * * @return the enabled value. */ @@ -50,7 +54,8 @@ public Boolean enabled() { } /** - * Set the enabled property: The enabled property. + * Set the enabled property: <code>false</code> if the legacy Microsoft Account provider should not be + * enabled despite the set registration; otherwise, <code>true</code>. * * @param enabled the enabled value to set. * @return the LegacyMicrosoftAccount object itself. @@ -61,7 +66,8 @@ public LegacyMicrosoftAccount withEnabled(Boolean enabled) { } /** - * Get the registration property: The registration property. + * Get the registration property: The configuration settings of the app registration for the legacy Microsoft + * Account provider. * * @return the registration value. */ @@ -70,7 +76,8 @@ public ClientRegistration registration() { } /** - * Set the registration property: The registration property. + * Set the registration property: The configuration settings of the app registration for the legacy Microsoft + * Account provider. * * @param registration the registration value to set. * @return the LegacyMicrosoftAccount object itself. @@ -81,7 +88,7 @@ public LegacyMicrosoftAccount withRegistration(ClientRegistration registration) } /** - * Get the login property: The login property. + * Get the login property: The configuration settings of the login flow. * * @return the login value. */ @@ -90,7 +97,7 @@ public LoginScopes login() { } /** - * Set the login property: The login property. + * Set the login property: The configuration settings of the login flow. * * @param login the login value to set. * @return the LegacyMicrosoftAccount object itself. @@ -101,7 +108,8 @@ public LegacyMicrosoftAccount withLogin(LoginScopes login) { } /** - * Get the validation property: The validation property. + * Get the validation property: The configuration settings of the legacy Microsoft Account provider token validation + * flow. * * @return the validation value. */ @@ -110,7 +118,8 @@ public AllowedAudiencesValidation validation() { } /** - * Set the validation property: The validation property. + * Set the validation property: The configuration settings of the legacy Microsoft Account provider token validation + * flow. * * @param validation the validation value to set. * @return the LegacyMicrosoftAccount object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Login.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Login.java index 9bfe7dcba1e5..6c128d210721 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Login.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Login.java @@ -11,50 +11,56 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The Login model. */ +/** The configuration settings of the login flow of users using App Service Authentication/Authorization. */ @JsonFlatten @Fluent public class Login extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(Login.class); /* - * The routes property. + * The routes that specify the endpoints used for login and logout + * requests. */ @JsonProperty(value = "properties.routes") private LoginRoutes routes; /* - * The tokenStore property. + * The configuration settings of the token store. */ @JsonProperty(value = "properties.tokenStore") private TokenStore tokenStore; /* - * The preserveUrlFragmentsForLogins property. + * true if the fragments from the request are preserved after + * the login request is made; otherwise, false. */ @JsonProperty(value = "properties.preserveUrlFragmentsForLogins") private Boolean preserveUrlFragmentsForLogins; /* - * The allowedExternalRedirectUrls property. + * External URLs that can be redirected to as part of logging in or logging + * out of the app. Note that the query string part of the URL is ignored. + * This is an advanced setting typically only needed by Windows Store + * application backends. + * Note that URLs within the current domain are always implicitly allowed. */ @JsonProperty(value = "properties.allowedExternalRedirectUrls") private List allowedExternalRedirectUrls; /* - * The cookieExpiration property. + * The configuration settings of the session cookie's expiration. */ @JsonProperty(value = "properties.cookieExpiration") private CookieExpiration cookieExpiration; /* - * The nonce property. + * The configuration settings of the nonce used in the login flow. */ @JsonProperty(value = "properties.nonce") private Nonce nonce; /** - * Get the routes property: The routes property. + * Get the routes property: The routes that specify the endpoints used for login and logout requests. * * @return the routes value. */ @@ -63,7 +69,7 @@ public LoginRoutes routes() { } /** - * Set the routes property: The routes property. + * Set the routes property: The routes that specify the endpoints used for login and logout requests. * * @param routes the routes value to set. * @return the Login object itself. @@ -74,7 +80,7 @@ public Login withRoutes(LoginRoutes routes) { } /** - * Get the tokenStore property: The tokenStore property. + * Get the tokenStore property: The configuration settings of the token store. * * @return the tokenStore value. */ @@ -83,7 +89,7 @@ public TokenStore tokenStore() { } /** - * Set the tokenStore property: The tokenStore property. + * Set the tokenStore property: The configuration settings of the token store. * * @param tokenStore the tokenStore value to set. * @return the Login object itself. @@ -94,7 +100,8 @@ public Login withTokenStore(TokenStore tokenStore) { } /** - * Get the preserveUrlFragmentsForLogins property: The preserveUrlFragmentsForLogins property. + * Get the preserveUrlFragmentsForLogins property: <code>true</code> if the fragments from the request + * are preserved after the login request is made; otherwise, <code>false</code>. * * @return the preserveUrlFragmentsForLogins value. */ @@ -103,7 +110,8 @@ public Boolean preserveUrlFragmentsForLogins() { } /** - * Set the preserveUrlFragmentsForLogins property: The preserveUrlFragmentsForLogins property. + * Set the preserveUrlFragmentsForLogins property: <code>true</code> if the fragments from the request + * are preserved after the login request is made; otherwise, <code>false</code>. * * @param preserveUrlFragmentsForLogins the preserveUrlFragmentsForLogins value to set. * @return the Login object itself. @@ -114,7 +122,10 @@ public Login withPreserveUrlFragmentsForLogins(Boolean preserveUrlFragmentsForLo } /** - * Get the allowedExternalRedirectUrls property: The allowedExternalRedirectUrls property. + * Get the allowedExternalRedirectUrls property: External URLs that can be redirected to as part of logging in or + * logging out of the app. Note that the query string part of the URL is ignored. This is an advanced setting + * typically only needed by Windows Store application backends. Note that URLs within the current domain are always + * implicitly allowed. * * @return the allowedExternalRedirectUrls value. */ @@ -123,7 +134,10 @@ public List allowedExternalRedirectUrls() { } /** - * Set the allowedExternalRedirectUrls property: The allowedExternalRedirectUrls property. + * Set the allowedExternalRedirectUrls property: External URLs that can be redirected to as part of logging in or + * logging out of the app. Note that the query string part of the URL is ignored. This is an advanced setting + * typically only needed by Windows Store application backends. Note that URLs within the current domain are always + * implicitly allowed. * * @param allowedExternalRedirectUrls the allowedExternalRedirectUrls value to set. * @return the Login object itself. @@ -134,7 +148,7 @@ public Login withAllowedExternalRedirectUrls(List allowedExternalRedirec } /** - * Get the cookieExpiration property: The cookieExpiration property. + * Get the cookieExpiration property: The configuration settings of the session cookie's expiration. * * @return the cookieExpiration value. */ @@ -143,7 +157,7 @@ public CookieExpiration cookieExpiration() { } /** - * Set the cookieExpiration property: The cookieExpiration property. + * Set the cookieExpiration property: The configuration settings of the session cookie's expiration. * * @param cookieExpiration the cookieExpiration value to set. * @return the Login object itself. @@ -154,7 +168,7 @@ public Login withCookieExpiration(CookieExpiration cookieExpiration) { } /** - * Get the nonce property: The nonce property. + * Get the nonce property: The configuration settings of the nonce used in the login flow. * * @return the nonce value. */ @@ -163,7 +177,7 @@ public Nonce nonce() { } /** - * Set the nonce property: The nonce property. + * Set the nonce property: The configuration settings of the nonce used in the login flow. * * @param nonce the nonce value to set. * @return the Login object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/LoginRoutes.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/LoginRoutes.java index 953ed3461228..406026335a51 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/LoginRoutes.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/LoginRoutes.java @@ -10,20 +10,20 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The LoginRoutes model. */ +/** The routes that specify the endpoints used for login and logout requests. */ @JsonFlatten @Fluent public class LoginRoutes extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(LoginRoutes.class); /* - * The logoutEndpoint property. + * The endpoint at which a logout request should be made. */ @JsonProperty(value = "properties.logoutEndpoint") private String logoutEndpoint; /** - * Get the logoutEndpoint property: The logoutEndpoint property. + * Get the logoutEndpoint property: The endpoint at which a logout request should be made. * * @return the logoutEndpoint value. */ @@ -32,7 +32,7 @@ public String logoutEndpoint() { } /** - * Set the logoutEndpoint property: The logoutEndpoint property. + * Set the logoutEndpoint property: The endpoint at which a logout request should be made. * * @param logoutEndpoint the logoutEndpoint value to set. * @return the LoginRoutes object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/LoginScopes.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/LoginScopes.java index 4ff6d70de8d9..1607ea66b683 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/LoginScopes.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/LoginScopes.java @@ -11,20 +11,20 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The LoginScopes model. */ +/** The configuration settings of the login flow, including the scopes that should be requested. */ @JsonFlatten @Fluent public class LoginScopes extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(LoginScopes.class); /* - * The scopes property. + * A list of the scopes that should be requested while authenticating. */ @JsonProperty(value = "properties.scopes") private List scopes; /** - * Get the scopes property: The scopes property. + * Get the scopes property: A list of the scopes that should be requested while authenticating. * * @return the scopes value. */ @@ -33,7 +33,7 @@ public List scopes() { } /** - * Set the scopes property: The scopes property. + * Set the scopes property: A list of the scopes that should be requested while authenticating. * * @param scopes the scopes value to set. * @return the LoginScopes object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Nonce.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Nonce.java index 24d7f02f2876..dab17fe7a308 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Nonce.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Nonce.java @@ -10,26 +10,28 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The Nonce model. */ +/** The configuration settings of the nonce used in the login flow. */ @JsonFlatten @Fluent public class Nonce extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(Nonce.class); /* - * The validateNonce property. + * false if the nonce should not be validated while completing + * the login flow; otherwise, true. */ @JsonProperty(value = "properties.validateNonce") private Boolean validateNonce; /* - * The nonceExpirationInterval property. + * The time after the request is made when the nonce should expire. */ @JsonProperty(value = "properties.nonceExpirationInterval") private String nonceExpirationInterval; /** - * Get the validateNonce property: The validateNonce property. + * Get the validateNonce property: <code>false</code> if the nonce should not be validated while + * completing the login flow; otherwise, <code>true</code>. * * @return the validateNonce value. */ @@ -38,7 +40,8 @@ public Boolean validateNonce() { } /** - * Set the validateNonce property: The validateNonce property. + * Set the validateNonce property: <code>false</code> if the nonce should not be validated while + * completing the login flow; otherwise, <code>true</code>. * * @param validateNonce the validateNonce value to set. * @return the Nonce object itself. @@ -49,7 +52,7 @@ public Nonce withValidateNonce(Boolean validateNonce) { } /** - * Get the nonceExpirationInterval property: The nonceExpirationInterval property. + * Get the nonceExpirationInterval property: The time after the request is made when the nonce should expire. * * @return the nonceExpirationInterval value. */ @@ -58,7 +61,7 @@ public String nonceExpirationInterval() { } /** - * Set the nonceExpirationInterval property: The nonceExpirationInterval property. + * Set the nonceExpirationInterval property: The time after the request is made when the nonce should expire. * * @param nonceExpirationInterval the nonceExpirationInterval value to set. * @return the Nonce object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OpenIdConnectClientCredential.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OpenIdConnectClientCredential.java index cd2cad7e8b96..4c9c90ba6620 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OpenIdConnectClientCredential.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OpenIdConnectClientCredential.java @@ -10,26 +10,27 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The OpenIdConnectClientCredential model. */ +/** The authentication client credentials of the custom Open ID Connect provider. */ @JsonFlatten @Fluent public class OpenIdConnectClientCredential extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(OpenIdConnectClientCredential.class); /* - * The method property. + * The method that should be used to authenticate the user. */ @JsonProperty(value = "properties.method") private ClientCredentialMethod method; /* - * The clientSecretSettingName property. + * The app setting that contains the client secret for the custom Open ID + * Connect provider. */ @JsonProperty(value = "properties.clientSecretSettingName") private String clientSecretSettingName; /** - * Get the method property: The method property. + * Get the method property: The method that should be used to authenticate the user. * * @return the method value. */ @@ -38,7 +39,7 @@ public ClientCredentialMethod method() { } /** - * Set the method property: The method property. + * Set the method property: The method that should be used to authenticate the user. * * @param method the method value to set. * @return the OpenIdConnectClientCredential object itself. @@ -49,7 +50,8 @@ public OpenIdConnectClientCredential withMethod(ClientCredentialMethod method) { } /** - * Get the clientSecretSettingName property: The clientSecretSettingName property. + * Get the clientSecretSettingName property: The app setting that contains the client secret for the custom Open ID + * Connect provider. * * @return the clientSecretSettingName value. */ @@ -58,7 +60,8 @@ public String clientSecretSettingName() { } /** - * Set the clientSecretSettingName property: The clientSecretSettingName property. + * Set the clientSecretSettingName property: The app setting that contains the client secret for the custom Open ID + * Connect provider. * * @param clientSecretSettingName the clientSecretSettingName value to set. * @return the OpenIdConnectClientCredential object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OpenIdConnectConfig.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OpenIdConnectConfig.java index 644be35dc59a..f62165aecadc 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OpenIdConnectConfig.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OpenIdConnectConfig.java @@ -10,44 +10,45 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The OpenIdConnectConfig model. */ +/** The configuration settings of the endpoints used for the custom Open ID Connect provider. */ @JsonFlatten @Fluent public class OpenIdConnectConfig extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(OpenIdConnectConfig.class); /* - * The authorizationEndpoint property. + * The endpoint to be used to make an authorization request. */ @JsonProperty(value = "properties.authorizationEndpoint") private String authorizationEndpoint; /* - * The tokenEndpoint property. + * The endpoint to be used to request a token. */ @JsonProperty(value = "properties.tokenEndpoint") private String tokenEndpoint; /* - * The issuer property. + * The endpoint that issues the token. */ @JsonProperty(value = "properties.issuer") private String issuer; /* - * The certificationUri property. + * The endpoint that provides the keys necessary to validate the token. */ @JsonProperty(value = "properties.certificationUri") private String certificationUri; /* - * The wellKnownOpenIdConfiguration property. + * The endpoint that contains all the configuration endpoints for the + * provider. */ @JsonProperty(value = "properties.wellKnownOpenIdConfiguration") private String wellKnownOpenIdConfiguration; /** - * Get the authorizationEndpoint property: The authorizationEndpoint property. + * Get the authorizationEndpoint property: The endpoint to be used to make an authorization request. * * @return the authorizationEndpoint value. */ @@ -56,7 +57,7 @@ public String authorizationEndpoint() { } /** - * Set the authorizationEndpoint property: The authorizationEndpoint property. + * Set the authorizationEndpoint property: The endpoint to be used to make an authorization request. * * @param authorizationEndpoint the authorizationEndpoint value to set. * @return the OpenIdConnectConfig object itself. @@ -67,7 +68,7 @@ public OpenIdConnectConfig withAuthorizationEndpoint(String authorizationEndpoin } /** - * Get the tokenEndpoint property: The tokenEndpoint property. + * Get the tokenEndpoint property: The endpoint to be used to request a token. * * @return the tokenEndpoint value. */ @@ -76,7 +77,7 @@ public String tokenEndpoint() { } /** - * Set the tokenEndpoint property: The tokenEndpoint property. + * Set the tokenEndpoint property: The endpoint to be used to request a token. * * @param tokenEndpoint the tokenEndpoint value to set. * @return the OpenIdConnectConfig object itself. @@ -87,7 +88,7 @@ public OpenIdConnectConfig withTokenEndpoint(String tokenEndpoint) { } /** - * Get the issuer property: The issuer property. + * Get the issuer property: The endpoint that issues the token. * * @return the issuer value. */ @@ -96,7 +97,7 @@ public String issuer() { } /** - * Set the issuer property: The issuer property. + * Set the issuer property: The endpoint that issues the token. * * @param issuer the issuer value to set. * @return the OpenIdConnectConfig object itself. @@ -107,7 +108,7 @@ public OpenIdConnectConfig withIssuer(String issuer) { } /** - * Get the certificationUri property: The certificationUri property. + * Get the certificationUri property: The endpoint that provides the keys necessary to validate the token. * * @return the certificationUri value. */ @@ -116,7 +117,7 @@ public String certificationUri() { } /** - * Set the certificationUri property: The certificationUri property. + * Set the certificationUri property: The endpoint that provides the keys necessary to validate the token. * * @param certificationUri the certificationUri value to set. * @return the OpenIdConnectConfig object itself. @@ -127,7 +128,8 @@ public OpenIdConnectConfig withCertificationUri(String certificationUri) { } /** - * Get the wellKnownOpenIdConfiguration property: The wellKnownOpenIdConfiguration property. + * Get the wellKnownOpenIdConfiguration property: The endpoint that contains all the configuration endpoints for the + * provider. * * @return the wellKnownOpenIdConfiguration value. */ @@ -136,7 +138,8 @@ public String wellKnownOpenIdConfiguration() { } /** - * Set the wellKnownOpenIdConfiguration property: The wellKnownOpenIdConfiguration property. + * Set the wellKnownOpenIdConfiguration property: The endpoint that contains all the configuration endpoints for the + * provider. * * @param wellKnownOpenIdConfiguration the wellKnownOpenIdConfiguration value to set. * @return the OpenIdConnectConfig object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OpenIdConnectLogin.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OpenIdConnectLogin.java index 63976fd4781b..e8a035bb7b02 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OpenIdConnectLogin.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OpenIdConnectLogin.java @@ -11,26 +11,26 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The OpenIdConnectLogin model. */ +/** The configuration settings of the login flow of the custom Open ID Connect provider. */ @JsonFlatten @Fluent public class OpenIdConnectLogin extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(OpenIdConnectLogin.class); /* - * The nameClaimType property. + * The name of the claim that contains the users name. */ @JsonProperty(value = "properties.nameClaimType") private String nameClaimType; /* - * The scopes property. + * A list of the scopes that should be requested while authenticating. */ @JsonProperty(value = "properties.scopes") private List scopes; /** - * Get the nameClaimType property: The nameClaimType property. + * Get the nameClaimType property: The name of the claim that contains the users name. * * @return the nameClaimType value. */ @@ -39,7 +39,7 @@ public String nameClaimType() { } /** - * Set the nameClaimType property: The nameClaimType property. + * Set the nameClaimType property: The name of the claim that contains the users name. * * @param nameClaimType the nameClaimType value to set. * @return the OpenIdConnectLogin object itself. @@ -50,7 +50,7 @@ public OpenIdConnectLogin withNameClaimType(String nameClaimType) { } /** - * Get the scopes property: The scopes property. + * Get the scopes property: A list of the scopes that should be requested while authenticating. * * @return the scopes value. */ @@ -59,7 +59,7 @@ public List scopes() { } /** - * Set the scopes property: The scopes property. + * Set the scopes property: A list of the scopes that should be requested while authenticating. * * @param scopes the scopes value to set. * @return the OpenIdConnectLogin object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OpenIdConnectRegistration.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OpenIdConnectRegistration.java index 4d91926968d3..b5ccaaf1014a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OpenIdConnectRegistration.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OpenIdConnectRegistration.java @@ -10,32 +10,33 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The OpenIdConnectRegistration model. */ +/** The configuration settings of the app registration for the custom Open ID Connect provider. */ @JsonFlatten @Fluent public class OpenIdConnectRegistration extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(OpenIdConnectRegistration.class); /* - * The clientId property. + * The client id of the custom Open ID Connect provider. */ @JsonProperty(value = "properties.clientId") private String clientId; /* - * The clientCredential property. + * The authentication credentials of the custom Open ID Connect provider. */ @JsonProperty(value = "properties.clientCredential") private OpenIdConnectClientCredential clientCredential; /* - * The openIdConnectConfiguration property. + * The configuration settings of the endpoints used for the custom Open ID + * Connect provider. */ @JsonProperty(value = "properties.openIdConnectConfiguration") private OpenIdConnectConfig openIdConnectConfiguration; /** - * Get the clientId property: The clientId property. + * Get the clientId property: The client id of the custom Open ID Connect provider. * * @return the clientId value. */ @@ -44,7 +45,7 @@ public String clientId() { } /** - * Set the clientId property: The clientId property. + * Set the clientId property: The client id of the custom Open ID Connect provider. * * @param clientId the clientId value to set. * @return the OpenIdConnectRegistration object itself. @@ -55,7 +56,7 @@ public OpenIdConnectRegistration withClientId(String clientId) { } /** - * Get the clientCredential property: The clientCredential property. + * Get the clientCredential property: The authentication credentials of the custom Open ID Connect provider. * * @return the clientCredential value. */ @@ -64,7 +65,7 @@ public OpenIdConnectClientCredential clientCredential() { } /** - * Set the clientCredential property: The clientCredential property. + * Set the clientCredential property: The authentication credentials of the custom Open ID Connect provider. * * @param clientCredential the clientCredential value to set. * @return the OpenIdConnectRegistration object itself. @@ -75,7 +76,8 @@ public OpenIdConnectRegistration withClientCredential(OpenIdConnectClientCredent } /** - * Get the openIdConnectConfiguration property: The openIdConnectConfiguration property. + * Get the openIdConnectConfiguration property: The configuration settings of the endpoints used for the custom Open + * ID Connect provider. * * @return the openIdConnectConfiguration value. */ @@ -84,7 +86,8 @@ public OpenIdConnectConfig openIdConnectConfiguration() { } /** - * Set the openIdConnectConfiguration property: The openIdConnectConfiguration property. + * Set the openIdConnectConfiguration property: The configuration settings of the endpoints used for the custom Open + * ID Connect provider. * * @param openIdConnectConfiguration the openIdConnectConfiguration value to set. * @return the OpenIdConnectRegistration object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StackMajorVersion.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StackMajorVersion.java index 1d682b9e6b3d..890da7ad326e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StackMajorVersion.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StackMajorVersion.java @@ -48,26 +48,6 @@ public final class StackMajorVersion { @JsonProperty(value = "applicationInsights") private Boolean applicationInsights; - /* - * - * - * - * Example: All the function apps need AppSetting: - * "FUNCTIONS_WORKER_RUNTIME" to be set stack name - */ - @JsonProperty(value = "appSettingsDictionary") - private Map appSettingsDictionary; - - /* - * - * - * - * Example: All Linux Function Apps, need Use32BitWorkerProcess to be set - * to 0 - */ - @JsonProperty(value = "siteConfigPropertiesDictionary") - private Map siteConfigPropertiesDictionary; - /* * true if this stack is in Preview, otherwise * false. @@ -89,6 +69,26 @@ public final class StackMajorVersion { @JsonProperty(value = "isHidden") private Boolean isHidden; + /* + * + * + * + * Example: All the function apps need AppSetting: + * "FUNCTIONS_WORKER_RUNTIME" to be set stack name + */ + @JsonProperty(value = "appSettingsDictionary") + private Map appSettingsDictionary; + + /* + * + * + * + * Example: All Linux Function Apps, need Use32BitWorkerProcess to be set + * to 0 + */ + @JsonProperty(value = "siteConfigPropertiesDictionary") + private Map siteConfigPropertiesDictionary; + /** * Get the displayVersion property: Application stack major version (display only). * @@ -193,54 +193,6 @@ public StackMajorVersion withApplicationInsights(Boolean applicationInsights) { return this; } - /** - * Get the appSettingsDictionary property: <appSettings> <appSetting name="FUNCTIONS_WORKER_RUNTIME" - * value="dotnet" /> </appSettings> Example: All the function apps need AppSetting: - * "FUNCTIONS_WORKER_RUNTIME" to be set stack name. - * - * @return the appSettingsDictionary value. - */ - public Map appSettingsDictionary() { - return this.appSettingsDictionary; - } - - /** - * Set the appSettingsDictionary property: <appSettings> <appSetting name="FUNCTIONS_WORKER_RUNTIME" - * value="dotnet" /> </appSettings> Example: All the function apps need AppSetting: - * "FUNCTIONS_WORKER_RUNTIME" to be set stack name. - * - * @param appSettingsDictionary the appSettingsDictionary value to set. - * @return the StackMajorVersion object itself. - */ - public StackMajorVersion withAppSettingsDictionary(Map appSettingsDictionary) { - this.appSettingsDictionary = appSettingsDictionary; - return this; - } - - /** - * Get the siteConfigPropertiesDictionary property: <siteConfigProperties> <siteConfigProperty - * name="Use32BitWorkerProcess" value="false" /> </siteConfigProperties> Example: All Linux Function Apps, - * need Use32BitWorkerProcess to be set to 0. - * - * @return the siteConfigPropertiesDictionary value. - */ - public Map siteConfigPropertiesDictionary() { - return this.siteConfigPropertiesDictionary; - } - - /** - * Set the siteConfigPropertiesDictionary property: <siteConfigProperties> <siteConfigProperty - * name="Use32BitWorkerProcess" value="false" /> </siteConfigProperties> Example: All Linux Function Apps, - * need Use32BitWorkerProcess to be set to 0. - * - * @param siteConfigPropertiesDictionary the siteConfigPropertiesDictionary value to set. - * @return the StackMajorVersion object itself. - */ - public StackMajorVersion withSiteConfigPropertiesDictionary(Map siteConfigPropertiesDictionary) { - this.siteConfigPropertiesDictionary = siteConfigPropertiesDictionary; - return this; - } - /** * Get the isPreview property: <code>true</code> if this stack is in Preview, otherwise * <code>false</code>. @@ -307,6 +259,54 @@ public StackMajorVersion withIsHidden(Boolean isHidden) { return this; } + /** + * Get the appSettingsDictionary property: <appSettings> <appSetting name="FUNCTIONS_WORKER_RUNTIME" + * value="dotnet" /> </appSettings> Example: All the function apps need AppSetting: + * "FUNCTIONS_WORKER_RUNTIME" to be set stack name. + * + * @return the appSettingsDictionary value. + */ + public Map appSettingsDictionary() { + return this.appSettingsDictionary; + } + + /** + * Set the appSettingsDictionary property: <appSettings> <appSetting name="FUNCTIONS_WORKER_RUNTIME" + * value="dotnet" /> </appSettings> Example: All the function apps need AppSetting: + * "FUNCTIONS_WORKER_RUNTIME" to be set stack name. + * + * @param appSettingsDictionary the appSettingsDictionary value to set. + * @return the StackMajorVersion object itself. + */ + public StackMajorVersion withAppSettingsDictionary(Map appSettingsDictionary) { + this.appSettingsDictionary = appSettingsDictionary; + return this; + } + + /** + * Get the siteConfigPropertiesDictionary property: <siteConfigProperties> <siteConfigProperty + * name="Use32BitWorkerProcess" value="false" /> </siteConfigProperties> Example: All Linux Function Apps, + * need Use32BitWorkerProcess to be set to 0. + * + * @return the siteConfigPropertiesDictionary value. + */ + public Map siteConfigPropertiesDictionary() { + return this.siteConfigPropertiesDictionary; + } + + /** + * Set the siteConfigPropertiesDictionary property: <siteConfigProperties> <siteConfigProperty + * name="Use32BitWorkerProcess" value="false" /> </siteConfigProperties> Example: All Linux Function Apps, + * need Use32BitWorkerProcess to be set to 0. + * + * @param siteConfigPropertiesDictionary the siteConfigPropertiesDictionary value to set. + * @return the StackMajorVersion object itself. + */ + public StackMajorVersion withSiteConfigPropertiesDictionary(Map siteConfigPropertiesDictionary) { + this.siteConfigPropertiesDictionary = siteConfigPropertiesDictionary; + return this; + } + /** * Validates the instance. * diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSitePatchResource.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSitePatchResource.java index e2e5865fbd85..6c026ee5505c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSitePatchResource.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSitePatchResource.java @@ -35,13 +35,6 @@ public class StaticSitePatchResource extends ProxyOnlyResource { @JsonProperty(value = "properties.branch") private String branch; - /* - * The provider that submitted the last deployment to the primary - * environment of the static site. - */ - @JsonProperty(value = "properties.provider", access = JsonProperty.Access.WRITE_ONLY) - private String provider; - /* * The custom domains associated with this static site. */ @@ -61,18 +54,32 @@ public class StaticSitePatchResource extends ProxyOnlyResource { @JsonProperty(value = "properties.buildProperties") private StaticSiteBuildProperties buildProperties; - /* - * Template options for generating a new repository. - */ - @JsonProperty(value = "properties.templateProperties") - private StaticSiteTemplateOptions templateProperties; - /* * Private endpoint connections */ @JsonProperty(value = "properties.privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY) private List privateEndpointConnections; + /* + * State indicating whether staging environments are allowed or not allowed + * for a static web app. + */ + @JsonProperty(value = "properties.stagingEnvironmentPolicy") + private StagingEnvironmentPolicy stagingEnvironmentPolicy; + + /* + * false if config file is locked for this static web app; + * otherwise, true. + */ + @JsonProperty(value = "properties.allowConfigFileUpdates") + private Boolean allowConfigFileUpdates; + + /* + * Template options for generating a new repository. + */ + @JsonProperty(value = "properties.templateProperties") + private StaticSiteTemplateOptions templateProperties; + /* * The content distribution endpoint for the static site. */ @@ -92,18 +99,11 @@ public class StaticSitePatchResource extends ProxyOnlyResource { private List userProvidedFunctionApps; /* - * State indicating whether staging environments are allowed or not allowed - * for a static web app. - */ - @JsonProperty(value = "properties.stagingEnvironmentPolicy") - private StagingEnvironmentPolicy stagingEnvironmentPolicy; - - /* - * false if config file is locked for this static web app; - * otherwise, true. + * The provider that submitted the last deployment to the primary + * environment of the static site. */ - @JsonProperty(value = "properties.allowConfigFileUpdates") - private Boolean allowConfigFileUpdates; + @JsonProperty(value = "properties.provider", access = JsonProperty.Access.WRITE_ONLY) + private String provider; /** * Get the defaultHostname property: The default autogenerated hostname for the static site. @@ -154,16 +154,6 @@ public StaticSitePatchResource withBranch(String branch) { return this; } - /** - * Get the provider property: The provider that submitted the last deployment to the primary environment of the - * static site. - * - * @return the provider value. - */ - public String provider() { - return this.provider; - } - /** * Get the customDomains property: The custom domains associated with this static site. * @@ -215,26 +205,6 @@ public StaticSitePatchResource withBuildProperties(StaticSiteBuildProperties bui return this; } - /** - * Get the templateProperties property: Template options for generating a new repository. - * - * @return the templateProperties value. - */ - public StaticSiteTemplateOptions templateProperties() { - return this.templateProperties; - } - - /** - * Set the templateProperties property: Template options for generating a new repository. - * - * @param templateProperties the templateProperties value to set. - * @return the StaticSitePatchResource object itself. - */ - public StaticSitePatchResource withTemplateProperties(StaticSiteTemplateOptions templateProperties) { - this.templateProperties = templateProperties; - return this; - } - /** * Get the privateEndpointConnections property: Private endpoint connections. * @@ -244,33 +214,6 @@ public List privateEndpo return this.privateEndpointConnections; } - /** - * Get the contentDistributionEndpoint property: The content distribution endpoint for the static site. - * - * @return the contentDistributionEndpoint value. - */ - public String contentDistributionEndpoint() { - return this.contentDistributionEndpoint; - } - - /** - * Get the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication. - * - * @return the keyVaultReferenceIdentity value. - */ - public String keyVaultReferenceIdentity() { - return this.keyVaultReferenceIdentity; - } - - /** - * Get the userProvidedFunctionApps property: User provided function apps registered with the static site. - * - * @return the userProvidedFunctionApps value. - */ - public List userProvidedFunctionApps() { - return this.userProvidedFunctionApps; - } - /** * Get the stagingEnvironmentPolicy property: State indicating whether staging environments are allowed or not * allowed for a static web app. @@ -315,6 +258,63 @@ public StaticSitePatchResource withAllowConfigFileUpdates(Boolean allowConfigFil return this; } + /** + * Get the templateProperties property: Template options for generating a new repository. + * + * @return the templateProperties value. + */ + public StaticSiteTemplateOptions templateProperties() { + return this.templateProperties; + } + + /** + * Set the templateProperties property: Template options for generating a new repository. + * + * @param templateProperties the templateProperties value to set. + * @return the StaticSitePatchResource object itself. + */ + public StaticSitePatchResource withTemplateProperties(StaticSiteTemplateOptions templateProperties) { + this.templateProperties = templateProperties; + return this; + } + + /** + * Get the contentDistributionEndpoint property: The content distribution endpoint for the static site. + * + * @return the contentDistributionEndpoint value. + */ + public String contentDistributionEndpoint() { + return this.contentDistributionEndpoint; + } + + /** + * Get the keyVaultReferenceIdentity property: Identity to use for Key Vault Reference authentication. + * + * @return the keyVaultReferenceIdentity value. + */ + public String keyVaultReferenceIdentity() { + return this.keyVaultReferenceIdentity; + } + + /** + * Get the userProvidedFunctionApps property: User provided function apps registered with the static site. + * + * @return the userProvidedFunctionApps value. + */ + public List userProvidedFunctionApps() { + return this.userProvidedFunctionApps; + } + + /** + * Get the provider property: The provider that submitted the last deployment to the primary environment of the + * static site. + * + * @return the provider value. + */ + public String provider() { + return this.provider; + } + /** {@inheritDoc} */ @Override public StaticSitePatchResource withKind(String kind) { @@ -333,12 +333,12 @@ public void validate() { if (buildProperties() != null) { buildProperties().validate(); } - if (templateProperties() != null) { - templateProperties().validate(); - } if (privateEndpointConnections() != null) { privateEndpointConnections().forEach(e -> e.validate()); } + if (templateProperties() != null) { + templateProperties().validate(); + } if (userProvidedFunctionApps() != null) { userProvidedFunctionApps().forEach(e -> e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StatusCodesBasedTrigger.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StatusCodesBasedTrigger.java index be56add9c912..9026371ade77 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StatusCodesBasedTrigger.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StatusCodesBasedTrigger.java @@ -32,12 +32,6 @@ public final class StatusCodesBasedTrigger { @JsonProperty(value = "win32Status") private Integer win32Status; - /* - * Request Path - */ - @JsonProperty(value = "path") - private String path; - /* * Request Count. */ @@ -50,6 +44,12 @@ public final class StatusCodesBasedTrigger { @JsonProperty(value = "timeInterval") private String timeInterval; + /* + * Request Path + */ + @JsonProperty(value = "path") + private String path; + /** * Get the status property: HTTP status code. * @@ -110,26 +110,6 @@ public StatusCodesBasedTrigger withWin32Status(Integer win32Status) { return this; } - /** - * Get the path property: Request Path. - * - * @return the path value. - */ - public String path() { - return this.path; - } - - /** - * Set the path property: Request Path. - * - * @param path the path value to set. - * @return the StatusCodesBasedTrigger object itself. - */ - public StatusCodesBasedTrigger withPath(String path) { - this.path = path; - return this; - } - /** * Get the count property: Request Count. * @@ -170,6 +150,26 @@ public StatusCodesBasedTrigger withTimeInterval(String timeInterval) { return this; } + /** + * Get the path property: Request Path. + * + * @return the path value. + */ + public String path() { + return this.path; + } + + /** + * Set the path property: Request Path. + * + * @param path the path value to set. + * @return the StatusCodesBasedTrigger object itself. + */ + public StatusCodesBasedTrigger withPath(String path) { + this.path = path; + return this; + } + /** * Validates the instance. * diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/TokenStore.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/TokenStore.java index c0686f87f223..9fdc1a35bee3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/TokenStore.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/TokenStore.java @@ -10,38 +10,46 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The TokenStore model. */ +/** The configuration settings of the token store. */ @JsonFlatten @Fluent public class TokenStore extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(TokenStore.class); /* - * The enabled property. + * true to durably store platform-specific security tokens + * that are obtained during login flows; otherwise, false. + * The default is false. */ @JsonProperty(value = "properties.enabled") private Boolean enabled; /* - * The tokenRefreshExtensionHours property. + * The number of hours after session token expiration that a session token + * can be used to + * call the token refresh API. The default is 72 hours. */ @JsonProperty(value = "properties.tokenRefreshExtensionHours") private Double tokenRefreshExtensionHours; /* - * The fileSystem property. + * The configuration settings of the storage of the tokens if a file system + * is used. */ @JsonProperty(value = "properties.fileSystem") private FileSystemTokenStore fileSystem; /* - * The azureBlobStorage property. + * The configuration settings of the storage of the tokens if blob storage + * is used. */ @JsonProperty(value = "properties.azureBlobStorage") private BlobStorageTokenStore azureBlobStorage; /** - * Get the enabled property: The enabled property. + * Get the enabled property: <code>true</code> to durably store platform-specific security tokens that + * are obtained during login flows; otherwise, <code>false</code>. The default is + * <code>false</code>. * * @return the enabled value. */ @@ -50,7 +58,9 @@ public Boolean enabled() { } /** - * Set the enabled property: The enabled property. + * Set the enabled property: <code>true</code> to durably store platform-specific security tokens that + * are obtained during login flows; otherwise, <code>false</code>. The default is + * <code>false</code>. * * @param enabled the enabled value to set. * @return the TokenStore object itself. @@ -61,7 +71,8 @@ public TokenStore withEnabled(Boolean enabled) { } /** - * Get the tokenRefreshExtensionHours property: The tokenRefreshExtensionHours property. + * Get the tokenRefreshExtensionHours property: The number of hours after session token expiration that a session + * token can be used to call the token refresh API. The default is 72 hours. * * @return the tokenRefreshExtensionHours value. */ @@ -70,7 +81,8 @@ public Double tokenRefreshExtensionHours() { } /** - * Set the tokenRefreshExtensionHours property: The tokenRefreshExtensionHours property. + * Set the tokenRefreshExtensionHours property: The number of hours after session token expiration that a session + * token can be used to call the token refresh API. The default is 72 hours. * * @param tokenRefreshExtensionHours the tokenRefreshExtensionHours value to set. * @return the TokenStore object itself. @@ -81,7 +93,7 @@ public TokenStore withTokenRefreshExtensionHours(Double tokenRefreshExtensionHou } /** - * Get the fileSystem property: The fileSystem property. + * Get the fileSystem property: The configuration settings of the storage of the tokens if a file system is used. * * @return the fileSystem value. */ @@ -90,7 +102,7 @@ public FileSystemTokenStore fileSystem() { } /** - * Set the fileSystem property: The fileSystem property. + * Set the fileSystem property: The configuration settings of the storage of the tokens if a file system is used. * * @param fileSystem the fileSystem value to set. * @return the TokenStore object itself. @@ -101,7 +113,8 @@ public TokenStore withFileSystem(FileSystemTokenStore fileSystem) { } /** - * Get the azureBlobStorage property: The azureBlobStorage property. + * Get the azureBlobStorage property: The configuration settings of the storage of the tokens if blob storage is + * used. * * @return the azureBlobStorage value. */ @@ -110,7 +123,8 @@ public BlobStorageTokenStore azureBlobStorage() { } /** - * Set the azureBlobStorage property: The azureBlobStorage property. + * Set the azureBlobStorage property: The configuration settings of the storage of the tokens if blob storage is + * used. * * @param azureBlobStorage the azureBlobStorage value to set. * @return the TokenStore object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Twitter.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Twitter.java index 9c19e732ed78..e30225bde4d3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Twitter.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Twitter.java @@ -10,26 +10,29 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The Twitter model. */ +/** The configuration settings of the Twitter provider. */ @JsonFlatten @Fluent public class Twitter extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(Twitter.class); /* - * The enabled property. + * false if the Twitter provider should not be enabled despite + * the set registration; otherwise, true. */ @JsonProperty(value = "properties.enabled") private Boolean enabled; /* - * The registration property. + * The configuration settings of the app registration for the Twitter + * provider. */ @JsonProperty(value = "properties.registration") private TwitterRegistration registration; /** - * Get the enabled property: The enabled property. + * Get the enabled property: <code>false</code> if the Twitter provider should not be enabled despite + * the set registration; otherwise, <code>true</code>. * * @return the enabled value. */ @@ -38,7 +41,8 @@ public Boolean enabled() { } /** - * Set the enabled property: The enabled property. + * Set the enabled property: <code>false</code> if the Twitter provider should not be enabled despite + * the set registration; otherwise, <code>true</code>. * * @param enabled the enabled value to set. * @return the Twitter object itself. @@ -49,7 +53,7 @@ public Twitter withEnabled(Boolean enabled) { } /** - * Get the registration property: The registration property. + * Get the registration property: The configuration settings of the app registration for the Twitter provider. * * @return the registration value. */ @@ -58,7 +62,7 @@ public TwitterRegistration registration() { } /** - * Set the registration property: The registration property. + * Set the registration property: The configuration settings of the app registration for the Twitter provider. * * @param registration the registration value to set. * @return the Twitter object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/TwitterRegistration.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/TwitterRegistration.java index a38f290ad45a..c7e735933ecd 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/TwitterRegistration.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/TwitterRegistration.java @@ -10,26 +10,32 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** The TwitterRegistration model. */ +/** The configuration settings of the app registration for the Twitter provider. */ @JsonFlatten @Fluent public class TwitterRegistration extends ProxyOnlyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(TwitterRegistration.class); /* - * The consumerKey property. + * The OAuth 1.0a consumer key of the Twitter application used for sign-in. + * This setting is required for enabling Twitter Sign-In. + * Twitter Sign-In documentation: https://dev.twitter.com/web/sign-in */ @JsonProperty(value = "properties.consumerKey") private String consumerKey; /* - * The consumerSecretSettingName property. + * The app setting name that contains the OAuth 1.0a consumer secret of the + * Twitter + * application used for sign-in. */ @JsonProperty(value = "properties.consumerSecretSettingName") private String consumerSecretSettingName; /** - * Get the consumerKey property: The consumerKey property. + * Get the consumerKey property: The OAuth 1.0a consumer key of the Twitter application used for sign-in. This + * setting is required for enabling Twitter Sign-In. Twitter Sign-In documentation: + * https://dev.twitter.com/web/sign-in. * * @return the consumerKey value. */ @@ -38,7 +44,9 @@ public String consumerKey() { } /** - * Set the consumerKey property: The consumerKey property. + * Set the consumerKey property: The OAuth 1.0a consumer key of the Twitter application used for sign-in. This + * setting is required for enabling Twitter Sign-In. Twitter Sign-In documentation: + * https://dev.twitter.com/web/sign-in. * * @param consumerKey the consumerKey value to set. * @return the TwitterRegistration object itself. @@ -49,7 +57,8 @@ public TwitterRegistration withConsumerKey(String consumerKey) { } /** - * Get the consumerSecretSettingName property: The consumerSecretSettingName property. + * Get the consumerSecretSettingName property: The app setting name that contains the OAuth 1.0a consumer secret of + * the Twitter application used for sign-in. * * @return the consumerSecretSettingName value. */ @@ -58,7 +67,8 @@ public String consumerSecretSettingName() { } /** - * Set the consumerSecretSettingName property: The consumerSecretSettingName property. + * Set the consumerSecretSettingName property: The app setting name that contains the OAuth 1.0a consumer secret of + * the Twitter application used for sign-in. * * @param consumerSecretSettingName the consumerSecretSettingName value to set. * @return the TwitterRegistration object itself. From 247bbf145d012d7bdda072f3ec7bae12e55af669 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Fri, 21 May 2021 10:28:32 +0800 Subject: [PATCH 2/2] code --- .../fluent/KubeEnvironmentsClient.java | 439 +++++ .../fluent/models/KubeEnvironmentInner.java | 290 ++++ .../KubeEnvironmentsClientImpl.java | 1451 +++++++++++++++++ .../models/AppLogsConfiguration.java | 79 + .../appservice/models/ArcConfiguration.java | 209 +++ .../appservice/models/ExtendedLocation.java | 65 + .../models/FrontEndConfiguration.java | 50 + .../models/FrontEndServiceType.java | 47 + .../models/KubeEnvironmentCollection.java | 74 + .../models/KubeEnvironmentPatchResource.java | 224 +++ .../KubeEnvironmentProvisioningState.java | 71 + .../models/LogAnalyticsConfiguration.java | 76 + .../appservice/models/StorageType.java | 47 + 13 files changed, 3122 insertions(+) create mode 100644 sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/KubeEnvironmentsClient.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/KubeEnvironmentInner.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/KubeEnvironmentsClientImpl.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppLogsConfiguration.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ArcConfiguration.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ExtendedLocation.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/FrontEndConfiguration.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/FrontEndServiceType.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/KubeEnvironmentCollection.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/KubeEnvironmentPatchResource.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/KubeEnvironmentProvisioningState.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/LogAnalyticsConfiguration.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StorageType.java diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/KubeEnvironmentsClient.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/KubeEnvironmentsClient.java new file mode 100644 index 000000000000..4abd8c3f7578 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/KubeEnvironmentsClient.java @@ -0,0 +1,439 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appservice.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.appservice.fluent.models.KubeEnvironmentInner; +import com.azure.resourcemanager.appservice.models.KubeEnvironmentPatchResource; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in KubeEnvironmentsClient. */ +public interface KubeEnvironmentsClient + extends InnerSupportsGet, + InnerSupportsListing, + InnerSupportsDelete { + /** + * Description for Get all Kubernetes Environments for a subscription. + * + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Description for Get all Kubernetes Environments for a subscription. + * + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Description for Get all Kubernetes Environments for a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); + + /** + * Description for Get all the Kubernetes Environments in a resource group. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByResourceGroupAsync(String resourceGroupName); + + /** + * Description for Get all the Kubernetes Environments in a resource group. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * Description for Get all the Kubernetes Environments in a resource group. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Description for Get the properties of a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String name); + + /** + * Description for Get the properties of a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getByResourceGroupAsync(String resourceGroupName, String name); + + /** + * Description for Get the properties of a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + KubeEnvironmentInner getByResourceGroup(String resourceGroupName, String name); + + /** + * Description for Get the properties of a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse( + String resourceGroupName, String name, Context context); + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createOrUpdateWithResponseAsync( + String resourceGroupName, String name, KubeEnvironmentInner kubeEnvironmentEnvelope); + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PollerFlux, KubeEnvironmentInner> beginCreateOrUpdateAsync( + String resourceGroupName, String name, KubeEnvironmentInner kubeEnvironmentEnvelope); + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SyncPoller, KubeEnvironmentInner> beginCreateOrUpdate( + String resourceGroupName, String name, KubeEnvironmentInner kubeEnvironmentEnvelope); + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SyncPoller, KubeEnvironmentInner> beginCreateOrUpdate( + String resourceGroupName, String name, KubeEnvironmentInner kubeEnvironmentEnvelope, Context context); + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync( + String resourceGroupName, String name, KubeEnvironmentInner kubeEnvironmentEnvelope); + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + KubeEnvironmentInner createOrUpdate( + String resourceGroupName, String name, KubeEnvironmentInner kubeEnvironmentEnvelope); + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + KubeEnvironmentInner createOrUpdate( + String resourceGroupName, String name, KubeEnvironmentInner kubeEnvironmentEnvelope, Context context); + + /** + * Description for Delete a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String name); + + /** + * Description for Delete a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String name); + + /** + * Description for Delete a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SyncPoller, Void> beginDelete(String resourceGroupName, String name); + + /** + * Description for Delete a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SyncPoller, Void> beginDelete(String resourceGroupName, String name, Context context); + + /** + * Description for Delete a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String name); + + /** + * Description for Delete a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String name); + + /** + * Description for Delete a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String name, Context context); + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> updateWithResponseAsync( + String resourceGroupName, String name, KubeEnvironmentPatchResource kubeEnvironmentEnvelope); + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono updateAsync( + String resourceGroupName, String name, KubeEnvironmentPatchResource kubeEnvironmentEnvelope); + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + KubeEnvironmentInner update( + String resourceGroupName, String name, KubeEnvironmentPatchResource kubeEnvironmentEnvelope); + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response updateWithResponse( + String resourceGroupName, String name, KubeEnvironmentPatchResource kubeEnvironmentEnvelope, Context context); +} diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/KubeEnvironmentInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/KubeEnvironmentInner.java new file mode 100644 index 000000000000..a355ab93b8b3 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/KubeEnvironmentInner.java @@ -0,0 +1,290 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appservice.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.azure.core.management.Resource; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.appservice.models.AppLogsConfiguration; +import com.azure.resourcemanager.appservice.models.ArcConfiguration; +import com.azure.resourcemanager.appservice.models.ExtendedLocation; +import com.azure.resourcemanager.appservice.models.KubeEnvironmentProvisioningState; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Map; + +/** A Kubernetes cluster specialized for web workloads by Azure App Service. */ +@JsonFlatten +@Fluent +public class KubeEnvironmentInner extends Resource { + @JsonIgnore private final ClientLogger logger = new ClientLogger(KubeEnvironmentInner.class); + + /* + * Extended Location. + */ + @JsonProperty(value = "extendedLocation") + private ExtendedLocation extendedLocation; + + /* + * Provisioning state of the Kubernetes Environment. + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private KubeEnvironmentProvisioningState provisioningState; + + /* + * Any errors that occurred during deployment or deployment validation + */ + @JsonProperty(value = "properties.deploymentErrors", access = JsonProperty.Access.WRITE_ONLY) + private String deploymentErrors; + + /* + * Only visible within Vnet/Subnet + */ + @JsonProperty(value = "properties.internalLoadBalancerEnabled") + private Boolean internalLoadBalancerEnabled; + + /* + * Default Domain Name for the cluster + */ + @JsonProperty(value = "properties.defaultDomain", access = JsonProperty.Access.WRITE_ONLY) + private String defaultDomain; + + /* + * Static IP of the KubeEnvironment + */ + @JsonProperty(value = "properties.staticIp") + private String staticIp; + + /* + * Cluster configuration which determines the ARC cluster + * components types. Eg: Choosing between BuildService kind, + * FrontEnd Service ArtifactsStorageType etc. + */ + @JsonProperty(value = "properties.arcConfiguration") + private ArcConfiguration arcConfiguration; + + /* + * Cluster configuration which enables the log daemon to export + * app logs to a destination. Currently only "log-analytics" is + * supported + */ + @JsonProperty(value = "properties.appLogsConfiguration") + private AppLogsConfiguration appLogsConfiguration; + + /* + * The aksResourceID property. + */ + @JsonProperty(value = "properties.aksResourceID") + private String aksResourceId; + + /* + * Kind of resource. + */ + @JsonProperty(value = "kind") + private String kind; + + /** + * Get the extendedLocation property: Extended Location. + * + * @return the extendedLocation value. + */ + public ExtendedLocation extendedLocation() { + return this.extendedLocation; + } + + /** + * Set the extendedLocation property: Extended Location. + * + * @param extendedLocation the extendedLocation value to set. + * @return the KubeEnvironmentInner object itself. + */ + public KubeEnvironmentInner withExtendedLocation(ExtendedLocation extendedLocation) { + this.extendedLocation = extendedLocation; + return this; + } + + /** + * Get the provisioningState property: Provisioning state of the Kubernetes Environment. + * + * @return the provisioningState value. + */ + public KubeEnvironmentProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the deploymentErrors property: Any errors that occurred during deployment or deployment validation. + * + * @return the deploymentErrors value. + */ + public String deploymentErrors() { + return this.deploymentErrors; + } + + /** + * Get the internalLoadBalancerEnabled property: Only visible within Vnet/Subnet. + * + * @return the internalLoadBalancerEnabled value. + */ + public Boolean internalLoadBalancerEnabled() { + return this.internalLoadBalancerEnabled; + } + + /** + * Set the internalLoadBalancerEnabled property: Only visible within Vnet/Subnet. + * + * @param internalLoadBalancerEnabled the internalLoadBalancerEnabled value to set. + * @return the KubeEnvironmentInner object itself. + */ + public KubeEnvironmentInner withInternalLoadBalancerEnabled(Boolean internalLoadBalancerEnabled) { + this.internalLoadBalancerEnabled = internalLoadBalancerEnabled; + return this; + } + + /** + * Get the defaultDomain property: Default Domain Name for the cluster. + * + * @return the defaultDomain value. + */ + public String defaultDomain() { + return this.defaultDomain; + } + + /** + * Get the staticIp property: Static IP of the KubeEnvironment. + * + * @return the staticIp value. + */ + public String staticIp() { + return this.staticIp; + } + + /** + * Set the staticIp property: Static IP of the KubeEnvironment. + * + * @param staticIp the staticIp value to set. + * @return the KubeEnvironmentInner object itself. + */ + public KubeEnvironmentInner withStaticIp(String staticIp) { + this.staticIp = staticIp; + return this; + } + + /** + * Get the arcConfiguration property: Cluster configuration which determines the ARC cluster components types. Eg: + * Choosing between BuildService kind, FrontEnd Service ArtifactsStorageType etc. + * + * @return the arcConfiguration value. + */ + public ArcConfiguration arcConfiguration() { + return this.arcConfiguration; + } + + /** + * Set the arcConfiguration property: Cluster configuration which determines the ARC cluster components types. Eg: + * Choosing between BuildService kind, FrontEnd Service ArtifactsStorageType etc. + * + * @param arcConfiguration the arcConfiguration value to set. + * @return the KubeEnvironmentInner object itself. + */ + public KubeEnvironmentInner withArcConfiguration(ArcConfiguration arcConfiguration) { + this.arcConfiguration = arcConfiguration; + return this; + } + + /** + * Get the appLogsConfiguration property: Cluster configuration which enables the log daemon to export app logs to a + * destination. Currently only "log-analytics" is supported. + * + * @return the appLogsConfiguration value. + */ + public AppLogsConfiguration appLogsConfiguration() { + return this.appLogsConfiguration; + } + + /** + * Set the appLogsConfiguration property: Cluster configuration which enables the log daemon to export app logs to a + * destination. Currently only "log-analytics" is supported. + * + * @param appLogsConfiguration the appLogsConfiguration value to set. + * @return the KubeEnvironmentInner object itself. + */ + public KubeEnvironmentInner withAppLogsConfiguration(AppLogsConfiguration appLogsConfiguration) { + this.appLogsConfiguration = appLogsConfiguration; + return this; + } + + /** + * Get the aksResourceId property: The aksResourceID property. + * + * @return the aksResourceId value. + */ + public String aksResourceId() { + return this.aksResourceId; + } + + /** + * Set the aksResourceId property: The aksResourceID property. + * + * @param aksResourceId the aksResourceId value to set. + * @return the KubeEnvironmentInner object itself. + */ + public KubeEnvironmentInner withAksResourceId(String aksResourceId) { + this.aksResourceId = aksResourceId; + return this; + } + + /** + * Get the kind property: Kind of resource. + * + * @return the kind value. + */ + public String kind() { + return this.kind; + } + + /** + * Set the kind property: Kind of resource. + * + * @param kind the kind value to set. + * @return the KubeEnvironmentInner object itself. + */ + public KubeEnvironmentInner withKind(String kind) { + this.kind = kind; + return this; + } + + /** {@inheritDoc} */ + @Override + public KubeEnvironmentInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public KubeEnvironmentInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (extendedLocation() != null) { + extendedLocation().validate(); + } + if (arcConfiguration() != null) { + arcConfiguration().validate(); + } + if (appLogsConfiguration() != null) { + appLogsConfiguration().validate(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/KubeEnvironmentsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/KubeEnvironmentsClientImpl.java new file mode 100644 index 000000000000..0d946fde84d8 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/KubeEnvironmentsClientImpl.java @@ -0,0 +1,1451 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appservice.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.logging.ClientLogger; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.appservice.fluent.KubeEnvironmentsClient; +import com.azure.resourcemanager.appservice.fluent.models.KubeEnvironmentInner; +import com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException; +import com.azure.resourcemanager.appservice.models.KubeEnvironmentCollection; +import com.azure.resourcemanager.appservice.models.KubeEnvironmentPatchResource; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in KubeEnvironmentsClient. */ +public final class KubeEnvironmentsClientImpl + implements InnerSupportsGet, + InnerSupportsListing, + InnerSupportsDelete, + KubeEnvironmentsClient { + private final ClientLogger logger = new ClientLogger(KubeEnvironmentsClientImpl.class); + + /** The proxy service used to perform REST calls. */ + private final KubeEnvironmentsService service; + + /** The service client containing this operation class. */ + private final WebSiteManagementClientImpl client; + + /** + * Initializes an instance of KubeEnvironmentsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + KubeEnvironmentsClientImpl(WebSiteManagementClientImpl client) { + this.service = + RestProxy.create(KubeEnvironmentsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for WebSiteManagementClientKubeEnvironments to be used by the proxy + * service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "WebSiteManagementCli") + private interface KubeEnvironmentsService { + @Headers({"Content-Type: application/json"}) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Web/kubeEnvironments") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) + Mono> list( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web" + + "/kubeEnvironments") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) + Mono> listByResourceGroup( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("subscriptionId") String subscriptionId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web" + + "/kubeEnvironments/{name}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) + Mono> getByResourceGroup( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("name") String name, + @PathParam("subscriptionId") String subscriptionId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Put( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web" + + "/kubeEnvironments/{name}") + @ExpectedResponses({200, 201}) + @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) + Mono>> createOrUpdate( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("name") String name, + @PathParam("subscriptionId") String subscriptionId, + @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") KubeEnvironmentInner kubeEnvironmentEnvelope, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Delete( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web" + + "/kubeEnvironments/{name}") + @ExpectedResponses({200, 202, 204}) + @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) + Mono>> delete( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("name") String name, + @PathParam("subscriptionId") String subscriptionId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Patch( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web" + + "/kubeEnvironments/{name}") + @ExpectedResponses({200, 201}) + @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) + Mono> update( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("name") String name, + @PathParam("subscriptionId") String subscriptionId, + @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") KubeEnvironmentPatchResource kubeEnvironmentEnvelope, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, + Context context); + } + + /** + * Description for Get all Kubernetes Environments for a subscription. + * + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .list( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + this.client.getApiVersion(), + accept, + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Description for Get all Kubernetes Environments for a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + this.client.getApiVersion(), + accept, + context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Description for Get all Kubernetes Environments for a subscription. + * + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>( + () -> listSinglePageAsync(), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + } + + /** + * Description for Get all Kubernetes Environments for a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>( + () -> listSinglePageAsync(context), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); + } + + /** + * Description for Get all Kubernetes Environments for a subscription. + * + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Description for Get all Kubernetes Environments for a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + + /** + * Description for Get all the Kubernetes Environments in a resource group. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .listByResourceGroup( + this.client.getEndpoint(), + resourceGroupName, + this.client.getSubscriptionId(), + this.client.getApiVersion(), + accept, + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Description for Get all the Kubernetes Environments in a resource group. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync( + String resourceGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByResourceGroup( + this.client.getEndpoint(), + resourceGroupName, + this.client.getSubscriptionId(), + this.client.getApiVersion(), + accept, + context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Description for Get all the Kubernetes Environments in a resource group. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>( + () -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + } + + /** + * Description for Get all the Kubernetes Environments in a resource group. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>( + () -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); + } + + /** + * Description for Get all the Kubernetes Environments in a resource group. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + } + + /** + * Description for Get all the Kubernetes Environments in a resource group. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + } + + /** + * Description for Get the properties of a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getByResourceGroupWithResponseAsync( + String resourceGroupName, String name) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (name == null) { + return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .getByResourceGroup( + this.client.getEndpoint(), + resourceGroupName, + name, + this.client.getSubscriptionId(), + this.client.getApiVersion(), + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Description for Get the properties of a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync( + String resourceGroupName, String name, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (name == null) { + return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .getByResourceGroup( + this.client.getEndpoint(), + resourceGroupName, + name, + this.client.getSubscriptionId(), + this.client.getApiVersion(), + accept, + context); + } + + /** + * Description for Get the properties of a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByResourceGroupAsync(String resourceGroupName, String name) { + return getByResourceGroupWithResponseAsync(resourceGroupName, name) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Description for Get the properties of a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public KubeEnvironmentInner getByResourceGroup(String resourceGroupName, String name) { + return getByResourceGroupAsync(resourceGroupName, name).block(); + } + + /** + * Description for Get the properties of a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse( + String resourceGroupName, String name, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, name, context).block(); + } + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrUpdateWithResponseAsync( + String resourceGroupName, String name, KubeEnvironmentInner kubeEnvironmentEnvelope) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (name == null) { + return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (kubeEnvironmentEnvelope == null) { + return Mono + .error( + new IllegalArgumentException("Parameter kubeEnvironmentEnvelope is required and cannot be null.")); + } else { + kubeEnvironmentEnvelope.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .createOrUpdate( + this.client.getEndpoint(), + resourceGroupName, + name, + this.client.getSubscriptionId(), + this.client.getApiVersion(), + kubeEnvironmentEnvelope, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync( + String resourceGroupName, String name, KubeEnvironmentInner kubeEnvironmentEnvelope, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (name == null) { + return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (kubeEnvironmentEnvelope == null) { + return Mono + .error( + new IllegalArgumentException("Parameter kubeEnvironmentEnvelope is required and cannot be null.")); + } else { + kubeEnvironmentEnvelope.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .createOrUpdate( + this.client.getEndpoint(), + resourceGroupName, + name, + this.client.getSubscriptionId(), + this.client.getApiVersion(), + kubeEnvironmentEnvelope, + accept, + context); + } + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PollerFlux, KubeEnvironmentInner> beginCreateOrUpdateAsync( + String resourceGroupName, String name, KubeEnvironmentInner kubeEnvironmentEnvelope) { + Mono>> mono = + createOrUpdateWithResponseAsync(resourceGroupName, name, kubeEnvironmentEnvelope); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + KubeEnvironmentInner.class, + KubeEnvironmentInner.class, + Context.NONE); + } + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PollerFlux, KubeEnvironmentInner> beginCreateOrUpdateAsync( + String resourceGroupName, String name, KubeEnvironmentInner kubeEnvironmentEnvelope, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + createOrUpdateWithResponseAsync(resourceGroupName, name, kubeEnvironmentEnvelope, context); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), KubeEnvironmentInner.class, KubeEnvironmentInner.class, context); + } + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SyncPoller, KubeEnvironmentInner> beginCreateOrUpdate( + String resourceGroupName, String name, KubeEnvironmentInner kubeEnvironmentEnvelope) { + return beginCreateOrUpdateAsync(resourceGroupName, name, kubeEnvironmentEnvelope).getSyncPoller(); + } + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SyncPoller, KubeEnvironmentInner> beginCreateOrUpdate( + String resourceGroupName, String name, KubeEnvironmentInner kubeEnvironmentEnvelope, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, name, kubeEnvironmentEnvelope, context).getSyncPoller(); + } + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync( + String resourceGroupName, String name, KubeEnvironmentInner kubeEnvironmentEnvelope) { + return beginCreateOrUpdateAsync(resourceGroupName, name, kubeEnvironmentEnvelope) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync( + String resourceGroupName, String name, KubeEnvironmentInner kubeEnvironmentEnvelope, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, name, kubeEnvironmentEnvelope, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public KubeEnvironmentInner createOrUpdate( + String resourceGroupName, String name, KubeEnvironmentInner kubeEnvironmentEnvelope) { + return createOrUpdateAsync(resourceGroupName, name, kubeEnvironmentEnvelope).block(); + } + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public KubeEnvironmentInner createOrUpdate( + String resourceGroupName, String name, KubeEnvironmentInner kubeEnvironmentEnvelope, Context context) { + return createOrUpdateAsync(resourceGroupName, name, kubeEnvironmentEnvelope, context).block(); + } + + /** + * Description for Delete a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, String name) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (name == null) { + return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .delete( + this.client.getEndpoint(), + resourceGroupName, + name, + this.client.getSubscriptionId(), + this.client.getApiVersion(), + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Description for Delete a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync( + String resourceGroupName, String name, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (name == null) { + return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .delete( + this.client.getEndpoint(), + resourceGroupName, + name, + this.client.getSubscriptionId(), + this.client.getApiVersion(), + accept, + context); + } + + /** + * Description for Delete a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String name) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, name); + return this + .client + .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + } + + /** + * Description for Delete a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PollerFlux, Void> beginDeleteAsync( + String resourceGroupName, String name, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, name, context); + return this + .client + .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + } + + /** + * Description for Delete a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SyncPoller, Void> beginDelete(String resourceGroupName, String name) { + return beginDeleteAsync(resourceGroupName, name).getSyncPoller(); + } + + /** + * Description for Delete a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SyncPoller, Void> beginDelete(String resourceGroupName, String name, Context context) { + return beginDeleteAsync(resourceGroupName, name, context).getSyncPoller(); + } + + /** + * Description for Delete a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String name) { + return beginDeleteAsync(resourceGroupName, name).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Description for Delete a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String name, Context context) { + return beginDeleteAsync(resourceGroupName, name, context).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Description for Delete a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String name) { + deleteAsync(resourceGroupName, name).block(); + } + + /** + * Description for Delete a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String name, Context context) { + deleteAsync(resourceGroupName, name, context).block(); + } + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> updateWithResponseAsync( + String resourceGroupName, String name, KubeEnvironmentPatchResource kubeEnvironmentEnvelope) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (name == null) { + return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (kubeEnvironmentEnvelope == null) { + return Mono + .error( + new IllegalArgumentException("Parameter kubeEnvironmentEnvelope is required and cannot be null.")); + } else { + kubeEnvironmentEnvelope.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .update( + this.client.getEndpoint(), + resourceGroupName, + name, + this.client.getSubscriptionId(), + this.client.getApiVersion(), + kubeEnvironmentEnvelope, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync( + String resourceGroupName, String name, KubeEnvironmentPatchResource kubeEnvironmentEnvelope, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (name == null) { + return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (kubeEnvironmentEnvelope == null) { + return Mono + .error( + new IllegalArgumentException("Parameter kubeEnvironmentEnvelope is required and cannot be null.")); + } else { + kubeEnvironmentEnvelope.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .update( + this.client.getEndpoint(), + resourceGroupName, + name, + this.client.getSubscriptionId(), + this.client.getApiVersion(), + kubeEnvironmentEnvelope, + accept, + context); + } + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync( + String resourceGroupName, String name, KubeEnvironmentPatchResource kubeEnvironmentEnvelope) { + return updateWithResponseAsync(resourceGroupName, name, kubeEnvironmentEnvelope) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public KubeEnvironmentInner update( + String resourceGroupName, String name, KubeEnvironmentPatchResource kubeEnvironmentEnvelope) { + return updateAsync(resourceGroupName, name, kubeEnvironmentEnvelope).block(); + } + + /** + * Description for Creates or updates a Kubernetes Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the Kubernetes Environment. + * @param kubeEnvironmentEnvelope Configuration details of the Kubernetes Environment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Kubernetes cluster specialized for web workloads by Azure App Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateWithResponse( + String resourceGroupName, String name, KubeEnvironmentPatchResource kubeEnvironmentEnvelope, Context context) { + return updateWithResponseAsync(resourceGroupName, name, kubeEnvironmentEnvelope, context).block(); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync( + String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return collection of Kubernetes Environments. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync( + String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppLogsConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppLogsConfiguration.java new file mode 100644 index 000000000000..84d2e1fe7449 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppLogsConfiguration.java @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The AppLogsConfiguration model. */ +@Fluent +public final class AppLogsConfiguration { + @JsonIgnore private final ClientLogger logger = new ClientLogger(AppLogsConfiguration.class); + + /* + * The destination property. + */ + @JsonProperty(value = "destination") + private String destination; + + /* + * The logAnalyticsConfiguration property. + */ + @JsonProperty(value = "logAnalyticsConfiguration") + private LogAnalyticsConfiguration logAnalyticsConfiguration; + + /** + * Get the destination property: The destination property. + * + * @return the destination value. + */ + public String destination() { + return this.destination; + } + + /** + * Set the destination property: The destination property. + * + * @param destination the destination value to set. + * @return the AppLogsConfiguration object itself. + */ + public AppLogsConfiguration withDestination(String destination) { + this.destination = destination; + return this; + } + + /** + * Get the logAnalyticsConfiguration property: The logAnalyticsConfiguration property. + * + * @return the logAnalyticsConfiguration value. + */ + public LogAnalyticsConfiguration logAnalyticsConfiguration() { + return this.logAnalyticsConfiguration; + } + + /** + * Set the logAnalyticsConfiguration property: The logAnalyticsConfiguration property. + * + * @param logAnalyticsConfiguration the logAnalyticsConfiguration value to set. + * @return the AppLogsConfiguration object itself. + */ + public AppLogsConfiguration withLogAnalyticsConfiguration(LogAnalyticsConfiguration logAnalyticsConfiguration) { + this.logAnalyticsConfiguration = logAnalyticsConfiguration; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (logAnalyticsConfiguration() != null) { + logAnalyticsConfiguration().validate(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ArcConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ArcConfiguration.java new file mode 100644 index 000000000000..bd55e4df52a2 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ArcConfiguration.java @@ -0,0 +1,209 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The ArcConfiguration model. */ +@Fluent +public final class ArcConfiguration { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ArcConfiguration.class); + + /* + * The artifactsStorageType property. + */ + @JsonProperty(value = "artifactsStorageType") + private StorageType artifactsStorageType; + + /* + * The artifactStorageClassName property. + */ + @JsonProperty(value = "artifactStorageClassName") + private String artifactStorageClassName; + + /* + * The artifactStorageMountPath property. + */ + @JsonProperty(value = "artifactStorageMountPath") + private String artifactStorageMountPath; + + /* + * The artifactStorageNodeName property. + */ + @JsonProperty(value = "artifactStorageNodeName") + private String artifactStorageNodeName; + + /* + * The artifactStorageAccessMode property. + */ + @JsonProperty(value = "artifactStorageAccessMode") + private String artifactStorageAccessMode; + + /* + * The frontEndServiceConfiguration property. + */ + @JsonProperty(value = "frontEndServiceConfiguration") + private FrontEndConfiguration frontEndServiceConfiguration; + + /* + * The kubeConfig property. + */ + @JsonProperty(value = "kubeConfig") + private String kubeConfig; + + /** + * Get the artifactsStorageType property: The artifactsStorageType property. + * + * @return the artifactsStorageType value. + */ + public StorageType artifactsStorageType() { + return this.artifactsStorageType; + } + + /** + * Set the artifactsStorageType property: The artifactsStorageType property. + * + * @param artifactsStorageType the artifactsStorageType value to set. + * @return the ArcConfiguration object itself. + */ + public ArcConfiguration withArtifactsStorageType(StorageType artifactsStorageType) { + this.artifactsStorageType = artifactsStorageType; + return this; + } + + /** + * Get the artifactStorageClassName property: The artifactStorageClassName property. + * + * @return the artifactStorageClassName value. + */ + public String artifactStorageClassName() { + return this.artifactStorageClassName; + } + + /** + * Set the artifactStorageClassName property: The artifactStorageClassName property. + * + * @param artifactStorageClassName the artifactStorageClassName value to set. + * @return the ArcConfiguration object itself. + */ + public ArcConfiguration withArtifactStorageClassName(String artifactStorageClassName) { + this.artifactStorageClassName = artifactStorageClassName; + return this; + } + + /** + * Get the artifactStorageMountPath property: The artifactStorageMountPath property. + * + * @return the artifactStorageMountPath value. + */ + public String artifactStorageMountPath() { + return this.artifactStorageMountPath; + } + + /** + * Set the artifactStorageMountPath property: The artifactStorageMountPath property. + * + * @param artifactStorageMountPath the artifactStorageMountPath value to set. + * @return the ArcConfiguration object itself. + */ + public ArcConfiguration withArtifactStorageMountPath(String artifactStorageMountPath) { + this.artifactStorageMountPath = artifactStorageMountPath; + return this; + } + + /** + * Get the artifactStorageNodeName property: The artifactStorageNodeName property. + * + * @return the artifactStorageNodeName value. + */ + public String artifactStorageNodeName() { + return this.artifactStorageNodeName; + } + + /** + * Set the artifactStorageNodeName property: The artifactStorageNodeName property. + * + * @param artifactStorageNodeName the artifactStorageNodeName value to set. + * @return the ArcConfiguration object itself. + */ + public ArcConfiguration withArtifactStorageNodeName(String artifactStorageNodeName) { + this.artifactStorageNodeName = artifactStorageNodeName; + return this; + } + + /** + * Get the artifactStorageAccessMode property: The artifactStorageAccessMode property. + * + * @return the artifactStorageAccessMode value. + */ + public String artifactStorageAccessMode() { + return this.artifactStorageAccessMode; + } + + /** + * Set the artifactStorageAccessMode property: The artifactStorageAccessMode property. + * + * @param artifactStorageAccessMode the artifactStorageAccessMode value to set. + * @return the ArcConfiguration object itself. + */ + public ArcConfiguration withArtifactStorageAccessMode(String artifactStorageAccessMode) { + this.artifactStorageAccessMode = artifactStorageAccessMode; + return this; + } + + /** + * Get the frontEndServiceConfiguration property: The frontEndServiceConfiguration property. + * + * @return the frontEndServiceConfiguration value. + */ + public FrontEndConfiguration frontEndServiceConfiguration() { + return this.frontEndServiceConfiguration; + } + + /** + * Set the frontEndServiceConfiguration property: The frontEndServiceConfiguration property. + * + * @param frontEndServiceConfiguration the frontEndServiceConfiguration value to set. + * @return the ArcConfiguration object itself. + */ + public ArcConfiguration withFrontEndServiceConfiguration(FrontEndConfiguration frontEndServiceConfiguration) { + this.frontEndServiceConfiguration = frontEndServiceConfiguration; + return this; + } + + /** + * Get the kubeConfig property: The kubeConfig property. + * + * @return the kubeConfig value. + */ + public String kubeConfig() { + return this.kubeConfig; + } + + /** + * Set the kubeConfig property: The kubeConfig property. + * + * @param kubeConfig the kubeConfig value to set. + * @return the ArcConfiguration object itself. + */ + public ArcConfiguration withKubeConfig(String kubeConfig) { + this.kubeConfig = kubeConfig; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (frontEndServiceConfiguration() != null) { + frontEndServiceConfiguration().validate(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ExtendedLocation.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ExtendedLocation.java new file mode 100644 index 000000000000..11651a3b94d1 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ExtendedLocation.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Extended Location. */ +@Fluent +public final class ExtendedLocation { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ExtendedLocation.class); + + /* + * Name of extended location. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Type of extended location. + */ + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; + + /** + * Get the name property: Name of extended location. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Name of extended location. + * + * @param name the name value to set. + * @return the ExtendedLocation object itself. + */ + public ExtendedLocation withName(String name) { + this.name = name; + return this; + } + + /** + * Get the type property: Type of extended location. + * + * @return the type value. + */ + public String type() { + return this.type; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/FrontEndConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/FrontEndConfiguration.java new file mode 100644 index 000000000000..2da639951751 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/FrontEndConfiguration.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The FrontEndConfiguration model. */ +@Fluent +public final class FrontEndConfiguration { + @JsonIgnore private final ClientLogger logger = new ClientLogger(FrontEndConfiguration.class); + + /* + * The kind property. + */ + @JsonProperty(value = "kind") + private FrontEndServiceType kind; + + /** + * Get the kind property: The kind property. + * + * @return the kind value. + */ + public FrontEndServiceType kind() { + return this.kind; + } + + /** + * Set the kind property: The kind property. + * + * @param kind the kind value to set. + * @return the FrontEndConfiguration object itself. + */ + public FrontEndConfiguration withKind(FrontEndServiceType kind) { + this.kind = kind; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/FrontEndServiceType.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/FrontEndServiceType.java new file mode 100644 index 000000000000..a820eb4bab39 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/FrontEndServiceType.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appservice.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** Defines values for FrontEndServiceType. */ +public enum FrontEndServiceType { + /** Enum value NodePort. */ + NODE_PORT("NodePort"), + + /** Enum value LoadBalancer. */ + LOAD_BALANCER("LoadBalancer"); + + /** The actual serialized value for a FrontEndServiceType instance. */ + private final String value; + + FrontEndServiceType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a FrontEndServiceType instance. + * + * @param value the serialized value to parse. + * @return the parsed FrontEndServiceType object, or null if unable to parse. + */ + @JsonCreator + public static FrontEndServiceType fromString(String value) { + FrontEndServiceType[] items = FrontEndServiceType.values(); + for (FrontEndServiceType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/KubeEnvironmentCollection.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/KubeEnvironmentCollection.java new file mode 100644 index 000000000000..b02c9d467afc --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/KubeEnvironmentCollection.java @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.appservice.fluent.models.KubeEnvironmentInner; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** Collection of Kubernetes Environments. */ +@Fluent +public final class KubeEnvironmentCollection { + @JsonIgnore private final ClientLogger logger = new ClientLogger(KubeEnvironmentCollection.class); + + /* + * Collection of resources. + */ + @JsonProperty(value = "value", required = true) + private List value; + + /* + * Link to next page of resources. + */ + @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) + private String nextLink; + + /** + * Get the value property: Collection of resources. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: Collection of resources. + * + * @param value the value value to set. + * @return the KubeEnvironmentCollection object itself. + */ + public KubeEnvironmentCollection withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink property: Link to next page of resources. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property value in model KubeEnvironmentCollection")); + } else { + value().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/KubeEnvironmentPatchResource.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/KubeEnvironmentPatchResource.java new file mode 100644 index 000000000000..e3bb39eee9a9 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/KubeEnvironmentPatchResource.java @@ -0,0 +1,224 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** ARM resource for a KubeEnvironment when patching. */ +@JsonFlatten +@Fluent +public class KubeEnvironmentPatchResource extends ProxyOnlyResource { + @JsonIgnore private final ClientLogger logger = new ClientLogger(KubeEnvironmentPatchResource.class); + + /* + * Provisioning state of the Kubernetes Environment. + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private KubeEnvironmentProvisioningState provisioningState; + + /* + * Any errors that occurred during deployment or deployment validation + */ + @JsonProperty(value = "properties.deploymentErrors", access = JsonProperty.Access.WRITE_ONLY) + private String deploymentErrors; + + /* + * Only visible within Vnet/Subnet + */ + @JsonProperty(value = "properties.internalLoadBalancerEnabled") + private Boolean internalLoadBalancerEnabled; + + /* + * Default Domain Name for the cluster + */ + @JsonProperty(value = "properties.defaultDomain", access = JsonProperty.Access.WRITE_ONLY) + private String defaultDomain; + + /* + * Static IP of the KubeEnvironment + */ + @JsonProperty(value = "properties.staticIp") + private String staticIp; + + /* + * Cluster configuration which determines the ARC cluster + * components types. Eg: Choosing between BuildService kind, + * FrontEnd Service ArtifactsStorageType etc. + */ + @JsonProperty(value = "properties.arcConfiguration") + private ArcConfiguration arcConfiguration; + + /* + * Cluster configuration which enables the log daemon to export + * app logs to a destination. Currently only "log-analytics" is + * supported + */ + @JsonProperty(value = "properties.appLogsConfiguration") + private AppLogsConfiguration appLogsConfiguration; + + /* + * The aksResourceID property. + */ + @JsonProperty(value = "properties.aksResourceID") + private String aksResourceId; + + /** + * Get the provisioningState property: Provisioning state of the Kubernetes Environment. + * + * @return the provisioningState value. + */ + public KubeEnvironmentProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the deploymentErrors property: Any errors that occurred during deployment or deployment validation. + * + * @return the deploymentErrors value. + */ + public String deploymentErrors() { + return this.deploymentErrors; + } + + /** + * Get the internalLoadBalancerEnabled property: Only visible within Vnet/Subnet. + * + * @return the internalLoadBalancerEnabled value. + */ + public Boolean internalLoadBalancerEnabled() { + return this.internalLoadBalancerEnabled; + } + + /** + * Set the internalLoadBalancerEnabled property: Only visible within Vnet/Subnet. + * + * @param internalLoadBalancerEnabled the internalLoadBalancerEnabled value to set. + * @return the KubeEnvironmentPatchResource object itself. + */ + public KubeEnvironmentPatchResource withInternalLoadBalancerEnabled(Boolean internalLoadBalancerEnabled) { + this.internalLoadBalancerEnabled = internalLoadBalancerEnabled; + return this; + } + + /** + * Get the defaultDomain property: Default Domain Name for the cluster. + * + * @return the defaultDomain value. + */ + public String defaultDomain() { + return this.defaultDomain; + } + + /** + * Get the staticIp property: Static IP of the KubeEnvironment. + * + * @return the staticIp value. + */ + public String staticIp() { + return this.staticIp; + } + + /** + * Set the staticIp property: Static IP of the KubeEnvironment. + * + * @param staticIp the staticIp value to set. + * @return the KubeEnvironmentPatchResource object itself. + */ + public KubeEnvironmentPatchResource withStaticIp(String staticIp) { + this.staticIp = staticIp; + return this; + } + + /** + * Get the arcConfiguration property: Cluster configuration which determines the ARC cluster components types. Eg: + * Choosing between BuildService kind, FrontEnd Service ArtifactsStorageType etc. + * + * @return the arcConfiguration value. + */ + public ArcConfiguration arcConfiguration() { + return this.arcConfiguration; + } + + /** + * Set the arcConfiguration property: Cluster configuration which determines the ARC cluster components types. Eg: + * Choosing between BuildService kind, FrontEnd Service ArtifactsStorageType etc. + * + * @param arcConfiguration the arcConfiguration value to set. + * @return the KubeEnvironmentPatchResource object itself. + */ + public KubeEnvironmentPatchResource withArcConfiguration(ArcConfiguration arcConfiguration) { + this.arcConfiguration = arcConfiguration; + return this; + } + + /** + * Get the appLogsConfiguration property: Cluster configuration which enables the log daemon to export app logs to a + * destination. Currently only "log-analytics" is supported. + * + * @return the appLogsConfiguration value. + */ + public AppLogsConfiguration appLogsConfiguration() { + return this.appLogsConfiguration; + } + + /** + * Set the appLogsConfiguration property: Cluster configuration which enables the log daemon to export app logs to a + * destination. Currently only "log-analytics" is supported. + * + * @param appLogsConfiguration the appLogsConfiguration value to set. + * @return the KubeEnvironmentPatchResource object itself. + */ + public KubeEnvironmentPatchResource withAppLogsConfiguration(AppLogsConfiguration appLogsConfiguration) { + this.appLogsConfiguration = appLogsConfiguration; + return this; + } + + /** + * Get the aksResourceId property: The aksResourceID property. + * + * @return the aksResourceId value. + */ + public String aksResourceId() { + return this.aksResourceId; + } + + /** + * Set the aksResourceId property: The aksResourceID property. + * + * @param aksResourceId the aksResourceId value to set. + * @return the KubeEnvironmentPatchResource object itself. + */ + public KubeEnvironmentPatchResource withAksResourceId(String aksResourceId) { + this.aksResourceId = aksResourceId; + return this; + } + + /** {@inheritDoc} */ + @Override + public KubeEnvironmentPatchResource withKind(String kind) { + super.withKind(kind); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + if (arcConfiguration() != null) { + arcConfiguration().validate(); + } + if (appLogsConfiguration() != null) { + appLogsConfiguration().validate(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/KubeEnvironmentProvisioningState.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/KubeEnvironmentProvisioningState.java new file mode 100644 index 000000000000..742409247384 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/KubeEnvironmentProvisioningState.java @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appservice.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** Defines values for KubeEnvironmentProvisioningState. */ +public enum KubeEnvironmentProvisioningState { + /** Enum value Succeeded. */ + SUCCEEDED("Succeeded"), + + /** Enum value Failed. */ + FAILED("Failed"), + + /** Enum value Canceled. */ + CANCELED("Canceled"), + + /** Enum value Waiting. */ + WAITING("Waiting"), + + /** Enum value InitializationInProgress. */ + INITIALIZATION_IN_PROGRESS("InitializationInProgress"), + + /** Enum value InfrastructureSetupInProgress. */ + INFRASTRUCTURE_SETUP_IN_PROGRESS("InfrastructureSetupInProgress"), + + /** Enum value InfrastructureSetupComplete. */ + INFRASTRUCTURE_SETUP_COMPLETE("InfrastructureSetupComplete"), + + /** Enum value ScheduledForDelete. */ + SCHEDULED_FOR_DELETE("ScheduledForDelete"), + + /** Enum value UpgradeRequested. */ + UPGRADE_REQUESTED("UpgradeRequested"), + + /** Enum value UpgradeFailed. */ + UPGRADE_FAILED("UpgradeFailed"); + + /** The actual serialized value for a KubeEnvironmentProvisioningState instance. */ + private final String value; + + KubeEnvironmentProvisioningState(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a KubeEnvironmentProvisioningState instance. + * + * @param value the serialized value to parse. + * @return the parsed KubeEnvironmentProvisioningState object, or null if unable to parse. + */ + @JsonCreator + public static KubeEnvironmentProvisioningState fromString(String value) { + KubeEnvironmentProvisioningState[] items = KubeEnvironmentProvisioningState.values(); + for (KubeEnvironmentProvisioningState item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/LogAnalyticsConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/LogAnalyticsConfiguration.java new file mode 100644 index 000000000000..9af255c92363 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/LogAnalyticsConfiguration.java @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The LogAnalyticsConfiguration model. */ +@Fluent +public final class LogAnalyticsConfiguration { + @JsonIgnore private final ClientLogger logger = new ClientLogger(LogAnalyticsConfiguration.class); + + /* + * The customerId property. + */ + @JsonProperty(value = "customerId") + private String customerId; + + /* + * The sharedKey property. + */ + @JsonProperty(value = "sharedKey") + private String sharedKey; + + /** + * Get the customerId property: The customerId property. + * + * @return the customerId value. + */ + public String customerId() { + return this.customerId; + } + + /** + * Set the customerId property: The customerId property. + * + * @param customerId the customerId value to set. + * @return the LogAnalyticsConfiguration object itself. + */ + public LogAnalyticsConfiguration withCustomerId(String customerId) { + this.customerId = customerId; + return this; + } + + /** + * Get the sharedKey property: The sharedKey property. + * + * @return the sharedKey value. + */ + public String sharedKey() { + return this.sharedKey; + } + + /** + * Set the sharedKey property: The sharedKey property. + * + * @param sharedKey the sharedKey value to set. + * @return the LogAnalyticsConfiguration object itself. + */ + public LogAnalyticsConfiguration withSharedKey(String sharedKey) { + this.sharedKey = sharedKey; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StorageType.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StorageType.java new file mode 100644 index 000000000000..d53d7c8e6372 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StorageType.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appservice.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** Defines values for StorageType. */ +public enum StorageType { + /** Enum value LocalNode. */ + LOCAL_NODE("LocalNode"), + + /** Enum value NetworkFileSystem. */ + NETWORK_FILE_SYSTEM("NetworkFileSystem"); + + /** The actual serialized value for a StorageType instance. */ + private final String value; + + StorageType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a StorageType instance. + * + * @param value the serialized value to parse. + * @return the parsed StorageType object, or null if unable to parse. + */ + @JsonCreator + public static StorageType fromString(String value) { + StorageType[] items = StorageType.values(); + for (StorageType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +}