From 3b88b707c291fd9f91575c7a08ba9e29d715501d Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 28 Sep 2021 00:17:05 +0000 Subject: [PATCH] CodeGen from PR 16000 in Azure/azure-rest-api-specs Merge 23ab732bde70a6173dd343a9de5507cec390b426 into 815ea5b505ffa724fc46a2a811fa4602991bc10d --- sdk/appservice/arm-appservice/package.json | 2 +- .../src/models/certificatesMappers.ts | 1 + .../arm-appservice/src/models/index.ts | 348 ++++++++------ .../arm-appservice/src/models/mappers.ts | 429 +++++++++--------- .../src/operations/certificates.ts | 109 +++++ .../arm-appservice/src/operations/domains.ts | 58 +++ .../arm-appservice/src/operations/webApps.ts | 2 + .../src/webSiteManagementClientContext.ts | 2 +- 8 files changed, 597 insertions(+), 354 deletions(-) diff --git a/sdk/appservice/arm-appservice/package.json b/sdk/appservice/arm-appservice/package.json index 3b79f69082dd..2ed38981c18c 100644 --- a/sdk/appservice/arm-appservice/package.json +++ b/sdk/appservice/arm-appservice/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appservice/arm-appservice", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/appservice/arm-appservice", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/appservice/arm-appservice/src/models/certificatesMappers.ts b/sdk/appservice/arm-appservice/src/models/certificatesMappers.ts index 95dc7d012cc6..2231f0c4c0b1 100644 --- a/sdk/appservice/arm-appservice/src/models/certificatesMappers.ts +++ b/sdk/appservice/arm-appservice/src/models/certificatesMappers.ts @@ -141,6 +141,7 @@ export { HostingEnvironmentProfile, HostName, HostNameBinding, + HostNameBindingCollection, HostNameSslState, HttpLogsConfig, HttpSettings, diff --git a/sdk/appservice/arm-appservice/src/models/index.ts b/sdk/appservice/arm-appservice/src/models/index.ts index ff353311f7e7..20fc50c9a07e 100644 --- a/sdk/appservice/arm-appservice/src/models/index.ts +++ b/sdk/appservice/arm-appservice/src/models/index.ts @@ -806,6 +806,49 @@ export interface HybridConnection extends ProxyOnlyResource { serviceBusSuffix?: string; } +/** + * A hostname binding object. + */ +export interface HostNameBinding extends ProxyOnlyResource { + /** + * App Service app name. + */ + siteName?: string; + /** + * Fully qualified ARM domain resource URI. + */ + domainId?: string; + /** + * Azure resource name. + */ + azureResourceName?: string; + /** + * Azure resource type. Possible values include: 'Website', 'TrafficManager' + */ + azureResourceType?: AzureResourceType; + /** + * Custom DNS record type. Possible values include: 'CName', 'A' + */ + customHostNameDnsRecordType?: CustomHostNameDnsRecordType; + /** + * Hostname type. Possible values include: 'Verified', 'Managed' + */ + hostNameType?: HostNameType; + /** + * SSL type. Possible values include: 'Disabled', 'SniEnabled', 'IpBasedEnabled' + */ + sslState?: SslState; + /** + * SSL certificate thumbprint + */ + thumbprint?: string; + /** + * Virtual IP address assigned to the hostname if IP based SSL is enabled. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly virtualIP?: string; +} + /** * Sample utterance. */ @@ -6242,9 +6285,13 @@ export interface StaticSiteARMResource extends Resource { readonly userProvidedFunctionApps?: StaticSiteUserProvidedFunctionApp[]; /** * The provider that submitted the last deployment to the primary environment of the static site. - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provider?: string; + provider?: string; + /** + * State indicating the status of the enterprise grade CDN serving traffic to the static web app. + * Possible values include: 'Enabled', 'Enabling', 'Disabled', 'Disabling' + */ + enterpriseGradeCdnStatus?: EnterpriseGradeCdnStatus; sku?: SkuDescription; identity?: ManagedServiceIdentity; } @@ -6420,9 +6467,13 @@ export interface StaticSitePatchResource extends ProxyOnlyResource { readonly userProvidedFunctionApps?: StaticSiteUserProvidedFunctionApp[]; /** * The provider that submitted the last deployment to the primary environment of the static site. - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provider?: string; + provider?: string; + /** + * State indicating the status of the enterprise grade CDN serving traffic to the static web app. + * Possible values include: 'Enabled', 'Enabling', 'Disabled', 'Disabling' + */ + enterpriseGradeCdnStatus?: EnterpriseGradeCdnStatus; } /** @@ -6609,7 +6660,7 @@ export interface AllowedAudiencesValidation { /** * The configuration settings of the Azure Active Directory allowed principals. */ -export interface AllowedPrincipals extends ProxyOnlyResource { +export interface AllowedPrincipals { /** * The list of the allowed groups. */ @@ -6647,7 +6698,7 @@ export interface ApiKVReference extends ProxyOnlyResource { * The configuration settings of the app registration for providers that have app ids and app * secrets */ -export interface AppRegistration extends ProxyOnlyResource { +export interface AppRegistration { /** * The App ID of the app used for login. */ @@ -6685,7 +6736,7 @@ export interface LoginScopes { /** * The configuration settings of the Apple provider. */ -export interface Apple extends ProxyOnlyResource { +export interface Apple { /** * false if the Apple provider should not be enabled despite the set registration; * otherwise, true. @@ -6789,7 +6840,7 @@ export interface AuthPlatform { /** * The configuration settings of the Azure Active Directory app registration. */ -export interface AzureActiveDirectoryRegistration extends ProxyOnlyResource { +export interface AzureActiveDirectoryRegistration { /** * The OpenID Connect Issuer URI that represents the entity which issues access tokens for this * application. @@ -6835,7 +6886,7 @@ export interface AzureActiveDirectoryRegistration extends ProxyOnlyResource { /** * The configuration settings of the Azure Active Directory login flow. */ -export interface AzureActiveDirectoryLogin extends ProxyOnlyResource { +export interface AzureActiveDirectoryLogin { /** * Login parameters to send to the OpenID Connect authorization endpoint when * a user logs in. Each parameter must be in the form "key=value". @@ -6879,7 +6930,7 @@ export interface DefaultAuthorizationPolicy { /** * The configuration settings of the Azure Active Directory token validation flow. */ -export interface AzureActiveDirectoryValidation extends ProxyOnlyResource { +export interface AzureActiveDirectoryValidation { /** * The configuration settings of the checks that should be made while validating the JWT Claims. */ @@ -6959,7 +7010,7 @@ export interface AzureStaticWebAppsRegistration { /** * The configuration settings of the Azure Static Web Apps provider. */ -export interface AzureStaticWebApps extends ProxyOnlyResource { +export interface AzureStaticWebApps { /** * false if the Azure Static Web Apps provider should not be enabled despite the set * registration; otherwise, true. @@ -7147,7 +7198,7 @@ export interface BackupRequest extends ProxyOnlyResource { /** * The configuration settings of the storage of the tokens if blob storage is used. */ -export interface BlobStorageTokenStore extends ProxyOnlyResource { +export interface BlobStorageTokenStore { /** * The name of the app setting containing the SAS URL of the blob storage containing the tokens. */ @@ -7496,7 +7547,7 @@ export interface OpenIdConnectLogin { /** * The configuration settings of the custom Open ID Connect provider. */ -export interface CustomOpenIdConnectProvider extends ProxyOnlyResource { +export interface CustomOpenIdConnectProvider { /** * false if the custom Open ID provider provider should not be enabled; otherwise, * true. @@ -7739,7 +7790,7 @@ export interface FunctionSecrets { /** * The configuration settings of the GitHub provider. */ -export interface GitHub extends ProxyOnlyResource { +export interface GitHub { /** * false if the GitHub provider should not be enabled despite the set registration; * otherwise, true. @@ -7845,7 +7896,7 @@ export interface GlobalValidation { /** * The configuration settings of the Google provider. */ -export interface Google extends ProxyOnlyResource { +export interface Google { /** * false if the Google provider should not be enabled despite the set registration; * otherwise, true. @@ -7883,49 +7934,6 @@ export interface HostKeys { systemKeys?: { [propertyName: string]: string }; } -/** - * A hostname binding object. - */ -export interface HostNameBinding extends ProxyOnlyResource { - /** - * App Service app name. - */ - siteName?: string; - /** - * Fully qualified ARM domain resource URI. - */ - domainId?: string; - /** - * Azure resource name. - */ - azureResourceName?: string; - /** - * Azure resource type. Possible values include: 'Website', 'TrafficManager' - */ - azureResourceType?: AzureResourceType; - /** - * Custom DNS record type. Possible values include: 'CName', 'A' - */ - customHostNameDnsRecordType?: CustomHostNameDnsRecordType; - /** - * Hostname type. Possible values include: 'Verified', 'Managed' - */ - hostNameType?: HostNameType; - /** - * SSL type. Possible values include: 'Disabled', 'SniEnabled', 'IpBasedEnabled' - */ - sslState?: SslState; - /** - * SSL certificate thumbprint - */ - thumbprint?: string; - /** - * Virtual IP address assigned to the hostname if IP based SSL is enabled. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly virtualIP?: string; -} - /** * Http logs configuration. */ @@ -7970,6 +7978,29 @@ export interface HttpSettings { forwardProxy?: ForwardProxy; } +/** + * The configuration settings of the legacy Microsoft Account provider. + */ +export interface LegacyMicrosoftAccount { + /** + * false if the legacy Microsoft Account provider should not be enabled despite the + * set registration; otherwise, true. + */ + enabled?: boolean; + /** + * The configuration settings of the app registration for the legacy Microsoft Account provider. + */ + registration?: ClientRegistration; + /** + * The configuration settings of the login flow. + */ + login?: LoginScopes; + /** + * The configuration settings of the legacy Microsoft Account provider token validation flow. + */ + validation?: AllowedAudiencesValidation; +} + /** * The configuration settings of the app registration for the Twitter provider. */ @@ -7990,7 +8021,7 @@ export interface TwitterRegistration { /** * The configuration settings of the Twitter provider. */ -export interface Twitter extends ProxyOnlyResource { +export interface Twitter { /** * false if the Twitter provider should not be enabled despite the set registration; * otherwise, true. @@ -8002,29 +8033,6 @@ export interface Twitter extends ProxyOnlyResource { registration?: TwitterRegistration; } -/** - * The configuration settings of the legacy Microsoft Account provider. - */ -export interface LegacyMicrosoftAccount extends ProxyOnlyResource { - /** - * false if the legacy Microsoft Account provider should not be enabled despite the - * set registration; otherwise, true. - */ - enabled?: boolean; - /** - * The configuration settings of the app registration for the legacy Microsoft Account provider. - */ - registration?: ClientRegistration; - /** - * The configuration settings of the login flow. - */ - login?: LoginScopes; - /** - * The configuration settings of the legacy Microsoft Account provider token validation flow. - */ - validation?: AllowedAudiencesValidation; -} - /** * The configuration settings of each of the identity providers used to configure App Service * Authentication/Authorization. @@ -8046,19 +8054,14 @@ export interface IdentityProviders { * The configuration settings of the Google provider. */ google?: Google; - /** - * The configuration settings of the Twitter provider. - */ - twitter?: Twitter; - /** - * 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. - */ - customOpenIdConnectProviders?: { [propertyName: string]: CustomOpenIdConnectProvider }; /** * The configuration settings of the legacy Microsoft Account provider. */ legacyMicrosoftAccount?: LegacyMicrosoftAccount; + /** + * The configuration settings of the Twitter provider. + */ + twitter?: Twitter; /** * The configuration settings of the Apple provider. */ @@ -8067,6 +8070,11 @@ export interface IdentityProviders { * The configuration settings of the Azure Static Web Apps provider. */ azureStaticWebApps?: AzureStaticWebApps; + /** + * 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. + */ + customOpenIdConnectProviders?: { [propertyName: string]: CustomOpenIdConnectProvider }; } /** @@ -11716,6 +11724,19 @@ export interface CertificateCollection extends Array { readonly nextLink?: string; } +/** + * @interface + * Collection of hostname bindings. + * @extends Array + */ +export interface HostNameBindingCollection extends Array { + /** + * Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + /** * @interface * Collection of deleted apps. @@ -12093,19 +12114,6 @@ export interface FunctionEnvelopeCollection extends Array { readonly nextLink?: string; } -/** - * @interface - * Collection of hostname bindings. - * @extends Array - */ -export interface HostNameBindingCollection extends Array { - /** - * Link to next page of resources. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; -} - /** * @interface * Collection of app instances. @@ -12317,6 +12325,38 @@ export type CertificateOrderActionType = 'CertificateIssued' | 'CertificateOrder */ export type RouteType = 'DEFAULT' | 'INHERITED' | 'STATIC'; +/** + * Defines values for AzureResourceType. + * Possible values include: 'Website', 'TrafficManager' + * @readonly + * @enum {string} + */ +export type AzureResourceType = 'Website' | 'TrafficManager'; + +/** + * Defines values for CustomHostNameDnsRecordType. + * Possible values include: 'CName', 'A' + * @readonly + * @enum {string} + */ +export type CustomHostNameDnsRecordType = 'CName' | 'A'; + +/** + * Defines values for HostNameType. + * Possible values include: 'Verified', 'Managed' + * @readonly + * @enum {string} + */ +export type HostNameType = 'Verified' | 'Managed'; + +/** + * Defines values for SslState. + * Possible values include: 'Disabled', 'SniEnabled', 'IpBasedEnabled' + * @readonly + * @enum {string} + */ +export type SslState = 'Disabled' | 'SniEnabled' | 'IpBasedEnabled'; + /** * Defines values for InsightStatus. * Possible values include: 'Critical', 'Warning', 'Info', 'Success', 'None' @@ -12438,14 +12478,6 @@ export type SupportedTlsVersions = '1.0' | '1.1' | '1.2'; */ export type FtpsState = 'AllAllowed' | 'FtpsOnly' | 'Disabled'; -/** - * Defines values for SslState. - * Possible values include: 'Disabled', 'SniEnabled', 'IpBasedEnabled' - * @readonly - * @enum {string} - */ -export type SslState = 'Disabled' | 'SniEnabled' | 'IpBasedEnabled'; - /** * Defines values for HostType. * Possible values include: 'Standard', 'Repository' @@ -12504,30 +12536,6 @@ export type StatusOptions = 'Ready' | 'Pending' | 'Creating'; */ export type DomainStatus = 'Active' | 'Awaiting' | 'Cancelled' | 'Confiscated' | 'Disabled' | 'Excluded' | 'Expired' | 'Failed' | 'Held' | 'Locked' | 'Parked' | 'Pending' | 'Reserved' | 'Reverted' | 'Suspended' | 'Transferred' | 'Unknown' | 'Unlocked' | 'Unparked' | 'Updated' | 'JsonConverterFailed'; -/** - * Defines values for AzureResourceType. - * Possible values include: 'Website', 'TrafficManager' - * @readonly - * @enum {string} - */ -export type AzureResourceType = 'Website' | 'TrafficManager'; - -/** - * Defines values for CustomHostNameDnsRecordType. - * Possible values include: 'CName', 'A' - * @readonly - * @enum {string} - */ -export type CustomHostNameDnsRecordType = 'CName' | 'A'; - -/** - * Defines values for HostNameType. - * Possible values include: 'Verified', 'Managed' - * @readonly - * @enum {string} - */ -export type HostNameType = 'Verified' | 'Managed'; - /** * Defines values for DnsType. * Possible values include: 'AzureDns', 'DefaultDomainRegistrarDns' @@ -12702,6 +12710,14 @@ export type ValidateResourceTypes = 'ServerFarm' | 'Site' | 'Microsoft.Web/hosti */ export type StagingEnvironmentPolicy = 'Enabled' | 'Disabled'; +/** + * Defines values for EnterpriseGradeCdnStatus. + * Possible values include: 'Enabled', 'Enabling', 'Disabled', 'Disabling' + * @readonly + * @enum {string} + */ +export type EnterpriseGradeCdnStatus = 'Enabled' | 'Enabling' | 'Disabled' | 'Disabling'; + /** * Defines values for BuildStatus. * Possible values include: 'WaitingForDeployment', 'Uploading', 'Deploying', 'Ready', 'Failed', @@ -13670,6 +13686,26 @@ export type DomainsUpdateOwnershipIdentifierResponse = DomainOwnershipIdentifier }; }; +/** + * Contains response data for the transferOut operation. + */ +export type DomainsTransferOutResponse = Domain & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Domain; + }; +}; + /** * Contains response data for the beginCreateOrUpdate operation. */ @@ -16085,6 +16121,26 @@ export type CertificatesUpdateResponse = Certificate & { }; }; +/** + * Contains response data for the listHostnameBindings operation. + */ +export type CertificatesListHostnameBindingsResponse = HostNameBindingCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: HostNameBindingCollection; + }; +}; + /** * Contains response data for the listNext operation. */ @@ -16125,6 +16181,26 @@ export type CertificatesListByResourceGroupNextResponse = CertificateCollection }; }; +/** + * Contains response data for the listHostnameBindingsNext operation. + */ +export type CertificatesListHostnameBindingsNextResponse = HostNameBindingCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: HostNameBindingCollection; + }; +}; + /** * Contains response data for the list operation. */ diff --git a/sdk/appservice/arm-appservice/src/models/mappers.ts b/sdk/appservice/arm-appservice/src/models/mappers.ts index 43e4f061d4bb..67414c31ee34 100644 --- a/sdk/appservice/arm-appservice/src/models/mappers.ts +++ b/sdk/appservice/arm-appservice/src/models/mappers.ts @@ -1354,6 +1354,89 @@ export const HybridConnection: msRest.CompositeMapper = { } }; +export const HostNameBinding: msRest.CompositeMapper = { + serializedName: "HostNameBinding", + type: { + name: "Composite", + className: "HostNameBinding", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + siteName: { + serializedName: "properties.siteName", + type: { + name: "String" + } + }, + domainId: { + serializedName: "properties.domainId", + type: { + name: "String" + } + }, + azureResourceName: { + serializedName: "properties.azureResourceName", + type: { + name: "String" + } + }, + azureResourceType: { + serializedName: "properties.azureResourceType", + type: { + name: "Enum", + allowedValues: [ + "Website", + "TrafficManager" + ] + } + }, + customHostNameDnsRecordType: { + serializedName: "properties.customHostNameDnsRecordType", + type: { + name: "Enum", + allowedValues: [ + "CName", + "A" + ] + } + }, + hostNameType: { + serializedName: "properties.hostNameType", + type: { + name: "Enum", + allowedValues: [ + "Verified", + "Managed" + ] + } + }, + sslState: { + serializedName: "properties.sslState", + type: { + name: "Enum", + allowedValues: [ + "Disabled", + "SniEnabled", + "IpBasedEnabled" + ] + } + }, + thumbprint: { + serializedName: "properties.thumbprint", + type: { + name: "String" + } + }, + virtualIP: { + readOnly: true, + serializedName: "properties.virtualIP", + type: { + name: "String" + } + } + } + } +}; + export const SampleUtterance: msRest.CompositeMapper = { serializedName: "SampleUtterance", type: { @@ -10844,12 +10927,17 @@ export const StaticSiteARMResource: msRest.CompositeMapper = { } }, provider: { - readOnly: true, serializedName: "properties.provider", type: { name: "String" } }, + enterpriseGradeCdnStatus: { + serializedName: "properties.enterpriseGradeCdnStatus", + type: { + name: "String" + } + }, sku: { serializedName: "sku", type: { @@ -11145,11 +11233,16 @@ export const StaticSitePatchResource: msRest.CompositeMapper = { } }, provider: { - readOnly: true, serializedName: "properties.provider", type: { name: "String" } + }, + enterpriseGradeCdnStatus: { + serializedName: "properties.enterpriseGradeCdnStatus", + type: { + name: "String" + } } } } @@ -11457,9 +11550,8 @@ export const AllowedPrincipals: msRest.CompositeMapper = { name: "Composite", className: "AllowedPrincipals", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, groups: { - serializedName: "properties.groups", + serializedName: "groups", type: { name: "Sequence", element: { @@ -11470,7 +11562,7 @@ export const AllowedPrincipals: msRest.CompositeMapper = { } }, identities: { - serializedName: "properties.identities", + serializedName: "identities", type: { name: "Sequence", element: { @@ -11572,15 +11664,14 @@ export const AppRegistration: msRest.CompositeMapper = { name: "Composite", className: "AppRegistration", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, appId: { - serializedName: "properties.appId", + serializedName: "appId", type: { name: "String" } }, appSecretSettingName: { - serializedName: "properties.appSecretSettingName", + serializedName: "appSecretSettingName", type: { name: "String" } @@ -11638,22 +11729,21 @@ export const Apple: msRest.CompositeMapper = { name: "Composite", className: "Apple", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, enabled: { - serializedName: "properties.enabled", + serializedName: "enabled", type: { name: "Boolean" } }, registration: { - serializedName: "properties.registration", + serializedName: "registration", type: { name: "Composite", className: "AppleRegistration" } }, login: { - serializedName: "properties.login", + serializedName: "login", type: { name: "Composite", className: "LoginScopes" @@ -11817,39 +11907,38 @@ export const AzureActiveDirectoryRegistration: msRest.CompositeMapper = { name: "Composite", className: "AzureActiveDirectoryRegistration", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, openIdIssuer: { - serializedName: "properties.openIdIssuer", + serializedName: "openIdIssuer", type: { name: "String" } }, clientId: { - serializedName: "properties.clientId", + serializedName: "clientId", type: { name: "String" } }, clientSecretSettingName: { - serializedName: "properties.clientSecretSettingName", + serializedName: "clientSecretSettingName", type: { name: "String" } }, clientSecretCertificateThumbprint: { - serializedName: "properties.clientSecretCertificateThumbprint", + serializedName: "clientSecretCertificateThumbprint", type: { name: "String" } }, clientSecretCertificateSubjectAlternativeName: { - serializedName: "properties.clientSecretCertificateSubjectAlternativeName", + serializedName: "clientSecretCertificateSubjectAlternativeName", type: { name: "String" } }, clientSecretCertificateIssuer: { - serializedName: "properties.clientSecretCertificateIssuer", + serializedName: "clientSecretCertificateIssuer", type: { name: "String" } @@ -11864,9 +11953,8 @@ export const AzureActiveDirectoryLogin: msRest.CompositeMapper = { name: "Composite", className: "AzureActiveDirectoryLogin", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, loginParameters: { - serializedName: "properties.loginParameters", + serializedName: "loginParameters", type: { name: "Sequence", element: { @@ -11877,7 +11965,7 @@ export const AzureActiveDirectoryLogin: msRest.CompositeMapper = { } }, disableWWWAuthenticate: { - serializedName: "properties.disableWWWAuthenticate", + serializedName: "disableWWWAuthenticate", type: { name: "Boolean" } @@ -11952,16 +12040,15 @@ export const AzureActiveDirectoryValidation: msRest.CompositeMapper = { name: "Composite", className: "AzureActiveDirectoryValidation", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, jwtClaimChecks: { - serializedName: "properties.jwtClaimChecks", + serializedName: "jwtClaimChecks", type: { name: "Composite", className: "JwtClaimChecks" } }, allowedAudiences: { - serializedName: "properties.allowedAudiences", + serializedName: "allowedAudiences", type: { name: "Sequence", element: { @@ -11972,7 +12059,7 @@ export const AzureActiveDirectoryValidation: msRest.CompositeMapper = { } }, defaultAuthorizationPolicy: { - serializedName: "properties.defaultAuthorizationPolicy", + serializedName: "defaultAuthorizationPolicy", type: { name: "Composite", className: "DefaultAuthorizationPolicy" @@ -12075,15 +12162,14 @@ export const AzureStaticWebApps: msRest.CompositeMapper = { name: "Composite", className: "AzureStaticWebApps", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, enabled: { - serializedName: "properties.enabled", + serializedName: "enabled", type: { name: "Boolean" } }, registration: { - serializedName: "properties.registration", + serializedName: "registration", type: { name: "Composite", className: "AzureStaticWebAppsRegistration" @@ -12392,9 +12478,8 @@ export const BlobStorageTokenStore: msRest.CompositeMapper = { name: "Composite", className: "BlobStorageTokenStore", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, sasUrlSettingName: { - serializedName: "properties.sasUrlSettingName", + serializedName: "sasUrlSettingName", type: { name: "String" } @@ -13155,22 +13240,21 @@ export const CustomOpenIdConnectProvider: msRest.CompositeMapper = { name: "Composite", className: "CustomOpenIdConnectProvider", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, enabled: { - serializedName: "properties.enabled", + serializedName: "enabled", type: { name: "Boolean" } }, registration: { - serializedName: "properties.registration", + serializedName: "registration", type: { name: "Composite", className: "OpenIdConnectRegistration" } }, login: { - serializedName: "properties.login", + serializedName: "login", type: { name: "Composite", className: "OpenIdConnectLogin" @@ -13535,22 +13619,21 @@ export const GitHub: msRest.CompositeMapper = { name: "Composite", className: "GitHub", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, enabled: { - serializedName: "properties.enabled", + serializedName: "enabled", type: { name: "Boolean" } }, registration: { - serializedName: "properties.registration", + serializedName: "registration", type: { name: "Composite", className: "ClientRegistration" } }, login: { - serializedName: "properties.login", + serializedName: "login", type: { name: "Composite", className: "LoginScopes" @@ -13703,29 +13786,28 @@ export const Google: msRest.CompositeMapper = { name: "Composite", className: "Google", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, enabled: { - serializedName: "properties.enabled", + serializedName: "enabled", type: { name: "Boolean" } }, registration: { - serializedName: "properties.registration", + serializedName: "registration", type: { name: "Composite", className: "ClientRegistration" } }, login: { - serializedName: "properties.login", + serializedName: "login", type: { name: "Composite", className: "LoginScopes" } }, validation: { - serializedName: "properties.validation", + serializedName: "validation", type: { name: "Composite", className: "AllowedAudiencesValidation" @@ -13773,89 +13855,6 @@ export const HostKeys: msRest.CompositeMapper = { } }; -export const HostNameBinding: msRest.CompositeMapper = { - serializedName: "HostNameBinding", - type: { - name: "Composite", - className: "HostNameBinding", - modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - siteName: { - serializedName: "properties.siteName", - type: { - name: "String" - } - }, - domainId: { - serializedName: "properties.domainId", - type: { - name: "String" - } - }, - azureResourceName: { - serializedName: "properties.azureResourceName", - type: { - name: "String" - } - }, - azureResourceType: { - serializedName: "properties.azureResourceType", - type: { - name: "Enum", - allowedValues: [ - "Website", - "TrafficManager" - ] - } - }, - customHostNameDnsRecordType: { - serializedName: "properties.customHostNameDnsRecordType", - type: { - name: "Enum", - allowedValues: [ - "CName", - "A" - ] - } - }, - hostNameType: { - serializedName: "properties.hostNameType", - type: { - name: "Enum", - allowedValues: [ - "Verified", - "Managed" - ] - } - }, - sslState: { - serializedName: "properties.sslState", - type: { - name: "Enum", - allowedValues: [ - "Disabled", - "SniEnabled", - "IpBasedEnabled" - ] - } - }, - thumbprint: { - serializedName: "properties.thumbprint", - type: { - name: "String" - } - }, - virtualIP: { - readOnly: true, - serializedName: "properties.virtualIP", - type: { - name: "String" - } - } - } - } -}; - export const HttpLogsConfig: msRest.CompositeMapper = { serializedName: "HttpLogsConfig", type: { @@ -13926,84 +13925,82 @@ export const HttpSettings: msRest.CompositeMapper = { } }; -export const TwitterRegistration: msRest.CompositeMapper = { - serializedName: "TwitterRegistration", +export const LegacyMicrosoftAccount: msRest.CompositeMapper = { + serializedName: "LegacyMicrosoftAccount", type: { name: "Composite", - className: "TwitterRegistration", + className: "LegacyMicrosoftAccount", modelProperties: { - consumerKey: { - serializedName: "consumerKey", + enabled: { + serializedName: "enabled", type: { - name: "String" + name: "Boolean" } }, - consumerSecretSettingName: { - serializedName: "consumerSecretSettingName", + registration: { + serializedName: "registration", type: { - name: "String" + name: "Composite", + className: "ClientRegistration" + } + }, + login: { + serializedName: "login", + type: { + name: "Composite", + className: "LoginScopes" + } + }, + validation: { + serializedName: "validation", + type: { + name: "Composite", + className: "AllowedAudiencesValidation" } } } } }; -export const Twitter: msRest.CompositeMapper = { - serializedName: "Twitter", +export const TwitterRegistration: msRest.CompositeMapper = { + serializedName: "TwitterRegistration", type: { name: "Composite", - className: "Twitter", + className: "TwitterRegistration", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", + consumerKey: { + serializedName: "consumerKey", type: { - name: "Boolean" + name: "String" } }, - registration: { - serializedName: "properties.registration", + consumerSecretSettingName: { + serializedName: "consumerSecretSettingName", type: { - name: "Composite", - className: "TwitterRegistration" + name: "String" } } } } }; -export const LegacyMicrosoftAccount: msRest.CompositeMapper = { - serializedName: "LegacyMicrosoftAccount", +export const Twitter: msRest.CompositeMapper = { + serializedName: "Twitter", type: { name: "Composite", - className: "LegacyMicrosoftAccount", + className: "Twitter", modelProperties: { - ...ProxyOnlyResource.type.modelProperties, enabled: { - serializedName: "properties.enabled", + serializedName: "enabled", type: { name: "Boolean" } }, registration: { - serializedName: "properties.registration", - type: { - name: "Composite", - className: "ClientRegistration" - } - }, - login: { - serializedName: "properties.login", - type: { - name: "Composite", - className: "LoginScopes" - } - }, - validation: { - serializedName: "properties.validation", + serializedName: "registration", type: { name: "Composite", - className: "AllowedAudiencesValidation" + className: "TwitterRegistration" } } } @@ -14044,30 +14041,18 @@ export const IdentityProviders: msRest.CompositeMapper = { className: "Google" } }, - twitter: { - serializedName: "twitter", + legacyMicrosoftAccount: { + serializedName: "legacyMicrosoftAccount", type: { name: "Composite", - className: "Twitter" - } - }, - customOpenIdConnectProviders: { - serializedName: "customOpenIdConnectProviders", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "CustomOpenIdConnectProvider" - } - } + className: "LegacyMicrosoftAccount" } }, - legacyMicrosoftAccount: { - serializedName: "legacyMicrosoftAccount", + twitter: { + serializedName: "twitter", type: { name: "Composite", - className: "LegacyMicrosoftAccount" + className: "Twitter" } }, apple: { @@ -14083,6 +14068,18 @@ export const IdentityProviders: msRest.CompositeMapper = { name: "Composite", className: "AzureStaticWebApps" } + }, + customOpenIdConnectProviders: { + serializedName: "customOpenIdConnectProviders", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "CustomOpenIdConnectProvider" + } + } + } } } } @@ -18243,6 +18240,36 @@ export const CertificateCollection: msRest.CompositeMapper = { } }; +export const HostNameBindingCollection: msRest.CompositeMapper = { + serializedName: "HostNameBindingCollection", + type: { + name: "Composite", + className: "HostNameBindingCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostNameBinding" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const DeletedWebAppCollection: msRest.CompositeMapper = { serializedName: "DeletedWebAppCollection", type: { @@ -19113,36 +19140,6 @@ export const FunctionEnvelopeCollection: msRest.CompositeMapper = { } }; -export const HostNameBindingCollection: msRest.CompositeMapper = { - serializedName: "HostNameBindingCollection", - type: { - name: "Composite", - className: "HostNameBindingCollection", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HostNameBinding" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const WebAppInstanceStatusCollection: msRest.CompositeMapper = { serializedName: "WebAppInstanceStatusCollection", type: { diff --git a/sdk/appservice/arm-appservice/src/operations/certificates.ts b/sdk/appservice/arm-appservice/src/operations/certificates.ts index 3d76dec9ff02..7bb683871935 100644 --- a/sdk/appservice/arm-appservice/src/operations/certificates.ts +++ b/sdk/appservice/arm-appservice/src/operations/certificates.ts @@ -219,6 +219,38 @@ export class Certificates { callback) as Promise; } + /** + * @summary Gets all hostname bindings the certificate is used in. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate. + * @param [options] The optional parameters + * @returns Promise + */ + listHostnameBindings(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate. + * @param callback The callback + */ + listHostnameBindings(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate. + * @param options The optional parameters + * @param callback The callback + */ + listHostnameBindings(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHostnameBindings(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listHostnameBindingsOperationSpec, + callback) as Promise; + } + /** * Description for Get all certificates for a subscription. * @summary Get all certificates for a subscription. @@ -276,6 +308,34 @@ export class Certificates { listByResourceGroupNextOperationSpec, callback) as Promise; } + + /** + * @summary Gets all hostname bindings the certificate is used in. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listHostnameBindingsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listHostnameBindingsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listHostnameBindingsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHostnameBindingsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listHostnameBindingsNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -441,6 +501,31 @@ const updateOperationSpec: msRest.OperationSpec = { serializer }; +const listHostnameBindingsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}/hostNameBindings", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HostNameBindingCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -489,3 +574,27 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listHostnameBindingsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HostNameBindingCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; diff --git a/sdk/appservice/arm-appservice/src/operations/domains.ts b/sdk/appservice/arm-appservice/src/operations/domains.ts index 9e3f55998410..23da23bcdfee 100644 --- a/sdk/appservice/arm-appservice/src/operations/domains.ts +++ b/sdk/appservice/arm-appservice/src/operations/domains.ts @@ -502,6 +502,38 @@ export class Domains { callback); } + /** + * @summary Transfer out domain to another registrar + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of domain. + * @param [options] The optional parameters + * @returns Promise + */ + transferOut(resourceGroupName: string, domainName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of domain. + * @param callback The callback + */ + transferOut(resourceGroupName: string, domainName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of domain. + * @param options The optional parameters + * @param callback The callback + */ + transferOut(resourceGroupName: string, domainName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + transferOut(resourceGroupName: string, domainName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + domainName, + options + }, + transferOutOperationSpec, + callback) as Promise; + } + /** * Description for Creates or updates a domain. * @summary Creates or updates a domain. @@ -1029,6 +1061,32 @@ const renewOperationSpec: msRest.OperationSpec = { serializer }; +const transferOutOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/transferOut", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.domainName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Domain + }, + 400: {}, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}", diff --git a/sdk/appservice/arm-appservice/src/operations/webApps.ts b/sdk/appservice/arm-appservice/src/operations/webApps.ts index f1bdf61c9ef0..5ddfb77870be 100644 --- a/sdk/appservice/arm-appservice/src/operations/webApps.ts +++ b/sdk/appservice/arm-appservice/src/operations/webApps.ts @@ -21561,6 +21561,7 @@ const restartOperationSpec: msRest.OperationSpec = { ], responses: { 200: {}, + 202: {}, default: { bodyMapper: Mappers.DefaultErrorResponse } @@ -25874,6 +25875,7 @@ const restartSlotOperationSpec: msRest.OperationSpec = { ], responses: { 200: {}, + 202: {}, default: { bodyMapper: Mappers.DefaultErrorResponse } diff --git a/sdk/appservice/arm-appservice/src/webSiteManagementClientContext.ts b/sdk/appservice/arm-appservice/src/webSiteManagementClientContext.ts index 9f4767bb0eaf..83b82ee9709d 100644 --- a/sdk/appservice/arm-appservice/src/webSiteManagementClientContext.ts +++ b/sdk/appservice/arm-appservice/src/webSiteManagementClientContext.ts @@ -50,7 +50,7 @@ export class WebSiteManagementClientContext extends msRestAzure.AzureServiceClie super(credentials, options); - this.apiVersion = '2021-02-01'; + this.apiVersion = '2021-03-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";