diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/CHANGELOG.md b/sdk/domainregistration/azure-mgmt-domainregistration/CHANGELOG.md index 01e81502f980..740216a29489 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/CHANGELOG.md +++ b/sdk/domainregistration/azure-mgmt-domainregistration/CHANGELOG.md @@ -1,5 +1,24 @@ # Release History -## 1.0.0b1 (2025-10-23) +## 1.0.0b2 (2025-11-11) -skip changelog generation +### Breaking Changes + + - Deleted or renamed client `WebSiteManagementClient` + - Model `Domain` instance variables `contact_admin`, `contact_billing`, `contact_registrant`, `contact_tech`, `registration_status`, `provisioning_state`, `name_servers`, `privacy`, `created_time`, `expiration_time`, `last_renewed_time`, `auto_renew`, `ready_for_dns_record_management`, `managed_host_names`, `consent`, `domain_not_renewable_reasons`, `dns_type`, `dns_zone_id`, `target_dns_type`, and `auth_code` have been moved under property `properties` + - Model `DomainOwnershipIdentifier` instance variable `ownership_id` has been moved under property `properties` + - Model `DomainPatchResource` instance variables `contact_admin`, `contact_billing`, `contact_registrant`, `contact_tech`, `registration_status`, `provisioning_state`, `name_servers`, `privacy`, `created_time`, `expiration_time`, `last_renewed_time`, `auto_renew`, `ready_for_dns_record_management`, `managed_host_names`, `consent`, `domain_not_renewable_reasons`, `dns_type`, `dns_zone_id`, `target_dns_type`, and `auth_code` have been moved under property `properties` + - Model `TopLevelDomain` instance variable `privacy` has been moved under property `properties` + - Method `DomainsOperations.delete` changed its parameter `force_hard_delete_domain` from `positional_or_keyword` to `keyword_only` + - Deleted or renamed model `CsmOperationCollection` + - Deleted or renamed model `DomainCollection` + - Deleted or renamed model `DomainOwnershipIdentifierCollection` + - Deleted or renamed model `NameIdentifierCollection` + - Deleted or renamed model `TldLegalAgreementCollection` + - Deleted or renamed model `TopLevelDomainCollection` + +## 1.0.0b1 (2025-11-11) + +### Other Changes + + - Initial version diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/_metadata.json b/sdk/domainregistration/azure-mgmt-domainregistration/_metadata.json index 46dd725968c6..bf93dbc0983a 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/_metadata.json +++ b/sdk/domainregistration/azure-mgmt-domainregistration/_metadata.json @@ -1,11 +1,7 @@ { - "commit": "917855dada492aa9b45c949bdbcc8f564fb83c20", + "apiVersion": "2024-11-01", + "commit": "6539401b58d326bc975e91645102bbe09dd747c8", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest": "3.10.2", - "use": [ - "@autorest/python@6.41.3", - "@autorest/modelerfour@4.27.0" - ], - "autorest_command": "autorest specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=C:\\dev\\azure-sdk-for-python\\sdk --use=@autorest/python@6.41.3 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", - "readme": "specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/readme.md" + "typespec_src": "specification/domainregistration/DomainRegistration.Management", + "emitterVersion": "0.52.1" } \ No newline at end of file diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/apiview-properties.json b/sdk/domainregistration/azure-mgmt-domainregistration/apiview-properties.json index ab2d4ad7c880..81ab08d08733 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/apiview-properties.json +++ b/sdk/domainregistration/azure-mgmt-domainregistration/apiview-properties.json @@ -1,236 +1,88 @@ { - "CrossLanguagePackageId": null, + "CrossLanguagePackageId": "Microsoft.DomainRegistration", "CrossLanguageDefinitionId": { - "azure.mgmt.domainregistration.models.Address": null, - "azure.mgmt.domainregistration.models.ApiDefinitionInfo": null, - "azure.mgmt.domainregistration.models.ApiManagementConfig": null, - "azure.mgmt.domainregistration.models.AppServiceEnvironment": null, - "azure.mgmt.domainregistration.models.Resource": null, - "azure.mgmt.domainregistration.models.AppServicePlan": null, - "azure.mgmt.domainregistration.models.AppServicePlanCollection": null, - "azure.mgmt.domainregistration.models.ArmIdWrapper": null, - "azure.mgmt.domainregistration.models.ProxyOnlyResource": null, - "azure.mgmt.domainregistration.models.AseV3NetworkingConfiguration": null, - "azure.mgmt.domainregistration.models.AutoHealActions": null, - "azure.mgmt.domainregistration.models.AutoHealCustomAction": null, - "azure.mgmt.domainregistration.models.AutoHealRules": null, - "azure.mgmt.domainregistration.models.AutoHealTriggers": null, - "azure.mgmt.domainregistration.models.AzureStorageInfoValue": null, - "azure.mgmt.domainregistration.models.Capability": null, - "azure.mgmt.domainregistration.models.Certificate": null, - "azure.mgmt.domainregistration.models.CertificateCollection": null, - "azure.mgmt.domainregistration.models.CertificatePatchResource": null, - "azure.mgmt.domainregistration.models.CipherSuites": null, - "azure.mgmt.domainregistration.models.CloningInfo": null, - "azure.mgmt.domainregistration.models.ConnStringInfo": null, - "azure.mgmt.domainregistration.models.Contact": null, - "azure.mgmt.domainregistration.models.Container": null, - "azure.mgmt.domainregistration.models.ContainerResources": null, - "azure.mgmt.domainregistration.models.CorsSettings": null, - "azure.mgmt.domainregistration.models.CsmOperationCollection": null, - "azure.mgmt.domainregistration.models.CsmOperationDescription": null, - "azure.mgmt.domainregistration.models.CsmOperationDescriptionProperties": null, - "azure.mgmt.domainregistration.models.CsmOperationDisplay": null, - "azure.mgmt.domainregistration.models.CsmUsageQuota": null, - "azure.mgmt.domainregistration.models.CsmUsageQuotaCollection": null, - "azure.mgmt.domainregistration.models.CustomDnsSuffixConfiguration": null, - "azure.mgmt.domainregistration.models.CustomScaleRule": null, - "azure.mgmt.domainregistration.models.Dapr": null, - "azure.mgmt.domainregistration.models.DaprComponent": null, - "azure.mgmt.domainregistration.models.DaprConfig": null, - "azure.mgmt.domainregistration.models.DaprMetadata": null, - "azure.mgmt.domainregistration.models.DataProviderMetadata": null, - "azure.mgmt.domainregistration.models.DataTableResponseColumn": null, - "azure.mgmt.domainregistration.models.DataTableResponseObject": null, - "azure.mgmt.domainregistration.models.DefaultErrorResponse": null, - "azure.mgmt.domainregistration.models.DefaultErrorResponseError": null, - "azure.mgmt.domainregistration.models.DefaultErrorResponseErrorDetailsItem": null, - "azure.mgmt.domainregistration.models.DeletedSite": null, - "azure.mgmt.domainregistration.models.DetectorInfo": null, - "azure.mgmt.domainregistration.models.DetectorResponse": null, - "azure.mgmt.domainregistration.models.DetectorResponseCollection": null, - "azure.mgmt.domainregistration.models.DiagnosticData": null, - "azure.mgmt.domainregistration.models.Dimension": null, - "azure.mgmt.domainregistration.models.Domain": null, - "azure.mgmt.domainregistration.models.DomainAvailabilityCheckResult": null, - "azure.mgmt.domainregistration.models.DomainCollection": null, - "azure.mgmt.domainregistration.models.DomainControlCenterSsoRequest": null, - "azure.mgmt.domainregistration.models.DomainOwnershipIdentifier": null, - "azure.mgmt.domainregistration.models.DomainOwnershipIdentifierCollection": null, - "azure.mgmt.domainregistration.models.DomainPatchResource": null, - "azure.mgmt.domainregistration.models.DomainPurchaseConsent": null, - "azure.mgmt.domainregistration.models.DomainRecommendationSearchParameters": null, - "azure.mgmt.domainregistration.models.EnvironmentVar": null, - "azure.mgmt.domainregistration.models.ErrorEntity": null, - "azure.mgmt.domainregistration.models.Experiments": null, - "azure.mgmt.domainregistration.models.ExtendedLocation": null, - "azure.mgmt.domainregistration.models.FunctionAppConfig": null, - "azure.mgmt.domainregistration.models.FunctionsAlwaysReadyConfig": null, - "azure.mgmt.domainregistration.models.FunctionsDeployment": null, - "azure.mgmt.domainregistration.models.FunctionsDeploymentStorage": null, - "azure.mgmt.domainregistration.models.FunctionsDeploymentStorageAuthentication": null, - "azure.mgmt.domainregistration.models.FunctionsRuntime": null, - "azure.mgmt.domainregistration.models.FunctionsScaleAndConcurrency": null, - "azure.mgmt.domainregistration.models.FunctionsScaleAndConcurrencyTriggers": null, - "azure.mgmt.domainregistration.models.FunctionsScaleAndConcurrencyTriggersHttp": null, - "azure.mgmt.domainregistration.models.HandlerMapping": null, - "azure.mgmt.domainregistration.models.HostingEnvironmentProfile": null, - "azure.mgmt.domainregistration.models.HostName": null, - "azure.mgmt.domainregistration.models.HostNameBinding": null, - "azure.mgmt.domainregistration.models.HostNameBindingCollection": null, - "azure.mgmt.domainregistration.models.HostNameSslState": null, - "azure.mgmt.domainregistration.models.HttpScaleRule": null, - "azure.mgmt.domainregistration.models.HybridConnection": null, - "azure.mgmt.domainregistration.models.Identifier": null, - "azure.mgmt.domainregistration.models.IdentifierCollection": null, - "azure.mgmt.domainregistration.models.IpSecurityRestriction": null, - "azure.mgmt.domainregistration.models.KeyValuePairStringObject": null, - "azure.mgmt.domainregistration.models.KubeEnvironmentProfile": null, - "azure.mgmt.domainregistration.models.LocalizableString": null, - "azure.mgmt.domainregistration.models.LogSpecification": null, - "azure.mgmt.domainregistration.models.ManagedServiceIdentity": null, - "azure.mgmt.domainregistration.models.MetricAvailability": null, - "azure.mgmt.domainregistration.models.MetricSpecification": null, - "azure.mgmt.domainregistration.models.NameIdentifier": null, - "azure.mgmt.domainregistration.models.NameIdentifierCollection": null, - "azure.mgmt.domainregistration.models.NameValuePair": null, - "azure.mgmt.domainregistration.models.Operation": null, - "azure.mgmt.domainregistration.models.OutboundVnetRouting": null, - "azure.mgmt.domainregistration.models.PrivateEndpointConnectionCollection": null, - "azure.mgmt.domainregistration.models.PrivateLinkConnectionApprovalRequestResource": null, - "azure.mgmt.domainregistration.models.PrivateLinkConnectionState": null, - "azure.mgmt.domainregistration.models.PrivateLinkResource": null, - "azure.mgmt.domainregistration.models.PrivateLinkResourceProperties": null, - "azure.mgmt.domainregistration.models.PrivateLinkResourcesWrapper": null, - "azure.mgmt.domainregistration.models.PushSettings": null, - "azure.mgmt.domainregistration.models.QueryUtterancesResult": null, - "azure.mgmt.domainregistration.models.QueryUtterancesResults": null, - "azure.mgmt.domainregistration.models.QueueScaleRule": null, - "azure.mgmt.domainregistration.models.RampUpRule": null, - "azure.mgmt.domainregistration.models.RemotePrivateEndpointConnectionARMResource": null, - "azure.mgmt.domainregistration.models.Rendering": null, - "azure.mgmt.domainregistration.models.RequestsBasedTrigger": null, - "azure.mgmt.domainregistration.models.ResourceConfig": null, - "azure.mgmt.domainregistration.models.SampleUtterance": null, - "azure.mgmt.domainregistration.models.Scale": null, - "azure.mgmt.domainregistration.models.ScaleRule": null, - "azure.mgmt.domainregistration.models.ScaleRuleAuth": null, - "azure.mgmt.domainregistration.models.ServiceSpecification": null, - "azure.mgmt.domainregistration.models.Site": null, - "azure.mgmt.domainregistration.models.SiteConfig": null, - "azure.mgmt.domainregistration.models.SiteDnsConfig": null, - "azure.mgmt.domainregistration.models.SiteLimits": null, - "azure.mgmt.domainregistration.models.SiteMachineKey": null, - "azure.mgmt.domainregistration.models.SkuCapacity": null, - "azure.mgmt.domainregistration.models.SkuDescription": null, - "azure.mgmt.domainregistration.models.SlotSwapStatus": null, - "azure.mgmt.domainregistration.models.SlowRequestsBasedTrigger": null, - "azure.mgmt.domainregistration.models.Snapshot": null, - "azure.mgmt.domainregistration.models.Status": null, - "azure.mgmt.domainregistration.models.StatusCodesBasedTrigger": null, - "azure.mgmt.domainregistration.models.StatusCodesRangeBasedTrigger": null, - "azure.mgmt.domainregistration.models.StringDictionary": null, - "azure.mgmt.domainregistration.models.SupportTopic": null, - "azure.mgmt.domainregistration.models.Template": null, - "azure.mgmt.domainregistration.models.TldLegalAgreement": null, - "azure.mgmt.domainregistration.models.TldLegalAgreementCollection": null, - "azure.mgmt.domainregistration.models.TopLevelDomain": null, - "azure.mgmt.domainregistration.models.TopLevelDomainAgreementOption": null, - "azure.mgmt.domainregistration.models.TopLevelDomainCollection": null, - "azure.mgmt.domainregistration.models.User": null, - "azure.mgmt.domainregistration.models.UserAssignedIdentity": null, - "azure.mgmt.domainregistration.models.VirtualApplication": null, - "azure.mgmt.domainregistration.models.VirtualDirectory": null, - "azure.mgmt.domainregistration.models.VirtualNetworkProfile": null, - "azure.mgmt.domainregistration.models.VnetGateway": null, - "azure.mgmt.domainregistration.models.VnetInfoResource": null, - "azure.mgmt.domainregistration.models.VnetRoute": null, - "azure.mgmt.domainregistration.models.WebAppCollection": null, - "azure.mgmt.domainregistration.models.AzureResourceType": null, - "azure.mgmt.domainregistration.models.CustomHostNameDnsRecordType": null, - "azure.mgmt.domainregistration.models.HostNameType": null, - "azure.mgmt.domainregistration.models.ResourceNotRenewableReason": null, - "azure.mgmt.domainregistration.models.DomainStatus": null, - "azure.mgmt.domainregistration.models.ProvisioningState": null, - "azure.mgmt.domainregistration.models.DnsType": null, - "azure.mgmt.domainregistration.models.StatusOptions": null, - "azure.mgmt.domainregistration.models.KeyVaultSecretStatus": null, - "azure.mgmt.domainregistration.models.RenderingType": null, - "azure.mgmt.domainregistration.models.DetectorType": null, - "azure.mgmt.domainregistration.models.InsightStatus": null, - "azure.mgmt.domainregistration.models.SslState": null, - "azure.mgmt.domainregistration.models.HostType": null, - "azure.mgmt.domainregistration.models.ConnectionStringType": null, - "azure.mgmt.domainregistration.models.IpFilterTag": null, - "azure.mgmt.domainregistration.models.RouteType": null, - "azure.mgmt.domainregistration.models.ManagedServiceIdentityType": null, - "azure.mgmt.domainregistration.models.UsageState": null, - "azure.mgmt.domainregistration.models.SiteAvailabilityState": null, - "azure.mgmt.domainregistration.models.ScmType": null, - "azure.mgmt.domainregistration.models.ManagedPipelineMode": null, - "azure.mgmt.domainregistration.models.SiteLoadBalancing": null, - "azure.mgmt.domainregistration.models.AutoHealActionType": null, - "azure.mgmt.domainregistration.models.DefaultAction": null, - "azure.mgmt.domainregistration.models.SupportedTlsVersions": null, - "azure.mgmt.domainregistration.models.TlsCipherSuites": null, - "azure.mgmt.domainregistration.models.FtpsState": null, - "azure.mgmt.domainregistration.models.AzureStorageType": null, - "azure.mgmt.domainregistration.models.AzureStorageState": null, - "azure.mgmt.domainregistration.models.AzureStorageProtocol": null, - "azure.mgmt.domainregistration.models.FunctionsDeploymentStorageType": null, - "azure.mgmt.domainregistration.models.AuthenticationType": null, - "azure.mgmt.domainregistration.models.RuntimeName": null, - "azure.mgmt.domainregistration.models.DaprLogLevel": null, - "azure.mgmt.domainregistration.models.ClientCertMode": null, - "azure.mgmt.domainregistration.models.IPMode": null, - "azure.mgmt.domainregistration.models.RedundancyMode": null, - "azure.mgmt.domainregistration.models.AutoGeneratedDomainNameLabelScope": null, - "azure.mgmt.domainregistration.models.LoadBalancingMode": null, - "azure.mgmt.domainregistration.models.UpgradePreference": null, - "azure.mgmt.domainregistration.models.UpgradeAvailability": null, - "azure.mgmt.domainregistration.models.DomainType": null, - "azure.mgmt.domainregistration.models.HostingEnvironmentStatus": null, - "azure.mgmt.domainregistration.models.CustomDnsSuffixProvisioningState": null, - "azure.mgmt.domainregistration.models.OperationStatus": null, - "azure.mgmt.domainregistration.operations.DomainRegistrationProviderOperations.list_operations": null, - "azure.mgmt.domainregistration.aio.operations.DomainRegistrationProviderOperations.list_operations": null, - "azure.mgmt.domainregistration.operations.DomainsOperations.check_availability": null, - "azure.mgmt.domainregistration.aio.operations.DomainsOperations.check_availability": null, - "azure.mgmt.domainregistration.operations.DomainsOperations.list": null, - "azure.mgmt.domainregistration.aio.operations.DomainsOperations.list": null, - "azure.mgmt.domainregistration.operations.DomainsOperations.get_control_center_sso_request": null, - "azure.mgmt.domainregistration.aio.operations.DomainsOperations.get_control_center_sso_request": null, - "azure.mgmt.domainregistration.operations.DomainsOperations.list_recommendations": null, - "azure.mgmt.domainregistration.aio.operations.DomainsOperations.list_recommendations": null, - "azure.mgmt.domainregistration.operations.DomainsOperations.list_by_resource_group": null, - "azure.mgmt.domainregistration.aio.operations.DomainsOperations.list_by_resource_group": null, - "azure.mgmt.domainregistration.operations.DomainsOperations.get": null, - "azure.mgmt.domainregistration.aio.operations.DomainsOperations.get": null, - "azure.mgmt.domainregistration.operations.DomainsOperations.begin_create_or_update": null, - "azure.mgmt.domainregistration.aio.operations.DomainsOperations.begin_create_or_update": null, - "azure.mgmt.domainregistration.operations.DomainsOperations.delete": null, - "azure.mgmt.domainregistration.aio.operations.DomainsOperations.delete": null, - "azure.mgmt.domainregistration.operations.DomainsOperations.update": null, - "azure.mgmt.domainregistration.aio.operations.DomainsOperations.update": null, - "azure.mgmt.domainregistration.operations.DomainsOperations.list_ownership_identifiers": null, - "azure.mgmt.domainregistration.aio.operations.DomainsOperations.list_ownership_identifiers": null, - "azure.mgmt.domainregistration.operations.DomainsOperations.get_ownership_identifier": null, - "azure.mgmt.domainregistration.aio.operations.DomainsOperations.get_ownership_identifier": null, - "azure.mgmt.domainregistration.operations.DomainsOperations.create_or_update_ownership_identifier": null, - "azure.mgmt.domainregistration.aio.operations.DomainsOperations.create_or_update_ownership_identifier": null, - "azure.mgmt.domainregistration.operations.DomainsOperations.delete_ownership_identifier": null, - "azure.mgmt.domainregistration.aio.operations.DomainsOperations.delete_ownership_identifier": null, - "azure.mgmt.domainregistration.operations.DomainsOperations.update_ownership_identifier": null, - "azure.mgmt.domainregistration.aio.operations.DomainsOperations.update_ownership_identifier": null, - "azure.mgmt.domainregistration.operations.DomainsOperations.renew": null, - "azure.mgmt.domainregistration.aio.operations.DomainsOperations.renew": null, - "azure.mgmt.domainregistration.operations.DomainsOperations.transfer_out": null, - "azure.mgmt.domainregistration.aio.operations.DomainsOperations.transfer_out": null, - "azure.mgmt.domainregistration.operations.TopLevelDomainsOperations.list": null, - "azure.mgmt.domainregistration.aio.operations.TopLevelDomainsOperations.list": null, - "azure.mgmt.domainregistration.operations.TopLevelDomainsOperations.get": null, - "azure.mgmt.domainregistration.aio.operations.TopLevelDomainsOperations.get": null, - "azure.mgmt.domainregistration.operations.TopLevelDomainsOperations.list_agreements": null, - "azure.mgmt.domainregistration.aio.operations.TopLevelDomainsOperations.list_agreements": null + "azure.mgmt.domainregistration.models.Address": "Microsoft.DomainRegistration.Address", + "azure.mgmt.domainregistration.models.Contact": "Microsoft.DomainRegistration.Contact", + "azure.mgmt.domainregistration.models.CsmOperationDescription": "Microsoft.DomainRegistration.CsmOperationDescription", + "azure.mgmt.domainregistration.models.CsmOperationDescriptionProperties": "Microsoft.DomainRegistration.CsmOperationDescriptionProperties", + "azure.mgmt.domainregistration.models.CsmOperationDisplay": "Microsoft.DomainRegistration.CsmOperationDisplay", + "azure.mgmt.domainregistration.models.DefaultErrorResponse": "Microsoft.DomainRegistration.DefaultErrorResponse", + "azure.mgmt.domainregistration.models.DefaultErrorResponseError": "Microsoft.DomainRegistration.DefaultErrorResponseError", + "azure.mgmt.domainregistration.models.DefaultErrorResponseErrorDetailsItem": "Microsoft.DomainRegistration.DefaultErrorResponseErrorDetailsItem", + "azure.mgmt.domainregistration.models.Dimension": "Microsoft.DomainRegistration.Dimension", + "azure.mgmt.domainregistration.models.Resource": "Azure.ResourceManager.CommonTypes.Resource", + "azure.mgmt.domainregistration.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource", + "azure.mgmt.domainregistration.models.Domain": "Microsoft.DomainRegistration.Domain", + "azure.mgmt.domainregistration.models.DomainAvailabilityCheckResult": "Microsoft.DomainRegistration.DomainAvailabilityCheckResult", + "azure.mgmt.domainregistration.models.DomainControlCenterSsoRequest": "Microsoft.DomainRegistration.DomainControlCenterSsoRequest", + "azure.mgmt.domainregistration.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource", + "azure.mgmt.domainregistration.models.DomainOwnershipIdentifier": "Microsoft.DomainRegistration.DomainOwnershipIdentifier", + "azure.mgmt.domainregistration.models.DomainOwnershipIdentifierProperties": "Microsoft.DomainRegistration.DomainOwnershipIdentifierProperties", + "azure.mgmt.domainregistration.models.ProxyOnlyResource": "Microsoft.DomainRegistration.ProxyOnlyResource", + "azure.mgmt.domainregistration.models.DomainPatchResource": "Microsoft.DomainRegistration.DomainPatchResource", + "azure.mgmt.domainregistration.models.DomainPatchResourceProperties": "Microsoft.DomainRegistration.DomainPatchResourceProperties", + "azure.mgmt.domainregistration.models.DomainProperties": "Microsoft.DomainRegistration.DomainProperties", + "azure.mgmt.domainregistration.models.DomainPurchaseConsent": "Microsoft.DomainRegistration.DomainPurchaseConsent", + "azure.mgmt.domainregistration.models.DomainRecommendationSearchParameters": "Microsoft.DomainRegistration.DomainRecommendationSearchParameters", + "azure.mgmt.domainregistration.models.HostName": "Microsoft.DomainRegistration.HostName", + "azure.mgmt.domainregistration.models.LogSpecification": "Microsoft.DomainRegistration.LogSpecification", + "azure.mgmt.domainregistration.models.MetricAvailability": "Microsoft.DomainRegistration.MetricAvailability", + "azure.mgmt.domainregistration.models.MetricSpecification": "Microsoft.DomainRegistration.MetricSpecification", + "azure.mgmt.domainregistration.models.NameIdentifier": "Microsoft.DomainRegistration.NameIdentifier", + "azure.mgmt.domainregistration.models.ServiceSpecification": "Microsoft.DomainRegistration.ServiceSpecification", + "azure.mgmt.domainregistration.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData", + "azure.mgmt.domainregistration.models.TldLegalAgreement": "Microsoft.DomainRegistration.TldLegalAgreement", + "azure.mgmt.domainregistration.models.TopLevelDomain": "Microsoft.DomainRegistration.TopLevelDomain", + "azure.mgmt.domainregistration.models.TopLevelDomainAgreementOption": "Microsoft.DomainRegistration.TopLevelDomainAgreementOption", + "azure.mgmt.domainregistration.models.TopLevelDomainProperties": "Microsoft.DomainRegistration.TopLevelDomainProperties", + "azure.mgmt.domainregistration.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType", + "azure.mgmt.domainregistration.models.DomainStatus": "Microsoft.DomainRegistration.DomainStatus", + "azure.mgmt.domainregistration.models.ProvisioningState": "Microsoft.DomainRegistration.ProvisioningState", + "azure.mgmt.domainregistration.models.AzureResourceType": "Microsoft.DomainRegistration.AzureResourceType", + "azure.mgmt.domainregistration.models.CustomHostNameDnsRecordType": "Microsoft.DomainRegistration.CustomHostNameDnsRecordType", + "azure.mgmt.domainregistration.models.HostNameType": "Microsoft.DomainRegistration.HostNameType", + "azure.mgmt.domainregistration.models.ResourceNotRenewableReason": "Microsoft.DomainRegistration.ResourceNotRenewableReason", + "azure.mgmt.domainregistration.models.DnsType": "Microsoft.DomainRegistration.DnsType", + "azure.mgmt.domainregistration.models.DomainType": "Microsoft.DomainRegistration.DomainType", + "azure.mgmt.domainregistration.operations.DomainsOperations.get": "Microsoft.DomainRegistration.Domains.get", + "azure.mgmt.domainregistration.aio.operations.DomainsOperations.get": "Microsoft.DomainRegistration.Domains.get", + "azure.mgmt.domainregistration.operations.DomainsOperations.begin_create_or_update": "Microsoft.DomainRegistration.Domains.createOrUpdate", + "azure.mgmt.domainregistration.aio.operations.DomainsOperations.begin_create_or_update": "Microsoft.DomainRegistration.Domains.createOrUpdate", + "azure.mgmt.domainregistration.operations.DomainsOperations.update": "Microsoft.DomainRegistration.Domains.update", + "azure.mgmt.domainregistration.aio.operations.DomainsOperations.update": "Microsoft.DomainRegistration.Domains.update", + "azure.mgmt.domainregistration.operations.DomainsOperations.delete": "Microsoft.DomainRegistration.Domains.delete", + "azure.mgmt.domainregistration.aio.operations.DomainsOperations.delete": "Microsoft.DomainRegistration.Domains.delete", + "azure.mgmt.domainregistration.operations.DomainsOperations.list_by_resource_group": "Microsoft.DomainRegistration.Domains.listByResourceGroup", + "azure.mgmt.domainregistration.aio.operations.DomainsOperations.list_by_resource_group": "Microsoft.DomainRegistration.Domains.listByResourceGroup", + "azure.mgmt.domainregistration.operations.DomainsOperations.list": "Microsoft.DomainRegistration.Domains.list", + "azure.mgmt.domainregistration.aio.operations.DomainsOperations.list": "Microsoft.DomainRegistration.Domains.list", + "azure.mgmt.domainregistration.operations.DomainsOperations.renew": "Microsoft.DomainRegistration.Domains.renew", + "azure.mgmt.domainregistration.aio.operations.DomainsOperations.renew": "Microsoft.DomainRegistration.Domains.renew", + "azure.mgmt.domainregistration.operations.DomainsOperations.transfer_out": "Microsoft.DomainRegistration.Domains.transferOut", + "azure.mgmt.domainregistration.aio.operations.DomainsOperations.transfer_out": "Microsoft.DomainRegistration.Domains.transferOut", + "azure.mgmt.domainregistration.operations.DomainsOperations.get_ownership_identifier": "Microsoft.DomainRegistration.DomainOwnershipIdentifiers.getOwnershipIdentifier", + "azure.mgmt.domainregistration.aio.operations.DomainsOperations.get_ownership_identifier": "Microsoft.DomainRegistration.DomainOwnershipIdentifiers.getOwnershipIdentifier", + "azure.mgmt.domainregistration.operations.DomainsOperations.create_or_update_ownership_identifier": "Microsoft.DomainRegistration.DomainOwnershipIdentifiers.createOrUpdateOwnershipIdentifier", + "azure.mgmt.domainregistration.aio.operations.DomainsOperations.create_or_update_ownership_identifier": "Microsoft.DomainRegistration.DomainOwnershipIdentifiers.createOrUpdateOwnershipIdentifier", + "azure.mgmt.domainregistration.operations.DomainsOperations.update_ownership_identifier": "Microsoft.DomainRegistration.DomainOwnershipIdentifiers.updateOwnershipIdentifier", + "azure.mgmt.domainregistration.aio.operations.DomainsOperations.update_ownership_identifier": "Microsoft.DomainRegistration.DomainOwnershipIdentifiers.updateOwnershipIdentifier", + "azure.mgmt.domainregistration.operations.DomainsOperations.delete_ownership_identifier": "Microsoft.DomainRegistration.DomainOwnershipIdentifiers.deleteOwnershipIdentifier", + "azure.mgmt.domainregistration.aio.operations.DomainsOperations.delete_ownership_identifier": "Microsoft.DomainRegistration.DomainOwnershipIdentifiers.deleteOwnershipIdentifier", + "azure.mgmt.domainregistration.operations.DomainsOperations.list_ownership_identifiers": "Microsoft.DomainRegistration.DomainOwnershipIdentifiers.listOwnershipIdentifiers", + "azure.mgmt.domainregistration.aio.operations.DomainsOperations.list_ownership_identifiers": "Microsoft.DomainRegistration.DomainOwnershipIdentifiers.listOwnershipIdentifiers", + "azure.mgmt.domainregistration.operations.DomainsOperations.check_availability": "Microsoft.DomainRegistration.DomainsOperationGroup.checkAvailability", + "azure.mgmt.domainregistration.aio.operations.DomainsOperations.check_availability": "Microsoft.DomainRegistration.DomainsOperationGroup.checkAvailability", + "azure.mgmt.domainregistration.operations.DomainsOperations.get_control_center_sso_request": "Microsoft.DomainRegistration.DomainsOperationGroup.getControlCenterSsoRequest", + "azure.mgmt.domainregistration.aio.operations.DomainsOperations.get_control_center_sso_request": "Microsoft.DomainRegistration.DomainsOperationGroup.getControlCenterSsoRequest", + "azure.mgmt.domainregistration.operations.DomainsOperations.list_recommendations": "Microsoft.DomainRegistration.DomainsOperationGroup.listRecommendations", + "azure.mgmt.domainregistration.aio.operations.DomainsOperations.list_recommendations": "Microsoft.DomainRegistration.DomainsOperationGroup.listRecommendations", + "azure.mgmt.domainregistration.operations.TopLevelDomainsOperations.get": "Microsoft.DomainRegistration.TopLevelDomains.get", + "azure.mgmt.domainregistration.aio.operations.TopLevelDomainsOperations.get": "Microsoft.DomainRegistration.TopLevelDomains.get", + "azure.mgmt.domainregistration.operations.TopLevelDomainsOperations.list": "Microsoft.DomainRegistration.TopLevelDomains.list", + "azure.mgmt.domainregistration.aio.operations.TopLevelDomainsOperations.list": "Microsoft.DomainRegistration.TopLevelDomains.list", + "azure.mgmt.domainregistration.operations.TopLevelDomainsOperations.list_agreements": "Microsoft.DomainRegistration.TopLevelDomains.listAgreements", + "azure.mgmt.domainregistration.aio.operations.TopLevelDomainsOperations.list_agreements": "Microsoft.DomainRegistration.TopLevelDomains.listAgreements", + "azure.mgmt.domainregistration.operations.DomainRegistrationProviderOperations.list_operations": "Azure.ResourceManager.Legacy.Operations.list", + "azure.mgmt.domainregistration.aio.operations.DomainRegistrationProviderOperations.list_operations": "Azure.ResourceManager.Legacy.Operations.list" } } \ No newline at end of file diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/__init__.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/__init__.py index 70a8a17dbc24..7caf48d53ed8 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/__init__.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -12,7 +12,7 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._web_site_management_client import WebSiteManagementClient # type: ignore +from ._client import DomainRegistrationClient # type: ignore from ._version import VERSION __version__ = VERSION @@ -25,7 +25,7 @@ from ._patch import patch_sdk as _patch_sdk __all__ = [ - "WebSiteManagementClient", + "DomainRegistrationClient", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_web_site_management_client.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_client.py similarity index 81% rename from sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_web_site_management_client.py rename to sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_client.py index d71361b3eafb..3a427510ce43 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_web_site_management_client.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_client.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -17,8 +17,7 @@ from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy from azure.mgmt.core.tools import get_arm_endpoints -from . import models as _models -from ._configuration import WebSiteManagementClientConfiguration +from ._configuration import DomainRegistrationClientConfiguration from ._utils.serialization import Deserializer, Serializer from .operations import DomainRegistrationProviderOperations, DomainsOperations, TopLevelDomainsOperations @@ -27,28 +26,27 @@ from azure.core.credentials import TokenCredential -class WebSiteManagementClient: - """Domain Registration Client. +class DomainRegistrationClient: + """DomainRegistrationClient. - :ivar domain_registration_provider: DomainRegistrationProviderOperations operations - :vartype domain_registration_provider: - azure.mgmt.domainregistration.operations.DomainRegistrationProviderOperations :ivar domains: DomainsOperations operations :vartype domains: azure.mgmt.domainregistration.operations.DomainsOperations :ivar top_level_domains: TopLevelDomainsOperations operations :vartype top_level_domains: azure.mgmt.domainregistration.operations.TopLevelDomainsOperations - :param credential: Credential needed for the client to connect to Azure. Required. + :ivar domain_registration_provider: DomainRegistrationProviderOperations operations + :vartype domain_registration_provider: + azure.mgmt.domainregistration.operations.DomainRegistrationProviderOperations + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g. - 00000000-0000-0000-0000-000000000000). Required. + :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str - :param base_url: Service URL. Default value is None. + :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2024-11-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Default value is "2024-11-01". + Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. @@ -63,14 +61,16 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: + _endpoint = "{endpoint}" _cloud = cloud_setting or settings.current.azure_cloud # type: ignore _endpoints = get_arm_endpoints(_cloud) if not base_url: base_url = _endpoints["resource_manager"] credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"]) - self._config = WebSiteManagementClientConfiguration( + self._config = DomainRegistrationClientConfiguration( credential=credential, subscription_id=subscription_id, + base_url=cast(str, base_url), cloud_setting=cloud_setting, credential_scopes=credential_scopes, **kwargs @@ -94,27 +94,26 @@ def __init__( policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, self._config.http_logging_policy, ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs) + self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, _endpoint), policies=_policies, **kwargs) - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) + self._serialize = Serializer() + self._deserialize = Deserializer() self._serialize.client_side_validation = False - self.domain_registration_provider = DomainRegistrationProviderOperations( - self._client, self._config, self._serialize, self._deserialize - ) self.domains = DomainsOperations(self._client, self._config, self._serialize, self._deserialize) self.top_level_domains = TopLevelDomainsOperations( self._client, self._config, self._serialize, self._deserialize ) + self.domain_registration_provider = DomainRegistrationProviderOperations( + self._client, self._config, self._serialize, self._deserialize + ) - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: + def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: """Runs the network request through the client's chained policies. >>> from azure.core.rest import HttpRequest >>> request = HttpRequest("GET", "https://www.example.org/") - >>> response = client._send_request(request) + >>> response = client.send_request(request) For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request @@ -127,7 +126,11 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: """ request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore def close(self) -> None: diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_configuration.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_configuration.py index 7ebad3f3dd15..86861b43cca2 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_configuration.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_configuration.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -18,22 +18,23 @@ from azure.core.credentials import TokenCredential -class WebSiteManagementClientConfiguration: # pylint: disable=too-many-instance-attributes - """Configuration for WebSiteManagementClient. +class DomainRegistrationClientConfiguration: # pylint: disable=too-many-instance-attributes + """Configuration for DomainRegistrationClient. Note that all parameters used to create this instance are saved as instance attributes. - :param credential: Credential needed for the client to connect to Azure. Required. + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g. - 00000000-0000-0000-0000-000000000000). Required. + :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str + :param base_url: Service host. Default value is "https://management.azure.com". + :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2024-11-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Default value is "2024-11-01". + Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ @@ -41,6 +42,7 @@ def __init__( self, credential: "TokenCredential", subscription_id: str, + base_url: str = "https://management.azure.com", cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: @@ -53,6 +55,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id + self.base_url = base_url self.cloud_setting = cloud_setting self.api_version = api_version self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_utils/__init__.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_utils/__init__.py index 0af9b28f6607..8026245c2abc 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_utils/__init__.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_utils/__init__.py @@ -1,6 +1,6 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_utils/model_base.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_utils/model_base.py new file mode 100644 index 000000000000..12926fa98dcf --- /dev/null +++ b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_utils/model_base.py @@ -0,0 +1,1237 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +# pylint: disable=protected-access, broad-except + +import copy +import calendar +import decimal +import functools +import sys +import logging +import base64 +import re +import typing +import enum +import email.utils +from datetime import datetime, date, time, timedelta, timezone +from json import JSONEncoder +import xml.etree.ElementTree as ET +from collections.abc import MutableMapping +from typing_extensions import Self +import isodate +from azure.core.exceptions import DeserializationError +from azure.core import CaseInsensitiveEnumMeta +from azure.core.pipeline import PipelineResponse +from azure.core.serialization import _Null +from azure.core.rest import HttpResponse + +_LOGGER = logging.getLogger(__name__) + +__all__ = ["SdkJSONEncoder", "Model", "rest_field", "rest_discriminator"] + +TZ_UTC = timezone.utc +_T = typing.TypeVar("_T") + + +def _timedelta_as_isostr(td: timedelta) -> str: + """Converts a datetime.timedelta object into an ISO 8601 formatted string, e.g. 'P4DT12H30M05S' + + Function adapted from the Tin Can Python project: https://github.com/RusticiSoftware/TinCanPython + + :param timedelta td: The timedelta to convert + :rtype: str + :return: ISO8601 version of this timedelta + """ + + # Split seconds to larger units + seconds = td.total_seconds() + minutes, seconds = divmod(seconds, 60) + hours, minutes = divmod(minutes, 60) + days, hours = divmod(hours, 24) + + days, hours, minutes = list(map(int, (days, hours, minutes))) + seconds = round(seconds, 6) + + # Build date + date_str = "" + if days: + date_str = "%sD" % days + + if hours or minutes or seconds: + # Build time + time_str = "T" + + # Hours + bigger_exists = date_str or hours + if bigger_exists: + time_str += "{:02}H".format(hours) + + # Minutes + bigger_exists = bigger_exists or minutes + if bigger_exists: + time_str += "{:02}M".format(minutes) + + # Seconds + try: + if seconds.is_integer(): + seconds_string = "{:02}".format(int(seconds)) + else: + # 9 chars long w/ leading 0, 6 digits after decimal + seconds_string = "%09.6f" % seconds + # Remove trailing zeros + seconds_string = seconds_string.rstrip("0") + except AttributeError: # int.is_integer() raises + seconds_string = "{:02}".format(seconds) + + time_str += "{}S".format(seconds_string) + else: + time_str = "" + + return "P" + date_str + time_str + + +def _serialize_bytes(o, format: typing.Optional[str] = None) -> str: + encoded = base64.b64encode(o).decode() + if format == "base64url": + return encoded.strip("=").replace("+", "-").replace("/", "_") + return encoded + + +def _serialize_datetime(o, format: typing.Optional[str] = None): + if hasattr(o, "year") and hasattr(o, "hour"): + if format == "rfc7231": + return email.utils.format_datetime(o, usegmt=True) + if format == "unix-timestamp": + return int(calendar.timegm(o.utctimetuple())) + + # astimezone() fails for naive times in Python 2.7, so make make sure o is aware (tzinfo is set) + if not o.tzinfo: + iso_formatted = o.replace(tzinfo=TZ_UTC).isoformat() + else: + iso_formatted = o.astimezone(TZ_UTC).isoformat() + # Replace the trailing "+00:00" UTC offset with "Z" (RFC 3339: https://www.ietf.org/rfc/rfc3339.txt) + return iso_formatted.replace("+00:00", "Z") + # Next try datetime.date or datetime.time + return o.isoformat() + + +def _is_readonly(p): + try: + return p._visibility == ["read"] + except AttributeError: + return False + + +class SdkJSONEncoder(JSONEncoder): + """A JSON encoder that's capable of serializing datetime objects and bytes.""" + + def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs): + super().__init__(*args, **kwargs) + self.exclude_readonly = exclude_readonly + self.format = format + + def default(self, o): # pylint: disable=too-many-return-statements + if _is_model(o): + if self.exclude_readonly: + readonly_props = [p._rest_name for p in o._attr_to_rest_field.values() if _is_readonly(p)] + return {k: v for k, v in o.items() if k not in readonly_props} + return dict(o.items()) + try: + return super(SdkJSONEncoder, self).default(o) + except TypeError: + if isinstance(o, _Null): + return None + if isinstance(o, decimal.Decimal): + return float(o) + if isinstance(o, (bytes, bytearray)): + return _serialize_bytes(o, self.format) + try: + # First try datetime.datetime + return _serialize_datetime(o, self.format) + except AttributeError: + pass + # Last, try datetime.timedelta + try: + return _timedelta_as_isostr(o) + except AttributeError: + # This will be raised when it hits value.total_seconds in the method above + pass + return super(SdkJSONEncoder, self).default(o) + + +_VALID_DATE = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}" + r"\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?") +_VALID_RFC7231 = re.compile( + r"(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s\d{2}\s" + r"(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s\d{4}\s\d{2}:\d{2}:\d{2}\sGMT" +) + + +def _deserialize_datetime(attr: typing.Union[str, datetime]) -> datetime: + """Deserialize ISO-8601 formatted string into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: ~datetime.datetime + :returns: The datetime object from that input + """ + if isinstance(attr, datetime): + # i'm already deserialized + return attr + attr = attr.upper() + match = _VALID_DATE.match(attr) + if not match: + raise ValueError("Invalid datetime string: " + attr) + + check_decimal = attr.split(".") + if len(check_decimal) > 1: + decimal_str = "" + for digit in check_decimal[1]: + if digit.isdigit(): + decimal_str += digit + else: + break + if len(decimal_str) > 6: + attr = attr.replace(decimal_str, decimal_str[0:6]) + + date_obj = isodate.parse_datetime(attr) + test_utc = date_obj.utctimetuple() + if test_utc.tm_year > 9999 or test_utc.tm_year < 1: + raise OverflowError("Hit max or min date") + return date_obj + + +def _deserialize_datetime_rfc7231(attr: typing.Union[str, datetime]) -> datetime: + """Deserialize RFC7231 formatted string into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: ~datetime.datetime + :returns: The datetime object from that input + """ + if isinstance(attr, datetime): + # i'm already deserialized + return attr + match = _VALID_RFC7231.match(attr) + if not match: + raise ValueError("Invalid datetime string: " + attr) + + return email.utils.parsedate_to_datetime(attr) + + +def _deserialize_datetime_unix_timestamp(attr: typing.Union[float, datetime]) -> datetime: + """Deserialize unix timestamp into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: ~datetime.datetime + :returns: The datetime object from that input + """ + if isinstance(attr, datetime): + # i'm already deserialized + return attr + return datetime.fromtimestamp(attr, TZ_UTC) + + +def _deserialize_date(attr: typing.Union[str, date]) -> date: + """Deserialize ISO-8601 formatted string into Date object. + :param str attr: response string to be deserialized. + :rtype: date + :returns: The date object from that input + """ + # This must NOT use defaultmonth/defaultday. Using None ensure this raises an exception. + if isinstance(attr, date): + return attr + return isodate.parse_date(attr, defaultmonth=None, defaultday=None) # type: ignore + + +def _deserialize_time(attr: typing.Union[str, time]) -> time: + """Deserialize ISO-8601 formatted string into time object. + + :param str attr: response string to be deserialized. + :rtype: datetime.time + :returns: The time object from that input + """ + if isinstance(attr, time): + return attr + return isodate.parse_time(attr) + + +def _deserialize_bytes(attr): + if isinstance(attr, (bytes, bytearray)): + return attr + return bytes(base64.b64decode(attr)) + + +def _deserialize_bytes_base64(attr): + if isinstance(attr, (bytes, bytearray)): + return attr + padding = "=" * (3 - (len(attr) + 3) % 4) # type: ignore + attr = attr + padding # type: ignore + encoded = attr.replace("-", "+").replace("_", "/") + return bytes(base64.b64decode(encoded)) + + +def _deserialize_duration(attr): + if isinstance(attr, timedelta): + return attr + return isodate.parse_duration(attr) + + +def _deserialize_decimal(attr): + if isinstance(attr, decimal.Decimal): + return attr + return decimal.Decimal(str(attr)) + + +def _deserialize_int_as_str(attr): + if isinstance(attr, int): + return attr + return int(attr) + + +_DESERIALIZE_MAPPING = { + datetime: _deserialize_datetime, + date: _deserialize_date, + time: _deserialize_time, + bytes: _deserialize_bytes, + bytearray: _deserialize_bytes, + timedelta: _deserialize_duration, + typing.Any: lambda x: x, + decimal.Decimal: _deserialize_decimal, +} + +_DESERIALIZE_MAPPING_WITHFORMAT = { + "rfc3339": _deserialize_datetime, + "rfc7231": _deserialize_datetime_rfc7231, + "unix-timestamp": _deserialize_datetime_unix_timestamp, + "base64": _deserialize_bytes, + "base64url": _deserialize_bytes_base64, +} + + +def get_deserializer(annotation: typing.Any, rf: typing.Optional["_RestField"] = None): + if annotation is int and rf and rf._format == "str": + return _deserialize_int_as_str + if rf and rf._format: + return _DESERIALIZE_MAPPING_WITHFORMAT.get(rf._format) + return _DESERIALIZE_MAPPING.get(annotation) # pyright: ignore + + +def _get_type_alias_type(module_name: str, alias_name: str): + types = { + k: v + for k, v in sys.modules[module_name].__dict__.items() + if isinstance(v, typing._GenericAlias) # type: ignore + } + if alias_name not in types: + return alias_name + return types[alias_name] + + +def _get_model(module_name: str, model_name: str): + models = {k: v for k, v in sys.modules[module_name].__dict__.items() if isinstance(v, type)} + module_end = module_name.rsplit(".", 1)[0] + models.update({k: v for k, v in sys.modules[module_end].__dict__.items() if isinstance(v, type)}) + if isinstance(model_name, str): + model_name = model_name.split(".")[-1] + if model_name not in models: + return model_name + return models[model_name] + + +_UNSET = object() + + +class _MyMutableMapping(MutableMapping[str, typing.Any]): + def __init__(self, data: dict[str, typing.Any]) -> None: + self._data = data + + def __contains__(self, key: typing.Any) -> bool: + return key in self._data + + def __getitem__(self, key: str) -> typing.Any: + return self._data.__getitem__(key) + + def __setitem__(self, key: str, value: typing.Any) -> None: + self._data.__setitem__(key, value) + + def __delitem__(self, key: str) -> None: + self._data.__delitem__(key) + + def __iter__(self) -> typing.Iterator[typing.Any]: + return self._data.__iter__() + + def __len__(self) -> int: + return self._data.__len__() + + def __ne__(self, other: typing.Any) -> bool: + return not self.__eq__(other) + + def keys(self) -> typing.KeysView[str]: + """ + :returns: a set-like object providing a view on D's keys + :rtype: ~typing.KeysView + """ + return self._data.keys() + + def values(self) -> typing.ValuesView[typing.Any]: + """ + :returns: an object providing a view on D's values + :rtype: ~typing.ValuesView + """ + return self._data.values() + + def items(self) -> typing.ItemsView[str, typing.Any]: + """ + :returns: set-like object providing a view on D's items + :rtype: ~typing.ItemsView + """ + return self._data.items() + + def get(self, key: str, default: typing.Any = None) -> typing.Any: + """ + Get the value for key if key is in the dictionary, else default. + :param str key: The key to look up. + :param any default: The value to return if key is not in the dictionary. Defaults to None + :returns: D[k] if k in D, else d. + :rtype: any + """ + try: + return self[key] + except KeyError: + return default + + @typing.overload + def pop(self, key: str) -> typing.Any: ... # pylint: disable=arguments-differ + + @typing.overload + def pop(self, key: str, default: _T) -> _T: ... # pylint: disable=signature-differs + + @typing.overload + def pop(self, key: str, default: typing.Any) -> typing.Any: ... # pylint: disable=signature-differs + + def pop(self, key: str, default: typing.Any = _UNSET) -> typing.Any: + """ + Removes specified key and return the corresponding value. + :param str key: The key to pop. + :param any default: The value to return if key is not in the dictionary + :returns: The value corresponding to the key. + :rtype: any + :raises KeyError: If key is not found and default is not given. + """ + if default is _UNSET: + return self._data.pop(key) + return self._data.pop(key, default) + + def popitem(self) -> tuple[str, typing.Any]: + """ + Removes and returns some (key, value) pair + :returns: The (key, value) pair. + :rtype: tuple + :raises KeyError: if D is empty. + """ + return self._data.popitem() + + def clear(self) -> None: + """ + Remove all items from D. + """ + self._data.clear() + + def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ + """ + Updates D from mapping/iterable E and F. + :param any args: Either a mapping object or an iterable of key-value pairs. + """ + self._data.update(*args, **kwargs) + + @typing.overload + def setdefault(self, key: str, default: None = None) -> None: ... + + @typing.overload + def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint: disable=signature-differs + + def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any: + """ + Same as calling D.get(k, d), and setting D[k]=d if k not found + :param str key: The key to look up. + :param any default: The value to set if key is not in the dictionary + :returns: D[k] if k in D, else d. + :rtype: any + """ + if default is _UNSET: + return self._data.setdefault(key) + return self._data.setdefault(key, default) + + def __eq__(self, other: typing.Any) -> bool: + try: + other_model = self.__class__(other) + except Exception: + return False + return self._data == other_model._data + + def __repr__(self) -> str: + return str(self._data) + + +def _is_model(obj: typing.Any) -> bool: + return getattr(obj, "_is_model", False) + + +def _serialize(o, format: typing.Optional[str] = None): # pylint: disable=too-many-return-statements + if isinstance(o, list): + return [_serialize(x, format) for x in o] + if isinstance(o, dict): + return {k: _serialize(v, format) for k, v in o.items()} + if isinstance(o, set): + return {_serialize(x, format) for x in o} + if isinstance(o, tuple): + return tuple(_serialize(x, format) for x in o) + if isinstance(o, (bytes, bytearray)): + return _serialize_bytes(o, format) + if isinstance(o, decimal.Decimal): + return float(o) + if isinstance(o, enum.Enum): + return o.value + if isinstance(o, int): + if format == "str": + return str(o) + return o + try: + # First try datetime.datetime + return _serialize_datetime(o, format) + except AttributeError: + pass + # Last, try datetime.timedelta + try: + return _timedelta_as_isostr(o) + except AttributeError: + # This will be raised when it hits value.total_seconds in the method above + pass + return o + + +def _get_rest_field(attr_to_rest_field: dict[str, "_RestField"], rest_name: str) -> typing.Optional["_RestField"]: + try: + return next(rf for rf in attr_to_rest_field.values() if rf._rest_name == rest_name) + except StopIteration: + return None + + +def _create_value(rf: typing.Optional["_RestField"], value: typing.Any) -> typing.Any: + if not rf: + return _serialize(value, None) + if rf._is_multipart_file_input: + return value + if rf._is_model: + return _deserialize(rf._type, value) + if isinstance(value, ET.Element): + value = _deserialize(rf._type, value) + return _serialize(value, rf._format) + + +class Model(_MyMutableMapping): + _is_model = True + # label whether current class's _attr_to_rest_field has been calculated + # could not see _attr_to_rest_field directly because subclass inherits it from parent class + _calculated: set[str] = set() + + def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None: + class_name = self.__class__.__name__ + if len(args) > 1: + raise TypeError(f"{class_name}.__init__() takes 2 positional arguments but {len(args) + 1} were given") + dict_to_pass = { + rest_field._rest_name: rest_field._default + for rest_field in self._attr_to_rest_field.values() + if rest_field._default is not _UNSET + } + if args: # pylint: disable=too-many-nested-blocks + if isinstance(args[0], ET.Element): + existed_attr_keys = [] + model_meta = getattr(self, "_xml", {}) + + for rf in self._attr_to_rest_field.values(): + prop_meta = getattr(rf, "_xml", {}) + xml_name = prop_meta.get("name", rf._rest_name) + xml_ns = prop_meta.get("ns", model_meta.get("ns", None)) + if xml_ns: + xml_name = "{" + xml_ns + "}" + xml_name + + # attribute + if prop_meta.get("attribute", False) and args[0].get(xml_name) is not None: + existed_attr_keys.append(xml_name) + dict_to_pass[rf._rest_name] = _deserialize(rf._type, args[0].get(xml_name)) + continue + + # unwrapped element is array + if prop_meta.get("unwrapped", False): + # unwrapped array could either use prop items meta/prop meta + if prop_meta.get("itemsName"): + xml_name = prop_meta.get("itemsName") + xml_ns = prop_meta.get("itemNs") + if xml_ns: + xml_name = "{" + xml_ns + "}" + xml_name + items = args[0].findall(xml_name) # pyright: ignore + if len(items) > 0: + existed_attr_keys.append(xml_name) + dict_to_pass[rf._rest_name] = _deserialize(rf._type, items) + continue + + # text element is primitive type + if prop_meta.get("text", False): + if args[0].text is not None: + dict_to_pass[rf._rest_name] = _deserialize(rf._type, args[0].text) + continue + + # wrapped element could be normal property or array, it should only have one element + item = args[0].find(xml_name) + if item is not None: + existed_attr_keys.append(xml_name) + dict_to_pass[rf._rest_name] = _deserialize(rf._type, item) + + # rest thing is additional properties + for e in args[0]: + if e.tag not in existed_attr_keys: + dict_to_pass[e.tag] = _convert_element(e) + else: + dict_to_pass.update( + {k: _create_value(_get_rest_field(self._attr_to_rest_field, k), v) for k, v in args[0].items()} + ) + else: + non_attr_kwargs = [k for k in kwargs if k not in self._attr_to_rest_field] + if non_attr_kwargs: + # actual type errors only throw the first wrong keyword arg they see, so following that. + raise TypeError(f"{class_name}.__init__() got an unexpected keyword argument '{non_attr_kwargs[0]}'") + dict_to_pass.update( + { + self._attr_to_rest_field[k]._rest_name: _create_value(self._attr_to_rest_field[k], v) + for k, v in kwargs.items() + if v is not None + } + ) + super().__init__(dict_to_pass) + + def copy(self) -> "Model": + return Model(self.__dict__) + + def __new__(cls, *args: typing.Any, **kwargs: typing.Any) -> Self: + if f"{cls.__module__}.{cls.__qualname__}" not in cls._calculated: + # we know the last nine classes in mro are going to be 'Model', '_MyMutableMapping', 'MutableMapping', + # 'Mapping', 'Collection', 'Sized', 'Iterable', 'Container' and 'object' + mros = cls.__mro__[:-9][::-1] # ignore parents, and reverse the mro order + attr_to_rest_field: dict[str, _RestField] = { # map attribute name to rest_field property + k: v for mro_class in mros for k, v in mro_class.__dict__.items() if k[0] != "_" and hasattr(v, "_type") + } + annotations = { + k: v + for mro_class in mros + if hasattr(mro_class, "__annotations__") + for k, v in mro_class.__annotations__.items() + } + for attr, rf in attr_to_rest_field.items(): + rf._module = cls.__module__ + if not rf._type: + rf._type = rf._get_deserialize_callable_from_annotation(annotations.get(attr, None)) + if not rf._rest_name_input: + rf._rest_name_input = attr + cls._attr_to_rest_field: dict[str, _RestField] = dict(attr_to_rest_field.items()) + cls._calculated.add(f"{cls.__module__}.{cls.__qualname__}") + + return super().__new__(cls) + + def __init_subclass__(cls, discriminator: typing.Optional[str] = None) -> None: + for base in cls.__bases__: + if hasattr(base, "__mapping__"): + base.__mapping__[discriminator or cls.__name__] = cls # type: ignore + + @classmethod + def _get_discriminator(cls, exist_discriminators) -> typing.Optional["_RestField"]: + for v in cls.__dict__.values(): + if isinstance(v, _RestField) and v._is_discriminator and v._rest_name not in exist_discriminators: + return v + return None + + @classmethod + def _deserialize(cls, data, exist_discriminators): + if not hasattr(cls, "__mapping__"): + return cls(data) + discriminator = cls._get_discriminator(exist_discriminators) + if discriminator is None: + return cls(data) + exist_discriminators.append(discriminator._rest_name) + if isinstance(data, ET.Element): + model_meta = getattr(cls, "_xml", {}) + prop_meta = getattr(discriminator, "_xml", {}) + xml_name = prop_meta.get("name", discriminator._rest_name) + xml_ns = prop_meta.get("ns", model_meta.get("ns", None)) + if xml_ns: + xml_name = "{" + xml_ns + "}" + xml_name + + if data.get(xml_name) is not None: + discriminator_value = data.get(xml_name) + else: + discriminator_value = data.find(xml_name).text # pyright: ignore + else: + discriminator_value = data.get(discriminator._rest_name) + mapped_cls = cls.__mapping__.get(discriminator_value, cls) # pyright: ignore # pylint: disable=no-member + return mapped_cls._deserialize(data, exist_discriminators) + + def as_dict(self, *, exclude_readonly: bool = False) -> dict[str, typing.Any]: + """Return a dict that can be turned into json using json.dump. + + :keyword bool exclude_readonly: Whether to remove the readonly properties. + :returns: A dict JSON compatible object + :rtype: dict + """ + + result = {} + readonly_props = [] + if exclude_readonly: + readonly_props = [p._rest_name for p in self._attr_to_rest_field.values() if _is_readonly(p)] + for k, v in self.items(): + if exclude_readonly and k in readonly_props: # pyright: ignore + continue + is_multipart_file_input = False + try: + is_multipart_file_input = next( + rf for rf in self._attr_to_rest_field.values() if rf._rest_name == k + )._is_multipart_file_input + except StopIteration: + pass + result[k] = v if is_multipart_file_input else Model._as_dict_value(v, exclude_readonly=exclude_readonly) + return result + + @staticmethod + def _as_dict_value(v: typing.Any, exclude_readonly: bool = False) -> typing.Any: + if v is None or isinstance(v, _Null): + return None + if isinstance(v, (list, tuple, set)): + return type(v)(Model._as_dict_value(x, exclude_readonly=exclude_readonly) for x in v) + if isinstance(v, dict): + return {dk: Model._as_dict_value(dv, exclude_readonly=exclude_readonly) for dk, dv in v.items()} + return v.as_dict(exclude_readonly=exclude_readonly) if hasattr(v, "as_dict") else v + + +def _deserialize_model(model_deserializer: typing.Optional[typing.Callable], obj): + if _is_model(obj): + return obj + return _deserialize(model_deserializer, obj) + + +def _deserialize_with_optional(if_obj_deserializer: typing.Optional[typing.Callable], obj): + if obj is None: + return obj + return _deserialize_with_callable(if_obj_deserializer, obj) + + +def _deserialize_with_union(deserializers, obj): + for deserializer in deserializers: + try: + return _deserialize(deserializer, obj) + except DeserializationError: + pass + raise DeserializationError() + + +def _deserialize_dict( + value_deserializer: typing.Optional[typing.Callable], + module: typing.Optional[str], + obj: dict[typing.Any, typing.Any], +): + if obj is None: + return obj + if isinstance(obj, ET.Element): + obj = {child.tag: child for child in obj} + return {k: _deserialize(value_deserializer, v, module) for k, v in obj.items()} + + +def _deserialize_multiple_sequence( + entry_deserializers: list[typing.Optional[typing.Callable]], + module: typing.Optional[str], + obj, +): + if obj is None: + return obj + return type(obj)(_deserialize(deserializer, entry, module) for entry, deserializer in zip(obj, entry_deserializers)) + + +def _deserialize_sequence( + deserializer: typing.Optional[typing.Callable], + module: typing.Optional[str], + obj, +): + if obj is None: + return obj + if isinstance(obj, ET.Element): + obj = list(obj) + return type(obj)(_deserialize(deserializer, entry, module) for entry in obj) + + +def _sorted_annotations(types: list[typing.Any]) -> list[typing.Any]: + return sorted( + types, + key=lambda x: hasattr(x, "__name__") and x.__name__.lower() in ("str", "float", "int", "bool"), + ) + + +def _get_deserialize_callable_from_annotation( # pylint: disable=too-many-return-statements, too-many-statements, too-many-branches + annotation: typing.Any, + module: typing.Optional[str], + rf: typing.Optional["_RestField"] = None, +) -> typing.Optional[typing.Callable[[typing.Any], typing.Any]]: + if not annotation: + return None + + # is it a type alias? + if isinstance(annotation, str): + if module is not None: + annotation = _get_type_alias_type(module, annotation) + + # is it a forward ref / in quotes? + if isinstance(annotation, (str, typing.ForwardRef)): + try: + model_name = annotation.__forward_arg__ # type: ignore + except AttributeError: + model_name = annotation + if module is not None: + annotation = _get_model(module, model_name) # type: ignore + + try: + if module and _is_model(annotation): + if rf: + rf._is_model = True + + return functools.partial(_deserialize_model, annotation) # pyright: ignore + except Exception: + pass + + # is it a literal? + try: + if annotation.__origin__ is typing.Literal: # pyright: ignore + return None + except AttributeError: + pass + + # is it optional? + try: + if any(a for a in annotation.__args__ if a == type(None)): # pyright: ignore + if len(annotation.__args__) <= 2: # pyright: ignore + if_obj_deserializer = _get_deserialize_callable_from_annotation( + next(a for a in annotation.__args__ if a != type(None)), module, rf # pyright: ignore + ) + + return functools.partial(_deserialize_with_optional, if_obj_deserializer) + # the type is Optional[Union[...]], we need to remove the None type from the Union + annotation_copy = copy.copy(annotation) + annotation_copy.__args__ = [a for a in annotation_copy.__args__ if a != type(None)] # pyright: ignore + return _get_deserialize_callable_from_annotation(annotation_copy, module, rf) + except AttributeError: + pass + + # is it union? + if getattr(annotation, "__origin__", None) is typing.Union: + # initial ordering is we make `string` the last deserialization option, because it is often them most generic + deserializers = [ + _get_deserialize_callable_from_annotation(arg, module, rf) + for arg in _sorted_annotations(annotation.__args__) # pyright: ignore + ] + + return functools.partial(_deserialize_with_union, deserializers) + + try: + annotation_name = ( + annotation.__name__ if hasattr(annotation, "__name__") else annotation._name # pyright: ignore + ) + if annotation_name.lower() == "dict": + value_deserializer = _get_deserialize_callable_from_annotation( + annotation.__args__[1], module, rf # pyright: ignore + ) + + return functools.partial( + _deserialize_dict, + value_deserializer, + module, + ) + except (AttributeError, IndexError): + pass + try: + annotation_name = ( + annotation.__name__ if hasattr(annotation, "__name__") else annotation._name # pyright: ignore + ) + if annotation_name.lower() in ["list", "set", "tuple", "sequence"]: + if len(annotation.__args__) > 1: # pyright: ignore + entry_deserializers = [ + _get_deserialize_callable_from_annotation(dt, module, rf) + for dt in annotation.__args__ # pyright: ignore + ] + return functools.partial(_deserialize_multiple_sequence, entry_deserializers, module) + deserializer = _get_deserialize_callable_from_annotation( + annotation.__args__[0], module, rf # pyright: ignore + ) + + return functools.partial(_deserialize_sequence, deserializer, module) + except (TypeError, IndexError, AttributeError, SyntaxError): + pass + + def _deserialize_default( + deserializer, + obj, + ): + if obj is None: + return obj + try: + return _deserialize_with_callable(deserializer, obj) + except Exception: + pass + return obj + + if get_deserializer(annotation, rf): + return functools.partial(_deserialize_default, get_deserializer(annotation, rf)) + + return functools.partial(_deserialize_default, annotation) + + +def _deserialize_with_callable( + deserializer: typing.Optional[typing.Callable[[typing.Any], typing.Any]], + value: typing.Any, +): # pylint: disable=too-many-return-statements + try: + if value is None or isinstance(value, _Null): + return None + if isinstance(value, ET.Element): + if deserializer is str: + return value.text or "" + if deserializer is int: + return int(value.text) if value.text else None + if deserializer is float: + return float(value.text) if value.text else None + if deserializer is bool: + return value.text == "true" if value.text else None + if deserializer is None: + return value + if deserializer in [int, float, bool]: + return deserializer(value) + if isinstance(deserializer, CaseInsensitiveEnumMeta): + try: + return deserializer(value) + except ValueError: + # for unknown value, return raw value + return value + if isinstance(deserializer, type) and issubclass(deserializer, Model): + return deserializer._deserialize(value, []) + return typing.cast(typing.Callable[[typing.Any], typing.Any], deserializer)(value) + except Exception as e: + raise DeserializationError() from e + + +def _deserialize( + deserializer: typing.Any, + value: typing.Any, + module: typing.Optional[str] = None, + rf: typing.Optional["_RestField"] = None, + format: typing.Optional[str] = None, +) -> typing.Any: + if isinstance(value, PipelineResponse): + value = value.http_response.json() + if rf is None and format: + rf = _RestField(format=format) + if not isinstance(deserializer, functools.partial): + deserializer = _get_deserialize_callable_from_annotation(deserializer, module, rf) + return _deserialize_with_callable(deserializer, value) + + +def _failsafe_deserialize( + deserializer: typing.Any, + response: HttpResponse, + module: typing.Optional[str] = None, + rf: typing.Optional["_RestField"] = None, + format: typing.Optional[str] = None, +) -> typing.Any: + try: + return _deserialize(deserializer, response.json(), module, rf, format) + except DeserializationError: + _LOGGER.warning( + "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True + ) + return None + + +def _failsafe_deserialize_xml( + deserializer: typing.Any, + response: HttpResponse, +) -> typing.Any: + try: + return _deserialize_xml(deserializer, response.text()) + except DeserializationError: + _LOGGER.warning( + "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True + ) + return None + + +class _RestField: + def __init__( + self, + *, + name: typing.Optional[str] = None, + type: typing.Optional[typing.Callable] = None, # pylint: disable=redefined-builtin + is_discriminator: bool = False, + visibility: typing.Optional[list[str]] = None, + default: typing.Any = _UNSET, + format: typing.Optional[str] = None, + is_multipart_file_input: bool = False, + xml: typing.Optional[dict[str, typing.Any]] = None, + ): + self._type = type + self._rest_name_input = name + self._module: typing.Optional[str] = None + self._is_discriminator = is_discriminator + self._visibility = visibility + self._is_model = False + self._default = default + self._format = format + self._is_multipart_file_input = is_multipart_file_input + self._xml = xml if xml is not None else {} + + @property + def _class_type(self) -> typing.Any: + return getattr(self._type, "args", [None])[0] + + @property + def _rest_name(self) -> str: + if self._rest_name_input is None: + raise ValueError("Rest name was never set") + return self._rest_name_input + + def __get__(self, obj: Model, type=None): # pylint: disable=redefined-builtin + # by this point, type and rest_name will have a value bc we default + # them in __new__ of the Model class + item = obj.get(self._rest_name) + if item is None: + return item + if self._is_model: + return item + return _deserialize(self._type, _serialize(item, self._format), rf=self) + + def __set__(self, obj: Model, value) -> None: + if value is None: + # we want to wipe out entries if users set attr to None + try: + obj.__delitem__(self._rest_name) + except KeyError: + pass + return + if self._is_model: + if not _is_model(value): + value = _deserialize(self._type, value) + obj.__setitem__(self._rest_name, value) + return + obj.__setitem__(self._rest_name, _serialize(value, self._format)) + + def _get_deserialize_callable_from_annotation( + self, annotation: typing.Any + ) -> typing.Optional[typing.Callable[[typing.Any], typing.Any]]: + return _get_deserialize_callable_from_annotation(annotation, self._module, self) + + +def rest_field( + *, + name: typing.Optional[str] = None, + type: typing.Optional[typing.Callable] = None, # pylint: disable=redefined-builtin + visibility: typing.Optional[list[str]] = None, + default: typing.Any = _UNSET, + format: typing.Optional[str] = None, + is_multipart_file_input: bool = False, + xml: typing.Optional[dict[str, typing.Any]] = None, +) -> typing.Any: + return _RestField( + name=name, + type=type, + visibility=visibility, + default=default, + format=format, + is_multipart_file_input=is_multipart_file_input, + xml=xml, + ) + + +def rest_discriminator( + *, + name: typing.Optional[str] = None, + type: typing.Optional[typing.Callable] = None, # pylint: disable=redefined-builtin + visibility: typing.Optional[list[str]] = None, + xml: typing.Optional[dict[str, typing.Any]] = None, +) -> typing.Any: + return _RestField(name=name, type=type, is_discriminator=True, visibility=visibility, xml=xml) + + +def serialize_xml(model: Model, exclude_readonly: bool = False) -> str: + """Serialize a model to XML. + + :param Model model: The model to serialize. + :param bool exclude_readonly: Whether to exclude readonly properties. + :returns: The XML representation of the model. + :rtype: str + """ + return ET.tostring(_get_element(model, exclude_readonly), encoding="unicode") # type: ignore + + +def _get_element( + o: typing.Any, + exclude_readonly: bool = False, + parent_meta: typing.Optional[dict[str, typing.Any]] = None, + wrapped_element: typing.Optional[ET.Element] = None, +) -> typing.Union[ET.Element, list[ET.Element]]: + if _is_model(o): + model_meta = getattr(o, "_xml", {}) + + # if prop is a model, then use the prop element directly, else generate a wrapper of model + if wrapped_element is None: + wrapped_element = _create_xml_element( + model_meta.get("name", o.__class__.__name__), + model_meta.get("prefix"), + model_meta.get("ns"), + ) + + readonly_props = [] + if exclude_readonly: + readonly_props = [p._rest_name for p in o._attr_to_rest_field.values() if _is_readonly(p)] + + for k, v in o.items(): + # do not serialize readonly properties + if exclude_readonly and k in readonly_props: + continue + + prop_rest_field = _get_rest_field(o._attr_to_rest_field, k) + if prop_rest_field: + prop_meta = getattr(prop_rest_field, "_xml").copy() + # use the wire name as xml name if no specific name is set + if prop_meta.get("name") is None: + prop_meta["name"] = k + else: + # additional properties will not have rest field, use the wire name as xml name + prop_meta = {"name": k} + + # if no ns for prop, use model's + if prop_meta.get("ns") is None and model_meta.get("ns"): + prop_meta["ns"] = model_meta.get("ns") + prop_meta["prefix"] = model_meta.get("prefix") + + if prop_meta.get("unwrapped", False): + # unwrapped could only set on array + wrapped_element.extend(_get_element(v, exclude_readonly, prop_meta)) + elif prop_meta.get("text", False): + # text could only set on primitive type + wrapped_element.text = _get_primitive_type_value(v) + elif prop_meta.get("attribute", False): + xml_name = prop_meta.get("name", k) + if prop_meta.get("ns"): + ET.register_namespace(prop_meta.get("prefix"), prop_meta.get("ns")) # pyright: ignore + xml_name = "{" + prop_meta.get("ns") + "}" + xml_name # pyright: ignore + # attribute should be primitive type + wrapped_element.set(xml_name, _get_primitive_type_value(v)) + else: + # other wrapped prop element + wrapped_element.append(_get_wrapped_element(v, exclude_readonly, prop_meta)) + return wrapped_element + if isinstance(o, list): + return [_get_element(x, exclude_readonly, parent_meta) for x in o] # type: ignore + if isinstance(o, dict): + result = [] + for k, v in o.items(): + result.append( + _get_wrapped_element( + v, + exclude_readonly, + { + "name": k, + "ns": parent_meta.get("ns") if parent_meta else None, + "prefix": parent_meta.get("prefix") if parent_meta else None, + }, + ) + ) + return result + + # primitive case need to create element based on parent_meta + if parent_meta: + return _get_wrapped_element( + o, + exclude_readonly, + { + "name": parent_meta.get("itemsName", parent_meta.get("name")), + "prefix": parent_meta.get("itemsPrefix", parent_meta.get("prefix")), + "ns": parent_meta.get("itemsNs", parent_meta.get("ns")), + }, + ) + + raise ValueError("Could not serialize value into xml: " + o) + + +def _get_wrapped_element( + v: typing.Any, + exclude_readonly: bool, + meta: typing.Optional[dict[str, typing.Any]], +) -> ET.Element: + wrapped_element = _create_xml_element( + meta.get("name") if meta else None, meta.get("prefix") if meta else None, meta.get("ns") if meta else None + ) + if isinstance(v, (dict, list)): + wrapped_element.extend(_get_element(v, exclude_readonly, meta)) + elif _is_model(v): + _get_element(v, exclude_readonly, meta, wrapped_element) + else: + wrapped_element.text = _get_primitive_type_value(v) + return wrapped_element + + +def _get_primitive_type_value(v) -> str: + if v is True: + return "true" + if v is False: + return "false" + if isinstance(v, _Null): + return "" + return str(v) + + +def _create_xml_element(tag, prefix=None, ns=None): + if prefix and ns: + ET.register_namespace(prefix, ns) + if ns: + return ET.Element("{" + ns + "}" + tag) + return ET.Element(tag) + + +def _deserialize_xml( + deserializer: typing.Any, + value: str, +) -> typing.Any: + element = ET.fromstring(value) # nosec + return _deserialize(deserializer, element) + + +def _convert_element(e: ET.Element): + # dict case + if len(e.attrib) > 0 or len({child.tag for child in e}) > 1: + dict_result: dict[str, typing.Any] = {} + for child in e: + if dict_result.get(child.tag) is not None: + if isinstance(dict_result[child.tag], list): + dict_result[child.tag].append(_convert_element(child)) + else: + dict_result[child.tag] = [dict_result[child.tag], _convert_element(child)] + else: + dict_result[child.tag] = _convert_element(child) + dict_result.update(e.attrib) + return dict_result + # array case + if len(e) > 0: + array_result: list[typing.Any] = [] + for child in e: + array_result.append(_convert_element(child)) + return array_result + # primitive case + return e.text diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_utils/serialization.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_utils/serialization.py index ff543ed937ff..45a3e44e45cb 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_utils/serialization.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_utils/serialization.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_version.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_version.py index e5754a47ce68..be71c81bd282 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_version.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/_version.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/__init__.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/__init__.py index 8efa73d8608d..ad2a37f4738f 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/__init__.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -12,7 +12,7 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._web_site_management_client import WebSiteManagementClient # type: ignore +from ._client import DomainRegistrationClient # type: ignore try: from ._patch import __all__ as _patch_all @@ -22,7 +22,7 @@ from ._patch import patch_sdk as _patch_sdk __all__ = [ - "WebSiteManagementClient", + "DomainRegistrationClient", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/_web_site_management_client.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/_client.py similarity index 82% rename from sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/_web_site_management_client.py rename to sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/_client.py index 7bf21629bda2..bc6eb3b3fd9a 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/_web_site_management_client.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/_client.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -17,9 +17,8 @@ from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy from azure.mgmt.core.tools import get_arm_endpoints -from .. import models as _models from .._utils.serialization import Deserializer, Serializer -from ._configuration import WebSiteManagementClientConfiguration +from ._configuration import DomainRegistrationClientConfiguration from .operations import DomainRegistrationProviderOperations, DomainsOperations, TopLevelDomainsOperations if TYPE_CHECKING: @@ -27,29 +26,28 @@ from azure.core.credentials_async import AsyncTokenCredential -class WebSiteManagementClient: - """Domain Registration Client. +class DomainRegistrationClient: + """DomainRegistrationClient. - :ivar domain_registration_provider: DomainRegistrationProviderOperations operations - :vartype domain_registration_provider: - azure.mgmt.domainregistration.aio.operations.DomainRegistrationProviderOperations :ivar domains: DomainsOperations operations :vartype domains: azure.mgmt.domainregistration.aio.operations.DomainsOperations :ivar top_level_domains: TopLevelDomainsOperations operations :vartype top_level_domains: azure.mgmt.domainregistration.aio.operations.TopLevelDomainsOperations - :param credential: Credential needed for the client to connect to Azure. Required. + :ivar domain_registration_provider: DomainRegistrationProviderOperations operations + :vartype domain_registration_provider: + azure.mgmt.domainregistration.aio.operations.DomainRegistrationProviderOperations + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g. - 00000000-0000-0000-0000-000000000000). Required. + :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str - :param base_url: Service URL. Default value is None. + :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2024-11-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Default value is "2024-11-01". + Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. @@ -64,14 +62,16 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: + _endpoint = "{endpoint}" _cloud = cloud_setting or settings.current.azure_cloud # type: ignore _endpoints = get_arm_endpoints(_cloud) if not base_url: base_url = _endpoints["resource_manager"] credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"]) - self._config = WebSiteManagementClientConfiguration( + self._config = DomainRegistrationClientConfiguration( credential=credential, subscription_id=subscription_id, + base_url=cast(str, base_url), cloud_setting=cloud_setting, credential_scopes=credential_scopes, **kwargs @@ -96,22 +96,21 @@ def __init__( self._config.http_logging_policy, ] self._client: AsyncARMPipelineClient = AsyncARMPipelineClient( - base_url=cast(str, base_url), policies=_policies, **kwargs + base_url=cast(str, _endpoint), policies=_policies, **kwargs ) - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) + self._serialize = Serializer() + self._deserialize = Deserializer() self._serialize.client_side_validation = False - self.domain_registration_provider = DomainRegistrationProviderOperations( - self._client, self._config, self._serialize, self._deserialize - ) self.domains = DomainsOperations(self._client, self._config, self._serialize, self._deserialize) self.top_level_domains = TopLevelDomainsOperations( self._client, self._config, self._serialize, self._deserialize ) + self.domain_registration_provider = DomainRegistrationProviderOperations( + self._client, self._config, self._serialize, self._deserialize + ) - def _send_request( + def send_request( self, request: HttpRequest, *, stream: bool = False, **kwargs: Any ) -> Awaitable[AsyncHttpResponse]: """Runs the network request through the client's chained policies. @@ -119,7 +118,7 @@ def _send_request( >>> from azure.core.rest import HttpRequest >>> request = HttpRequest("GET", "https://www.example.org/") - >>> response = await client._send_request(request) + >>> response = await client.send_request(request) For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request @@ -132,7 +131,11 @@ def _send_request( """ request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore async def close(self) -> None: diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/_configuration.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/_configuration.py index ecd9c911f6c1..313727637071 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/_configuration.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/_configuration.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -18,22 +18,23 @@ from azure.core.credentials_async import AsyncTokenCredential -class WebSiteManagementClientConfiguration: # pylint: disable=too-many-instance-attributes - """Configuration for WebSiteManagementClient. +class DomainRegistrationClientConfiguration: # pylint: disable=too-many-instance-attributes + """Configuration for DomainRegistrationClient. Note that all parameters used to create this instance are saved as instance attributes. - :param credential: Credential needed for the client to connect to Azure. Required. + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g. - 00000000-0000-0000-0000-000000000000). Required. + :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str + :param base_url: Service host. Default value is "https://management.azure.com". + :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2024-11-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Default value is "2024-11-01". + Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ @@ -41,6 +42,7 @@ def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, + base_url: str = "https://management.azure.com", cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: @@ -53,6 +55,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id + self.base_url = base_url self.cloud_setting = cloud_setting self.api_version = api_version self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/operations/__init__.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/operations/__init__.py index 1c83589d9854..9260e533c5e8 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/operations/__init__.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/operations/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -12,18 +12,18 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._domain_registration_provider_operations import DomainRegistrationProviderOperations # type: ignore -from ._domains_operations import DomainsOperations # type: ignore -from ._top_level_domains_operations import TopLevelDomainsOperations # type: ignore +from ._operations import DomainsOperations # type: ignore +from ._operations import TopLevelDomainsOperations # type: ignore +from ._operations import DomainRegistrationProviderOperations # type: ignore from ._patch import __all__ as _patch_all from ._patch import * from ._patch import patch_sdk as _patch_sdk __all__ = [ - "DomainRegistrationProviderOperations", "DomainsOperations", "TopLevelDomainsOperations", + "DomainRegistrationProviderOperations", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore _patch_sdk() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/operations/_domain_registration_provider_operations.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/operations/_domain_registration_provider_operations.py deleted file mode 100644 index d0f734dc9d03..000000000000 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/operations/_domain_registration_provider_operations.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._domain_registration_provider_operations import build_list_operations_request -from .._configuration import WebSiteManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class DomainRegistrationProviderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.domainregistration.aio.WebSiteManagementClient`'s - :attr:`domain_registration_provider` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: WebSiteManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_operations(self, **kwargs: Any) -> AsyncItemPaged["_models.CsmOperationDescription"]: - """Implements Csm operations Api to exposes the list of available Csm Apis under the resource - provider. - - Description for Implements Csm operations Api to exposes the list of available Csm Apis under - the resource provider. - - :return: An iterator like instance of either CsmOperationDescription or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.CsmOperationDescription] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.CsmOperationCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_operations_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CsmOperationCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/operations/_domains_operations.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/operations/_domains_operations.py deleted file mode 100644 index 3401d0f6d116..000000000000 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/operations/_domains_operations.py +++ /dev/null @@ -1,1592 +0,0 @@ -# pylint: disable=too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._domains_operations import ( - build_check_availability_request, - build_create_or_update_ownership_identifier_request, - build_create_or_update_request, - build_delete_ownership_identifier_request, - build_delete_request, - build_get_control_center_sso_request_request, - build_get_ownership_identifier_request, - build_get_request, - build_list_by_resource_group_request, - build_list_ownership_identifiers_request, - build_list_recommendations_request, - build_list_request, - build_renew_request, - build_transfer_out_request, - build_update_ownership_identifier_request, - build_update_request, -) -from .._configuration import WebSiteManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class DomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.domainregistration.aio.WebSiteManagementClient`'s - :attr:`domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: WebSiteManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @overload - async def check_availability( - self, identifier: _models.NameIdentifier, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.DomainAvailabilityCheckResult: - """Check if a domain is available for registration. - - Description for Check if a domain is available for registration. - - :param identifier: Name of the domain. Required. - :type identifier: ~azure.mgmt.domainregistration.models.NameIdentifier - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: DomainAvailabilityCheckResult or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainAvailabilityCheckResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_availability( - self, identifier: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.DomainAvailabilityCheckResult: - """Check if a domain is available for registration. - - Description for Check if a domain is available for registration. - - :param identifier: Name of the domain. Required. - :type identifier: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: DomainAvailabilityCheckResult or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainAvailabilityCheckResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_availability( - self, identifier: Union[_models.NameIdentifier, IO[bytes]], **kwargs: Any - ) -> _models.DomainAvailabilityCheckResult: - """Check if a domain is available for registration. - - Description for Check if a domain is available for registration. - - :param identifier: Name of the domain. Is either a NameIdentifier type or a IO[bytes] type. - Required. - :type identifier: ~azure.mgmt.domainregistration.models.NameIdentifier or IO[bytes] - :return: DomainAvailabilityCheckResult or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainAvailabilityCheckResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DomainAvailabilityCheckResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(identifier, (IOBase, bytes)): - _content = identifier - else: - _json = self._serialize.body(identifier, "NameIdentifier") - - _request = build_check_availability_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DomainAvailabilityCheckResult", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.Domain"]: - """Get all domains in a subscription. - - Description for Get all domains in a subscription. - - :return: An iterator like instance of either Domain or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.Domain] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DomainCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DomainCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_control_center_sso_request(self, **kwargs: Any) -> _models.DomainControlCenterSsoRequest: - """Generate a single sign-on request for the domain management portal. - - Description for Generate a single sign-on request for the domain management portal. - - :return: DomainControlCenterSsoRequest or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainControlCenterSsoRequest - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DomainControlCenterSsoRequest] = kwargs.pop("cls", None) - - _request = build_get_control_center_sso_request_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DomainControlCenterSsoRequest", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def list_recommendations( - self, - parameters: _models.DomainRecommendationSearchParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncItemPaged["_models.NameIdentifier"]: - """Get domain name recommendations based on keywords. - - Description for Get domain name recommendations based on keywords. - - :param parameters: Search parameters for domain name recommendations. Required. - :type parameters: ~azure.mgmt.domainregistration.models.DomainRecommendationSearchParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An iterator like instance of either NameIdentifier or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.NameIdentifier] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def list_recommendations( - self, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncItemPaged["_models.NameIdentifier"]: - """Get domain name recommendations based on keywords. - - Description for Get domain name recommendations based on keywords. - - :param parameters: Search parameters for domain name recommendations. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An iterator like instance of either NameIdentifier or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.NameIdentifier] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def list_recommendations( - self, parameters: Union[_models.DomainRecommendationSearchParameters, IO[bytes]], **kwargs: Any - ) -> AsyncItemPaged["_models.NameIdentifier"]: - """Get domain name recommendations based on keywords. - - Description for Get domain name recommendations based on keywords. - - :param parameters: Search parameters for domain name recommendations. Is either a - DomainRecommendationSearchParameters type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.domainregistration.models.DomainRecommendationSearchParameters or - IO[bytes] - :return: An iterator like instance of either NameIdentifier or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.NameIdentifier] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameIdentifierCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "DomainRecommendationSearchParameters") - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_recommendations_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("NameIdentifierCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.Domain"]: - """Get all domains in a resource group. - - Description for Get all domains in a resource group. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :return: An iterator like instance of either Domain or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.Domain] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DomainCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DomainCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get(self, resource_group_name: str, domain_name: str, **kwargs: Any) -> _models.Domain: - """Get a domain. - - Description for Get a domain. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of the domain. Required. - :type domain_name: str - :return: Domain or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.Domain - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Domain] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Domain", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, resource_group_name: str, domain_name: str, domain: Union[_models.Domain, IO[bytes]], **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain, (IOBase, bytes)): - _content = domain - else: - _json = self._serialize.body(domain, "Domain") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - domain_name: str, - domain: _models.Domain, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.Domain]: - """Creates or updates a domain. - - Description for Creates or updates a domain. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of the domain. Required. - :type domain_name: str - :param domain: Domain registration information. Required. - :type domain: ~azure.mgmt.domainregistration.models.Domain - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either Domain or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.domainregistration.models.Domain] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - domain_name: str, - domain: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.Domain]: - """Creates or updates a domain. - - Description for Creates or updates a domain. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of the domain. Required. - :type domain_name: str - :param domain: Domain registration information. Required. - :type domain: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either Domain or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.domainregistration.models.Domain] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, resource_group_name: str, domain_name: str, domain: Union[_models.Domain, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.Domain]: - """Creates or updates a domain. - - Description for Creates or updates a domain. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of the domain. Required. - :type domain_name: str - :param domain: Domain registration information. Is either a Domain type or a IO[bytes] type. - Required. - :type domain: ~azure.mgmt.domainregistration.models.Domain or IO[bytes] - :return: An instance of AsyncLROPoller that returns either Domain or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.domainregistration.models.Domain] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Domain] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - domain_name=domain_name, - domain=domain, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("Domain", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.Domain].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.Domain]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def delete( - self, resource_group_name: str, domain_name: str, force_hard_delete_domain: Optional[bool] = None, **kwargs: Any - ) -> None: - """Delete a domain. - - Description for Delete a domain. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of the domain. Required. - :type domain_name: str - :param force_hard_delete_domain: Specify :code:`true` to delete the domain - immediately. The default is :code:`false` which deletes the domain after 24 hours. - Default value is None. - :type force_hard_delete_domain: bool - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - force_hard_delete_domain=force_hard_delete_domain, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def update( - self, - resource_group_name: str, - domain_name: str, - domain: _models.DomainPatchResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Domain: - """Creates or updates a domain. - - Description for Creates or updates a domain. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of the domain. Required. - :type domain_name: str - :param domain: Domain registration information. Required. - :type domain: ~azure.mgmt.domainregistration.models.DomainPatchResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Domain or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.Domain - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update( - self, - resource_group_name: str, - domain_name: str, - domain: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Domain: - """Creates or updates a domain. - - Description for Creates or updates a domain. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of the domain. Required. - :type domain_name: str - :param domain: Domain registration information. Required. - :type domain: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Domain or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.Domain - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update( - self, - resource_group_name: str, - domain_name: str, - domain: Union[_models.DomainPatchResource, IO[bytes]], - **kwargs: Any - ) -> _models.Domain: - """Creates or updates a domain. - - Description for Creates or updates a domain. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of the domain. Required. - :type domain_name: str - :param domain: Domain registration information. Is either a DomainPatchResource type or a - IO[bytes] type. Required. - :type domain: ~azure.mgmt.domainregistration.models.DomainPatchResource or IO[bytes] - :return: Domain or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.Domain - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Domain] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain, (IOBase, bytes)): - _content = domain - else: - _json = self._serialize.body(domain, "DomainPatchResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Domain", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_ownership_identifiers( - self, resource_group_name: str, domain_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.DomainOwnershipIdentifier"]: - """Lists domain ownership identifiers. - - Description for Lists domain ownership identifiers. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :return: An iterator like instance of either DomainOwnershipIdentifier or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DomainOwnershipIdentifierCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_ownership_identifiers_request( - resource_group_name=resource_group_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DomainOwnershipIdentifierCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_ownership_identifier( - self, resource_group_name: str, domain_name: str, name: str, **kwargs: Any - ) -> _models.DomainOwnershipIdentifier: - """Get ownership identifier for domain. - - Description for Get ownership identifier for domain. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :param name: Name of identifier. Required. - :type name: str - :return: DomainOwnershipIdentifier or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DomainOwnershipIdentifier] = kwargs.pop("cls", None) - - _request = build_get_ownership_identifier_request( - resource_group_name=resource_group_name, - domain_name=domain_name, - name=name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DomainOwnershipIdentifier", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update_ownership_identifier( - self, - resource_group_name: str, - domain_name: str, - name: str, - domain_ownership_identifier: _models.DomainOwnershipIdentifier, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DomainOwnershipIdentifier: - """Creates an ownership identifier for a domain or updates identifier details for an existing - identifier. - - Description for Creates an ownership identifier for a domain or updates identifier details for - an existing identifier. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :param name: Name of identifier. Required. - :type name: str - :param domain_ownership_identifier: A JSON representation of the domain ownership properties. - Required. - :type domain_ownership_identifier: - ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: DomainOwnershipIdentifier or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update_ownership_identifier( - self, - resource_group_name: str, - domain_name: str, - name: str, - domain_ownership_identifier: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DomainOwnershipIdentifier: - """Creates an ownership identifier for a domain or updates identifier details for an existing - identifier. - - Description for Creates an ownership identifier for a domain or updates identifier details for - an existing identifier. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :param name: Name of identifier. Required. - :type name: str - :param domain_ownership_identifier: A JSON representation of the domain ownership properties. - Required. - :type domain_ownership_identifier: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: DomainOwnershipIdentifier or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update_ownership_identifier( - self, - resource_group_name: str, - domain_name: str, - name: str, - domain_ownership_identifier: Union[_models.DomainOwnershipIdentifier, IO[bytes]], - **kwargs: Any - ) -> _models.DomainOwnershipIdentifier: - """Creates an ownership identifier for a domain or updates identifier details for an existing - identifier. - - Description for Creates an ownership identifier for a domain or updates identifier details for - an existing identifier. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :param name: Name of identifier. Required. - :type name: str - :param domain_ownership_identifier: A JSON representation of the domain ownership properties. - Is either a DomainOwnershipIdentifier type or a IO[bytes] type. Required. - :type domain_ownership_identifier: - ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier or IO[bytes] - :return: DomainOwnershipIdentifier or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DomainOwnershipIdentifier] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_ownership_identifier, (IOBase, bytes)): - _content = domain_ownership_identifier - else: - _json = self._serialize.body(domain_ownership_identifier, "DomainOwnershipIdentifier") - - _request = build_create_or_update_ownership_identifier_request( - resource_group_name=resource_group_name, - domain_name=domain_name, - name=name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DomainOwnershipIdentifier", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete_ownership_identifier( - self, resource_group_name: str, domain_name: str, name: str, **kwargs: Any - ) -> None: - """Delete ownership identifier for domain. - - Description for Delete ownership identifier for domain. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :param name: Name of identifier. Required. - :type name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_ownership_identifier_request( - resource_group_name=resource_group_name, - domain_name=domain_name, - name=name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def update_ownership_identifier( - self, - resource_group_name: str, - domain_name: str, - name: str, - domain_ownership_identifier: _models.DomainOwnershipIdentifier, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DomainOwnershipIdentifier: - """Creates an ownership identifier for a domain or updates identifier details for an existing - identifier. - - Description for Creates an ownership identifier for a domain or updates identifier details for - an existing identifier. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :param name: Name of identifier. Required. - :type name: str - :param domain_ownership_identifier: A JSON representation of the domain ownership properties. - Required. - :type domain_ownership_identifier: - ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: DomainOwnershipIdentifier or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update_ownership_identifier( - self, - resource_group_name: str, - domain_name: str, - name: str, - domain_ownership_identifier: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DomainOwnershipIdentifier: - """Creates an ownership identifier for a domain or updates identifier details for an existing - identifier. - - Description for Creates an ownership identifier for a domain or updates identifier details for - an existing identifier. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :param name: Name of identifier. Required. - :type name: str - :param domain_ownership_identifier: A JSON representation of the domain ownership properties. - Required. - :type domain_ownership_identifier: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: DomainOwnershipIdentifier or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update_ownership_identifier( - self, - resource_group_name: str, - domain_name: str, - name: str, - domain_ownership_identifier: Union[_models.DomainOwnershipIdentifier, IO[bytes]], - **kwargs: Any - ) -> _models.DomainOwnershipIdentifier: - """Creates an ownership identifier for a domain or updates identifier details for an existing - identifier. - - Description for Creates an ownership identifier for a domain or updates identifier details for - an existing identifier. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :param name: Name of identifier. Required. - :type name: str - :param domain_ownership_identifier: A JSON representation of the domain ownership properties. - Is either a DomainOwnershipIdentifier type or a IO[bytes] type. Required. - :type domain_ownership_identifier: - ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier or IO[bytes] - :return: DomainOwnershipIdentifier or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DomainOwnershipIdentifier] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_ownership_identifier, (IOBase, bytes)): - _content = domain_ownership_identifier - else: - _json = self._serialize.body(domain_ownership_identifier, "DomainOwnershipIdentifier") - - _request = build_update_ownership_identifier_request( - resource_group_name=resource_group_name, - domain_name=domain_name, - name=name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DomainOwnershipIdentifier", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def renew(self, resource_group_name: str, domain_name: str, **kwargs: Any) -> None: - """Renew a domain. - - Description for Renew a domain. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of the domain. Required. - :type domain_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_renew_request( - resource_group_name=resource_group_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def transfer_out(self, resource_group_name: str, domain_name: str, **kwargs: Any) -> _models.Domain: - """Transfer out domain to another registrar. - - Transfer out domain to another registrar. - - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :return: Domain or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.Domain - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Domain] = kwargs.pop("cls", None) - - _request = build_transfer_out_request( - resource_group_name=resource_group_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Domain", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/operations/_operations.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/operations/_operations.py new file mode 100644 index 000000000000..b4468764985b --- /dev/null +++ b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/operations/_operations.py @@ -0,0 +1,2377 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from collections.abc import MutableMapping +from io import IOBase +import json +from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload +import urllib.parse + +from azure.core import AsyncPipelineClient +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ( + ClientAuthenticationError, + HttpResponseError, + ResourceExistsError, + ResourceNotFoundError, + ResourceNotModifiedError, + StreamClosedError, + StreamConsumedError, + map_error, +) +from azure.core.pipeline import PipelineResponse +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.core.rest import AsyncHttpResponse, HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.core.tracing.decorator_async import distributed_trace_async +from azure.core.utils import case_insensitive_dict +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models +from ..._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize +from ..._utils.serialization import Deserializer, Serializer +from ...operations._operations import ( + build_domain_registration_provider_list_operations_request, + build_domains_check_availability_request, + build_domains_create_or_update_ownership_identifier_request, + build_domains_create_or_update_request, + build_domains_delete_ownership_identifier_request, + build_domains_delete_request, + build_domains_get_control_center_sso_request_request, + build_domains_get_ownership_identifier_request, + build_domains_get_request, + build_domains_list_by_resource_group_request, + build_domains_list_ownership_identifiers_request, + build_domains_list_recommendations_request, + build_domains_list_request, + build_domains_renew_request, + build_domains_transfer_out_request, + build_domains_update_ownership_identifier_request, + build_domains_update_request, + build_top_level_domains_get_request, + build_top_level_domains_list_agreements_request, + build_top_level_domains_list_request, +) +from .._configuration import DomainRegistrationClientConfiguration + +JSON = MutableMapping[str, Any] +T = TypeVar("T") +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list + + +class DomainsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.domainregistration.aio.DomainRegistrationClient`'s + :attr:`domains` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DomainRegistrationClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get(self, resource_group_name: str, domain_name: str, **kwargs: Any) -> _models.Domain: + """Get a domain. + + Description for Get a domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :return: Domain. The Domain is compatible with MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.Domain + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Domain] = kwargs.pop("cls", None) + + _request = build_domains_get_request( + resource_group_name=resource_group_name, + domain_name=domain_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() + else: + deserialized = _deserialize(_models.Domain, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, resource_group_name: str, domain_name: str, domain: Union[_models.Domain, JSON, IO[bytes]], **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(domain, (IOBase, bytes)): + _content = domain + else: + _content = json.dumps(domain, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_domains_create_or_update_request( + resource_group_name=resource_group_name, + domain_name=domain_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.iter_bytes() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + domain_name: str, + domain: _models.Domain, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.Domain]: + """Creates or updates a domain. + + Description for Creates or updates a domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param domain: Domain registration information. Required. + :type domain: ~azure.mgmt.domainregistration.models.Domain + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns Domain. The Domain is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.domainregistration.models.Domain] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + domain_name: str, + domain: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.Domain]: + """Creates or updates a domain. + + Description for Creates or updates a domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param domain: Domain registration information. Required. + :type domain: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns Domain. The Domain is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.domainregistration.models.Domain] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + domain_name: str, + domain: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.Domain]: + """Creates or updates a domain. + + Description for Creates or updates a domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param domain: Domain registration information. Required. + :type domain: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns Domain. The Domain is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.domainregistration.models.Domain] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, resource_group_name: str, domain_name: str, domain: Union[_models.Domain, JSON, IO[bytes]], **kwargs: Any + ) -> AsyncLROPoller[_models.Domain]: + """Creates or updates a domain. + + Description for Creates or updates a domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param domain: Domain registration information. Is one of the following types: Domain, JSON, + IO[bytes] Required. + :type domain: ~azure.mgmt.domainregistration.models.Domain or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns Domain. The Domain is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.domainregistration.models.Domain] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Domain] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + domain_name=domain_name, + domain=domain, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.Domain, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.Domain].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.Domain]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @overload + async def update( + self, + resource_group_name: str, + domain_name: str, + domain: _models.DomainPatchResource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Domain: + """Creates or updates a domain. + + Description for Creates or updates a domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param domain: Domain registration information. Required. + :type domain: ~azure.mgmt.domainregistration.models.DomainPatchResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Domain. The Domain is compatible with MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.Domain + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + domain_name: str, + domain: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Domain: + """Creates or updates a domain. + + Description for Creates or updates a domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param domain: Domain registration information. Required. + :type domain: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Domain. The Domain is compatible with MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.Domain + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + domain_name: str, + domain: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Domain: + """Creates or updates a domain. + + Description for Creates or updates a domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param domain: Domain registration information. Required. + :type domain: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: Domain. The Domain is compatible with MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.Domain + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update( + self, + resource_group_name: str, + domain_name: str, + domain: Union[_models.DomainPatchResource, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.Domain: + """Creates or updates a domain. + + Description for Creates or updates a domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param domain: Domain registration information. Is one of the following types: + DomainPatchResource, JSON, IO[bytes] Required. + :type domain: ~azure.mgmt.domainregistration.models.DomainPatchResource or JSON or IO[bytes] + :return: Domain. The Domain is compatible with MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.Domain + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Domain] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(domain, (IOBase, bytes)): + _content = domain + else: + _content = json.dumps(domain, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_domains_update_request( + resource_group_name=resource_group_name, + domain_name=domain_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + if _stream: + deserialized = response.iter_bytes() + else: + deserialized = _deserialize(_models.Domain, response.json()) + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete( + self, + resource_group_name: str, + domain_name: str, + *, + force_hard_delete_domain: Optional[bool] = None, + **kwargs: Any + ) -> None: + """Delete a domain. + + Description for Delete a domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :keyword force_hard_delete_domain: Specify true to delete the domain immediately. + The default is false which deletes the domain after 24 hours. Default value is + None. + :paramtype force_hard_delete_domain: bool + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_domains_delete_request( + resource_group_name=resource_group_name, + domain_name=domain_name, + subscription_id=self._config.subscription_id, + force_hard_delete_domain=force_hard_delete_domain, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.Domain"]: + """Get all domains in a resource group. + + Description for Get all domains in a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of Domain + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.Domain] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Domain]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_domains_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize(List[_models.Domain], deserialized.get("value", [])) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.Domain"]: + """Get all domains in a subscription. + + Description for Get all domains in a subscription. + + :return: An iterator like instance of Domain + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.Domain] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Domain]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_domains_list_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize(List[_models.Domain], deserialized.get("value", [])) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def renew(self, resource_group_name: str, domain_name: str, **kwargs: Any) -> None: + """Renew a domain. + + Description for Renew a domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_domains_renew_request( + resource_group_name=resource_group_name, + domain_name=domain_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + if cls: + return cls(pipeline_response, None, response_headers) # type: ignore + + @distributed_trace_async + async def transfer_out(self, resource_group_name: str, domain_name: str, **kwargs: Any) -> _models.Domain: + """Transfer out domain to another registrar. + + Transfer out domain to another registrar. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :return: Domain. The Domain is compatible with MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.Domain + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Domain] = kwargs.pop("cls", None) + + _request = build_domains_transfer_out_request( + resource_group_name=resource_group_name, + domain_name=domain_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() + else: + deserialized = _deserialize(_models.Domain, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def get_ownership_identifier( + self, resource_group_name: str, domain_name: str, name: str, **kwargs: Any + ) -> _models.DomainOwnershipIdentifier: + """Get ownership identifier for domain. + + Description for Get ownership identifier for domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param name: Name of identifier. Required. + :type name: str + :return: DomainOwnershipIdentifier. The DomainOwnershipIdentifier is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DomainOwnershipIdentifier] = kwargs.pop("cls", None) + + _request = build_domains_get_ownership_identifier_request( + resource_group_name=resource_group_name, + domain_name=domain_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() + else: + deserialized = _deserialize(_models.DomainOwnershipIdentifier, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update_ownership_identifier( + self, + resource_group_name: str, + domain_name: str, + name: str, + domain_ownership_identifier: _models.DomainOwnershipIdentifier, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DomainOwnershipIdentifier: + """Creates an ownership identifier for a domain or updates identifier details for an existing + identifier. + + Description for Creates an ownership identifier for a domain or updates identifier details for + an existing identifier. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param name: Name of identifier. Required. + :type name: str + :param domain_ownership_identifier: A JSON representation of the domain ownership properties. + Required. + :type domain_ownership_identifier: + ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DomainOwnershipIdentifier. The DomainOwnershipIdentifier is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update_ownership_identifier( + self, + resource_group_name: str, + domain_name: str, + name: str, + domain_ownership_identifier: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DomainOwnershipIdentifier: + """Creates an ownership identifier for a domain or updates identifier details for an existing + identifier. + + Description for Creates an ownership identifier for a domain or updates identifier details for + an existing identifier. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param name: Name of identifier. Required. + :type name: str + :param domain_ownership_identifier: A JSON representation of the domain ownership properties. + Required. + :type domain_ownership_identifier: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DomainOwnershipIdentifier. The DomainOwnershipIdentifier is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update_ownership_identifier( + self, + resource_group_name: str, + domain_name: str, + name: str, + domain_ownership_identifier: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DomainOwnershipIdentifier: + """Creates an ownership identifier for a domain or updates identifier details for an existing + identifier. + + Description for Creates an ownership identifier for a domain or updates identifier details for + an existing identifier. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param name: Name of identifier. Required. + :type name: str + :param domain_ownership_identifier: A JSON representation of the domain ownership properties. + Required. + :type domain_ownership_identifier: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: DomainOwnershipIdentifier. The DomainOwnershipIdentifier is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update_ownership_identifier( + self, + resource_group_name: str, + domain_name: str, + name: str, + domain_ownership_identifier: Union[_models.DomainOwnershipIdentifier, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.DomainOwnershipIdentifier: + """Creates an ownership identifier for a domain or updates identifier details for an existing + identifier. + + Description for Creates an ownership identifier for a domain or updates identifier details for + an existing identifier. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param name: Name of identifier. Required. + :type name: str + :param domain_ownership_identifier: A JSON representation of the domain ownership properties. + Is one of the following types: DomainOwnershipIdentifier, JSON, IO[bytes] Required. + :type domain_ownership_identifier: + ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier or JSON or IO[bytes] + :return: DomainOwnershipIdentifier. The DomainOwnershipIdentifier is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DomainOwnershipIdentifier] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(domain_ownership_identifier, (IOBase, bytes)): + _content = domain_ownership_identifier + else: + _content = json.dumps(domain_ownership_identifier, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_domains_create_or_update_ownership_identifier_request( + resource_group_name=resource_group_name, + domain_name=domain_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() + else: + deserialized = _deserialize(_models.DomainOwnershipIdentifier, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def update_ownership_identifier( + self, + resource_group_name: str, + domain_name: str, + name: str, + domain_ownership_identifier: _models.DomainOwnershipIdentifier, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DomainOwnershipIdentifier: + """Creates an ownership identifier for a domain or updates identifier details for an existing + identifier. + + Description for Creates an ownership identifier for a domain or updates identifier details for + an existing identifier. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param name: Name of identifier. Required. + :type name: str + :param domain_ownership_identifier: A JSON representation of the domain ownership properties. + Required. + :type domain_ownership_identifier: + ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DomainOwnershipIdentifier. The DomainOwnershipIdentifier is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_ownership_identifier( + self, + resource_group_name: str, + domain_name: str, + name: str, + domain_ownership_identifier: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DomainOwnershipIdentifier: + """Creates an ownership identifier for a domain or updates identifier details for an existing + identifier. + + Description for Creates an ownership identifier for a domain or updates identifier details for + an existing identifier. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param name: Name of identifier. Required. + :type name: str + :param domain_ownership_identifier: A JSON representation of the domain ownership properties. + Required. + :type domain_ownership_identifier: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DomainOwnershipIdentifier. The DomainOwnershipIdentifier is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_ownership_identifier( + self, + resource_group_name: str, + domain_name: str, + name: str, + domain_ownership_identifier: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DomainOwnershipIdentifier: + """Creates an ownership identifier for a domain or updates identifier details for an existing + identifier. + + Description for Creates an ownership identifier for a domain or updates identifier details for + an existing identifier. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param name: Name of identifier. Required. + :type name: str + :param domain_ownership_identifier: A JSON representation of the domain ownership properties. + Required. + :type domain_ownership_identifier: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: DomainOwnershipIdentifier. The DomainOwnershipIdentifier is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update_ownership_identifier( + self, + resource_group_name: str, + domain_name: str, + name: str, + domain_ownership_identifier: Union[_models.DomainOwnershipIdentifier, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.DomainOwnershipIdentifier: + """Creates an ownership identifier for a domain or updates identifier details for an existing + identifier. + + Description for Creates an ownership identifier for a domain or updates identifier details for + an existing identifier. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param name: Name of identifier. Required. + :type name: str + :param domain_ownership_identifier: A JSON representation of the domain ownership properties. + Is one of the following types: DomainOwnershipIdentifier, JSON, IO[bytes] Required. + :type domain_ownership_identifier: + ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier or JSON or IO[bytes] + :return: DomainOwnershipIdentifier. The DomainOwnershipIdentifier is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DomainOwnershipIdentifier] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(domain_ownership_identifier, (IOBase, bytes)): + _content = domain_ownership_identifier + else: + _content = json.dumps(domain_ownership_identifier, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_domains_update_ownership_identifier_request( + resource_group_name=resource_group_name, + domain_name=domain_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() + else: + deserialized = _deserialize(_models.DomainOwnershipIdentifier, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete_ownership_identifier( + self, resource_group_name: str, domain_name: str, name: str, **kwargs: Any + ) -> None: + """Delete ownership identifier for domain. + + Description for Delete ownership identifier for domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param name: Name of identifier. Required. + :type name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_domains_delete_ownership_identifier_request( + resource_group_name=resource_group_name, + domain_name=domain_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_ownership_identifiers( + self, resource_group_name: str, domain_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.DomainOwnershipIdentifier"]: + """Lists domain ownership identifiers. + + Description for Lists domain ownership identifiers. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :return: An iterator like instance of DomainOwnershipIdentifier + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DomainOwnershipIdentifier]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_domains_list_ownership_identifiers_request( + resource_group_name=resource_group_name, + domain_name=domain_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize(List[_models.DomainOwnershipIdentifier], deserialized.get("value", [])) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @overload + async def check_availability( + self, identifier: _models.NameIdentifier, *, content_type: str = "application/json", **kwargs: Any + ) -> _models.DomainAvailabilityCheckResult: + """Check if a domain is available for registration. + + Description for Check if a domain is available for registration. + + :param identifier: The request body. Required. + :type identifier: ~azure.mgmt.domainregistration.models.NameIdentifier + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DomainAvailabilityCheckResult. The DomainAvailabilityCheckResult is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainAvailabilityCheckResult + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def check_availability( + self, identifier: JSON, *, content_type: str = "application/json", **kwargs: Any + ) -> _models.DomainAvailabilityCheckResult: + """Check if a domain is available for registration. + + Description for Check if a domain is available for registration. + + :param identifier: The request body. Required. + :type identifier: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DomainAvailabilityCheckResult. The DomainAvailabilityCheckResult is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainAvailabilityCheckResult + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def check_availability( + self, identifier: IO[bytes], *, content_type: str = "application/json", **kwargs: Any + ) -> _models.DomainAvailabilityCheckResult: + """Check if a domain is available for registration. + + Description for Check if a domain is available for registration. + + :param identifier: The request body. Required. + :type identifier: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: DomainAvailabilityCheckResult. The DomainAvailabilityCheckResult is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainAvailabilityCheckResult + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def check_availability( + self, identifier: Union[_models.NameIdentifier, JSON, IO[bytes]], **kwargs: Any + ) -> _models.DomainAvailabilityCheckResult: + """Check if a domain is available for registration. + + Description for Check if a domain is available for registration. + + :param identifier: The request body. Is one of the following types: NameIdentifier, JSON, + IO[bytes] Required. + :type identifier: ~azure.mgmt.domainregistration.models.NameIdentifier or JSON or IO[bytes] + :return: DomainAvailabilityCheckResult. The DomainAvailabilityCheckResult is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainAvailabilityCheckResult + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DomainAvailabilityCheckResult] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(identifier, (IOBase, bytes)): + _content = identifier + else: + _content = json.dumps(identifier, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_domains_check_availability_request( + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() + else: + deserialized = _deserialize(_models.DomainAvailabilityCheckResult, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def get_control_center_sso_request(self, **kwargs: Any) -> _models.DomainControlCenterSsoRequest: + """Generate a single sign-on request for the domain management portal. + + Description for Generate a single sign-on request for the domain management portal. + + :return: DomainControlCenterSsoRequest. The DomainControlCenterSsoRequest is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainControlCenterSsoRequest + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DomainControlCenterSsoRequest] = kwargs.pop("cls", None) + + _request = build_domains_get_control_center_sso_request_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() + else: + deserialized = _deserialize(_models.DomainControlCenterSsoRequest, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def list_recommendations( + self, + parameters: _models.DomainRecommendationSearchParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncItemPaged["_models.NameIdentifier"]: + """Get domain name recommendations based on keywords. + + Description for Get domain name recommendations based on keywords. + + :param parameters: The request body. Required. + :type parameters: ~azure.mgmt.domainregistration.models.DomainRecommendationSearchParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An iterator like instance of NameIdentifier + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.NameIdentifier] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def list_recommendations( + self, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any + ) -> AsyncItemPaged["_models.NameIdentifier"]: + """Get domain name recommendations based on keywords. + + Description for Get domain name recommendations based on keywords. + + :param parameters: The request body. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An iterator like instance of NameIdentifier + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.NameIdentifier] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def list_recommendations( + self, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any + ) -> AsyncItemPaged["_models.NameIdentifier"]: + """Get domain name recommendations based on keywords. + + Description for Get domain name recommendations based on keywords. + + :param parameters: The request body. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An iterator like instance of NameIdentifier + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.NameIdentifier] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def list_recommendations( + self, parameters: Union[_models.DomainRecommendationSearchParameters, JSON, IO[bytes]], **kwargs: Any + ) -> AsyncItemPaged["_models.NameIdentifier"]: + """Get domain name recommendations based on keywords. + + Description for Get domain name recommendations based on keywords. + + :param parameters: The request body. Is one of the following types: + DomainRecommendationSearchParameters, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.domainregistration.models.DomainRecommendationSearchParameters or + JSON or IO[bytes] + :return: An iterator like instance of NameIdentifier + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.NameIdentifier] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[List[_models.NameIdentifier]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + def prepare_request(next_link=None): + if not next_link: + + _request = build_domains_list_recommendations_request( + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize(List[_models.NameIdentifier], deserialized.get("value", [])) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class TopLevelDomainsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.domainregistration.aio.DomainRegistrationClient`'s + :attr:`top_level_domains` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DomainRegistrationClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get(self, name: str, **kwargs: Any) -> _models.TopLevelDomain: + """Get details of a top-level domain. + + Description for Get details of a top-level domain. + + :param name: Name of the top-level domain. Required. + :type name: str + :return: TopLevelDomain. The TopLevelDomain is compatible with MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.TopLevelDomain + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.TopLevelDomain] = kwargs.pop("cls", None) + + _request = build_top_level_domains_get_request( + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() + else: + deserialized = _deserialize(_models.TopLevelDomain, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.TopLevelDomain"]: + """Get all top-level domains supported for registration. + + Description for Get all top-level domains supported for registration. + + :return: An iterator like instance of TopLevelDomain + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.TopLevelDomain] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.TopLevelDomain]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_top_level_domains_list_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize(List[_models.TopLevelDomain], deserialized.get("value", [])) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @overload + def list_agreements( + self, + name: str, + agreement_option: _models.TopLevelDomainAgreementOption, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncItemPaged["_models.TldLegalAgreement"]: + """Gets all legal agreements that user needs to accept before purchasing a domain. + + Description for Gets all legal agreements that user needs to accept before purchasing a domain. + + :param name: Name of the top-level domain. Required. + :type name: str + :param agreement_option: Domain agreement options. Required. + :type agreement_option: ~azure.mgmt.domainregistration.models.TopLevelDomainAgreementOption + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An iterator like instance of TldLegalAgreement + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.TldLegalAgreement] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def list_agreements( + self, name: str, agreement_option: JSON, *, content_type: str = "application/json", **kwargs: Any + ) -> AsyncItemPaged["_models.TldLegalAgreement"]: + """Gets all legal agreements that user needs to accept before purchasing a domain. + + Description for Gets all legal agreements that user needs to accept before purchasing a domain. + + :param name: Name of the top-level domain. Required. + :type name: str + :param agreement_option: Domain agreement options. Required. + :type agreement_option: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An iterator like instance of TldLegalAgreement + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.TldLegalAgreement] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def list_agreements( + self, name: str, agreement_option: IO[bytes], *, content_type: str = "application/json", **kwargs: Any + ) -> AsyncItemPaged["_models.TldLegalAgreement"]: + """Gets all legal agreements that user needs to accept before purchasing a domain. + + Description for Gets all legal agreements that user needs to accept before purchasing a domain. + + :param name: Name of the top-level domain. Required. + :type name: str + :param agreement_option: Domain agreement options. Required. + :type agreement_option: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An iterator like instance of TldLegalAgreement + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.TldLegalAgreement] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def list_agreements( + self, name: str, agreement_option: Union[_models.TopLevelDomainAgreementOption, JSON, IO[bytes]], **kwargs: Any + ) -> AsyncItemPaged["_models.TldLegalAgreement"]: + """Gets all legal agreements that user needs to accept before purchasing a domain. + + Description for Gets all legal agreements that user needs to accept before purchasing a domain. + + :param name: Name of the top-level domain. Required. + :type name: str + :param agreement_option: Domain agreement options. Is one of the following types: + TopLevelDomainAgreementOption, JSON, IO[bytes] Required. + :type agreement_option: ~azure.mgmt.domainregistration.models.TopLevelDomainAgreementOption or + JSON or IO[bytes] + :return: An iterator like instance of TldLegalAgreement + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.TldLegalAgreement] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[List[_models.TldLegalAgreement]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + content_type = content_type or "application/json" + _content = None + if isinstance(agreement_option, (IOBase, bytes)): + _content = agreement_option + else: + _content = json.dumps(agreement_option, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + def prepare_request(next_link=None): + if not next_link: + + _request = build_top_level_domains_list_agreements_request( + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize(List[_models.TldLegalAgreement], deserialized.get("value", [])) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class DomainRegistrationProviderOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.domainregistration.aio.DomainRegistrationClient`'s + :attr:`domain_registration_provider` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DomainRegistrationClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list_operations(self, **kwargs: Any) -> AsyncItemPaged["_models.CsmOperationDescription"]: + """Implements Csm operations Api to exposes the list of available Csm Apis under the resource + provider. + + Description for Implements Csm operations Api to exposes the list of available Csm Apis under + the resource provider. + + :return: An iterator like instance of CsmOperationDescription + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.CsmOperationDescription] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.CsmOperationDescription]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_domain_registration_provider_list_operations_request( + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize(List[_models.CsmOperationDescription], deserialized.get("value", [])) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/operations/_top_level_domains_operations.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/operations/_top_level_domains_operations.py deleted file mode 100644 index aced167cd420..000000000000 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/aio/operations/_top_level_domains_operations.py +++ /dev/null @@ -1,338 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._top_level_domains_operations import ( - build_get_request, - build_list_agreements_request, - build_list_request, -) -from .._configuration import WebSiteManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class TopLevelDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.domainregistration.aio.WebSiteManagementClient`'s - :attr:`top_level_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: WebSiteManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.TopLevelDomain"]: - """Get all top-level domains supported for registration. - - Description for Get all top-level domains supported for registration. - - :return: An iterator like instance of either TopLevelDomain or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.TopLevelDomain] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.TopLevelDomainCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("TopLevelDomainCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get(self, name: str, **kwargs: Any) -> _models.TopLevelDomain: - """Get details of a top-level domain. - - Description for Get details of a top-level domain. - - :param name: Name of the top-level domain. Required. - :type name: str - :return: TopLevelDomain or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.TopLevelDomain - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.TopLevelDomain] = kwargs.pop("cls", None) - - _request = build_get_request( - name=name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TopLevelDomain", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def list_agreements( - self, - name: str, - agreement_option: _models.TopLevelDomainAgreementOption, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncItemPaged["_models.TldLegalAgreement"]: - """Gets all legal agreements that user needs to accept before purchasing a domain. - - Description for Gets all legal agreements that user needs to accept before purchasing a domain. - - :param name: Name of the top-level domain. Required. - :type name: str - :param agreement_option: Domain agreement options. Required. - :type agreement_option: ~azure.mgmt.domainregistration.models.TopLevelDomainAgreementOption - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An iterator like instance of either TldLegalAgreement or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.TldLegalAgreement] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def list_agreements( - self, name: str, agreement_option: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncItemPaged["_models.TldLegalAgreement"]: - """Gets all legal agreements that user needs to accept before purchasing a domain. - - Description for Gets all legal agreements that user needs to accept before purchasing a domain. - - :param name: Name of the top-level domain. Required. - :type name: str - :param agreement_option: Domain agreement options. Required. - :type agreement_option: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An iterator like instance of either TldLegalAgreement or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.TldLegalAgreement] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def list_agreements( - self, name: str, agreement_option: Union[_models.TopLevelDomainAgreementOption, IO[bytes]], **kwargs: Any - ) -> AsyncItemPaged["_models.TldLegalAgreement"]: - """Gets all legal agreements that user needs to accept before purchasing a domain. - - Description for Gets all legal agreements that user needs to accept before purchasing a domain. - - :param name: Name of the top-level domain. Required. - :type name: str - :param agreement_option: Domain agreement options. Is either a TopLevelDomainAgreementOption - type or a IO[bytes] type. Required. - :type agreement_option: ~azure.mgmt.domainregistration.models.TopLevelDomainAgreementOption or - IO[bytes] - :return: An iterator like instance of either TldLegalAgreement or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.domainregistration.models.TldLegalAgreement] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TldLegalAgreementCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agreement_option, (IOBase, bytes)): - _content = agreement_option - else: - _json = self._serialize.body(agreement_option, "TopLevelDomainAgreementOption") - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_agreements_request( - name=name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("TldLegalAgreementCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/models/__init__.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/models/__init__.py index c4ad63be858e..3ac0e80b4d50 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/models/__init__.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/models/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -13,201 +13,53 @@ from ._patch import * # pylint: disable=unused-wildcard-import -from ._models_py3 import ( # type: ignore +from ._models import ( # type: ignore Address, - ApiDefinitionInfo, - ApiManagementConfig, - AppServiceEnvironment, - AppServicePlan, - AppServicePlanCollection, - ArmIdWrapper, - AseV3NetworkingConfiguration, - AutoHealActions, - AutoHealCustomAction, - AutoHealRules, - AutoHealTriggers, - AzureStorageInfoValue, - Capability, - Certificate, - CertificateCollection, - CertificatePatchResource, - CipherSuites, - CloningInfo, - ConnStringInfo, Contact, - Container, - ContainerResources, - CorsSettings, - CsmOperationCollection, CsmOperationDescription, CsmOperationDescriptionProperties, CsmOperationDisplay, - CsmUsageQuota, - CsmUsageQuotaCollection, - CustomDnsSuffixConfiguration, - CustomScaleRule, - Dapr, - DaprComponent, - DaprConfig, - DaprMetadata, - DataProviderMetadata, - DataTableResponseColumn, - DataTableResponseObject, DefaultErrorResponse, DefaultErrorResponseError, DefaultErrorResponseErrorDetailsItem, - DeletedSite, - DetectorInfo, - DetectorResponse, - DetectorResponseCollection, - DiagnosticData, Dimension, Domain, DomainAvailabilityCheckResult, - DomainCollection, DomainControlCenterSsoRequest, DomainOwnershipIdentifier, - DomainOwnershipIdentifierCollection, + DomainOwnershipIdentifierProperties, DomainPatchResource, + DomainPatchResourceProperties, + DomainProperties, DomainPurchaseConsent, DomainRecommendationSearchParameters, - EnvironmentVar, - ErrorEntity, - Experiments, - ExtendedLocation, - FunctionAppConfig, - FunctionsAlwaysReadyConfig, - FunctionsDeployment, - FunctionsDeploymentStorage, - FunctionsDeploymentStorageAuthentication, - FunctionsRuntime, - FunctionsScaleAndConcurrency, - FunctionsScaleAndConcurrencyTriggers, - FunctionsScaleAndConcurrencyTriggersHttp, - HandlerMapping, HostName, - HostNameBinding, - HostNameBindingCollection, - HostNameSslState, - HostingEnvironmentProfile, - HttpScaleRule, - HybridConnection, - Identifier, - IdentifierCollection, - IpSecurityRestriction, - KeyValuePairStringObject, - KubeEnvironmentProfile, - LocalizableString, LogSpecification, - ManagedServiceIdentity, MetricAvailability, MetricSpecification, NameIdentifier, - NameIdentifierCollection, - NameValuePair, - Operation, - OutboundVnetRouting, - PrivateEndpointConnectionCollection, - PrivateLinkConnectionApprovalRequestResource, - PrivateLinkConnectionState, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkResourcesWrapper, ProxyOnlyResource, - PushSettings, - QueryUtterancesResult, - QueryUtterancesResults, - QueueScaleRule, - RampUpRule, - RemotePrivateEndpointConnectionARMResource, - Rendering, - RequestsBasedTrigger, + ProxyResource, Resource, - ResourceConfig, - SampleUtterance, - Scale, - ScaleRule, - ScaleRuleAuth, ServiceSpecification, - Site, - SiteConfig, - SiteDnsConfig, - SiteLimits, - SiteMachineKey, - SkuCapacity, - SkuDescription, - SlotSwapStatus, - SlowRequestsBasedTrigger, - Snapshot, - Status, - StatusCodesBasedTrigger, - StatusCodesRangeBasedTrigger, - StringDictionary, - SupportTopic, - Template, + SystemData, TldLegalAgreement, - TldLegalAgreementCollection, TopLevelDomain, TopLevelDomainAgreementOption, - TopLevelDomainCollection, - User, - UserAssignedIdentity, - VirtualApplication, - VirtualDirectory, - VirtualNetworkProfile, - VnetGateway, - VnetInfoResource, - VnetRoute, - WebAppCollection, + TopLevelDomainProperties, + TrackedResource, ) -from ._web_site_management_client_enums import ( # type: ignore - AuthenticationType, - AutoGeneratedDomainNameLabelScope, - AutoHealActionType, +from ._enums import ( # type: ignore AzureResourceType, - AzureStorageProtocol, - AzureStorageState, - AzureStorageType, - ClientCertMode, - ConnectionStringType, - CustomDnsSuffixProvisioningState, + CreatedByType, CustomHostNameDnsRecordType, - DaprLogLevel, - DefaultAction, - DetectorType, DnsType, DomainStatus, DomainType, - FtpsState, - FunctionsDeploymentStorageType, HostNameType, - HostType, - HostingEnvironmentStatus, - IPMode, - InsightStatus, - IpFilterTag, - KeyVaultSecretStatus, - LoadBalancingMode, - ManagedPipelineMode, - ManagedServiceIdentityType, - OperationStatus, ProvisioningState, - RedundancyMode, - RenderingType, ResourceNotRenewableReason, - RouteType, - RuntimeName, - ScmType, - SiteAvailabilityState, - SiteLoadBalancing, - SslState, - StatusOptions, - SupportedTlsVersions, - TlsCipherSuites, - UpgradeAvailability, - UpgradePreference, - UsageState, ) from ._patch import __all__ as _patch_all from ._patch import * @@ -215,196 +67,48 @@ __all__ = [ "Address", - "ApiDefinitionInfo", - "ApiManagementConfig", - "AppServiceEnvironment", - "AppServicePlan", - "AppServicePlanCollection", - "ArmIdWrapper", - "AseV3NetworkingConfiguration", - "AutoHealActions", - "AutoHealCustomAction", - "AutoHealRules", - "AutoHealTriggers", - "AzureStorageInfoValue", - "Capability", - "Certificate", - "CertificateCollection", - "CertificatePatchResource", - "CipherSuites", - "CloningInfo", - "ConnStringInfo", "Contact", - "Container", - "ContainerResources", - "CorsSettings", - "CsmOperationCollection", "CsmOperationDescription", "CsmOperationDescriptionProperties", "CsmOperationDisplay", - "CsmUsageQuota", - "CsmUsageQuotaCollection", - "CustomDnsSuffixConfiguration", - "CustomScaleRule", - "Dapr", - "DaprComponent", - "DaprConfig", - "DaprMetadata", - "DataProviderMetadata", - "DataTableResponseColumn", - "DataTableResponseObject", "DefaultErrorResponse", "DefaultErrorResponseError", "DefaultErrorResponseErrorDetailsItem", - "DeletedSite", - "DetectorInfo", - "DetectorResponse", - "DetectorResponseCollection", - "DiagnosticData", "Dimension", "Domain", "DomainAvailabilityCheckResult", - "DomainCollection", "DomainControlCenterSsoRequest", "DomainOwnershipIdentifier", - "DomainOwnershipIdentifierCollection", + "DomainOwnershipIdentifierProperties", "DomainPatchResource", + "DomainPatchResourceProperties", + "DomainProperties", "DomainPurchaseConsent", "DomainRecommendationSearchParameters", - "EnvironmentVar", - "ErrorEntity", - "Experiments", - "ExtendedLocation", - "FunctionAppConfig", - "FunctionsAlwaysReadyConfig", - "FunctionsDeployment", - "FunctionsDeploymentStorage", - "FunctionsDeploymentStorageAuthentication", - "FunctionsRuntime", - "FunctionsScaleAndConcurrency", - "FunctionsScaleAndConcurrencyTriggers", - "FunctionsScaleAndConcurrencyTriggersHttp", - "HandlerMapping", "HostName", - "HostNameBinding", - "HostNameBindingCollection", - "HostNameSslState", - "HostingEnvironmentProfile", - "HttpScaleRule", - "HybridConnection", - "Identifier", - "IdentifierCollection", - "IpSecurityRestriction", - "KeyValuePairStringObject", - "KubeEnvironmentProfile", - "LocalizableString", "LogSpecification", - "ManagedServiceIdentity", "MetricAvailability", "MetricSpecification", "NameIdentifier", - "NameIdentifierCollection", - "NameValuePair", - "Operation", - "OutboundVnetRouting", - "PrivateEndpointConnectionCollection", - "PrivateLinkConnectionApprovalRequestResource", - "PrivateLinkConnectionState", - "PrivateLinkResource", - "PrivateLinkResourceProperties", - "PrivateLinkResourcesWrapper", "ProxyOnlyResource", - "PushSettings", - "QueryUtterancesResult", - "QueryUtterancesResults", - "QueueScaleRule", - "RampUpRule", - "RemotePrivateEndpointConnectionARMResource", - "Rendering", - "RequestsBasedTrigger", + "ProxyResource", "Resource", - "ResourceConfig", - "SampleUtterance", - "Scale", - "ScaleRule", - "ScaleRuleAuth", "ServiceSpecification", - "Site", - "SiteConfig", - "SiteDnsConfig", - "SiteLimits", - "SiteMachineKey", - "SkuCapacity", - "SkuDescription", - "SlotSwapStatus", - "SlowRequestsBasedTrigger", - "Snapshot", - "Status", - "StatusCodesBasedTrigger", - "StatusCodesRangeBasedTrigger", - "StringDictionary", - "SupportTopic", - "Template", + "SystemData", "TldLegalAgreement", - "TldLegalAgreementCollection", "TopLevelDomain", "TopLevelDomainAgreementOption", - "TopLevelDomainCollection", - "User", - "UserAssignedIdentity", - "VirtualApplication", - "VirtualDirectory", - "VirtualNetworkProfile", - "VnetGateway", - "VnetInfoResource", - "VnetRoute", - "WebAppCollection", - "AuthenticationType", - "AutoGeneratedDomainNameLabelScope", - "AutoHealActionType", + "TopLevelDomainProperties", + "TrackedResource", "AzureResourceType", - "AzureStorageProtocol", - "AzureStorageState", - "AzureStorageType", - "ClientCertMode", - "ConnectionStringType", - "CustomDnsSuffixProvisioningState", + "CreatedByType", "CustomHostNameDnsRecordType", - "DaprLogLevel", - "DefaultAction", - "DetectorType", "DnsType", "DomainStatus", "DomainType", - "FtpsState", - "FunctionsDeploymentStorageType", "HostNameType", - "HostType", - "HostingEnvironmentStatus", - "IPMode", - "InsightStatus", - "IpFilterTag", - "KeyVaultSecretStatus", - "LoadBalancingMode", - "ManagedPipelineMode", - "ManagedServiceIdentityType", - "OperationStatus", "ProvisioningState", - "RedundancyMode", - "RenderingType", "ResourceNotRenewableReason", - "RouteType", - "RuntimeName", - "ScmType", - "SiteAvailabilityState", - "SiteLoadBalancing", - "SslState", - "StatusOptions", - "SupportedTlsVersions", - "TlsCipherSuites", - "UpgradeAvailability", - "UpgradePreference", - "UsageState", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore _patch_sdk() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/models/_enums.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/models/_enums.py new file mode 100644 index 000000000000..5ef13dc87b0e --- /dev/null +++ b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/models/_enums.py @@ -0,0 +1,108 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum +from azure.core import CaseInsensitiveEnumMeta + + +class AzureResourceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Type of the Azure resource the hostname is assigned to.""" + + WEBSITE = "Website" + TRAFFIC_MANAGER = "TrafficManager" + + +class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The kind of entity that created the resource.""" + + USER = "User" + """The entity was created by a user.""" + APPLICATION = "Application" + """The entity was created by an application.""" + MANAGED_IDENTITY = "ManagedIdentity" + """The entity was created by a managed identity.""" + KEY = "Key" + """The entity was created by a key.""" + + +class CustomHostNameDnsRecordType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Type of the DNS record.""" + + C_NAME = "CName" + A = "A" + + +class DnsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Current DNS type.""" + + AZURE_DNS = "AzureDns" + DEFAULT_DOMAIN_REGISTRAR_DNS = "DefaultDomainRegistrarDns" + + +class DomainStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Domain registration status.""" + + ACTIVE = "Active" + AWAITING = "Awaiting" + CANCELLED = "Cancelled" + CONFISCATED = "Confiscated" + DISABLED = "Disabled" + EXCLUDED = "Excluded" + EXPIRED = "Expired" + FAILED = "Failed" + HELD = "Held" + LOCKED = "Locked" + PARKED = "Parked" + PENDING = "Pending" + RESERVED = "Reserved" + REVERTED = "Reverted" + SUSPENDED = "Suspended" + TRANSFERRED = "Transferred" + UNKNOWN = "Unknown" + UNLOCKED = "Unlocked" + UNPARKED = "Unparked" + UPDATED = "Updated" + JSON_CONVERTER_FAILED = "JsonConverterFailed" + + +class DomainType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Valid values are Regular domain: Azure will charge the full price of domain registration, + SoftDeleted: Purchasing this domain will simply restore it and this operation will not cost + anything. + """ + + REGULAR = "Regular" + SOFT_DELETED = "SoftDeleted" + + +class HostNameType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Type of the hostname.""" + + VERIFIED = "Verified" + MANAGED = "Managed" + + +class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Domain provisioning state.""" + + SUCCEEDED = "Succeeded" + FAILED = "Failed" + CANCELED = "Canceled" + IN_PROGRESS = "InProgress" + DELETING = "Deleting" + + +class ResourceNotRenewableReason(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Reasons why domain is not renewable.""" + + REGISTRATION_STATUS_NOT_SUPPORTED_FOR_RENEWAL = "RegistrationStatusNotSupportedForRenewal" + """Registration status is not supported for renewal.""" + EXPIRATION_NOT_IN_RENEWAL_TIME_RANGE = "ExpirationNotInRenewalTimeRange" + """Domain expiration is not in the renewal time range.""" + SUBSCRIPTION_NOT_ACTIVE = "SubscriptionNotActive" + """Subscription is not active.""" diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/models/_models.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/models/_models.py new file mode 100644 index 000000000000..b68c8503ad60 --- /dev/null +++ b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/models/_models.py @@ -0,0 +1,1854 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +# pylint: disable=useless-super-delegation + +import datetime +from typing import Any, Mapping, Optional, TYPE_CHECKING, Union, overload + +from .._utils.model_base import Model as _Model, rest_field + +if TYPE_CHECKING: + from .. import models as _models + + +class Address(_Model): + """Address information for domain registration. + + :ivar address1: First line of an Address. Required. + :vartype address1: str + :ivar address2: The second line of the Address. Optional. + :vartype address2: str + :ivar city: The city for the address. Required. + :vartype city: str + :ivar country: The country for the address. Required. + :vartype country: str + :ivar postal_code: The postal code for the address. Required. + :vartype postal_code: str + :ivar state: The state or province for the address. Required. + :vartype state: str + """ + + address1: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """First line of an Address. Required.""" + address2: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The second line of the Address. Optional.""" + city: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The city for the address. Required.""" + country: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The country for the address. Required.""" + postal_code: str = rest_field(name="postalCode", visibility=["read", "create", "update", "delete", "query"]) + """The postal code for the address. Required.""" + state: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The state or province for the address. Required.""" + + @overload + def __init__( + self, + *, + address1: str, + city: str, + country: str, + postal_code: str, + state: str, + address2: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Contact(_Model): + """Contact information for domain registration. If 'Domain Privacy' option is not selected then + the contact information is made publicly available through the Whois + directories as per ICANN requirements. + + :ivar address_mailing: Mailing address. + :vartype address_mailing: ~azure.mgmt.domainregistration.models.Address + :ivar email: Email address. Required. + :vartype email: str + :ivar fax: Fax number. + :vartype fax: str + :ivar job_title: Job title. + :vartype job_title: str + :ivar name_first: First name. Required. + :vartype name_first: str + :ivar name_last: Last name. Required. + :vartype name_last: str + :ivar name_middle: Middle name. + :vartype name_middle: str + :ivar organization: Organization contact belongs to. + :vartype organization: str + :ivar phone: Phone number. Required. + :vartype phone: str + """ + + address_mailing: Optional["_models.Address"] = rest_field( + name="addressMailing", visibility=["read", "create", "update", "delete", "query"] + ) + """Mailing address.""" + email: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Email address. Required.""" + fax: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Fax number.""" + job_title: Optional[str] = rest_field(name="jobTitle", visibility=["read", "create", "update", "delete", "query"]) + """Job title.""" + name_first: str = rest_field(name="nameFirst", visibility=["read", "create", "update", "delete", "query"]) + """First name. Required.""" + name_last: str = rest_field(name="nameLast", visibility=["read", "create", "update", "delete", "query"]) + """Last name. Required.""" + name_middle: Optional[str] = rest_field( + name="nameMiddle", visibility=["read", "create", "update", "delete", "query"] + ) + """Middle name.""" + organization: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Organization contact belongs to.""" + phone: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Phone number. Required.""" + + @overload + def __init__( + self, + *, + email: str, + name_first: str, + name_last: str, + phone: str, + address_mailing: Optional["_models.Address"] = None, + fax: Optional[str] = None, + job_title: Optional[str] = None, + name_middle: Optional[str] = None, + organization: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CsmOperationDescription(_Model): + """Description of an operation available for Microsoft.Web resource provider. + + :ivar name: Operation name, e.g. Microsoft.Web/sites/write. + :vartype name: str + :ivar is_data_action: Operation display name. + :vartype is_data_action: bool + :ivar display: Meta data about operation used for display in portal. + :vartype display: ~azure.mgmt.domainregistration.models.CsmOperationDisplay + :ivar origin: Origin of the operation, e.g. "system" or "user". + :vartype origin: str + :ivar properties: Properties available for a Microsoft.Web resource provider operation. + :vartype properties: ~azure.mgmt.domainregistration.models.CsmOperationDescriptionProperties + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Operation name, e.g. Microsoft.Web/sites/write.""" + is_data_action: Optional[bool] = rest_field( + name="isDataAction", visibility=["read", "create", "update", "delete", "query"] + ) + """Operation display name.""" + display: Optional["_models.CsmOperationDisplay"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Meta data about operation used for display in portal.""" + origin: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Origin of the operation, e.g. \"system\" or \"user\".""" + properties: Optional["_models.CsmOperationDescriptionProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Properties available for a Microsoft.Web resource provider operation.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + is_data_action: Optional[bool] = None, + display: Optional["_models.CsmOperationDisplay"] = None, + origin: Optional[str] = None, + properties: Optional["_models.CsmOperationDescriptionProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CsmOperationDescriptionProperties(_Model): + """Properties available for a Microsoft.Web resource provider operation. + + :ivar service_specification: Resource metrics service provided by Microsoft.Insights resource + provider. + :vartype service_specification: ~azure.mgmt.domainregistration.models.ServiceSpecification + """ + + service_specification: Optional["_models.ServiceSpecification"] = rest_field( + name="serviceSpecification", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource metrics service provided by Microsoft.Insights resource provider.""" + + @overload + def __init__( + self, + *, + service_specification: Optional["_models.ServiceSpecification"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CsmOperationDisplay(_Model): + """Meta data about operation used for display in portal. + + :ivar provider: Provider name. + :vartype provider: str + :ivar resource: Resource type. + :vartype resource: str + :ivar operation: Operation name. + :vartype operation: str + :ivar description: Operation description. + :vartype description: str + """ + + provider: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Provider name.""" + resource: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource type.""" + operation: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Operation name.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Operation description.""" + + @overload + def __init__( + self, + *, + provider: Optional[str] = None, + resource: Optional[str] = None, + operation: Optional[str] = None, + description: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DefaultErrorResponse(_Model): + """App Service error response. + + :ivar error: Error model. + :vartype error: ~azure.mgmt.domainregistration.models.DefaultErrorResponseError + """ + + error: Optional["_models.DefaultErrorResponseError"] = rest_field(visibility=["read"]) + """Error model.""" + + +class DefaultErrorResponseError(_Model): + """Error model. + + :ivar code: Standardized string to programmatically identify the error. + :vartype code: str + :ivar message: Detailed error description and debugging information. + :vartype message: str + :ivar target: Detailed error description and debugging information. + :vartype target: str + :ivar details: Error details. + :vartype details: + list[~azure.mgmt.domainregistration.models.DefaultErrorResponseErrorDetailsItem] + :ivar innererror: More information to debug error. + :vartype innererror: str + """ + + code: Optional[str] = rest_field(visibility=["read"]) + """Standardized string to programmatically identify the error.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Detailed error description and debugging information.""" + target: Optional[str] = rest_field(visibility=["read"]) + """Detailed error description and debugging information.""" + details: Optional[list["_models.DefaultErrorResponseErrorDetailsItem"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Error details.""" + innererror: Optional[str] = rest_field(visibility=["read"]) + """More information to debug error.""" + + @overload + def __init__( + self, + *, + details: Optional[list["_models.DefaultErrorResponseErrorDetailsItem"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DefaultErrorResponseErrorDetailsItem(_Model): + """Detailed errors. + + :ivar code: Standardized string to programmatically identify the error. + :vartype code: str + :ivar message: Detailed error description and debugging information. + :vartype message: str + :ivar target: Detailed error description and debugging information. + :vartype target: str + """ + + code: Optional[str] = rest_field(visibility=["read"]) + """Standardized string to programmatically identify the error.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Detailed error description and debugging information.""" + target: Optional[str] = rest_field(visibility=["read"]) + """Detailed error description and debugging information.""" + + +class Dimension(_Model): + """Dimension of a resource metric. For e.g. instance specific HTTP requests for a web app, + where instance name is dimension of the metric HTTP request. + + :ivar name: Name of the dimension. + :vartype name: str + :ivar display_name: Display name of the dimension. + :vartype display_name: str + :ivar internal_name: Dimension of the internal name. + :vartype internal_name: str + :ivar to_be_exported_for_shoebox: Dimension to be exported for shoebox. + :vartype to_be_exported_for_shoebox: bool + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the dimension.""" + display_name: Optional[str] = rest_field( + name="displayName", visibility=["read", "create", "update", "delete", "query"] + ) + """Display name of the dimension.""" + internal_name: Optional[str] = rest_field( + name="internalName", visibility=["read", "create", "update", "delete", "query"] + ) + """Dimension of the internal name.""" + to_be_exported_for_shoebox: Optional[bool] = rest_field( + name="toBeExportedForShoebox", visibility=["read", "create", "update", "delete", "query"] + ) + """Dimension to be exported for shoebox.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + display_name: Optional[str] = None, + internal_name: Optional[str] = None, + to_be_exported_for_shoebox: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Resource(_Model): + """Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.domainregistration.models.SystemData + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.""" + name: Optional[str] = rest_field(visibility=["read"]) + """The name of the resource.""" + type: Optional[str] = rest_field(visibility=["read"]) + """The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or + \"Microsoft.Storage/storageAccounts\".""" + system_data: Optional["_models.SystemData"] = rest_field(name="systemData", visibility=["read"]) + """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" + + +class TrackedResource(Resource): + """Tracked Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.domainregistration.models.SystemData + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + """ + + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource tags.""" + location: str = rest_field(visibility=["read", "create"]) + """The geo-location where the resource lives. Required.""" + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Domain(TrackedResource): + """Information about a domain. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.domainregistration.models.SystemData + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: Domain resource specific properties. + :vartype properties: ~azure.mgmt.domainregistration.models.DomainProperties + :ivar kind: Kind of resource. + :vartype kind: str + """ + + properties: Optional["_models.DomainProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Domain resource specific properties.""" + kind: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Kind of resource.""" + + __flattened_items = [ + "contact_admin", + "contact_billing", + "contact_registrant", + "contact_tech", + "registration_status", + "provisioning_state", + "name_servers", + "privacy", + "created_time", + "expiration_time", + "last_renewed_time", + "auto_renew", + "ready_for_dns_record_management", + "managed_host_names", + "consent", + "domain_not_renewable_reasons", + "dns_type", + "dns_zone_id", + "target_dns_type", + "auth_code", + ] + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = None, + properties: Optional["_models.DomainProperties"] = None, + kind: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class DomainAvailabilityCheckResult(_Model): + """Domain availability check result. + + :ivar name: Name of the domain. + :vartype name: str + :ivar available: true if domain can be purchased using CreateDomain API; + otherwise, false. + :vartype available: bool + :ivar domain_type: Valid values are Regular domain: Azure will charge the full price of domain + registration, SoftDeleted: Purchasing this domain will simply restore it and this operation + will not cost anything. Known values are: "Regular" and "SoftDeleted". + :vartype domain_type: str or ~azure.mgmt.domainregistration.models.DomainType + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the domain.""" + available: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """true if domain can be purchased using CreateDomain API; otherwise, + false.""" + domain_type: Optional[Union[str, "_models.DomainType"]] = rest_field( + name="domainType", visibility=["read", "create", "update", "delete", "query"] + ) + """Valid values are Regular domain: Azure will charge the full price of domain registration, + SoftDeleted: Purchasing this domain will simply restore it and this operation will not cost + anything. Known values are: \"Regular\" and \"SoftDeleted\".""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + available: Optional[bool] = None, + domain_type: Optional[Union[str, "_models.DomainType"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DomainControlCenterSsoRequest(_Model): + """Single sign-on request information for domain management. + + :ivar url: URL where the single sign-on request is to be made. + :vartype url: str + :ivar post_parameter_key: Post parameter key. + :vartype post_parameter_key: str + :ivar post_parameter_value: Post parameter value. Client should use + 'application/x-www-form-urlencoded' encoding for this value. + :vartype post_parameter_value: str + """ + + url: Optional[str] = rest_field(visibility=["read"]) + """URL where the single sign-on request is to be made.""" + post_parameter_key: Optional[str] = rest_field(name="postParameterKey", visibility=["read"]) + """Post parameter key.""" + post_parameter_value: Optional[str] = rest_field(name="postParameterValue", visibility=["read"]) + """Post parameter value. Client should use 'application/x-www-form-urlencoded' encoding for this + value.""" + + +class ProxyResource(Resource): + """Proxy Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.domainregistration.models.SystemData + """ + + +class DomainOwnershipIdentifier(ProxyResource): + """Domain ownership Identifier. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.domainregistration.models.SystemData + :ivar properties: DomainOwnershipIdentifier resource specific properties. + :vartype properties: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifierProperties + :ivar kind: Kind of resource. + :vartype kind: str + """ + + properties: Optional["_models.DomainOwnershipIdentifierProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """DomainOwnershipIdentifier resource specific properties.""" + kind: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Kind of resource.""" + + __flattened_items = ["ownership_id"] + + @overload + def __init__( + self, + *, + properties: Optional["_models.DomainOwnershipIdentifierProperties"] = None, + kind: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class DomainOwnershipIdentifierProperties(_Model): + """DomainOwnershipIdentifier resource specific properties. + + :ivar ownership_id: Ownership Id. + :vartype ownership_id: str + """ + + ownership_id: Optional[str] = rest_field( + name="ownershipId", visibility=["read", "create", "update", "delete", "query"] + ) + """Ownership Id.""" + + @overload + def __init__( + self, + *, + ownership_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ProxyOnlyResource(_Model): + """Azure proxy only resource. This resource is not tracked by Azure Resource Manager. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource Name. + :vartype name: str + :ivar kind: Kind of resource. + :vartype kind: str + :ivar type: Resource type. + :vartype type: str + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Resource Id.""" + name: Optional[str] = rest_field(visibility=["read"]) + """Resource Name.""" + kind: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Kind of resource.""" + type: Optional[str] = rest_field(visibility=["read"]) + """Resource type.""" + + @overload + def __init__( + self, + *, + kind: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DomainPatchResource(ProxyOnlyResource): + """ARM resource for a domain. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource Name. + :vartype name: str + :ivar kind: Kind of resource. + :vartype kind: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: DomainPatchResource resource specific properties. + :vartype properties: ~azure.mgmt.domainregistration.models.DomainPatchResourceProperties + """ + + properties: Optional["_models.DomainPatchResourceProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """DomainPatchResource resource specific properties.""" + + __flattened_items = [ + "contact_admin", + "contact_billing", + "contact_registrant", + "contact_tech", + "registration_status", + "provisioning_state", + "name_servers", + "privacy", + "created_time", + "expiration_time", + "last_renewed_time", + "auto_renew", + "ready_for_dns_record_management", + "managed_host_names", + "consent", + "domain_not_renewable_reasons", + "dns_type", + "dns_zone_id", + "target_dns_type", + "auth_code", + ] + + @overload + def __init__( + self, + *, + kind: Optional[str] = None, + properties: Optional["_models.DomainPatchResourceProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class DomainPatchResourceProperties(_Model): + """DomainPatchResource resource specific properties. + + :ivar contact_admin: Administrative contact. Required. + :vartype contact_admin: ~azure.mgmt.domainregistration.models.Contact + :ivar contact_billing: Billing contact. Required. + :vartype contact_billing: ~azure.mgmt.domainregistration.models.Contact + :ivar contact_registrant: Registrant contact. Required. + :vartype contact_registrant: ~azure.mgmt.domainregistration.models.Contact + :ivar contact_tech: Technical contact. Required. + :vartype contact_tech: ~azure.mgmt.domainregistration.models.Contact + :ivar registration_status: Domain registration status. Known values are: "Active", "Awaiting", + "Cancelled", "Confiscated", "Disabled", "Excluded", "Expired", "Failed", "Held", "Locked", + "Parked", "Pending", "Reserved", "Reverted", "Suspended", "Transferred", "Unknown", "Unlocked", + "Unparked", "Updated", and "JsonConverterFailed". + :vartype registration_status: str or ~azure.mgmt.domainregistration.models.DomainStatus + :ivar provisioning_state: Domain provisioning state. Known values are: "Succeeded", "Failed", + "Canceled", "InProgress", and "Deleting". + :vartype provisioning_state: str or ~azure.mgmt.domainregistration.models.ProvisioningState + :ivar name_servers: Name servers. + :vartype name_servers: list[str] + :ivar privacy: true if domain privacy is enabled for this domain; otherwise, + false. + :vartype privacy: bool + :ivar created_time: Domain creation timestamp. + :vartype created_time: ~datetime.datetime + :ivar expiration_time: Domain expiration timestamp. + :vartype expiration_time: ~datetime.datetime + :ivar last_renewed_time: Timestamp when the domain was renewed last time. + :vartype last_renewed_time: ~datetime.datetime + :ivar auto_renew: true if the domain should be automatically renewed; otherwise, + false. + :vartype auto_renew: bool + :ivar ready_for_dns_record_management: true if Azure can assign this domain to App + Service apps; otherwise, false. This value will be true if domain + registration status is active and \\n it is hosted on name servers Azure has programmatic + access to. + :vartype ready_for_dns_record_management: bool + :ivar managed_host_names: All hostnames derived from the domain and assigned to Azure + resources. + :vartype managed_host_names: list[~azure.mgmt.domainregistration.models.HostName] + :ivar consent: Legal agreement consent. Required. + :vartype consent: ~azure.mgmt.domainregistration.models.DomainPurchaseConsent + :ivar domain_not_renewable_reasons: Reasons why domain is not renewable. + :vartype domain_not_renewable_reasons: list[str or + ~azure.mgmt.domainregistration.models.ResourceNotRenewableReason] + :ivar dns_type: Current DNS type. Known values are: "AzureDns" and "DefaultDomainRegistrarDns". + :vartype dns_type: str or ~azure.mgmt.domainregistration.models.DnsType + :ivar dns_zone_id: Azure DNS Zone to use. + :vartype dns_zone_id: str + :ivar target_dns_type: Target DNS type (would be used for migration). Known values are: + "AzureDns" and "DefaultDomainRegistrarDns". + :vartype target_dns_type: str or ~azure.mgmt.domainregistration.models.DnsType + :ivar auth_code: Authorization code for the domain. + :vartype auth_code: str + """ + + contact_admin: "_models.Contact" = rest_field(name="contactAdmin", visibility=["create"]) + """Administrative contact. Required.""" + contact_billing: "_models.Contact" = rest_field(name="contactBilling", visibility=["create"]) + """Billing contact. Required.""" + contact_registrant: "_models.Contact" = rest_field(name="contactRegistrant", visibility=["create"]) + """Registrant contact. Required.""" + contact_tech: "_models.Contact" = rest_field(name="contactTech", visibility=["create"]) + """Technical contact. Required.""" + registration_status: Optional[Union[str, "_models.DomainStatus"]] = rest_field( + name="registrationStatus", visibility=["read"] + ) + """Domain registration status. Known values are: \"Active\", \"Awaiting\", \"Cancelled\", + \"Confiscated\", \"Disabled\", \"Excluded\", \"Expired\", \"Failed\", \"Held\", \"Locked\", + \"Parked\", \"Pending\", \"Reserved\", \"Reverted\", \"Suspended\", \"Transferred\", + \"Unknown\", \"Unlocked\", \"Unparked\", \"Updated\", and \"JsonConverterFailed\".""" + provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Domain provisioning state. Known values are: \"Succeeded\", \"Failed\", \"Canceled\", + \"InProgress\", and \"Deleting\".""" + name_servers: Optional[list[str]] = rest_field(name="nameServers", visibility=["read"]) + """Name servers.""" + privacy: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """true if domain privacy is enabled for this domain; otherwise, false.""" + created_time: Optional[datetime.datetime] = rest_field(name="createdTime", visibility=["read"], format="rfc3339") + """Domain creation timestamp.""" + expiration_time: Optional[datetime.datetime] = rest_field( + name="expirationTime", visibility=["read"], format="rfc3339" + ) + """Domain expiration timestamp.""" + last_renewed_time: Optional[datetime.datetime] = rest_field( + name="lastRenewedTime", visibility=["read"], format="rfc3339" + ) + """Timestamp when the domain was renewed last time.""" + auto_renew: Optional[bool] = rest_field( + name="autoRenew", visibility=["read", "create", "update", "delete", "query"] + ) + """true if the domain should be automatically renewed; otherwise, false.""" + ready_for_dns_record_management: Optional[bool] = rest_field( + name="readyForDnsRecordManagement", visibility=["read"] + ) + """true if Azure can assign this domain to App Service apps; otherwise, + false. This value will be true if domain registration status is + active and \n it is hosted on name servers Azure has programmatic access to.""" + managed_host_names: Optional[list["_models.HostName"]] = rest_field(name="managedHostNames", visibility=["read"]) + """All hostnames derived from the domain and assigned to Azure resources.""" + consent: "_models.DomainPurchaseConsent" = rest_field(visibility=["create"]) + """Legal agreement consent. Required.""" + domain_not_renewable_reasons: Optional[list[Union[str, "_models.ResourceNotRenewableReason"]]] = rest_field( + name="domainNotRenewableReasons", visibility=["read"] + ) + """Reasons why domain is not renewable.""" + dns_type: Optional[Union[str, "_models.DnsType"]] = rest_field( + name="dnsType", visibility=["read", "create", "update", "delete", "query"] + ) + """Current DNS type. Known values are: \"AzureDns\" and \"DefaultDomainRegistrarDns\".""" + dns_zone_id: Optional[str] = rest_field( + name="dnsZoneId", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure DNS Zone to use.""" + target_dns_type: Optional[Union[str, "_models.DnsType"]] = rest_field( + name="targetDnsType", visibility=["read", "create", "update", "delete", "query"] + ) + """Target DNS type (would be used for migration). Known values are: \"AzureDns\" and + \"DefaultDomainRegistrarDns\".""" + auth_code: Optional[str] = rest_field(name="authCode", visibility=["read", "create"]) + """Authorization code for the domain.""" + + @overload + def __init__( + self, + *, + contact_admin: "_models.Contact", + contact_billing: "_models.Contact", + contact_registrant: "_models.Contact", + contact_tech: "_models.Contact", + consent: "_models.DomainPurchaseConsent", + privacy: Optional[bool] = None, + auto_renew: Optional[bool] = None, + dns_type: Optional[Union[str, "_models.DnsType"]] = None, + dns_zone_id: Optional[str] = None, + target_dns_type: Optional[Union[str, "_models.DnsType"]] = None, + auth_code: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DomainProperties(_Model): + """Domain resource specific properties. + + :ivar contact_admin: Administrative contact. Required. + :vartype contact_admin: ~azure.mgmt.domainregistration.models.Contact + :ivar contact_billing: Billing contact. Required. + :vartype contact_billing: ~azure.mgmt.domainregistration.models.Contact + :ivar contact_registrant: Registrant contact. Required. + :vartype contact_registrant: ~azure.mgmt.domainregistration.models.Contact + :ivar contact_tech: Technical contact. Required. + :vartype contact_tech: ~azure.mgmt.domainregistration.models.Contact + :ivar registration_status: Domain registration status. Known values are: "Active", "Awaiting", + "Cancelled", "Confiscated", "Disabled", "Excluded", "Expired", "Failed", "Held", "Locked", + "Parked", "Pending", "Reserved", "Reverted", "Suspended", "Transferred", "Unknown", "Unlocked", + "Unparked", "Updated", and "JsonConverterFailed". + :vartype registration_status: str or ~azure.mgmt.domainregistration.models.DomainStatus + :ivar provisioning_state: Domain provisioning state. Known values are: "Succeeded", "Failed", + "Canceled", "InProgress", and "Deleting". + :vartype provisioning_state: str or ~azure.mgmt.domainregistration.models.ProvisioningState + :ivar name_servers: Name servers. + :vartype name_servers: list[str] + :ivar privacy: true if domain privacy is enabled for this domain; otherwise, + false. + :vartype privacy: bool + :ivar created_time: Domain creation timestamp. + :vartype created_time: ~datetime.datetime + :ivar expiration_time: Domain expiration timestamp. + :vartype expiration_time: ~datetime.datetime + :ivar last_renewed_time: Timestamp when the domain was renewed last time. + :vartype last_renewed_time: ~datetime.datetime + :ivar auto_renew: true if the domain should be automatically renewed; otherwise, + false. + :vartype auto_renew: bool + :ivar ready_for_dns_record_management: true if Azure can assign this domain to App + Service apps; otherwise, false. This value will be true if domain + registration status is active and \\n it is hosted on name servers Azure has programmatic + access to. + :vartype ready_for_dns_record_management: bool + :ivar managed_host_names: All hostnames derived from the domain and assigned to Azure + resources. + :vartype managed_host_names: list[~azure.mgmt.domainregistration.models.HostName] + :ivar consent: Legal agreement consent. Required. + :vartype consent: ~azure.mgmt.domainregistration.models.DomainPurchaseConsent + :ivar domain_not_renewable_reasons: Reasons why domain is not renewable. + :vartype domain_not_renewable_reasons: list[str or + ~azure.mgmt.domainregistration.models.ResourceNotRenewableReason] + :ivar dns_type: Current DNS type. Known values are: "AzureDns" and "DefaultDomainRegistrarDns". + :vartype dns_type: str or ~azure.mgmt.domainregistration.models.DnsType + :ivar dns_zone_id: Azure DNS Zone to use. + :vartype dns_zone_id: str + :ivar target_dns_type: Target DNS type (would be used for migration). Known values are: + "AzureDns" and "DefaultDomainRegistrarDns". + :vartype target_dns_type: str or ~azure.mgmt.domainregistration.models.DnsType + :ivar auth_code: Authorization code for the domain. + :vartype auth_code: str + """ + + contact_admin: "_models.Contact" = rest_field(name="contactAdmin", visibility=["create"]) + """Administrative contact. Required.""" + contact_billing: "_models.Contact" = rest_field(name="contactBilling", visibility=["create"]) + """Billing contact. Required.""" + contact_registrant: "_models.Contact" = rest_field(name="contactRegistrant", visibility=["create"]) + """Registrant contact. Required.""" + contact_tech: "_models.Contact" = rest_field(name="contactTech", visibility=["create"]) + """Technical contact. Required.""" + registration_status: Optional[Union[str, "_models.DomainStatus"]] = rest_field( + name="registrationStatus", visibility=["read"] + ) + """Domain registration status. Known values are: \"Active\", \"Awaiting\", \"Cancelled\", + \"Confiscated\", \"Disabled\", \"Excluded\", \"Expired\", \"Failed\", \"Held\", \"Locked\", + \"Parked\", \"Pending\", \"Reserved\", \"Reverted\", \"Suspended\", \"Transferred\", + \"Unknown\", \"Unlocked\", \"Unparked\", \"Updated\", and \"JsonConverterFailed\".""" + provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Domain provisioning state. Known values are: \"Succeeded\", \"Failed\", \"Canceled\", + \"InProgress\", and \"Deleting\".""" + name_servers: Optional[list[str]] = rest_field(name="nameServers", visibility=["read"]) + """Name servers.""" + privacy: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """true if domain privacy is enabled for this domain; otherwise, false.""" + created_time: Optional[datetime.datetime] = rest_field(name="createdTime", visibility=["read"], format="rfc3339") + """Domain creation timestamp.""" + expiration_time: Optional[datetime.datetime] = rest_field( + name="expirationTime", visibility=["read"], format="rfc3339" + ) + """Domain expiration timestamp.""" + last_renewed_time: Optional[datetime.datetime] = rest_field( + name="lastRenewedTime", visibility=["read"], format="rfc3339" + ) + """Timestamp when the domain was renewed last time.""" + auto_renew: Optional[bool] = rest_field( + name="autoRenew", visibility=["read", "create", "update", "delete", "query"] + ) + """true if the domain should be automatically renewed; otherwise, false.""" + ready_for_dns_record_management: Optional[bool] = rest_field( + name="readyForDnsRecordManagement", visibility=["read"] + ) + """true if Azure can assign this domain to App Service apps; otherwise, + false. This value will be true if domain registration status is + active and \n it is hosted on name servers Azure has programmatic access to.""" + managed_host_names: Optional[list["_models.HostName"]] = rest_field(name="managedHostNames", visibility=["read"]) + """All hostnames derived from the domain and assigned to Azure resources.""" + consent: "_models.DomainPurchaseConsent" = rest_field(visibility=["create"]) + """Legal agreement consent. Required.""" + domain_not_renewable_reasons: Optional[list[Union[str, "_models.ResourceNotRenewableReason"]]] = rest_field( + name="domainNotRenewableReasons", visibility=["read"] + ) + """Reasons why domain is not renewable.""" + dns_type: Optional[Union[str, "_models.DnsType"]] = rest_field( + name="dnsType", visibility=["read", "create", "update", "delete", "query"] + ) + """Current DNS type. Known values are: \"AzureDns\" and \"DefaultDomainRegistrarDns\".""" + dns_zone_id: Optional[str] = rest_field( + name="dnsZoneId", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure DNS Zone to use.""" + target_dns_type: Optional[Union[str, "_models.DnsType"]] = rest_field( + name="targetDnsType", visibility=["read", "create", "update", "delete", "query"] + ) + """Target DNS type (would be used for migration). Known values are: \"AzureDns\" and + \"DefaultDomainRegistrarDns\".""" + auth_code: Optional[str] = rest_field(name="authCode", visibility=["read", "create"]) + """Authorization code for the domain.""" + + @overload + def __init__( + self, + *, + contact_admin: "_models.Contact", + contact_billing: "_models.Contact", + contact_registrant: "_models.Contact", + contact_tech: "_models.Contact", + consent: "_models.DomainPurchaseConsent", + privacy: Optional[bool] = None, + auto_renew: Optional[bool] = None, + dns_type: Optional[Union[str, "_models.DnsType"]] = None, + dns_zone_id: Optional[str] = None, + target_dns_type: Optional[Union[str, "_models.DnsType"]] = None, + auth_code: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DomainPurchaseConsent(_Model): + """Domain purchase consent object, representing acceptance of applicable legal agreements. + + :ivar agreement_keys: List of applicable legal agreement keys. This list can be retrieved using + ListLegalAgreements API under TopLevelDomain resource. + :vartype agreement_keys: list[str] + :ivar agreed_by: Client IP address. + :vartype agreed_by: str + :ivar agreed_at: Timestamp when the agreements were accepted. + :vartype agreed_at: ~datetime.datetime + """ + + agreement_keys: Optional[list[str]] = rest_field( + name="agreementKeys", visibility=["read", "create", "update", "delete", "query"] + ) + """List of applicable legal agreement keys. This list can be retrieved using ListLegalAgreements + API under TopLevelDomain resource.""" + agreed_by: Optional[str] = rest_field(name="agreedBy", visibility=["read", "create", "update", "delete", "query"]) + """Client IP address.""" + agreed_at: Optional[datetime.datetime] = rest_field( + name="agreedAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """Timestamp when the agreements were accepted.""" + + @overload + def __init__( + self, + *, + agreement_keys: Optional[list[str]] = None, + agreed_by: Optional[str] = None, + agreed_at: Optional[datetime.datetime] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DomainRecommendationSearchParameters(_Model): + """Domain recommendation search parameters. + + :ivar keywords: Keywords to be used for generating domain recommendations. + :vartype keywords: str + :ivar max_domain_recommendations: Maximum number of recommendations. + :vartype max_domain_recommendations: int + """ + + keywords: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Keywords to be used for generating domain recommendations.""" + max_domain_recommendations: Optional[int] = rest_field( + name="maxDomainRecommendations", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum number of recommendations.""" + + @overload + def __init__( + self, + *, + keywords: Optional[str] = None, + max_domain_recommendations: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HostName(_Model): + """Details of a hostname derived from a domain. + + :ivar name: Name of the hostname. + :vartype name: str + :ivar site_names: List of apps the hostname is assigned to. This list will have more than one + app only if the hostname is pointing to a Traffic Manager. + :vartype site_names: list[str] + :ivar azure_resource_name: Name of the Azure resource the hostname is assigned to. If it is + assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the + app name. + :vartype azure_resource_name: str + :ivar azure_resource_type: Type of the Azure resource the hostname is assigned to. Known values + are: "Website" and "TrafficManager". + :vartype azure_resource_type: str or ~azure.mgmt.domainregistration.models.AzureResourceType + :ivar custom_host_name_dns_record_type: Type of the DNS record. Known values are: "CName" and + "A". + :vartype custom_host_name_dns_record_type: str or + ~azure.mgmt.domainregistration.models.CustomHostNameDnsRecordType + :ivar host_name_type: Type of the hostname. Known values are: "Verified" and "Managed". + :vartype host_name_type: str or ~azure.mgmt.domainregistration.models.HostNameType + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the hostname.""" + site_names: Optional[list[str]] = rest_field( + name="siteNames", visibility=["read", "create", "update", "delete", "query"] + ) + """List of apps the hostname is assigned to. This list will have more than one app only if the + hostname is pointing to a Traffic Manager.""" + azure_resource_name: Optional[str] = rest_field( + name="azureResourceName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager + then it will be the Traffic Manager name otherwise it will be the app name.""" + azure_resource_type: Optional[Union[str, "_models.AzureResourceType"]] = rest_field( + name="azureResourceType", visibility=["read", "create", "update", "delete", "query"] + ) + """Type of the Azure resource the hostname is assigned to. Known values are: \"Website\" and + \"TrafficManager\".""" + custom_host_name_dns_record_type: Optional[Union[str, "_models.CustomHostNameDnsRecordType"]] = rest_field( + name="customHostNameDnsRecordType", visibility=["read", "create", "update", "delete", "query"] + ) + """Type of the DNS record. Known values are: \"CName\" and \"A\".""" + host_name_type: Optional[Union[str, "_models.HostNameType"]] = rest_field( + name="hostNameType", visibility=["read", "create", "update", "delete", "query"] + ) + """Type of the hostname. Known values are: \"Verified\" and \"Managed\".""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + site_names: Optional[list[str]] = None, + azure_resource_name: Optional[str] = None, + azure_resource_type: Optional[Union[str, "_models.AzureResourceType"]] = None, + custom_host_name_dns_record_type: Optional[Union[str, "_models.CustomHostNameDnsRecordType"]] = None, + host_name_type: Optional[Union[str, "_models.HostNameType"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LogSpecification(_Model): + """Log Definition of a single resource metric. + + :ivar name: Name of the log. + :vartype name: str + :ivar display_name: Display name of the log. + :vartype display_name: str + :ivar blob_duration: Blob duration of the log. + :vartype blob_duration: str + :ivar log_filter_pattern: Log filtered pattern of the log. + :vartype log_filter_pattern: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the log.""" + display_name: Optional[str] = rest_field( + name="displayName", visibility=["read", "create", "update", "delete", "query"] + ) + """Display name of the log.""" + blob_duration: Optional[str] = rest_field( + name="blobDuration", visibility=["read", "create", "update", "delete", "query"] + ) + """Blob duration of the log.""" + log_filter_pattern: Optional[str] = rest_field( + name="logFilterPattern", visibility=["read", "create", "update", "delete", "query"] + ) + """Log filtered pattern of the log.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + display_name: Optional[str] = None, + blob_duration: Optional[str] = None, + log_filter_pattern: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MetricAvailability(_Model): + """Retention policy of a resource metric. + + :ivar time_grain: Metric availability time grain. + :vartype time_grain: str + :ivar blob_duration: Metric availability blob duration. + :vartype blob_duration: str + """ + + time_grain: Optional[str] = rest_field(name="timeGrain", visibility=["read", "create", "update", "delete", "query"]) + """Metric availability time grain.""" + blob_duration: Optional[str] = rest_field( + name="blobDuration", visibility=["read", "create", "update", "delete", "query"] + ) + """Metric availability blob duration.""" + + @overload + def __init__( + self, + *, + time_grain: Optional[str] = None, + blob_duration: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MetricSpecification(_Model): + """Definition of a single resource metric. + + :ivar name: Name of the resource metric. + :vartype name: str + :ivar display_name: Display name of the resource metric. + :vartype display_name: str + :ivar display_description: Description of the resource metric. + :vartype display_description: str + :ivar unit: Resource metric unit. + :vartype unit: str + :ivar aggregation_type: Resource metric aggregation type. + :vartype aggregation_type: str + :ivar supports_instance_level_aggregation: Resource metric supported aggregation types. + :vartype supports_instance_level_aggregation: bool + :ivar enable_regional_mdm_account: Resource metric supported time grain types. + :vartype enable_regional_mdm_account: bool + :ivar source_mdm_account: Resource metric source MDM account. + :vartype source_mdm_account: str + :ivar source_mdm_namespace: Resource metric source MDM namespace. + :vartype source_mdm_namespace: str + :ivar metric_filter_pattern: Resource metric filter pattern. + :vartype metric_filter_pattern: str + :ivar fill_gap_with_zero: Resource metric fill gap with zero. + :vartype fill_gap_with_zero: bool + :ivar is_internal: Resource metric is internal. + :vartype is_internal: bool + :ivar dimensions: Resource metric dimensions. + :vartype dimensions: list[~azure.mgmt.domainregistration.models.Dimension] + :ivar category: Resource metric category. + :vartype category: str + :ivar availabilities: Resource metric availability. + :vartype availabilities: list[~azure.mgmt.domainregistration.models.MetricAvailability] + :ivar supported_time_grain_types: Resource metric supported time grain types. + :vartype supported_time_grain_types: list[str] + :ivar supported_aggregation_types: Resource metric supported aggregation types. + :vartype supported_aggregation_types: list[str] + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the resource metric.""" + display_name: Optional[str] = rest_field( + name="displayName", visibility=["read", "create", "update", "delete", "query"] + ) + """Display name of the resource metric.""" + display_description: Optional[str] = rest_field( + name="displayDescription", visibility=["read", "create", "update", "delete", "query"] + ) + """Description of the resource metric.""" + unit: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource metric unit.""" + aggregation_type: Optional[str] = rest_field( + name="aggregationType", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource metric aggregation type.""" + supports_instance_level_aggregation: Optional[bool] = rest_field( + name="supportsInstanceLevelAggregation", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource metric supported aggregation types.""" + enable_regional_mdm_account: Optional[bool] = rest_field( + name="enableRegionalMdmAccount", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource metric supported time grain types.""" + source_mdm_account: Optional[str] = rest_field( + name="sourceMdmAccount", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource metric source MDM account.""" + source_mdm_namespace: Optional[str] = rest_field( + name="sourceMdmNamespace", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource metric source MDM namespace.""" + metric_filter_pattern: Optional[str] = rest_field( + name="metricFilterPattern", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource metric filter pattern.""" + fill_gap_with_zero: Optional[bool] = rest_field( + name="fillGapWithZero", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource metric fill gap with zero.""" + is_internal: Optional[bool] = rest_field( + name="isInternal", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource metric is internal.""" + dimensions: Optional[list["_models.Dimension"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Resource metric dimensions.""" + category: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource metric category.""" + availabilities: Optional[list["_models.MetricAvailability"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Resource metric availability.""" + supported_time_grain_types: Optional[list[str]] = rest_field( + name="supportedTimeGrainTypes", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource metric supported time grain types.""" + supported_aggregation_types: Optional[list[str]] = rest_field( + name="supportedAggregationTypes", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource metric supported aggregation types.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + display_name: Optional[str] = None, + display_description: Optional[str] = None, + unit: Optional[str] = None, + aggregation_type: Optional[str] = None, + supports_instance_level_aggregation: Optional[bool] = None, + enable_regional_mdm_account: Optional[bool] = None, + source_mdm_account: Optional[str] = None, + source_mdm_namespace: Optional[str] = None, + metric_filter_pattern: Optional[str] = None, + fill_gap_with_zero: Optional[bool] = None, + is_internal: Optional[bool] = None, + dimensions: Optional[list["_models.Dimension"]] = None, + category: Optional[str] = None, + availabilities: Optional[list["_models.MetricAvailability"]] = None, + supported_time_grain_types: Optional[list[str]] = None, + supported_aggregation_types: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NameIdentifier(_Model): + """Identifies an object. + + :ivar name: Name of the object. + :vartype name: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the object.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ServiceSpecification(_Model): + """Resource metrics service provided by Microsoft.Insights resource provider. + + :ivar metric_specifications: Resource metrics service name. + :vartype metric_specifications: list[~azure.mgmt.domainregistration.models.MetricSpecification] + :ivar log_specifications: Resource logs service provided by Microsoft.Insights resource + provider. + :vartype log_specifications: list[~azure.mgmt.domainregistration.models.LogSpecification] + """ + + metric_specifications: Optional[list["_models.MetricSpecification"]] = rest_field( + name="metricSpecifications", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource metrics service name.""" + log_specifications: Optional[list["_models.LogSpecification"]] = rest_field( + name="logSpecifications", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource logs service provided by Microsoft.Insights resource provider.""" + + @overload + def __init__( + self, + *, + metric_specifications: Optional[list["_models.MetricSpecification"]] = None, + log_specifications: Optional[list["_models.LogSpecification"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SystemData(_Model): + """Metadata pertaining to creation and last modification of the resource. + + :ivar created_by: The identity that created the resource. + :vartype created_by: str + :ivar created_by_type: The type of identity that created the resource. Known values are: + "User", "Application", "ManagedIdentity", and "Key". + :vartype created_by_type: str or ~azure.mgmt.domainregistration.models.CreatedByType + :ivar created_at: The timestamp of resource creation (UTC). + :vartype created_at: ~datetime.datetime + :ivar last_modified_by: The identity that last modified the resource. + :vartype last_modified_by: str + :ivar last_modified_by_type: The type of identity that last modified the resource. Known values + are: "User", "Application", "ManagedIdentity", and "Key". + :vartype last_modified_by_type: str or ~azure.mgmt.domainregistration.models.CreatedByType + :ivar last_modified_at: The timestamp of resource last modification (UTC). + :vartype last_modified_at: ~datetime.datetime + """ + + created_by: Optional[str] = rest_field(name="createdBy", visibility=["read", "create", "update", "delete", "query"]) + """The identity that created the resource.""" + created_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( + name="createdByType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of identity that created the resource. Known values are: \"User\", \"Application\", + \"ManagedIdentity\", and \"Key\".""" + created_at: Optional[datetime.datetime] = rest_field( + name="createdAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The timestamp of resource creation (UTC).""" + last_modified_by: Optional[str] = rest_field( + name="lastModifiedBy", visibility=["read", "create", "update", "delete", "query"] + ) + """The identity that last modified the resource.""" + last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( + name="lastModifiedByType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of identity that last modified the resource. Known values are: \"User\", + \"Application\", \"ManagedIdentity\", and \"Key\".""" + last_modified_at: Optional[datetime.datetime] = rest_field( + name="lastModifiedAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The timestamp of resource last modification (UTC).""" + + @overload + def __init__( + self, + *, + created_by: Optional[str] = None, + created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, + created_at: Optional[datetime.datetime] = None, + last_modified_by: Optional[str] = None, + last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, + last_modified_at: Optional[datetime.datetime] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TldLegalAgreement(_Model): + """Legal agreement for a top level domain. + + :ivar agreement_key: Unique identifier for the agreement. Required. + :vartype agreement_key: str + :ivar title: Agreement title. Required. + :vartype title: str + :ivar content: Agreement details. Required. + :vartype content: str + :ivar url: URL where a copy of the agreement details is hosted. + :vartype url: str + """ + + agreement_key: str = rest_field(name="agreementKey", visibility=["read", "create", "update", "delete", "query"]) + """Unique identifier for the agreement. Required.""" + title: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Agreement title. Required.""" + content: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Agreement details. Required.""" + url: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """URL where a copy of the agreement details is hosted.""" + + @overload + def __init__( + self, + *, + agreement_key: str, + title: str, + content: str, + url: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TopLevelDomain(ProxyResource): + """A top level domain object. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.domainregistration.models.SystemData + :ivar properties: TopLevelDomain resource specific properties. + :vartype properties: ~azure.mgmt.domainregistration.models.TopLevelDomainProperties + :ivar kind: Kind of resource. + :vartype kind: str + """ + + properties: Optional["_models.TopLevelDomainProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """TopLevelDomain resource specific properties.""" + kind: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Kind of resource.""" + + __flattened_items = ["privacy"] + + @overload + def __init__( + self, + *, + properties: Optional["_models.TopLevelDomainProperties"] = None, + kind: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class TopLevelDomainAgreementOption(_Model): + """Options for retrieving the list of top level domain legal agreements. + + :ivar include_privacy: If true, then the list of agreements will include + agreements for domain privacy as well; otherwise, false. + :vartype include_privacy: bool + :ivar for_transfer: If true, then the list of agreements will include agreements + for domain transfer as well; otherwise, false. + :vartype for_transfer: bool + """ + + include_privacy: Optional[bool] = rest_field( + name="includePrivacy", visibility=["read", "create", "update", "delete", "query"] + ) + """If true, then the list of agreements will include agreements for domain privacy as + well; otherwise, false.""" + for_transfer: Optional[bool] = rest_field( + name="forTransfer", visibility=["read", "create", "update", "delete", "query"] + ) + """If true, then the list of agreements will include agreements for domain transfer + as well; otherwise, false.""" + + @overload + def __init__( + self, + *, + include_privacy: Optional[bool] = None, + for_transfer: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TopLevelDomainProperties(_Model): + """TopLevelDomain resource specific properties. + + :ivar privacy: If true, then the top level domain supports domain privacy; + otherwise, false. + :vartype privacy: bool + """ + + privacy: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, then the top level domain supports domain privacy; otherwise, + false.""" + + @overload + def __init__( + self, + *, + privacy: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/models/_models_py3.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/models/_models_py3.py deleted file mode 100644 index 3c8380c6d9e8..000000000000 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/models/_models_py3.py +++ /dev/null @@ -1,8801 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from collections.abc import MutableMapping -import datetime -from typing import Any, Optional, TYPE_CHECKING, Union - -from .._utils import serialization as _serialization - -if TYPE_CHECKING: - from .. import models as _models -JSON = MutableMapping[str, Any] - - -class Address(_serialization.Model): - """Address information for domain registration. - - All required parameters must be populated in order to send to server. - - :ivar address1: First line of an Address. Required. - :vartype address1: str - :ivar address2: The second line of the Address. Optional. - :vartype address2: str - :ivar city: The city for the address. Required. - :vartype city: str - :ivar country: The country for the address. Required. - :vartype country: str - :ivar postal_code: The postal code for the address. Required. - :vartype postal_code: str - :ivar state: The state or province for the address. Required. - :vartype state: str - """ - - _validation = { - "address1": {"required": True}, - "city": {"required": True}, - "country": {"required": True}, - "postal_code": {"required": True}, - "state": {"required": True}, - } - - _attribute_map = { - "address1": {"key": "address1", "type": "str"}, - "address2": {"key": "address2", "type": "str"}, - "city": {"key": "city", "type": "str"}, - "country": {"key": "country", "type": "str"}, - "postal_code": {"key": "postalCode", "type": "str"}, - "state": {"key": "state", "type": "str"}, - } - - def __init__( - self, - *, - address1: str, - city: str, - country: str, - postal_code: str, - state: str, - address2: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword address1: First line of an Address. Required. - :paramtype address1: str - :keyword address2: The second line of the Address. Optional. - :paramtype address2: str - :keyword city: The city for the address. Required. - :paramtype city: str - :keyword country: The country for the address. Required. - :paramtype country: str - :keyword postal_code: The postal code for the address. Required. - :paramtype postal_code: str - :keyword state: The state or province for the address. Required. - :paramtype state: str - """ - super().__init__(**kwargs) - self.address1 = address1 - self.address2 = address2 - self.city = city - self.country = country - self.postal_code = postal_code - self.state = state - - -class ApiDefinitionInfo(_serialization.Model): - """Information about the formal API definition for the app. - - :ivar url: The URL of the API definition. - :vartype url: str - """ - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword url: The URL of the API definition. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class ApiManagementConfig(_serialization.Model): - """Azure API management (APIM) configuration linked to the app. - - :ivar id: APIM-Api Identifier. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: APIM-Api Identifier. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class AppServiceEnvironment(_serialization.Model): - """Description of an App Service Environment. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar provisioning_state: Provisioning state of the App Service Environment. Known values are: - "Succeeded", "Failed", "Canceled", "InProgress", and "Deleting". - :vartype provisioning_state: str or ~azure.mgmt.domainregistration.models.ProvisioningState - :ivar status: Current status of the App Service Environment. Known values are: "Preparing", - "Ready", "Scaling", and "Deleting". - :vartype status: str or ~azure.mgmt.domainregistration.models.HostingEnvironmentStatus - :ivar virtual_network: Description of the Virtual Network. Required. - :vartype virtual_network: ~azure.mgmt.domainregistration.models.VirtualNetworkProfile - :ivar internal_load_balancing_mode: Specifies which endpoints to serve internally in the - Virtual Network for the App Service Environment. Known values are: "None", "Web", "Publishing", - and "Web, Publishing". - :vartype internal_load_balancing_mode: str or - ~azure.mgmt.domainregistration.models.LoadBalancingMode - :ivar multi_size: Front-end VM size, e.g. "Medium", "Large". - :vartype multi_size: str - :ivar multi_role_count: Number of front-end instances. - :vartype multi_role_count: int - :ivar ipssl_address_count: Number of IP SSL addresses reserved for the App Service Environment. - :vartype ipssl_address_count: int - :ivar dns_suffix: DNS suffix of the App Service Environment. - :vartype dns_suffix: str - :ivar maximum_number_of_machines: Maximum number of VMs in the App Service Environment. - :vartype maximum_number_of_machines: int - :ivar front_end_scale_factor: Scale factor for front-ends. - :vartype front_end_scale_factor: int - :ivar suspended: :code:`true` if the App Service Environment is suspended; - otherwise, :code:`false`. The environment can be suspended, e.g. when the - management endpoint is no longer available - (most likely because NSG blocked the incoming traffic). - :vartype suspended: bool - :ivar cluster_settings: Custom settings for changing the behavior of the App Service - Environment. - :vartype cluster_settings: list[~azure.mgmt.domainregistration.models.NameValuePair] - :ivar user_whitelisted_ip_ranges: User added ip ranges to whitelist on ASE db. - :vartype user_whitelisted_ip_ranges: list[str] - :ivar has_linux_workers: Flag that displays whether an ASE has linux workers or not. - :vartype has_linux_workers: bool - :ivar upgrade_preference: Upgrade Preference. Known values are: "None", "Early", "Late", and - "Manual". - :vartype upgrade_preference: str or ~azure.mgmt.domainregistration.models.UpgradePreference - :ivar dedicated_host_count: Dedicated Host Count. - :vartype dedicated_host_count: int - :ivar zone_redundant: Whether or not this App Service Environment is zone-redundant. - :vartype zone_redundant: bool - :ivar custom_dns_suffix_configuration: Full view of the custom domain suffix configuration for - ASEv3. - :vartype custom_dns_suffix_configuration: - ~azure.mgmt.domainregistration.models.CustomDnsSuffixConfiguration - :ivar networking_configuration: Full view of networking configuration for an ASE. - :vartype networking_configuration: - ~azure.mgmt.domainregistration.models.AseV3NetworkingConfiguration - :ivar upgrade_availability: Whether an upgrade is available for this App Service Environment. - Known values are: "None" and "Ready". - :vartype upgrade_availability: str or ~azure.mgmt.domainregistration.models.UpgradeAvailability - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "virtual_network": {"required": True}, - "multi_role_count": {"readonly": True}, - "maximum_number_of_machines": {"readonly": True}, - "suspended": {"readonly": True}, - "has_linux_workers": {"readonly": True}, - "upgrade_availability": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "virtual_network": {"key": "virtualNetwork", "type": "VirtualNetworkProfile"}, - "internal_load_balancing_mode": {"key": "internalLoadBalancingMode", "type": "str"}, - "multi_size": {"key": "multiSize", "type": "str"}, - "multi_role_count": {"key": "multiRoleCount", "type": "int"}, - "ipssl_address_count": {"key": "ipsslAddressCount", "type": "int"}, - "dns_suffix": {"key": "dnsSuffix", "type": "str"}, - "maximum_number_of_machines": {"key": "maximumNumberOfMachines", "type": "int"}, - "front_end_scale_factor": {"key": "frontEndScaleFactor", "type": "int"}, - "suspended": {"key": "suspended", "type": "bool"}, - "cluster_settings": {"key": "clusterSettings", "type": "[NameValuePair]"}, - "user_whitelisted_ip_ranges": {"key": "userWhitelistedIpRanges", "type": "[str]"}, - "has_linux_workers": {"key": "hasLinuxWorkers", "type": "bool"}, - "upgrade_preference": {"key": "upgradePreference", "type": "str"}, - "dedicated_host_count": {"key": "dedicatedHostCount", "type": "int"}, - "zone_redundant": {"key": "zoneRedundant", "type": "bool"}, - "custom_dns_suffix_configuration": { - "key": "customDnsSuffixConfiguration", - "type": "CustomDnsSuffixConfiguration", - }, - "networking_configuration": {"key": "networkingConfiguration", "type": "AseV3NetworkingConfiguration"}, - "upgrade_availability": {"key": "upgradeAvailability", "type": "str"}, - } - - def __init__( - self, - *, - virtual_network: "_models.VirtualNetworkProfile", - internal_load_balancing_mode: Optional[Union[str, "_models.LoadBalancingMode"]] = None, - multi_size: Optional[str] = None, - ipssl_address_count: Optional[int] = None, - dns_suffix: Optional[str] = None, - front_end_scale_factor: Optional[int] = None, - cluster_settings: Optional[list["_models.NameValuePair"]] = None, - user_whitelisted_ip_ranges: Optional[list[str]] = None, - upgrade_preference: Union[str, "_models.UpgradePreference"] = "None", - dedicated_host_count: Optional[int] = None, - zone_redundant: Optional[bool] = None, - custom_dns_suffix_configuration: Optional["_models.CustomDnsSuffixConfiguration"] = None, - networking_configuration: Optional["_models.AseV3NetworkingConfiguration"] = None, - **kwargs: Any - ) -> None: - """ - :keyword virtual_network: Description of the Virtual Network. Required. - :paramtype virtual_network: ~azure.mgmt.domainregistration.models.VirtualNetworkProfile - :keyword internal_load_balancing_mode: Specifies which endpoints to serve internally in the - Virtual Network for the App Service Environment. Known values are: "None", "Web", "Publishing", - and "Web, Publishing". - :paramtype internal_load_balancing_mode: str or - ~azure.mgmt.domainregistration.models.LoadBalancingMode - :keyword multi_size: Front-end VM size, e.g. "Medium", "Large". - :paramtype multi_size: str - :keyword ipssl_address_count: Number of IP SSL addresses reserved for the App Service - Environment. - :paramtype ipssl_address_count: int - :keyword dns_suffix: DNS suffix of the App Service Environment. - :paramtype dns_suffix: str - :keyword front_end_scale_factor: Scale factor for front-ends. - :paramtype front_end_scale_factor: int - :keyword cluster_settings: Custom settings for changing the behavior of the App Service - Environment. - :paramtype cluster_settings: list[~azure.mgmt.domainregistration.models.NameValuePair] - :keyword user_whitelisted_ip_ranges: User added ip ranges to whitelist on ASE db. - :paramtype user_whitelisted_ip_ranges: list[str] - :keyword upgrade_preference: Upgrade Preference. Known values are: "None", "Early", "Late", and - "Manual". - :paramtype upgrade_preference: str or ~azure.mgmt.domainregistration.models.UpgradePreference - :keyword dedicated_host_count: Dedicated Host Count. - :paramtype dedicated_host_count: int - :keyword zone_redundant: Whether or not this App Service Environment is zone-redundant. - :paramtype zone_redundant: bool - :keyword custom_dns_suffix_configuration: Full view of the custom domain suffix configuration - for ASEv3. - :paramtype custom_dns_suffix_configuration: - ~azure.mgmt.domainregistration.models.CustomDnsSuffixConfiguration - :keyword networking_configuration: Full view of networking configuration for an ASE. - :paramtype networking_configuration: - ~azure.mgmt.domainregistration.models.AseV3NetworkingConfiguration - """ - super().__init__(**kwargs) - self.provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = None - self.status: Optional[Union[str, "_models.HostingEnvironmentStatus"]] = None - self.virtual_network = virtual_network - self.internal_load_balancing_mode = internal_load_balancing_mode - self.multi_size = multi_size - self.multi_role_count: Optional[int] = None - self.ipssl_address_count = ipssl_address_count - self.dns_suffix = dns_suffix - self.maximum_number_of_machines: Optional[int] = None - self.front_end_scale_factor = front_end_scale_factor - self.suspended: Optional[bool] = None - self.cluster_settings = cluster_settings - self.user_whitelisted_ip_ranges = user_whitelisted_ip_ranges - self.has_linux_workers: Optional[bool] = None - self.upgrade_preference = upgrade_preference - self.dedicated_host_count = dedicated_host_count - self.zone_redundant = zone_redundant - self.custom_dns_suffix_configuration = custom_dns_suffix_configuration - self.networking_configuration = networking_configuration - self.upgrade_availability: Optional[Union[str, "_models.UpgradeAvailability"]] = None - - -class Resource(_serialization.Model): - """Azure resource. This resource is tracked in Azure Resource Manager. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. If the resource is an app, you can refer to - https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference - for details supported values for kind. - :vartype kind: str - :ivar location: Resource Location. Required. - :vartype location: str - :ivar type: Resource type. - :vartype type: str - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "location": {"required": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__( - self, *, location: str, kind: Optional[str] = None, tags: Optional[dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. If the resource is an app, you can refer to - https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference - for details supported values for kind. - :paramtype kind: str - :keyword location: Resource Location. Required. - :paramtype location: str - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.name: Optional[str] = None - self.kind = kind - self.location = location - self.type: Optional[str] = None - self.tags = tags - - -class AppServicePlan(Resource): - """App Service plan. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. If the resource is an app, you can refer to - https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference - for details supported values for kind. - :vartype kind: str - :ivar location: Resource Location. Required. - :vartype location: str - :ivar type: Resource type. - :vartype type: str - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar sku: Description of a SKU for a scalable resource. - :vartype sku: ~azure.mgmt.domainregistration.models.SkuDescription - :ivar extended_location: Extended Location. - :vartype extended_location: ~azure.mgmt.domainregistration.models.ExtendedLocation - :ivar worker_tier_name: Target worker tier assigned to the App Service plan. - :vartype worker_tier_name: str - :ivar status: App Service plan status. Known values are: "Ready", "Pending", and "Creating". - :vartype status: str or ~azure.mgmt.domainregistration.models.StatusOptions - :ivar subscription: App Service plan subscription. - :vartype subscription: str - :ivar hosting_environment_profile: Specification for the App Service Environment to use for the - App Service plan. - :vartype hosting_environment_profile: - ~azure.mgmt.domainregistration.models.HostingEnvironmentProfile - :ivar maximum_number_of_workers: Maximum number of instances that can be assigned to this App - Service plan. - :vartype maximum_number_of_workers: int - :ivar number_of_workers: The number of instances that are assigned to this App Service plan. - :vartype number_of_workers: int - :ivar geo_region: Geographical location for the App Service plan. - :vartype geo_region: str - :ivar per_site_scaling: If :code:`true`, apps assigned to this App Service plan - can be scaled independently. - If :code:`false`, apps assigned to this App Service plan will scale to all - instances of the plan. - :vartype per_site_scaling: bool - :ivar elastic_scale_enabled: ServerFarm supports ElasticScale. Apps in this plan will scale as - if the ServerFarm was ElasticPremium sku. - :vartype elastic_scale_enabled: bool - :ivar maximum_elastic_worker_count: Maximum number of total workers allowed for this - ElasticScaleEnabled App Service Plan. - :vartype maximum_elastic_worker_count: int - :ivar number_of_sites: Number of apps assigned to this App Service plan. - :vartype number_of_sites: int - :ivar is_spot: If :code:`true`, this App Service Plan owns spot instances. - :vartype is_spot: bool - :ivar spot_expiration_time: The time when the server farm expires. Valid only if it is a spot - server farm. - :vartype spot_expiration_time: ~datetime.datetime - :ivar free_offer_expiration_time: The time when the server farm free offer expires. - :vartype free_offer_expiration_time: ~datetime.datetime - :ivar resource_group: Resource group of the App Service plan. - :vartype resource_group: str - :ivar reserved: If Linux app service plan :code:`true`, :code:`false` - otherwise. - :vartype reserved: bool - :ivar is_xenon: Obsolete: If Hyper-V container app service plan :code:`true`, - :code:`false` otherwise. - :vartype is_xenon: bool - :ivar hyper_v: If Hyper-V container app service plan :code:`true`, - :code:`false` otherwise. - :vartype hyper_v: bool - :ivar target_worker_count: Scaling worker count. - :vartype target_worker_count: int - :ivar target_worker_size_id: Scaling worker size ID. - :vartype target_worker_size_id: int - :ivar provisioning_state: Provisioning state of the App Service Plan. Known values are: - "Succeeded", "Failed", "Canceled", "InProgress", and "Deleting". - :vartype provisioning_state: str or ~azure.mgmt.domainregistration.models.ProvisioningState - :ivar kube_environment_profile: Specification for the Kubernetes Environment to use for the App - Service plan. - :vartype kube_environment_profile: ~azure.mgmt.domainregistration.models.KubeEnvironmentProfile - :ivar zone_redundant: If :code:`true`, this App Service Plan will perform - availability zone balancing. - If :code:`false`, this App Service Plan will not perform availability zone - balancing. - :vartype zone_redundant: bool - :ivar async_scaling_enabled: If :code:`true`, this App Service Plan will attempt - to scale asynchronously if there are insufficient workers to scale synchronously. - If :code:`false`, this App Service Plan will only attempt sync scaling. - :vartype async_scaling_enabled: bool - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "location": {"required": True}, - "type": {"readonly": True}, - "status": {"readonly": True}, - "subscription": {"readonly": True}, - "maximum_number_of_workers": {"readonly": True}, - "number_of_workers": {"readonly": True}, - "geo_region": {"readonly": True}, - "number_of_sites": {"readonly": True}, - "resource_group": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "sku": {"key": "sku", "type": "SkuDescription"}, - "extended_location": {"key": "extendedLocation", "type": "ExtendedLocation"}, - "worker_tier_name": {"key": "properties.workerTierName", "type": "str"}, - "status": {"key": "properties.status", "type": "str"}, - "subscription": {"key": "properties.subscription", "type": "str"}, - "hosting_environment_profile": { - "key": "properties.hostingEnvironmentProfile", - "type": "HostingEnvironmentProfile", - }, - "maximum_number_of_workers": {"key": "properties.maximumNumberOfWorkers", "type": "int"}, - "number_of_workers": {"key": "properties.numberOfWorkers", "type": "int"}, - "geo_region": {"key": "properties.geoRegion", "type": "str"}, - "per_site_scaling": {"key": "properties.perSiteScaling", "type": "bool"}, - "elastic_scale_enabled": {"key": "properties.elasticScaleEnabled", "type": "bool"}, - "maximum_elastic_worker_count": {"key": "properties.maximumElasticWorkerCount", "type": "int"}, - "number_of_sites": {"key": "properties.numberOfSites", "type": "int"}, - "is_spot": {"key": "properties.isSpot", "type": "bool"}, - "spot_expiration_time": {"key": "properties.spotExpirationTime", "type": "iso-8601"}, - "free_offer_expiration_time": {"key": "properties.freeOfferExpirationTime", "type": "iso-8601"}, - "resource_group": {"key": "properties.resourceGroup", "type": "str"}, - "reserved": {"key": "properties.reserved", "type": "bool"}, - "is_xenon": {"key": "properties.isXenon", "type": "bool"}, - "hyper_v": {"key": "properties.hyperV", "type": "bool"}, - "target_worker_count": {"key": "properties.targetWorkerCount", "type": "int"}, - "target_worker_size_id": {"key": "properties.targetWorkerSizeId", "type": "int"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "kube_environment_profile": {"key": "properties.kubeEnvironmentProfile", "type": "KubeEnvironmentProfile"}, - "zone_redundant": {"key": "properties.zoneRedundant", "type": "bool"}, - "async_scaling_enabled": {"key": "properties.asyncScalingEnabled", "type": "bool"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - location: str, - kind: Optional[str] = None, - tags: Optional[dict[str, str]] = None, - sku: Optional["_models.SkuDescription"] = None, - extended_location: Optional["_models.ExtendedLocation"] = None, - worker_tier_name: Optional[str] = None, - hosting_environment_profile: Optional["_models.HostingEnvironmentProfile"] = None, - per_site_scaling: bool = False, - elastic_scale_enabled: Optional[bool] = None, - maximum_elastic_worker_count: Optional[int] = None, - is_spot: Optional[bool] = None, - spot_expiration_time: Optional[datetime.datetime] = None, - free_offer_expiration_time: Optional[datetime.datetime] = None, - reserved: bool = False, - is_xenon: bool = False, - hyper_v: bool = False, - target_worker_count: Optional[int] = None, - target_worker_size_id: Optional[int] = None, - kube_environment_profile: Optional["_models.KubeEnvironmentProfile"] = None, - zone_redundant: bool = False, - async_scaling_enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. If the resource is an app, you can refer to - https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference - for details supported values for kind. - :paramtype kind: str - :keyword location: Resource Location. Required. - :paramtype location: str - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - :keyword sku: Description of a SKU for a scalable resource. - :paramtype sku: ~azure.mgmt.domainregistration.models.SkuDescription - :keyword extended_location: Extended Location. - :paramtype extended_location: ~azure.mgmt.domainregistration.models.ExtendedLocation - :keyword worker_tier_name: Target worker tier assigned to the App Service plan. - :paramtype worker_tier_name: str - :keyword hosting_environment_profile: Specification for the App Service Environment to use for - the App Service plan. - :paramtype hosting_environment_profile: - ~azure.mgmt.domainregistration.models.HostingEnvironmentProfile - :keyword per_site_scaling: If :code:`true`, apps assigned to this App Service plan - can be scaled independently. - If :code:`false`, apps assigned to this App Service plan will scale to all - instances of the plan. - :paramtype per_site_scaling: bool - :keyword elastic_scale_enabled: ServerFarm supports ElasticScale. Apps in this plan will scale - as if the ServerFarm was ElasticPremium sku. - :paramtype elastic_scale_enabled: bool - :keyword maximum_elastic_worker_count: Maximum number of total workers allowed for this - ElasticScaleEnabled App Service Plan. - :paramtype maximum_elastic_worker_count: int - :keyword is_spot: If :code:`true`, this App Service Plan owns spot instances. - :paramtype is_spot: bool - :keyword spot_expiration_time: The time when the server farm expires. Valid only if it is a - spot server farm. - :paramtype spot_expiration_time: ~datetime.datetime - :keyword free_offer_expiration_time: The time when the server farm free offer expires. - :paramtype free_offer_expiration_time: ~datetime.datetime - :keyword reserved: If Linux app service plan :code:`true`, - :code:`false` otherwise. - :paramtype reserved: bool - :keyword is_xenon: Obsolete: If Hyper-V container app service plan :code:`true`, - :code:`false` otherwise. - :paramtype is_xenon: bool - :keyword hyper_v: If Hyper-V container app service plan :code:`true`, - :code:`false` otherwise. - :paramtype hyper_v: bool - :keyword target_worker_count: Scaling worker count. - :paramtype target_worker_count: int - :keyword target_worker_size_id: Scaling worker size ID. - :paramtype target_worker_size_id: int - :keyword kube_environment_profile: Specification for the Kubernetes Environment to use for the - App Service plan. - :paramtype kube_environment_profile: - ~azure.mgmt.domainregistration.models.KubeEnvironmentProfile - :keyword zone_redundant: If :code:`true`, this App Service Plan will perform - availability zone balancing. - If :code:`false`, this App Service Plan will not perform availability zone - balancing. - :paramtype zone_redundant: bool - :keyword async_scaling_enabled: If :code:`true`, this App Service Plan will - attempt to scale asynchronously if there are insufficient workers to scale synchronously. - If :code:`false`, this App Service Plan will only attempt sync scaling. - :paramtype async_scaling_enabled: bool - """ - super().__init__(kind=kind, location=location, tags=tags, **kwargs) - self.sku = sku - self.extended_location = extended_location - self.worker_tier_name = worker_tier_name - self.status: Optional[Union[str, "_models.StatusOptions"]] = None - self.subscription: Optional[str] = None - self.hosting_environment_profile = hosting_environment_profile - self.maximum_number_of_workers: Optional[int] = None - self.number_of_workers: Optional[int] = None - self.geo_region: Optional[str] = None - self.per_site_scaling = per_site_scaling - self.elastic_scale_enabled = elastic_scale_enabled - self.maximum_elastic_worker_count = maximum_elastic_worker_count - self.number_of_sites: Optional[int] = None - self.is_spot = is_spot - self.spot_expiration_time = spot_expiration_time - self.free_offer_expiration_time = free_offer_expiration_time - self.resource_group: Optional[str] = None - self.reserved = reserved - self.is_xenon = is_xenon - self.hyper_v = hyper_v - self.target_worker_count = target_worker_count - self.target_worker_size_id = target_worker_size_id - self.provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = None - self.kube_environment_profile = kube_environment_profile - self.zone_redundant = zone_redundant - self.async_scaling_enabled = async_scaling_enabled - - -class AppServicePlanCollection(_serialization.Model): - """Collection of App Service plans. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.domainregistration.models.AppServicePlan] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[AppServicePlan]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.AppServicePlan"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.domainregistration.models.AppServicePlan] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class ArmIdWrapper(_serialization.Model): - """A wrapper for an ARM resource id. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: - :vartype id: str - """ - - _validation = { - "id": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - - -class ProxyOnlyResource(_serialization.Model): - """Azure proxy only resource. This resource is not tracked by Azure Resource Manager. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, *, kind: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.name: Optional[str] = None - self.kind = kind - self.type: Optional[str] = None - - -class AseV3NetworkingConfiguration(ProxyOnlyResource): - """Full view of networking configuration for an ASE. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar windows_outbound_ip_addresses: - :vartype windows_outbound_ip_addresses: list[str] - :ivar linux_outbound_ip_addresses: - :vartype linux_outbound_ip_addresses: list[str] - :ivar external_inbound_ip_addresses: - :vartype external_inbound_ip_addresses: list[str] - :ivar internal_inbound_ip_addresses: - :vartype internal_inbound_ip_addresses: list[str] - :ivar allow_new_private_endpoint_connections: Property to enable and disable new private - endpoint connection creation on ASE. - :vartype allow_new_private_endpoint_connections: bool - :ivar ftp_enabled: Property to enable and disable FTP on ASEV3. - :vartype ftp_enabled: bool - :ivar remote_debug_enabled: Property to enable and disable Remote Debug on ASEV3. - :vartype remote_debug_enabled: bool - :ivar inbound_ip_address_override: Customer provided Inbound IP Address. Only able to be set on - Ase create. - :vartype inbound_ip_address_override: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "windows_outbound_ip_addresses": {"readonly": True}, - "linux_outbound_ip_addresses": {"readonly": True}, - "external_inbound_ip_addresses": {"readonly": True}, - "internal_inbound_ip_addresses": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "windows_outbound_ip_addresses": {"key": "properties.windowsOutboundIpAddresses", "type": "[str]"}, - "linux_outbound_ip_addresses": {"key": "properties.linuxOutboundIpAddresses", "type": "[str]"}, - "external_inbound_ip_addresses": {"key": "properties.externalInboundIpAddresses", "type": "[str]"}, - "internal_inbound_ip_addresses": {"key": "properties.internalInboundIpAddresses", "type": "[str]"}, - "allow_new_private_endpoint_connections": { - "key": "properties.allowNewPrivateEndpointConnections", - "type": "bool", - }, - "ftp_enabled": {"key": "properties.ftpEnabled", "type": "bool"}, - "remote_debug_enabled": {"key": "properties.remoteDebugEnabled", "type": "bool"}, - "inbound_ip_address_override": {"key": "properties.inboundIpAddressOverride", "type": "str"}, - } - - def __init__( - self, - *, - kind: Optional[str] = None, - allow_new_private_endpoint_connections: Optional[bool] = None, - ftp_enabled: Optional[bool] = None, - remote_debug_enabled: Optional[bool] = None, - inbound_ip_address_override: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - :keyword allow_new_private_endpoint_connections: Property to enable and disable new private - endpoint connection creation on ASE. - :paramtype allow_new_private_endpoint_connections: bool - :keyword ftp_enabled: Property to enable and disable FTP on ASEV3. - :paramtype ftp_enabled: bool - :keyword remote_debug_enabled: Property to enable and disable Remote Debug on ASEV3. - :paramtype remote_debug_enabled: bool - :keyword inbound_ip_address_override: Customer provided Inbound IP Address. Only able to be set - on Ase create. - :paramtype inbound_ip_address_override: str - """ - super().__init__(kind=kind, **kwargs) - self.windows_outbound_ip_addresses: Optional[list[str]] = None - self.linux_outbound_ip_addresses: Optional[list[str]] = None - self.external_inbound_ip_addresses: Optional[list[str]] = None - self.internal_inbound_ip_addresses: Optional[list[str]] = None - self.allow_new_private_endpoint_connections = allow_new_private_endpoint_connections - self.ftp_enabled = ftp_enabled - self.remote_debug_enabled = remote_debug_enabled - self.inbound_ip_address_override = inbound_ip_address_override - - -class AutoHealActions(_serialization.Model): - """Actions which to take by the auto-heal module when a rule is triggered. - - :ivar action_type: Predefined action to be taken. Known values are: "Recycle", "LogEvent", and - "CustomAction". - :vartype action_type: str or ~azure.mgmt.domainregistration.models.AutoHealActionType - :ivar custom_action: Custom action to be taken. - :vartype custom_action: ~azure.mgmt.domainregistration.models.AutoHealCustomAction - :ivar min_process_execution_time: Minimum time the process must execute - before taking the action. - :vartype min_process_execution_time: str - """ - - _attribute_map = { - "action_type": {"key": "actionType", "type": "str"}, - "custom_action": {"key": "customAction", "type": "AutoHealCustomAction"}, - "min_process_execution_time": {"key": "minProcessExecutionTime", "type": "str"}, - } - - def __init__( - self, - *, - action_type: Optional[Union[str, "_models.AutoHealActionType"]] = None, - custom_action: Optional["_models.AutoHealCustomAction"] = None, - min_process_execution_time: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword action_type: Predefined action to be taken. Known values are: "Recycle", "LogEvent", - and "CustomAction". - :paramtype action_type: str or ~azure.mgmt.domainregistration.models.AutoHealActionType - :keyword custom_action: Custom action to be taken. - :paramtype custom_action: ~azure.mgmt.domainregistration.models.AutoHealCustomAction - :keyword min_process_execution_time: Minimum time the process must execute - before taking the action. - :paramtype min_process_execution_time: str - """ - super().__init__(**kwargs) - self.action_type = action_type - self.custom_action = custom_action - self.min_process_execution_time = min_process_execution_time - - -class AutoHealCustomAction(_serialization.Model): - """Custom action to be executed - when an auto heal rule is triggered. - - :ivar exe: Executable to be run. - :vartype exe: str - :ivar parameters: Parameters for the executable. - :vartype parameters: str - """ - - _attribute_map = { - "exe": {"key": "exe", "type": "str"}, - "parameters": {"key": "parameters", "type": "str"}, - } - - def __init__(self, *, exe: Optional[str] = None, parameters: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword exe: Executable to be run. - :paramtype exe: str - :keyword parameters: Parameters for the executable. - :paramtype parameters: str - """ - super().__init__(**kwargs) - self.exe = exe - self.parameters = parameters - - -class AutoHealRules(_serialization.Model): - """Rules that can be defined for auto-heal. - - :ivar triggers: Conditions that describe when to execute the auto-heal actions. - :vartype triggers: ~azure.mgmt.domainregistration.models.AutoHealTriggers - :ivar actions: Actions to be executed when a rule is triggered. - :vartype actions: ~azure.mgmt.domainregistration.models.AutoHealActions - """ - - _attribute_map = { - "triggers": {"key": "triggers", "type": "AutoHealTriggers"}, - "actions": {"key": "actions", "type": "AutoHealActions"}, - } - - def __init__( - self, - *, - triggers: Optional["_models.AutoHealTriggers"] = None, - actions: Optional["_models.AutoHealActions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword triggers: Conditions that describe when to execute the auto-heal actions. - :paramtype triggers: ~azure.mgmt.domainregistration.models.AutoHealTriggers - :keyword actions: Actions to be executed when a rule is triggered. - :paramtype actions: ~azure.mgmt.domainregistration.models.AutoHealActions - """ - super().__init__(**kwargs) - self.triggers = triggers - self.actions = actions - - -class AutoHealTriggers(_serialization.Model): - """Triggers for auto-heal. - - :ivar requests: A rule based on total requests. - :vartype requests: ~azure.mgmt.domainregistration.models.RequestsBasedTrigger - :ivar private_bytes_in_kb: A rule based on private bytes. - :vartype private_bytes_in_kb: int - :ivar status_codes: A rule based on status codes. - :vartype status_codes: list[~azure.mgmt.domainregistration.models.StatusCodesBasedTrigger] - :ivar slow_requests: A rule based on request execution time. - :vartype slow_requests: ~azure.mgmt.domainregistration.models.SlowRequestsBasedTrigger - :ivar slow_requests_with_path: A rule based on multiple Slow Requests Rule with path. - :vartype slow_requests_with_path: - list[~azure.mgmt.domainregistration.models.SlowRequestsBasedTrigger] - :ivar status_codes_range: A rule based on status codes ranges. - :vartype status_codes_range: - list[~azure.mgmt.domainregistration.models.StatusCodesRangeBasedTrigger] - """ - - _attribute_map = { - "requests": {"key": "requests", "type": "RequestsBasedTrigger"}, - "private_bytes_in_kb": {"key": "privateBytesInKB", "type": "int"}, - "status_codes": {"key": "statusCodes", "type": "[StatusCodesBasedTrigger]"}, - "slow_requests": {"key": "slowRequests", "type": "SlowRequestsBasedTrigger"}, - "slow_requests_with_path": {"key": "slowRequestsWithPath", "type": "[SlowRequestsBasedTrigger]"}, - "status_codes_range": {"key": "statusCodesRange", "type": "[StatusCodesRangeBasedTrigger]"}, - } - - def __init__( - self, - *, - requests: Optional["_models.RequestsBasedTrigger"] = None, - private_bytes_in_kb: Optional[int] = None, - status_codes: Optional[list["_models.StatusCodesBasedTrigger"]] = None, - slow_requests: Optional["_models.SlowRequestsBasedTrigger"] = None, - slow_requests_with_path: Optional[list["_models.SlowRequestsBasedTrigger"]] = None, - status_codes_range: Optional[list["_models.StatusCodesRangeBasedTrigger"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword requests: A rule based on total requests. - :paramtype requests: ~azure.mgmt.domainregistration.models.RequestsBasedTrigger - :keyword private_bytes_in_kb: A rule based on private bytes. - :paramtype private_bytes_in_kb: int - :keyword status_codes: A rule based on status codes. - :paramtype status_codes: list[~azure.mgmt.domainregistration.models.StatusCodesBasedTrigger] - :keyword slow_requests: A rule based on request execution time. - :paramtype slow_requests: ~azure.mgmt.domainregistration.models.SlowRequestsBasedTrigger - :keyword slow_requests_with_path: A rule based on multiple Slow Requests Rule with path. - :paramtype slow_requests_with_path: - list[~azure.mgmt.domainregistration.models.SlowRequestsBasedTrigger] - :keyword status_codes_range: A rule based on status codes ranges. - :paramtype status_codes_range: - list[~azure.mgmt.domainregistration.models.StatusCodesRangeBasedTrigger] - """ - super().__init__(**kwargs) - self.requests = requests - self.private_bytes_in_kb = private_bytes_in_kb - self.status_codes = status_codes - self.slow_requests = slow_requests - self.slow_requests_with_path = slow_requests_with_path - self.status_codes_range = status_codes_range - - -class AzureStorageInfoValue(_serialization.Model): - """Azure Files or Blob Storage access information value for dictionary storage. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar type: Type of storage. Known values are: "AzureFiles" and "AzureBlob". - :vartype type: str or ~azure.mgmt.domainregistration.models.AzureStorageType - :ivar account_name: Name of the storage account. - :vartype account_name: str - :ivar share_name: Name of the file share (container name, for Blob storage). - :vartype share_name: str - :ivar access_key: Access key for the storage account. - :vartype access_key: str - :ivar mount_path: Path to mount the storage within the site's runtime environment. - :vartype mount_path: str - :ivar state: State of the storage account. Known values are: "Ok", "InvalidCredentials", - "InvalidShare", and "NotValidated". - :vartype state: str or ~azure.mgmt.domainregistration.models.AzureStorageState - :ivar protocol: Mounting protocol to use for the storage account. Known values are: "Smb", - "Http", and "Nfs". - :vartype protocol: str or ~azure.mgmt.domainregistration.models.AzureStorageProtocol - """ - - _validation = { - "state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "account_name": {"key": "accountName", "type": "str"}, - "share_name": {"key": "shareName", "type": "str"}, - "access_key": {"key": "accessKey", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "protocol": {"key": "protocol", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.AzureStorageType"]] = None, - account_name: Optional[str] = None, - share_name: Optional[str] = None, - access_key: Optional[str] = None, - mount_path: Optional[str] = None, - protocol: Optional[Union[str, "_models.AzureStorageProtocol"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of storage. Known values are: "AzureFiles" and "AzureBlob". - :paramtype type: str or ~azure.mgmt.domainregistration.models.AzureStorageType - :keyword account_name: Name of the storage account. - :paramtype account_name: str - :keyword share_name: Name of the file share (container name, for Blob storage). - :paramtype share_name: str - :keyword access_key: Access key for the storage account. - :paramtype access_key: str - :keyword mount_path: Path to mount the storage within the site's runtime environment. - :paramtype mount_path: str - :keyword protocol: Mounting protocol to use for the storage account. Known values are: "Smb", - "Http", and "Nfs". - :paramtype protocol: str or ~azure.mgmt.domainregistration.models.AzureStorageProtocol - """ - super().__init__(**kwargs) - self.type = type - self.account_name = account_name - self.share_name = share_name - self.access_key = access_key - self.mount_path = mount_path - self.state: Optional[Union[str, "_models.AzureStorageState"]] = None - self.protocol = protocol - - -class Capability(_serialization.Model): - """Describes the capabilities/features allowed for a specific SKU. - - :ivar name: Name of the SKU capability. - :vartype name: str - :ivar value: Value of the SKU capability. - :vartype value: str - :ivar reason: Reason of the SKU capability. - :vartype reason: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - } - - def __init__( - self, *, name: Optional[str] = None, value: Optional[str] = None, reason: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the SKU capability. - :paramtype name: str - :keyword value: Value of the SKU capability. - :paramtype value: str - :keyword reason: Reason of the SKU capability. - :paramtype reason: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - self.reason = reason - - -class Certificate(Resource): - """SSL certificate for an app. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. If the resource is an app, you can refer to - https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference - for details supported values for kind. - :vartype kind: str - :ivar location: Resource Location. Required. - :vartype location: str - :ivar type: Resource type. - :vartype type: str - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar password: Certificate password. - :vartype password: str - :ivar friendly_name: Friendly name of the certificate. - :vartype friendly_name: str - :ivar subject_name: Subject name of the certificate. - :vartype subject_name: str - :ivar host_names: Host names the certificate applies to. - :vartype host_names: list[str] - :ivar pfx_blob: Pfx blob. - :vartype pfx_blob: bytes - :ivar site_name: App name. - :vartype site_name: str - :ivar self_link: Self link. - :vartype self_link: str - :ivar issuer: Certificate issuer. - :vartype issuer: str - :ivar issue_date: Certificate issue Date. - :vartype issue_date: ~datetime.datetime - :ivar expiration_date: Certificate expiration date. - :vartype expiration_date: ~datetime.datetime - :ivar thumbprint: Certificate thumbprint. - :vartype thumbprint: str - :ivar valid: Is the certificate valid?. - :vartype valid: bool - :ivar cer_blob: Raw bytes of .cer file. - :vartype cer_blob: bytes - :ivar public_key_hash: Public key hash. - :vartype public_key_hash: str - :ivar hosting_environment_profile: Specification for the App Service Environment to use for the - certificate. - :vartype hosting_environment_profile: - ~azure.mgmt.domainregistration.models.HostingEnvironmentProfile - :ivar key_vault_id: Azure Key Vault Csm resource Id. - :vartype key_vault_id: str - :ivar key_vault_secret_name: Azure Key Vault secret name. - :vartype key_vault_secret_name: str - :ivar key_vault_secret_status: Status of the Key Vault secret. Known values are: "Initialized", - "WaitingOnCertificateOrder", "Succeeded", "CertificateOrderFailed", - "OperationNotPermittedOnKeyVault", "AzureServiceUnauthorizedToAccessKeyVault", - "KeyVaultDoesNotExist", "KeyVaultSecretDoesNotExist", "UnknownError", "ExternalPrivateKey", and - "Unknown". - :vartype key_vault_secret_status: str or - ~azure.mgmt.domainregistration.models.KeyVaultSecretStatus - :ivar server_farm_id: Resource ID of the associated App Service plan. - :vartype server_farm_id: str - :ivar canonical_name: CNAME of the certificate to be issued via free certificate. - :vartype canonical_name: str - :ivar domain_validation_method: Method of domain validation for free cert. - :vartype domain_validation_method: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "location": {"required": True}, - "type": {"readonly": True}, - "friendly_name": {"readonly": True}, - "subject_name": {"readonly": True}, - "site_name": {"readonly": True}, - "self_link": {"readonly": True}, - "issuer": {"readonly": True}, - "issue_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "thumbprint": {"readonly": True}, - "valid": {"readonly": True}, - "cer_blob": {"readonly": True}, - "public_key_hash": {"readonly": True}, - "hosting_environment_profile": {"readonly": True}, - "key_vault_secret_status": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "password": {"key": "properties.password", "type": "str"}, - "friendly_name": {"key": "properties.friendlyName", "type": "str"}, - "subject_name": {"key": "properties.subjectName", "type": "str"}, - "host_names": {"key": "properties.hostNames", "type": "[str]"}, - "pfx_blob": {"key": "properties.pfxBlob", "type": "bytearray"}, - "site_name": {"key": "properties.siteName", "type": "str"}, - "self_link": {"key": "properties.selfLink", "type": "str"}, - "issuer": {"key": "properties.issuer", "type": "str"}, - "issue_date": {"key": "properties.issueDate", "type": "iso-8601"}, - "expiration_date": {"key": "properties.expirationDate", "type": "iso-8601"}, - "thumbprint": {"key": "properties.thumbprint", "type": "str"}, - "valid": {"key": "properties.valid", "type": "bool"}, - "cer_blob": {"key": "properties.cerBlob", "type": "bytearray"}, - "public_key_hash": {"key": "properties.publicKeyHash", "type": "str"}, - "hosting_environment_profile": { - "key": "properties.hostingEnvironmentProfile", - "type": "HostingEnvironmentProfile", - }, - "key_vault_id": {"key": "properties.keyVaultId", "type": "str"}, - "key_vault_secret_name": {"key": "properties.keyVaultSecretName", "type": "str"}, - "key_vault_secret_status": {"key": "properties.keyVaultSecretStatus", "type": "str"}, - "server_farm_id": {"key": "properties.serverFarmId", "type": "str"}, - "canonical_name": {"key": "properties.canonicalName", "type": "str"}, - "domain_validation_method": {"key": "properties.domainValidationMethod", "type": "str"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - location: str, - kind: Optional[str] = None, - tags: Optional[dict[str, str]] = None, - password: Optional[str] = None, - host_names: Optional[list[str]] = None, - pfx_blob: Optional[bytes] = None, - key_vault_id: Optional[str] = None, - key_vault_secret_name: Optional[str] = None, - server_farm_id: Optional[str] = None, - canonical_name: Optional[str] = None, - domain_validation_method: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. If the resource is an app, you can refer to - https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference - for details supported values for kind. - :paramtype kind: str - :keyword location: Resource Location. Required. - :paramtype location: str - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - :keyword password: Certificate password. - :paramtype password: str - :keyword host_names: Host names the certificate applies to. - :paramtype host_names: list[str] - :keyword pfx_blob: Pfx blob. - :paramtype pfx_blob: bytes - :keyword key_vault_id: Azure Key Vault Csm resource Id. - :paramtype key_vault_id: str - :keyword key_vault_secret_name: Azure Key Vault secret name. - :paramtype key_vault_secret_name: str - :keyword server_farm_id: Resource ID of the associated App Service plan. - :paramtype server_farm_id: str - :keyword canonical_name: CNAME of the certificate to be issued via free certificate. - :paramtype canonical_name: str - :keyword domain_validation_method: Method of domain validation for free cert. - :paramtype domain_validation_method: str - """ - super().__init__(kind=kind, location=location, tags=tags, **kwargs) - self.password = password - self.friendly_name: Optional[str] = None - self.subject_name: Optional[str] = None - self.host_names = host_names - self.pfx_blob = pfx_blob - self.site_name: Optional[str] = None - self.self_link: Optional[str] = None - self.issuer: Optional[str] = None - self.issue_date: Optional[datetime.datetime] = None - self.expiration_date: Optional[datetime.datetime] = None - self.thumbprint: Optional[str] = None - self.valid: Optional[bool] = None - self.cer_blob: Optional[bytes] = None - self.public_key_hash: Optional[str] = None - self.hosting_environment_profile: Optional["_models.HostingEnvironmentProfile"] = None - self.key_vault_id = key_vault_id - self.key_vault_secret_name = key_vault_secret_name - self.key_vault_secret_status: Optional[Union[str, "_models.KeyVaultSecretStatus"]] = None - self.server_farm_id = server_farm_id - self.canonical_name = canonical_name - self.domain_validation_method = domain_validation_method - - -class CertificateCollection(_serialization.Model): - """Collection of certificates. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.domainregistration.models.Certificate] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[Certificate]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.Certificate"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.domainregistration.models.Certificate] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class CertificatePatchResource(ProxyOnlyResource): - """ARM resource for a certificate. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar password: Certificate password. - :vartype password: str - :ivar friendly_name: Friendly name of the certificate. - :vartype friendly_name: str - :ivar subject_name: Subject name of the certificate. - :vartype subject_name: str - :ivar host_names: Host names the certificate applies to. - :vartype host_names: list[str] - :ivar pfx_blob: Pfx blob. - :vartype pfx_blob: bytes - :ivar site_name: App name. - :vartype site_name: str - :ivar self_link: Self link. - :vartype self_link: str - :ivar issuer: Certificate issuer. - :vartype issuer: str - :ivar issue_date: Certificate issue Date. - :vartype issue_date: ~datetime.datetime - :ivar expiration_date: Certificate expiration date. - :vartype expiration_date: ~datetime.datetime - :ivar thumbprint: Certificate thumbprint. - :vartype thumbprint: str - :ivar valid: Is the certificate valid?. - :vartype valid: bool - :ivar cer_blob: Raw bytes of .cer file. - :vartype cer_blob: bytes - :ivar public_key_hash: Public key hash. - :vartype public_key_hash: str - :ivar hosting_environment_profile: Specification for the App Service Environment to use for the - certificate. - :vartype hosting_environment_profile: - ~azure.mgmt.domainregistration.models.HostingEnvironmentProfile - :ivar key_vault_id: Key Vault Csm resource Id. - :vartype key_vault_id: str - :ivar key_vault_secret_name: Key Vault secret name. - :vartype key_vault_secret_name: str - :ivar key_vault_secret_status: Status of the Key Vault secret. Known values are: "Initialized", - "WaitingOnCertificateOrder", "Succeeded", "CertificateOrderFailed", - "OperationNotPermittedOnKeyVault", "AzureServiceUnauthorizedToAccessKeyVault", - "KeyVaultDoesNotExist", "KeyVaultSecretDoesNotExist", "UnknownError", "ExternalPrivateKey", and - "Unknown". - :vartype key_vault_secret_status: str or - ~azure.mgmt.domainregistration.models.KeyVaultSecretStatus - :ivar server_farm_id: Resource ID of the associated App Service plan, formatted as: - "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". - :vartype server_farm_id: str - :ivar canonical_name: CNAME of the certificate to be issued via free certificate. - :vartype canonical_name: str - :ivar domain_validation_method: Method of domain validation for free cert. - :vartype domain_validation_method: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "friendly_name": {"readonly": True}, - "subject_name": {"readonly": True}, - "site_name": {"readonly": True}, - "self_link": {"readonly": True}, - "issuer": {"readonly": True}, - "issue_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "thumbprint": {"readonly": True}, - "valid": {"readonly": True}, - "cer_blob": {"readonly": True}, - "public_key_hash": {"readonly": True}, - "hosting_environment_profile": {"readonly": True}, - "key_vault_secret_status": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "password": {"key": "properties.password", "type": "str"}, - "friendly_name": {"key": "properties.friendlyName", "type": "str"}, - "subject_name": {"key": "properties.subjectName", "type": "str"}, - "host_names": {"key": "properties.hostNames", "type": "[str]"}, - "pfx_blob": {"key": "properties.pfxBlob", "type": "bytearray"}, - "site_name": {"key": "properties.siteName", "type": "str"}, - "self_link": {"key": "properties.selfLink", "type": "str"}, - "issuer": {"key": "properties.issuer", "type": "str"}, - "issue_date": {"key": "properties.issueDate", "type": "iso-8601"}, - "expiration_date": {"key": "properties.expirationDate", "type": "iso-8601"}, - "thumbprint": {"key": "properties.thumbprint", "type": "str"}, - "valid": {"key": "properties.valid", "type": "bool"}, - "cer_blob": {"key": "properties.cerBlob", "type": "bytearray"}, - "public_key_hash": {"key": "properties.publicKeyHash", "type": "str"}, - "hosting_environment_profile": { - "key": "properties.hostingEnvironmentProfile", - "type": "HostingEnvironmentProfile", - }, - "key_vault_id": {"key": "properties.keyVaultId", "type": "str"}, - "key_vault_secret_name": {"key": "properties.keyVaultSecretName", "type": "str"}, - "key_vault_secret_status": {"key": "properties.keyVaultSecretStatus", "type": "str"}, - "server_farm_id": {"key": "properties.serverFarmId", "type": "str"}, - "canonical_name": {"key": "properties.canonicalName", "type": "str"}, - "domain_validation_method": {"key": "properties.domainValidationMethod", "type": "str"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - kind: Optional[str] = None, - password: Optional[str] = None, - host_names: Optional[list[str]] = None, - pfx_blob: Optional[bytes] = None, - key_vault_id: Optional[str] = None, - key_vault_secret_name: Optional[str] = None, - server_farm_id: Optional[str] = None, - canonical_name: Optional[str] = None, - domain_validation_method: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - :keyword password: Certificate password. - :paramtype password: str - :keyword host_names: Host names the certificate applies to. - :paramtype host_names: list[str] - :keyword pfx_blob: Pfx blob. - :paramtype pfx_blob: bytes - :keyword key_vault_id: Key Vault Csm resource Id. - :paramtype key_vault_id: str - :keyword key_vault_secret_name: Key Vault secret name. - :paramtype key_vault_secret_name: str - :keyword server_farm_id: Resource ID of the associated App Service plan, formatted as: - "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". - :paramtype server_farm_id: str - :keyword canonical_name: CNAME of the certificate to be issued via free certificate. - :paramtype canonical_name: str - :keyword domain_validation_method: Method of domain validation for free cert. - :paramtype domain_validation_method: str - """ - super().__init__(kind=kind, **kwargs) - self.password = password - self.friendly_name: Optional[str] = None - self.subject_name: Optional[str] = None - self.host_names = host_names - self.pfx_blob = pfx_blob - self.site_name: Optional[str] = None - self.self_link: Optional[str] = None - self.issuer: Optional[str] = None - self.issue_date: Optional[datetime.datetime] = None - self.expiration_date: Optional[datetime.datetime] = None - self.thumbprint: Optional[str] = None - self.valid: Optional[bool] = None - self.cer_blob: Optional[bytes] = None - self.public_key_hash: Optional[str] = None - self.hosting_environment_profile: Optional["_models.HostingEnvironmentProfile"] = None - self.key_vault_id = key_vault_id - self.key_vault_secret_name = key_vault_secret_name - self.key_vault_secret_status: Optional[Union[str, "_models.KeyVaultSecretStatus"]] = None - self.server_farm_id = server_farm_id - self.canonical_name = canonical_name - self.domain_validation_method = domain_validation_method - - -class CipherSuites(_serialization.Model): - """Describes valid TLS cipher suites. - - :ivar suites: List of TLS Cipher Suites that are supported by App Service. - :vartype suites: list[str] - """ - - _attribute_map = { - "suites": {"key": "suites", "type": "[str]"}, - } - - def __init__(self, *, suites: Optional[list[str]] = None, **kwargs: Any) -> None: - """ - :keyword suites: List of TLS Cipher Suites that are supported by App Service. - :paramtype suites: list[str] - """ - super().__init__(**kwargs) - self.suites = suites - - -class CloningInfo(_serialization.Model): - """Information needed for cloning operation. - - All required parameters must be populated in order to send to server. - - :ivar correlation_id: Correlation ID of cloning operation. This ID ties multiple cloning - operations - together to use the same snapshot. - :vartype correlation_id: str - :ivar overwrite: :code:`true` to overwrite destination app; otherwise, - :code:`false`. - :vartype overwrite: bool - :ivar clone_custom_host_names: :code:`true` to clone custom hostnames from source - app; otherwise, :code:`false`. - :vartype clone_custom_host_names: bool - :ivar clone_source_control: :code:`true` to clone source control from source app; - otherwise, :code:`false`. - :vartype clone_source_control: bool - :ivar source_web_app_id: ARM resource ID of the source app. App resource ID is of the form - /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} - for production slots and - /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} - for other slots. Required. - :vartype source_web_app_id: str - :ivar source_web_app_location: Location of source app ex: West US or North Europe. - :vartype source_web_app_location: str - :ivar hosting_environment: App Service Environment. - :vartype hosting_environment: str - :ivar app_settings_overrides: Application setting overrides for cloned app. If specified, these - settings override the settings cloned - from source app. Otherwise, application settings from source app are retained. - :vartype app_settings_overrides: dict[str, str] - :ivar configure_load_balancing: :code:`true` to configure load balancing for - source and destination app. - :vartype configure_load_balancing: bool - :ivar traffic_manager_profile_id: ARM resource ID of the Traffic Manager profile to use, if it - exists. Traffic Manager resource ID is of the form - /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}. - :vartype traffic_manager_profile_id: str - :ivar traffic_manager_profile_name: Name of Traffic Manager profile to create. This is only - needed if Traffic Manager profile does not already exist. - :vartype traffic_manager_profile_name: str - """ - - _validation = { - "source_web_app_id": {"required": True}, - } - - _attribute_map = { - "correlation_id": {"key": "correlationId", "type": "str"}, - "overwrite": {"key": "overwrite", "type": "bool"}, - "clone_custom_host_names": {"key": "cloneCustomHostNames", "type": "bool"}, - "clone_source_control": {"key": "cloneSourceControl", "type": "bool"}, - "source_web_app_id": {"key": "sourceWebAppId", "type": "str"}, - "source_web_app_location": {"key": "sourceWebAppLocation", "type": "str"}, - "hosting_environment": {"key": "hostingEnvironment", "type": "str"}, - "app_settings_overrides": {"key": "appSettingsOverrides", "type": "{str}"}, - "configure_load_balancing": {"key": "configureLoadBalancing", "type": "bool"}, - "traffic_manager_profile_id": {"key": "trafficManagerProfileId", "type": "str"}, - "traffic_manager_profile_name": {"key": "trafficManagerProfileName", "type": "str"}, - } - - def __init__( - self, - *, - source_web_app_id: str, - correlation_id: Optional[str] = None, - overwrite: Optional[bool] = None, - clone_custom_host_names: Optional[bool] = None, - clone_source_control: Optional[bool] = None, - source_web_app_location: Optional[str] = None, - hosting_environment: Optional[str] = None, - app_settings_overrides: Optional[dict[str, str]] = None, - configure_load_balancing: Optional[bool] = None, - traffic_manager_profile_id: Optional[str] = None, - traffic_manager_profile_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword correlation_id: Correlation ID of cloning operation. This ID ties multiple cloning - operations - together to use the same snapshot. - :paramtype correlation_id: str - :keyword overwrite: :code:`true` to overwrite destination app; otherwise, - :code:`false`. - :paramtype overwrite: bool - :keyword clone_custom_host_names: :code:`true` to clone custom hostnames from - source app; otherwise, :code:`false`. - :paramtype clone_custom_host_names: bool - :keyword clone_source_control: :code:`true` to clone source control from source - app; otherwise, :code:`false`. - :paramtype clone_source_control: bool - :keyword source_web_app_id: ARM resource ID of the source app. App resource ID is of the form - /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} - for production slots and - /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} - for other slots. Required. - :paramtype source_web_app_id: str - :keyword source_web_app_location: Location of source app ex: West US or North Europe. - :paramtype source_web_app_location: str - :keyword hosting_environment: App Service Environment. - :paramtype hosting_environment: str - :keyword app_settings_overrides: Application setting overrides for cloned app. If specified, - these settings override the settings cloned - from source app. Otherwise, application settings from source app are retained. - :paramtype app_settings_overrides: dict[str, str] - :keyword configure_load_balancing: :code:`true` to configure load balancing for - source and destination app. - :paramtype configure_load_balancing: bool - :keyword traffic_manager_profile_id: ARM resource ID of the Traffic Manager profile to use, if - it exists. Traffic Manager resource ID is of the form - /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}. - :paramtype traffic_manager_profile_id: str - :keyword traffic_manager_profile_name: Name of Traffic Manager profile to create. This is only - needed if Traffic Manager profile does not already exist. - :paramtype traffic_manager_profile_name: str - """ - super().__init__(**kwargs) - self.correlation_id = correlation_id - self.overwrite = overwrite - self.clone_custom_host_names = clone_custom_host_names - self.clone_source_control = clone_source_control - self.source_web_app_id = source_web_app_id - self.source_web_app_location = source_web_app_location - self.hosting_environment = hosting_environment - self.app_settings_overrides = app_settings_overrides - self.configure_load_balancing = configure_load_balancing - self.traffic_manager_profile_id = traffic_manager_profile_id - self.traffic_manager_profile_name = traffic_manager_profile_name - - -class ConnStringInfo(_serialization.Model): - """Database connection string information. - - :ivar name: Name of connection string. - :vartype name: str - :ivar connection_string: Connection string value. - :vartype connection_string: str - :ivar type: Type of database. Known values are: "MySql", "SQLServer", "SQLAzure", "Custom", - "NotificationHub", "ServiceBus", "EventHub", "ApiHub", "DocDb", "RedisCache", and "PostgreSQL". - :vartype type: str or ~azure.mgmt.domainregistration.models.ConnectionStringType - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "connection_string": {"key": "connectionString", "type": "str"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - connection_string: Optional[str] = None, - type: Optional[Union[str, "_models.ConnectionStringType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of connection string. - :paramtype name: str - :keyword connection_string: Connection string value. - :paramtype connection_string: str - :keyword type: Type of database. Known values are: "MySql", "SQLServer", "SQLAzure", "Custom", - "NotificationHub", "ServiceBus", "EventHub", "ApiHub", "DocDb", "RedisCache", and "PostgreSQL". - :paramtype type: str or ~azure.mgmt.domainregistration.models.ConnectionStringType - """ - super().__init__(**kwargs) - self.name = name - self.connection_string = connection_string - self.type = type - - -class Contact(_serialization.Model): - """Contact information for domain registration. If 'Domain Privacy' option is not selected then - the contact information is made publicly available through the Whois - directories as per ICANN requirements. - - All required parameters must be populated in order to send to server. - - :ivar address_mailing: Mailing address. - :vartype address_mailing: ~azure.mgmt.domainregistration.models.Address - :ivar email: Email address. Required. - :vartype email: str - :ivar fax: Fax number. - :vartype fax: str - :ivar job_title: Job title. - :vartype job_title: str - :ivar name_first: First name. Required. - :vartype name_first: str - :ivar name_last: Last name. Required. - :vartype name_last: str - :ivar name_middle: Middle name. - :vartype name_middle: str - :ivar organization: Organization contact belongs to. - :vartype organization: str - :ivar phone: Phone number. Required. - :vartype phone: str - """ - - _validation = { - "email": {"required": True}, - "name_first": {"required": True}, - "name_last": {"required": True}, - "phone": {"required": True}, - } - - _attribute_map = { - "address_mailing": {"key": "addressMailing", "type": "Address"}, - "email": {"key": "email", "type": "str"}, - "fax": {"key": "fax", "type": "str"}, - "job_title": {"key": "jobTitle", "type": "str"}, - "name_first": {"key": "nameFirst", "type": "str"}, - "name_last": {"key": "nameLast", "type": "str"}, - "name_middle": {"key": "nameMiddle", "type": "str"}, - "organization": {"key": "organization", "type": "str"}, - "phone": {"key": "phone", "type": "str"}, - } - - def __init__( - self, - *, - email: str, - name_first: str, - name_last: str, - phone: str, - address_mailing: Optional["_models.Address"] = None, - fax: Optional[str] = None, - job_title: Optional[str] = None, - name_middle: Optional[str] = None, - organization: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword address_mailing: Mailing address. - :paramtype address_mailing: ~azure.mgmt.domainregistration.models.Address - :keyword email: Email address. Required. - :paramtype email: str - :keyword fax: Fax number. - :paramtype fax: str - :keyword job_title: Job title. - :paramtype job_title: str - :keyword name_first: First name. Required. - :paramtype name_first: str - :keyword name_last: Last name. Required. - :paramtype name_last: str - :keyword name_middle: Middle name. - :paramtype name_middle: str - :keyword organization: Organization contact belongs to. - :paramtype organization: str - :keyword phone: Phone number. Required. - :paramtype phone: str - """ - super().__init__(**kwargs) - self.address_mailing = address_mailing - self.email = email - self.fax = fax - self.job_title = job_title - self.name_first = name_first - self.name_last = name_last - self.name_middle = name_middle - self.organization = organization - self.phone = phone - - -class Container(_serialization.Model): - """Container App container definition. - - :ivar image: Container image tag. - :vartype image: str - :ivar name: Custom container name. - :vartype name: str - :ivar command: Container start command. - :vartype command: list[str] - :ivar args: Container start command arguments. - :vartype args: list[str] - :ivar env: Container environment variables. - :vartype env: list[~azure.mgmt.domainregistration.models.EnvironmentVar] - :ivar resources: Container resource requirements. - :vartype resources: ~azure.mgmt.domainregistration.models.ContainerResources - """ - - _attribute_map = { - "image": {"key": "image", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "env": {"key": "env", "type": "[EnvironmentVar]"}, - "resources": {"key": "resources", "type": "ContainerResources"}, - } - - def __init__( - self, - *, - image: Optional[str] = None, - name: Optional[str] = None, - command: Optional[list[str]] = None, - args: Optional[list[str]] = None, - env: Optional[list["_models.EnvironmentVar"]] = None, - resources: Optional["_models.ContainerResources"] = None, - **kwargs: Any - ) -> None: - """ - :keyword image: Container image tag. - :paramtype image: str - :keyword name: Custom container name. - :paramtype name: str - :keyword command: Container start command. - :paramtype command: list[str] - :keyword args: Container start command arguments. - :paramtype args: list[str] - :keyword env: Container environment variables. - :paramtype env: list[~azure.mgmt.domainregistration.models.EnvironmentVar] - :keyword resources: Container resource requirements. - :paramtype resources: ~azure.mgmt.domainregistration.models.ContainerResources - """ - super().__init__(**kwargs) - self.image = image - self.name = name - self.command = command - self.args = args - self.env = env - self.resources = resources - - -class ContainerResources(_serialization.Model): - """Container App container resource requirements. - - :ivar cpu: Required CPU in cores, e.g. 0.5. - :vartype cpu: float - :ivar memory: Required memory, e.g. "250Mb". - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "float"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[float] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU in cores, e.g. 0.5. - :paramtype cpu: float - :keyword memory: Required memory, e.g. "250Mb". - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class CorsSettings(_serialization.Model): - """Cross-Origin Resource Sharing (CORS) settings for the app. - - :ivar allowed_origins: Gets or sets the list of origins that should be allowed to make - cross-origin - calls (for example: http://example.com:12345). Use "*" to allow all. - :vartype allowed_origins: list[str] - :ivar support_credentials: Gets or sets whether CORS requests with credentials are allowed. See - https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials - for more details. - :vartype support_credentials: bool - """ - - _attribute_map = { - "allowed_origins": {"key": "allowedOrigins", "type": "[str]"}, - "support_credentials": {"key": "supportCredentials", "type": "bool"}, - } - - def __init__( - self, *, allowed_origins: Optional[list[str]] = None, support_credentials: Optional[bool] = None, **kwargs: Any - ) -> None: - """ - :keyword allowed_origins: Gets or sets the list of origins that should be allowed to make - cross-origin - calls (for example: http://example.com:12345). Use "*" to allow all. - :paramtype allowed_origins: list[str] - :keyword support_credentials: Gets or sets whether CORS requests with credentials are allowed. - See - https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials - for more details. - :paramtype support_credentials: bool - """ - super().__init__(**kwargs) - self.allowed_origins = allowed_origins - self.support_credentials = support_credentials - - -class CsmOperationCollection(_serialization.Model): - """Collection of Azure resource manager operation metadata. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.domainregistration.models.CsmOperationDescription] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[CsmOperationDescription]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.CsmOperationDescription"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.domainregistration.models.CsmOperationDescription] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class CsmOperationDescription(_serialization.Model): - """Description of an operation available for Microsoft.Web resource provider. - - :ivar name: - :vartype name: str - :ivar is_data_action: - :vartype is_data_action: bool - :ivar display: Meta data about operation used for display in portal. - :vartype display: ~azure.mgmt.domainregistration.models.CsmOperationDisplay - :ivar origin: - :vartype origin: str - :ivar properties: Properties available for a Microsoft.Web resource provider operation. - :vartype properties: ~azure.mgmt.domainregistration.models.CsmOperationDescriptionProperties - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "CsmOperationDisplay"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "CsmOperationDescriptionProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.CsmOperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.CsmOperationDescriptionProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: - :paramtype name: str - :keyword is_data_action: - :paramtype is_data_action: bool - :keyword display: Meta data about operation used for display in portal. - :paramtype display: ~azure.mgmt.domainregistration.models.CsmOperationDisplay - :keyword origin: - :paramtype origin: str - :keyword properties: Properties available for a Microsoft.Web resource provider operation. - :paramtype properties: ~azure.mgmt.domainregistration.models.CsmOperationDescriptionProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.origin = origin - self.properties = properties - - -class CsmOperationDescriptionProperties(_serialization.Model): - """Properties available for a Microsoft.Web resource provider operation. - - :ivar service_specification: Resource metrics service provided by Microsoft.Insights resource - provider. - :vartype service_specification: ~azure.mgmt.domainregistration.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Resource metrics service provided by Microsoft.Insights - resource provider. - :paramtype service_specification: ~azure.mgmt.domainregistration.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class CsmOperationDisplay(_serialization.Model): - """Meta data about operation used for display in portal. - - :ivar provider: - :vartype provider: str - :ivar resource: - :vartype resource: str - :ivar operation: - :vartype operation: str - :ivar description: - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: - :paramtype provider: str - :keyword resource: - :paramtype resource: str - :keyword operation: - :paramtype operation: str - :keyword description: - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class CsmUsageQuota(_serialization.Model): - """Usage of the quota resource. - - :ivar unit: Units of measurement for the quota resource. - :vartype unit: str - :ivar next_reset_time: Next reset time for the resource counter. - :vartype next_reset_time: ~datetime.datetime - :ivar current_value: The current value of the resource counter. - :vartype current_value: int - :ivar limit: The resource limit. - :vartype limit: int - :ivar name: Quota name. - :vartype name: ~azure.mgmt.domainregistration.models.LocalizableString - """ - - _attribute_map = { - "unit": {"key": "unit", "type": "str"}, - "next_reset_time": {"key": "nextResetTime", "type": "iso-8601"}, - "current_value": {"key": "currentValue", "type": "int"}, - "limit": {"key": "limit", "type": "int"}, - "name": {"key": "name", "type": "LocalizableString"}, - } - - def __init__( - self, - *, - unit: Optional[str] = None, - next_reset_time: Optional[datetime.datetime] = None, - current_value: Optional[int] = None, - limit: Optional[int] = None, - name: Optional["_models.LocalizableString"] = None, - **kwargs: Any - ) -> None: - """ - :keyword unit: Units of measurement for the quota resource. - :paramtype unit: str - :keyword next_reset_time: Next reset time for the resource counter. - :paramtype next_reset_time: ~datetime.datetime - :keyword current_value: The current value of the resource counter. - :paramtype current_value: int - :keyword limit: The resource limit. - :paramtype limit: int - :keyword name: Quota name. - :paramtype name: ~azure.mgmt.domainregistration.models.LocalizableString - """ - super().__init__(**kwargs) - self.unit = unit - self.next_reset_time = next_reset_time - self.current_value = current_value - self.limit = limit - self.name = name - - -class CsmUsageQuotaCollection(_serialization.Model): - """Collection of CSM usage quotas. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.domainregistration.models.CsmUsageQuota] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[CsmUsageQuota]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.CsmUsageQuota"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.domainregistration.models.CsmUsageQuota] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class CustomDnsSuffixConfiguration(ProxyOnlyResource): - """Full view of the custom domain suffix configuration for ASEv3. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar provisioning_state: Known values are: "Succeeded", "Failed", "Degraded", and - "InProgress". - :vartype provisioning_state: str or - ~azure.mgmt.domainregistration.models.CustomDnsSuffixProvisioningState - :ivar provisioning_details: - :vartype provisioning_details: str - :ivar dns_suffix: The default custom domain suffix to use for all sites deployed on the ASE. - :vartype dns_suffix: str - :ivar certificate_url: The URL referencing the Azure Key Vault certificate secret that should - be used as the default SSL/TLS certificate for sites with the custom domain suffix. - :vartype certificate_url: str - :ivar key_vault_reference_identity: The user-assigned identity to use for resolving the key - vault certificate reference. If not specified, the system-assigned ASE identity will be used if - available. - :vartype key_vault_reference_identity: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "provisioning_details": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "provisioning_details": {"key": "properties.provisioningDetails", "type": "str"}, - "dns_suffix": {"key": "properties.dnsSuffix", "type": "str"}, - "certificate_url": {"key": "properties.certificateUrl", "type": "str"}, - "key_vault_reference_identity": {"key": "properties.keyVaultReferenceIdentity", "type": "str"}, - } - - def __init__( - self, - *, - kind: Optional[str] = None, - dns_suffix: Optional[str] = None, - certificate_url: Optional[str] = None, - key_vault_reference_identity: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - :keyword dns_suffix: The default custom domain suffix to use for all sites deployed on the ASE. - :paramtype dns_suffix: str - :keyword certificate_url: The URL referencing the Azure Key Vault certificate secret that - should be used as the default SSL/TLS certificate for sites with the custom domain suffix. - :paramtype certificate_url: str - :keyword key_vault_reference_identity: The user-assigned identity to use for resolving the key - vault certificate reference. If not specified, the system-assigned ASE identity will be used if - available. - :paramtype key_vault_reference_identity: str - """ - super().__init__(kind=kind, **kwargs) - self.provisioning_state: Optional[Union[str, "_models.CustomDnsSuffixProvisioningState"]] = None - self.provisioning_details: Optional[str] = None - self.dns_suffix = dns_suffix - self.certificate_url = certificate_url - self.key_vault_reference_identity = key_vault_reference_identity - - -class CustomScaleRule(_serialization.Model): - """Container App container Custom scaling rule. - - :ivar type: Type of the custom scale rule - eg: azure-servicebus, redis etc. - :vartype type: str - :ivar metadata: Metadata properties to describe custom scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the custom scale rule. - :vartype auth: list[~azure.mgmt.domainregistration.models.ScaleRuleAuth] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - type: Optional[str] = None, - metadata: Optional[dict[str, str]] = None, - auth: Optional[list["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the custom scale rule - eg: azure-servicebus, redis etc. - :paramtype type: str - :keyword metadata: Metadata properties to describe custom scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the custom scale rule. - :paramtype auth: list[~azure.mgmt.domainregistration.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.type = type - self.metadata = metadata - self.auth = auth - - -class Dapr(_serialization.Model): - """Container App Dapr configuration. - - :ivar enabled: Boolean indicating if the Dapr side car is enabled. - :vartype enabled: bool - :ivar app_id: Dapr application identifier. - :vartype app_id: str - :ivar app_port: Port on which the Dapr side car. - :vartype app_port: int - :ivar components: Collection of Dapr components. - :vartype components: list[~azure.mgmt.domainregistration.models.DaprComponent] - """ - - _attribute_map = { - "enabled": {"key": "enabled", "type": "bool"}, - "app_id": {"key": "appId", "type": "str"}, - "app_port": {"key": "appPort", "type": "int"}, - "components": {"key": "components", "type": "[DaprComponent]"}, - } - - def __init__( - self, - *, - enabled: Optional[bool] = None, - app_id: Optional[str] = None, - app_port: Optional[int] = None, - components: Optional[list["_models.DaprComponent"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword enabled: Boolean indicating if the Dapr side car is enabled. - :paramtype enabled: bool - :keyword app_id: Dapr application identifier. - :paramtype app_id: str - :keyword app_port: Port on which the Dapr side car. - :paramtype app_port: int - :keyword components: Collection of Dapr components. - :paramtype components: list[~azure.mgmt.domainregistration.models.DaprComponent] - """ - super().__init__(**kwargs) - self.enabled = enabled - self.app_id = app_id - self.app_port = app_port - self.components = components - - -class DaprComponent(_serialization.Model): - """Dapr component configuration. - - :ivar name: Component name. - :vartype name: str - :ivar type: Component type. - :vartype type: str - :ivar version: Component version. - :vartype version: str - :ivar metadata: Component metadata. - :vartype metadata: list[~azure.mgmt.domainregistration.models.DaprMetadata] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "metadata": {"key": "metadata", "type": "[DaprMetadata]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - type: Optional[str] = None, - version: Optional[str] = None, - metadata: Optional[list["_models.DaprMetadata"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Component name. - :paramtype name: str - :keyword type: Component type. - :paramtype type: str - :keyword version: Component version. - :paramtype version: str - :keyword metadata: Component metadata. - :paramtype metadata: list[~azure.mgmt.domainregistration.models.DaprMetadata] - """ - super().__init__(**kwargs) - self.name = name - self.type = type - self.version = version - self.metadata = metadata - - -class DaprConfig(_serialization.Model): - """App Dapr configuration. - - :ivar enabled: Boolean indicating if the Dapr side car is enabled. - :vartype enabled: bool - :ivar app_id: Dapr application identifier. - :vartype app_id: str - :ivar app_port: Tells Dapr which port your application is listening on. - :vartype app_port: int - :ivar http_read_buffer_size: Dapr max size of http header read buffer in KB to handle when - sending multi-KB headers. Default is 65KB. - :vartype http_read_buffer_size: int - :ivar http_max_request_size: Increasing max size of request body http servers parameter in MB - to handle uploading of big files. Default is 4 MB. - :vartype http_max_request_size: int - :ivar log_level: Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, - error. Default is info. Known values are: "info", "debug", "warn", and "error". - :vartype log_level: str or ~azure.mgmt.domainregistration.models.DaprLogLevel - :ivar enable_api_logging: Enables API logging for the Dapr sidecar. - :vartype enable_api_logging: bool - """ - - _attribute_map = { - "enabled": {"key": "enabled", "type": "bool"}, - "app_id": {"key": "appId", "type": "str"}, - "app_port": {"key": "appPort", "type": "int"}, - "http_read_buffer_size": {"key": "httpReadBufferSize", "type": "int"}, - "http_max_request_size": {"key": "httpMaxRequestSize", "type": "int"}, - "log_level": {"key": "logLevel", "type": "str"}, - "enable_api_logging": {"key": "enableApiLogging", "type": "bool"}, - } - - def __init__( - self, - *, - enabled: bool = False, - app_id: Optional[str] = None, - app_port: Optional[int] = None, - http_read_buffer_size: Optional[int] = None, - http_max_request_size: Optional[int] = None, - log_level: Optional[Union[str, "_models.DaprLogLevel"]] = None, - enable_api_logging: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword enabled: Boolean indicating if the Dapr side car is enabled. - :paramtype enabled: bool - :keyword app_id: Dapr application identifier. - :paramtype app_id: str - :keyword app_port: Tells Dapr which port your application is listening on. - :paramtype app_port: int - :keyword http_read_buffer_size: Dapr max size of http header read buffer in KB to handle when - sending multi-KB headers. Default is 65KB. - :paramtype http_read_buffer_size: int - :keyword http_max_request_size: Increasing max size of request body http servers parameter in - MB to handle uploading of big files. Default is 4 MB. - :paramtype http_max_request_size: int - :keyword log_level: Sets the log level for the Dapr sidecar. Allowed values are debug, info, - warn, error. Default is info. Known values are: "info", "debug", "warn", and "error". - :paramtype log_level: str or ~azure.mgmt.domainregistration.models.DaprLogLevel - :keyword enable_api_logging: Enables API logging for the Dapr sidecar. - :paramtype enable_api_logging: bool - """ - super().__init__(**kwargs) - self.enabled = enabled - self.app_id = app_id - self.app_port = app_port - self.http_read_buffer_size = http_read_buffer_size - self.http_max_request_size = http_max_request_size - self.log_level = log_level - self.enable_api_logging = enable_api_logging - - -class DaprMetadata(_serialization.Model): - """Container App Dapr component metadata. - - :ivar name: Metadata property name. - :vartype name: str - :ivar value: Metadata property value. - :vartype value: str - :ivar secret_ref: Name of the Container App secret from which to pull the metadata property - value. - :vartype secret_ref: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - "secret_ref": {"key": "secretRef", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - value: Optional[str] = None, - secret_ref: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Metadata property name. - :paramtype name: str - :keyword value: Metadata property value. - :paramtype value: str - :keyword secret_ref: Name of the Container App secret from which to pull the metadata property - value. - :paramtype secret_ref: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - self.secret_ref = secret_ref - - -class DataProviderMetadata(_serialization.Model): - """Additional configuration for a data providers. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provider_name: - :vartype provider_name: str - :ivar property_bag: Settings for the data provider. - :vartype property_bag: list[~azure.mgmt.domainregistration.models.KeyValuePairStringObject] - """ - - _validation = { - "property_bag": {"readonly": True}, - } - - _attribute_map = { - "provider_name": {"key": "providerName", "type": "str"}, - "property_bag": {"key": "propertyBag", "type": "[KeyValuePairStringObject]"}, - } - - def __init__(self, *, provider_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword provider_name: - :paramtype provider_name: str - """ - super().__init__(**kwargs) - self.provider_name = provider_name - self.property_bag: Optional[list["_models.KeyValuePairStringObject"]] = None - - -class DataTableResponseColumn(_serialization.Model): - """Column definition. - - :ivar column_name: Name of the column. - :vartype column_name: str - :ivar data_type: Data type which looks like 'String' or 'Int32'. - :vartype data_type: str - :ivar column_type: Column Type. - :vartype column_type: str - """ - - _attribute_map = { - "column_name": {"key": "columnName", "type": "str"}, - "data_type": {"key": "dataType", "type": "str"}, - "column_type": {"key": "columnType", "type": "str"}, - } - - def __init__( - self, - *, - column_name: Optional[str] = None, - data_type: Optional[str] = None, - column_type: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword column_name: Name of the column. - :paramtype column_name: str - :keyword data_type: Data type which looks like 'String' or 'Int32'. - :paramtype data_type: str - :keyword column_type: Column Type. - :paramtype column_type: str - """ - super().__init__(**kwargs) - self.column_name = column_name - self.data_type = data_type - self.column_type = column_type - - -class DataTableResponseObject(_serialization.Model): - """Data Table which defines columns and raw row values. - - :ivar table_name: Name of the table. - :vartype table_name: str - :ivar columns: List of columns with data types. - :vartype columns: list[~azure.mgmt.domainregistration.models.DataTableResponseColumn] - :ivar rows: Raw row values. - :vartype rows: list[list[str]] - """ - - _attribute_map = { - "table_name": {"key": "tableName", "type": "str"}, - "columns": {"key": "columns", "type": "[DataTableResponseColumn]"}, - "rows": {"key": "rows", "type": "[[str]]"}, - } - - def __init__( - self, - *, - table_name: Optional[str] = None, - columns: Optional[list["_models.DataTableResponseColumn"]] = None, - rows: Optional[list[list[str]]] = None, - **kwargs: Any - ) -> None: - """ - :keyword table_name: Name of the table. - :paramtype table_name: str - :keyword columns: List of columns with data types. - :paramtype columns: list[~azure.mgmt.domainregistration.models.DataTableResponseColumn] - :keyword rows: Raw row values. - :paramtype rows: list[list[str]] - """ - super().__init__(**kwargs) - self.table_name = table_name - self.columns = columns - self.rows = rows - - -class DefaultErrorResponse(_serialization.Model): - """App Service error response. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar error: Error model. - :vartype error: ~azure.mgmt.domainregistration.models.DefaultErrorResponseError - """ - - _validation = { - "error": {"readonly": True}, - } - - _attribute_map = { - "error": {"key": "error", "type": "DefaultErrorResponseError"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.error: Optional["_models.DefaultErrorResponseError"] = None - - -class DefaultErrorResponseError(_serialization.Model): - """Error model. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Standardized string to programmatically identify the error. - :vartype code: str - :ivar message: Detailed error description and debugging information. - :vartype message: str - :ivar target: Detailed error description and debugging information. - :vartype target: str - :ivar details: - :vartype details: - list[~azure.mgmt.domainregistration.models.DefaultErrorResponseErrorDetailsItem] - :ivar innererror: More information to debug error. - :vartype innererror: str - """ - - _validation = { - "code": {"readonly": True}, - "message": {"readonly": True}, - "target": {"readonly": True}, - "innererror": {"readonly": True}, - } - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[DefaultErrorResponseErrorDetailsItem]"}, - "innererror": {"key": "innererror", "type": "str"}, - } - - def __init__( - self, *, details: Optional[list["_models.DefaultErrorResponseErrorDetailsItem"]] = None, **kwargs: Any - ) -> None: - """ - :keyword details: - :paramtype details: - list[~azure.mgmt.domainregistration.models.DefaultErrorResponseErrorDetailsItem] - """ - super().__init__(**kwargs) - self.code: Optional[str] = None - self.message: Optional[str] = None - self.target: Optional[str] = None - self.details = details - self.innererror: Optional[str] = None - - -class DefaultErrorResponseErrorDetailsItem(_serialization.Model): - """Detailed errors. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Standardized string to programmatically identify the error. - :vartype code: str - :ivar message: Detailed error description and debugging information. - :vartype message: str - :ivar target: Detailed error description and debugging information. - :vartype target: str - """ - - _validation = { - "code": {"readonly": True}, - "message": {"readonly": True}, - "target": {"readonly": True}, - } - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.code: Optional[str] = None - self.message: Optional[str] = None - self.target: Optional[str] = None - - -class DeletedSite(ProxyOnlyResource): - """A deleted app. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar deleted_site_id: Numeric id for the deleted site. - :vartype deleted_site_id: int - :ivar deleted_timestamp: Time in UTC when the app was deleted. - :vartype deleted_timestamp: str - :ivar subscription: Subscription containing the deleted site. - :vartype subscription: str - :ivar resource_group: ResourceGroup that contained the deleted site. - :vartype resource_group: str - :ivar deleted_site_name: Name of the deleted site. - :vartype deleted_site_name: str - :ivar slot: Slot of the deleted site. - :vartype slot: str - :ivar kind_properties_kind: Kind of site that was deleted. - :vartype kind_properties_kind: str - :ivar geo_region_name: Geo Region of the deleted site. - :vartype geo_region_name: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "deleted_site_id": {"readonly": True}, - "deleted_timestamp": {"readonly": True}, - "subscription": {"readonly": True}, - "resource_group": {"readonly": True}, - "deleted_site_name": {"readonly": True}, - "slot": {"readonly": True}, - "kind_properties_kind": {"readonly": True}, - "geo_region_name": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "deleted_site_id": {"key": "properties.deletedSiteId", "type": "int"}, - "deleted_timestamp": {"key": "properties.deletedTimestamp", "type": "str"}, - "subscription": {"key": "properties.subscription", "type": "str"}, - "resource_group": {"key": "properties.resourceGroup", "type": "str"}, - "deleted_site_name": {"key": "properties.deletedSiteName", "type": "str"}, - "slot": {"key": "properties.slot", "type": "str"}, - "kind_properties_kind": {"key": "properties.kind", "type": "str"}, - "geo_region_name": {"key": "properties.geoRegionName", "type": "str"}, - } - - def __init__(self, *, kind: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - """ - super().__init__(kind=kind, **kwargs) - self.deleted_site_id: Optional[int] = None - self.deleted_timestamp: Optional[str] = None - self.subscription: Optional[str] = None - self.resource_group: Optional[str] = None - self.deleted_site_name: Optional[str] = None - self.slot: Optional[str] = None - self.kind_properties_kind: Optional[str] = None - self.geo_region_name: Optional[str] = None - - -class DetectorInfo(_serialization.Model): - """Definition of Detector. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Id of detector. - :vartype id: str - :ivar name: Name of detector. - :vartype name: str - :ivar description: Short description of the detector and its purpose. - :vartype description: str - :ivar author: Author of the detector. - :vartype author: str - :ivar category: Problem category. This serves for organizing group for detectors. - :vartype category: str - :ivar support_topic_list: List of Support Topics for which this detector is enabled. - :vartype support_topic_list: list[~azure.mgmt.domainregistration.models.SupportTopic] - :ivar analysis_type: Analysis Types for which this detector should apply to. - :vartype analysis_type: list[str] - :ivar type: Whether this detector is an Analysis Detector or not. Known values are: "Detector", - "Analysis", and "CategoryOverview". - :vartype type: str or ~azure.mgmt.domainregistration.models.DetectorType - :ivar score: Defines score of a detector to power ML based matching. - :vartype score: float - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "description": {"readonly": True}, - "author": {"readonly": True}, - "category": {"readonly": True}, - "support_topic_list": {"readonly": True}, - "analysis_type": {"readonly": True}, - "type": {"readonly": True}, - "score": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "author": {"key": "author", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "support_topic_list": {"key": "supportTopicList", "type": "[SupportTopic]"}, - "analysis_type": {"key": "analysisType", "type": "[str]"}, - "type": {"key": "type", "type": "str"}, - "score": {"key": "score", "type": "float"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.name: Optional[str] = None - self.description: Optional[str] = None - self.author: Optional[str] = None - self.category: Optional[str] = None - self.support_topic_list: Optional[list["_models.SupportTopic"]] = None - self.analysis_type: Optional[list[str]] = None - self.type: Optional[Union[str, "_models.DetectorType"]] = None - self.score: Optional[float] = None - - -class DetectorResponse(ProxyOnlyResource): - """Class representing Response from Detector. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar metadata: metadata for the detector. - :vartype metadata: ~azure.mgmt.domainregistration.models.DetectorInfo - :ivar dataset: Data Set. - :vartype dataset: list[~azure.mgmt.domainregistration.models.DiagnosticData] - :ivar status: Indicates status of the most severe insight. - :vartype status: ~azure.mgmt.domainregistration.models.Status - :ivar data_providers_metadata: Additional configuration for different data providers to be used - by the UI. - :vartype data_providers_metadata: - list[~azure.mgmt.domainregistration.models.DataProviderMetadata] - :ivar suggested_utterances: Suggested utterances where the detector can be applicable. - :vartype suggested_utterances: ~azure.mgmt.domainregistration.models.QueryUtterancesResults - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "metadata": {"key": "properties.metadata", "type": "DetectorInfo"}, - "dataset": {"key": "properties.dataset", "type": "[DiagnosticData]"}, - "status": {"key": "properties.status", "type": "Status"}, - "data_providers_metadata": {"key": "properties.dataProvidersMetadata", "type": "[DataProviderMetadata]"}, - "suggested_utterances": {"key": "properties.suggestedUtterances", "type": "QueryUtterancesResults"}, - } - - def __init__( - self, - *, - kind: Optional[str] = None, - metadata: Optional["_models.DetectorInfo"] = None, - dataset: Optional[list["_models.DiagnosticData"]] = None, - status: Optional["_models.Status"] = None, - data_providers_metadata: Optional[list["_models.DataProviderMetadata"]] = None, - suggested_utterances: Optional["_models.QueryUtterancesResults"] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - :keyword metadata: metadata for the detector. - :paramtype metadata: ~azure.mgmt.domainregistration.models.DetectorInfo - :keyword dataset: Data Set. - :paramtype dataset: list[~azure.mgmt.domainregistration.models.DiagnosticData] - :keyword status: Indicates status of the most severe insight. - :paramtype status: ~azure.mgmt.domainregistration.models.Status - :keyword data_providers_metadata: Additional configuration for different data providers to be - used by the UI. - :paramtype data_providers_metadata: - list[~azure.mgmt.domainregistration.models.DataProviderMetadata] - :keyword suggested_utterances: Suggested utterances where the detector can be applicable. - :paramtype suggested_utterances: ~azure.mgmt.domainregistration.models.QueryUtterancesResults - """ - super().__init__(kind=kind, **kwargs) - self.metadata = metadata - self.dataset = dataset - self.status = status - self.data_providers_metadata = data_providers_metadata - self.suggested_utterances = suggested_utterances - - -class DetectorResponseCollection(_serialization.Model): - """Collection of detector responses. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.domainregistration.models.DetectorResponse] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[DetectorResponse]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.DetectorResponse"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.domainregistration.models.DetectorResponse] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class DiagnosticData(_serialization.Model): - """Set of data with rendering instructions. - - :ivar table: Data in table form. - :vartype table: ~azure.mgmt.domainregistration.models.DataTableResponseObject - :ivar rendering_properties: Properties that describe how the table should be rendered. - :vartype rendering_properties: ~azure.mgmt.domainregistration.models.Rendering - """ - - _attribute_map = { - "table": {"key": "table", "type": "DataTableResponseObject"}, - "rendering_properties": {"key": "renderingProperties", "type": "Rendering"}, - } - - def __init__( - self, - *, - table: Optional["_models.DataTableResponseObject"] = None, - rendering_properties: Optional["_models.Rendering"] = None, - **kwargs: Any - ) -> None: - """ - :keyword table: Data in table form. - :paramtype table: ~azure.mgmt.domainregistration.models.DataTableResponseObject - :keyword rendering_properties: Properties that describe how the table should be rendered. - :paramtype rendering_properties: ~azure.mgmt.domainregistration.models.Rendering - """ - super().__init__(**kwargs) - self.table = table - self.rendering_properties = rendering_properties - - -class Dimension(_serialization.Model): - """Dimension of a resource metric. For e.g. instance specific HTTP requests for a web app, - where instance name is dimension of the metric HTTP request. - - :ivar name: - :vartype name: str - :ivar display_name: - :vartype display_name: str - :ivar internal_name: - :vartype internal_name: str - :ivar to_be_exported_for_shoebox: - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "internal_name": {"key": "internalName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - internal_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: - :paramtype name: str - :keyword display_name: - :paramtype display_name: str - :keyword internal_name: - :paramtype internal_name: str - :keyword to_be_exported_for_shoebox: - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.internal_name = internal_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class Domain(Resource): - """Information about a domain. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. If the resource is an app, you can refer to - https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference - for details supported values for kind. - :vartype kind: str - :ivar location: Resource Location. Required. - :vartype location: str - :ivar type: Resource type. - :vartype type: str - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar contact_admin: Administrative contact. - :vartype contact_admin: ~azure.mgmt.domainregistration.models.Contact - :ivar contact_billing: Billing contact. - :vartype contact_billing: ~azure.mgmt.domainregistration.models.Contact - :ivar contact_registrant: Registrant contact. - :vartype contact_registrant: ~azure.mgmt.domainregistration.models.Contact - :ivar contact_tech: Technical contact. - :vartype contact_tech: ~azure.mgmt.domainregistration.models.Contact - :ivar registration_status: Domain registration status. Known values are: "Active", "Awaiting", - "Cancelled", "Confiscated", "Disabled", "Excluded", "Expired", "Failed", "Held", "Locked", - "Parked", "Pending", "Reserved", "Reverted", "Suspended", "Transferred", "Unknown", "Unlocked", - "Unparked", "Updated", and "JsonConverterFailed". - :vartype registration_status: str or ~azure.mgmt.domainregistration.models.DomainStatus - :ivar provisioning_state: Domain provisioning state. Known values are: "Succeeded", "Failed", - "Canceled", "InProgress", and "Deleting". - :vartype provisioning_state: str or ~azure.mgmt.domainregistration.models.ProvisioningState - :ivar name_servers: Name servers. - :vartype name_servers: list[str] - :ivar privacy: :code:`true` if domain privacy is enabled for this domain; - otherwise, :code:`false`. - :vartype privacy: bool - :ivar created_time: Domain creation timestamp. - :vartype created_time: ~datetime.datetime - :ivar expiration_time: Domain expiration timestamp. - :vartype expiration_time: ~datetime.datetime - :ivar last_renewed_time: Timestamp when the domain was renewed last time. - :vartype last_renewed_time: ~datetime.datetime - :ivar auto_renew: :code:`true` if the domain should be automatically renewed; - otherwise, :code:`false`. - :vartype auto_renew: bool - :ivar ready_for_dns_record_management: :code:`true` if Azure can assign this - domain to App Service apps; otherwise, :code:`false`. This value will be - :code:`true` if domain registration status is active and - it is hosted on name servers Azure has programmatic access to. - :vartype ready_for_dns_record_management: bool - :ivar managed_host_names: All hostnames derived from the domain and assigned to Azure - resources. - :vartype managed_host_names: list[~azure.mgmt.domainregistration.models.HostName] - :ivar consent: Legal agreement consent. - :vartype consent: ~azure.mgmt.domainregistration.models.DomainPurchaseConsent - :ivar domain_not_renewable_reasons: Reasons why domain is not renewable. - :vartype domain_not_renewable_reasons: list[str or - ~azure.mgmt.domainregistration.models.ResourceNotRenewableReason] - :ivar dns_type: Current DNS type. Known values are: "AzureDns" and "DefaultDomainRegistrarDns". - :vartype dns_type: str or ~azure.mgmt.domainregistration.models.DnsType - :ivar dns_zone_id: Azure DNS Zone to use. - :vartype dns_zone_id: str - :ivar target_dns_type: Target DNS type (would be used for migration). Known values are: - "AzureDns" and "DefaultDomainRegistrarDns". - :vartype target_dns_type: str or ~azure.mgmt.domainregistration.models.DnsType - :ivar auth_code: - :vartype auth_code: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "location": {"required": True}, - "type": {"readonly": True}, - "registration_status": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "name_servers": {"readonly": True}, - "created_time": {"readonly": True}, - "expiration_time": {"readonly": True}, - "last_renewed_time": {"readonly": True}, - "ready_for_dns_record_management": {"readonly": True}, - "managed_host_names": {"readonly": True}, - "domain_not_renewable_reasons": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "contact_admin": {"key": "properties.contactAdmin", "type": "Contact"}, - "contact_billing": {"key": "properties.contactBilling", "type": "Contact"}, - "contact_registrant": {"key": "properties.contactRegistrant", "type": "Contact"}, - "contact_tech": {"key": "properties.contactTech", "type": "Contact"}, - "registration_status": {"key": "properties.registrationStatus", "type": "str"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "name_servers": {"key": "properties.nameServers", "type": "[str]"}, - "privacy": {"key": "properties.privacy", "type": "bool"}, - "created_time": {"key": "properties.createdTime", "type": "iso-8601"}, - "expiration_time": {"key": "properties.expirationTime", "type": "iso-8601"}, - "last_renewed_time": {"key": "properties.lastRenewedTime", "type": "iso-8601"}, - "auto_renew": {"key": "properties.autoRenew", "type": "bool"}, - "ready_for_dns_record_management": {"key": "properties.readyForDnsRecordManagement", "type": "bool"}, - "managed_host_names": {"key": "properties.managedHostNames", "type": "[HostName]"}, - "consent": {"key": "properties.consent", "type": "DomainPurchaseConsent"}, - "domain_not_renewable_reasons": {"key": "properties.domainNotRenewableReasons", "type": "[str]"}, - "dns_type": {"key": "properties.dnsType", "type": "str"}, - "dns_zone_id": {"key": "properties.dnsZoneId", "type": "str"}, - "target_dns_type": {"key": "properties.targetDnsType", "type": "str"}, - "auth_code": {"key": "properties.authCode", "type": "str"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - location: str, - kind: Optional[str] = None, - tags: Optional[dict[str, str]] = None, - contact_admin: Optional["_models.Contact"] = None, - contact_billing: Optional["_models.Contact"] = None, - contact_registrant: Optional["_models.Contact"] = None, - contact_tech: Optional["_models.Contact"] = None, - privacy: Optional[bool] = None, - auto_renew: bool = True, - consent: Optional["_models.DomainPurchaseConsent"] = None, - dns_type: Optional[Union[str, "_models.DnsType"]] = None, - dns_zone_id: Optional[str] = None, - target_dns_type: Optional[Union[str, "_models.DnsType"]] = None, - auth_code: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. If the resource is an app, you can refer to - https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference - for details supported values for kind. - :paramtype kind: str - :keyword location: Resource Location. Required. - :paramtype location: str - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - :keyword contact_admin: Administrative contact. - :paramtype contact_admin: ~azure.mgmt.domainregistration.models.Contact - :keyword contact_billing: Billing contact. - :paramtype contact_billing: ~azure.mgmt.domainregistration.models.Contact - :keyword contact_registrant: Registrant contact. - :paramtype contact_registrant: ~azure.mgmt.domainregistration.models.Contact - :keyword contact_tech: Technical contact. - :paramtype contact_tech: ~azure.mgmt.domainregistration.models.Contact - :keyword privacy: :code:`true` if domain privacy is enabled for this domain; - otherwise, :code:`false`. - :paramtype privacy: bool - :keyword auto_renew: :code:`true` if the domain should be automatically renewed; - otherwise, :code:`false`. - :paramtype auto_renew: bool - :keyword consent: Legal agreement consent. - :paramtype consent: ~azure.mgmt.domainregistration.models.DomainPurchaseConsent - :keyword dns_type: Current DNS type. Known values are: "AzureDns" and - "DefaultDomainRegistrarDns". - :paramtype dns_type: str or ~azure.mgmt.domainregistration.models.DnsType - :keyword dns_zone_id: Azure DNS Zone to use. - :paramtype dns_zone_id: str - :keyword target_dns_type: Target DNS type (would be used for migration). Known values are: - "AzureDns" and "DefaultDomainRegistrarDns". - :paramtype target_dns_type: str or ~azure.mgmt.domainregistration.models.DnsType - :keyword auth_code: - :paramtype auth_code: str - """ - super().__init__(kind=kind, location=location, tags=tags, **kwargs) - self.contact_admin = contact_admin - self.contact_billing = contact_billing - self.contact_registrant = contact_registrant - self.contact_tech = contact_tech - self.registration_status: Optional[Union[str, "_models.DomainStatus"]] = None - self.provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = None - self.name_servers: Optional[list[str]] = None - self.privacy = privacy - self.created_time: Optional[datetime.datetime] = None - self.expiration_time: Optional[datetime.datetime] = None - self.last_renewed_time: Optional[datetime.datetime] = None - self.auto_renew = auto_renew - self.ready_for_dns_record_management: Optional[bool] = None - self.managed_host_names: Optional[list["_models.HostName"]] = None - self.consent = consent - self.domain_not_renewable_reasons: Optional[list[Union[str, "_models.ResourceNotRenewableReason"]]] = None - self.dns_type = dns_type - self.dns_zone_id = dns_zone_id - self.target_dns_type = target_dns_type - self.auth_code = auth_code - - -class DomainAvailabilityCheckResult(_serialization.Model): - """Domain availability check result. - - :ivar name: Name of the domain. - :vartype name: str - :ivar available: :code:`true` if domain can be purchased using CreateDomain API; - otherwise, :code:`false`. - :vartype available: bool - :ivar domain_type: Valid values are Regular domain: Azure will charge the full price of domain - registration, SoftDeleted: Purchasing this domain will simply restore it and this operation - will not cost anything. Known values are: "Regular" and "SoftDeleted". - :vartype domain_type: str or ~azure.mgmt.domainregistration.models.DomainType - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "available": {"key": "available", "type": "bool"}, - "domain_type": {"key": "domainType", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - available: Optional[bool] = None, - domain_type: Optional[Union[str, "_models.DomainType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the domain. - :paramtype name: str - :keyword available: :code:`true` if domain can be purchased using CreateDomain - API; otherwise, :code:`false`. - :paramtype available: bool - :keyword domain_type: Valid values are Regular domain: Azure will charge the full price of - domain registration, SoftDeleted: Purchasing this domain will simply restore it and this - operation will not cost anything. Known values are: "Regular" and "SoftDeleted". - :paramtype domain_type: str or ~azure.mgmt.domainregistration.models.DomainType - """ - super().__init__(**kwargs) - self.name = name - self.available = available - self.domain_type = domain_type - - -class DomainCollection(_serialization.Model): - """Collection of domains. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.domainregistration.models.Domain] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[Domain]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.Domain"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.domainregistration.models.Domain] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class DomainControlCenterSsoRequest(_serialization.Model): - """Single sign-on request information for domain management. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar url: URL where the single sign-on request is to be made. - :vartype url: str - :ivar post_parameter_key: Post parameter key. - :vartype post_parameter_key: str - :ivar post_parameter_value: Post parameter value. Client should use - 'application/x-www-form-urlencoded' encoding for this value. - :vartype post_parameter_value: str - """ - - _validation = { - "url": {"readonly": True}, - "post_parameter_key": {"readonly": True}, - "post_parameter_value": {"readonly": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - "post_parameter_key": {"key": "postParameterKey", "type": "str"}, - "post_parameter_value": {"key": "postParameterValue", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.url: Optional[str] = None - self.post_parameter_key: Optional[str] = None - self.post_parameter_value: Optional[str] = None - - -class DomainOwnershipIdentifier(ProxyOnlyResource): - """Domain ownership Identifier. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar ownership_id: Ownership Id. - :vartype ownership_id: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "ownership_id": {"key": "properties.ownershipId", "type": "str"}, - } - - def __init__(self, *, kind: Optional[str] = None, ownership_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - :keyword ownership_id: Ownership Id. - :paramtype ownership_id: str - """ - super().__init__(kind=kind, **kwargs) - self.ownership_id = ownership_id - - -class DomainOwnershipIdentifierCollection(_serialization.Model): - """Collection of domain ownership identifiers. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[DomainOwnershipIdentifier]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.DomainOwnershipIdentifier"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class DomainPatchResource(ProxyOnlyResource): - """ARM resource for a domain. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar contact_admin: Administrative contact. - :vartype contact_admin: ~azure.mgmt.domainregistration.models.Contact - :ivar contact_billing: Billing contact. - :vartype contact_billing: ~azure.mgmt.domainregistration.models.Contact - :ivar contact_registrant: Registrant contact. - :vartype contact_registrant: ~azure.mgmt.domainregistration.models.Contact - :ivar contact_tech: Technical contact. - :vartype contact_tech: ~azure.mgmt.domainregistration.models.Contact - :ivar registration_status: Domain registration status. Known values are: "Active", "Awaiting", - "Cancelled", "Confiscated", "Disabled", "Excluded", "Expired", "Failed", "Held", "Locked", - "Parked", "Pending", "Reserved", "Reverted", "Suspended", "Transferred", "Unknown", "Unlocked", - "Unparked", "Updated", and "JsonConverterFailed". - :vartype registration_status: str or ~azure.mgmt.domainregistration.models.DomainStatus - :ivar provisioning_state: Domain provisioning state. Known values are: "Succeeded", "Failed", - "Canceled", "InProgress", and "Deleting". - :vartype provisioning_state: str or ~azure.mgmt.domainregistration.models.ProvisioningState - :ivar name_servers: Name servers. - :vartype name_servers: list[str] - :ivar privacy: :code:`true` if domain privacy is enabled for this domain; - otherwise, :code:`false`. - :vartype privacy: bool - :ivar created_time: Domain creation timestamp. - :vartype created_time: ~datetime.datetime - :ivar expiration_time: Domain expiration timestamp. - :vartype expiration_time: ~datetime.datetime - :ivar last_renewed_time: Timestamp when the domain was renewed last time. - :vartype last_renewed_time: ~datetime.datetime - :ivar auto_renew: :code:`true` if the domain should be automatically renewed; - otherwise, :code:`false`. - :vartype auto_renew: bool - :ivar ready_for_dns_record_management: :code:`true` if Azure can assign this - domain to App Service apps; otherwise, :code:`false`. This value will be - :code:`true` if domain registration status is active and - it is hosted on name servers Azure has programmatic access to. - :vartype ready_for_dns_record_management: bool - :ivar managed_host_names: All hostnames derived from the domain and assigned to Azure - resources. - :vartype managed_host_names: list[~azure.mgmt.domainregistration.models.HostName] - :ivar consent: Legal agreement consent. - :vartype consent: ~azure.mgmt.domainregistration.models.DomainPurchaseConsent - :ivar domain_not_renewable_reasons: Reasons why domain is not renewable. - :vartype domain_not_renewable_reasons: list[str or - ~azure.mgmt.domainregistration.models.ResourceNotRenewableReason] - :ivar dns_type: Current DNS type. Known values are: "AzureDns" and "DefaultDomainRegistrarDns". - :vartype dns_type: str or ~azure.mgmt.domainregistration.models.DnsType - :ivar dns_zone_id: Azure DNS Zone to use. - :vartype dns_zone_id: str - :ivar target_dns_type: Target DNS type (would be used for migration). Known values are: - "AzureDns" and "DefaultDomainRegistrarDns". - :vartype target_dns_type: str or ~azure.mgmt.domainregistration.models.DnsType - :ivar auth_code: - :vartype auth_code: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "registration_status": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "name_servers": {"readonly": True}, - "created_time": {"readonly": True}, - "expiration_time": {"readonly": True}, - "last_renewed_time": {"readonly": True}, - "ready_for_dns_record_management": {"readonly": True}, - "managed_host_names": {"readonly": True}, - "domain_not_renewable_reasons": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "contact_admin": {"key": "properties.contactAdmin", "type": "Contact"}, - "contact_billing": {"key": "properties.contactBilling", "type": "Contact"}, - "contact_registrant": {"key": "properties.contactRegistrant", "type": "Contact"}, - "contact_tech": {"key": "properties.contactTech", "type": "Contact"}, - "registration_status": {"key": "properties.registrationStatus", "type": "str"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "name_servers": {"key": "properties.nameServers", "type": "[str]"}, - "privacy": {"key": "properties.privacy", "type": "bool"}, - "created_time": {"key": "properties.createdTime", "type": "iso-8601"}, - "expiration_time": {"key": "properties.expirationTime", "type": "iso-8601"}, - "last_renewed_time": {"key": "properties.lastRenewedTime", "type": "iso-8601"}, - "auto_renew": {"key": "properties.autoRenew", "type": "bool"}, - "ready_for_dns_record_management": {"key": "properties.readyForDnsRecordManagement", "type": "bool"}, - "managed_host_names": {"key": "properties.managedHostNames", "type": "[HostName]"}, - "consent": {"key": "properties.consent", "type": "DomainPurchaseConsent"}, - "domain_not_renewable_reasons": {"key": "properties.domainNotRenewableReasons", "type": "[str]"}, - "dns_type": {"key": "properties.dnsType", "type": "str"}, - "dns_zone_id": {"key": "properties.dnsZoneId", "type": "str"}, - "target_dns_type": {"key": "properties.targetDnsType", "type": "str"}, - "auth_code": {"key": "properties.authCode", "type": "str"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - kind: Optional[str] = None, - contact_admin: Optional["_models.Contact"] = None, - contact_billing: Optional["_models.Contact"] = None, - contact_registrant: Optional["_models.Contact"] = None, - contact_tech: Optional["_models.Contact"] = None, - privacy: Optional[bool] = None, - auto_renew: bool = True, - consent: Optional["_models.DomainPurchaseConsent"] = None, - dns_type: Optional[Union[str, "_models.DnsType"]] = None, - dns_zone_id: Optional[str] = None, - target_dns_type: Optional[Union[str, "_models.DnsType"]] = None, - auth_code: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - :keyword contact_admin: Administrative contact. - :paramtype contact_admin: ~azure.mgmt.domainregistration.models.Contact - :keyword contact_billing: Billing contact. - :paramtype contact_billing: ~azure.mgmt.domainregistration.models.Contact - :keyword contact_registrant: Registrant contact. - :paramtype contact_registrant: ~azure.mgmt.domainregistration.models.Contact - :keyword contact_tech: Technical contact. - :paramtype contact_tech: ~azure.mgmt.domainregistration.models.Contact - :keyword privacy: :code:`true` if domain privacy is enabled for this domain; - otherwise, :code:`false`. - :paramtype privacy: bool - :keyword auto_renew: :code:`true` if the domain should be automatically renewed; - otherwise, :code:`false`. - :paramtype auto_renew: bool - :keyword consent: Legal agreement consent. - :paramtype consent: ~azure.mgmt.domainregistration.models.DomainPurchaseConsent - :keyword dns_type: Current DNS type. Known values are: "AzureDns" and - "DefaultDomainRegistrarDns". - :paramtype dns_type: str or ~azure.mgmt.domainregistration.models.DnsType - :keyword dns_zone_id: Azure DNS Zone to use. - :paramtype dns_zone_id: str - :keyword target_dns_type: Target DNS type (would be used for migration). Known values are: - "AzureDns" and "DefaultDomainRegistrarDns". - :paramtype target_dns_type: str or ~azure.mgmt.domainregistration.models.DnsType - :keyword auth_code: - :paramtype auth_code: str - """ - super().__init__(kind=kind, **kwargs) - self.contact_admin = contact_admin - self.contact_billing = contact_billing - self.contact_registrant = contact_registrant - self.contact_tech = contact_tech - self.registration_status: Optional[Union[str, "_models.DomainStatus"]] = None - self.provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = None - self.name_servers: Optional[list[str]] = None - self.privacy = privacy - self.created_time: Optional[datetime.datetime] = None - self.expiration_time: Optional[datetime.datetime] = None - self.last_renewed_time: Optional[datetime.datetime] = None - self.auto_renew = auto_renew - self.ready_for_dns_record_management: Optional[bool] = None - self.managed_host_names: Optional[list["_models.HostName"]] = None - self.consent = consent - self.domain_not_renewable_reasons: Optional[list[Union[str, "_models.ResourceNotRenewableReason"]]] = None - self.dns_type = dns_type - self.dns_zone_id = dns_zone_id - self.target_dns_type = target_dns_type - self.auth_code = auth_code - - -class DomainPurchaseConsent(_serialization.Model): - """Domain purchase consent object, representing acceptance of applicable legal agreements. - - :ivar agreement_keys: List of applicable legal agreement keys. This list can be retrieved using - ListLegalAgreements API under :code:`TopLevelDomain` resource. - :vartype agreement_keys: list[str] - :ivar agreed_by: Client IP address. - :vartype agreed_by: str - :ivar agreed_at: Timestamp when the agreements were accepted. - :vartype agreed_at: ~datetime.datetime - """ - - _attribute_map = { - "agreement_keys": {"key": "agreementKeys", "type": "[str]"}, - "agreed_by": {"key": "agreedBy", "type": "str"}, - "agreed_at": {"key": "agreedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - agreement_keys: Optional[list[str]] = None, - agreed_by: Optional[str] = None, - agreed_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword agreement_keys: List of applicable legal agreement keys. This list can be retrieved - using ListLegalAgreements API under :code:`TopLevelDomain` resource. - :paramtype agreement_keys: list[str] - :keyword agreed_by: Client IP address. - :paramtype agreed_by: str - :keyword agreed_at: Timestamp when the agreements were accepted. - :paramtype agreed_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.agreement_keys = agreement_keys - self.agreed_by = agreed_by - self.agreed_at = agreed_at - - -class DomainRecommendationSearchParameters(_serialization.Model): - """Domain recommendation search parameters. - - :ivar keywords: Keywords to be used for generating domain recommendations. - :vartype keywords: str - :ivar max_domain_recommendations: Maximum number of recommendations. - :vartype max_domain_recommendations: int - """ - - _attribute_map = { - "keywords": {"key": "keywords", "type": "str"}, - "max_domain_recommendations": {"key": "maxDomainRecommendations", "type": "int"}, - } - - def __init__( - self, *, keywords: Optional[str] = None, max_domain_recommendations: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword keywords: Keywords to be used for generating domain recommendations. - :paramtype keywords: str - :keyword max_domain_recommendations: Maximum number of recommendations. - :paramtype max_domain_recommendations: int - """ - super().__init__(**kwargs) - self.keywords = keywords - self.max_domain_recommendations = max_domain_recommendations - - -class EnvironmentVar(_serialization.Model): - """Container App container environment variable. - - :ivar name: Environment variable name. - :vartype name: str - :ivar value: Non-secret environment variable value. - :vartype value: str - :ivar secret_ref: Name of the Container App secret from which to pull the environment variable - value. - :vartype secret_ref: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - "secret_ref": {"key": "secretRef", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - value: Optional[str] = None, - secret_ref: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Environment variable name. - :paramtype name: str - :keyword value: Non-secret environment variable value. - :paramtype value: str - :keyword secret_ref: Name of the Container App secret from which to pull the environment - variable value. - :paramtype secret_ref: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - self.secret_ref = secret_ref - - -class ErrorEntity(_serialization.Model): - """Body of the error response returned from the API. - - :ivar extended_code: Type of error. - :vartype extended_code: str - :ivar message_template: Message template. - :vartype message_template: str - :ivar parameters: Parameters for the template. - :vartype parameters: list[str] - :ivar inner_errors: Inner errors. - :vartype inner_errors: list[~azure.mgmt.domainregistration.models.ErrorEntity] - :ivar details: Error Details. - :vartype details: list[~azure.mgmt.domainregistration.models.ErrorEntity] - :ivar target: The error target. - :vartype target: str - :ivar code: Basic error code. - :vartype code: str - :ivar message: Any details of the error. - :vartype message: str - """ - - _attribute_map = { - "extended_code": {"key": "extendedCode", "type": "str"}, - "message_template": {"key": "messageTemplate", "type": "str"}, - "parameters": {"key": "parameters", "type": "[str]"}, - "inner_errors": {"key": "innerErrors", "type": "[ErrorEntity]"}, - "details": {"key": "details", "type": "[ErrorEntity]"}, - "target": {"key": "target", "type": "str"}, - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - extended_code: Optional[str] = None, - message_template: Optional[str] = None, - parameters: Optional[list[str]] = None, - inner_errors: Optional[list["_models.ErrorEntity"]] = None, - details: Optional[list["_models.ErrorEntity"]] = None, - target: Optional[str] = None, - code: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword extended_code: Type of error. - :paramtype extended_code: str - :keyword message_template: Message template. - :paramtype message_template: str - :keyword parameters: Parameters for the template. - :paramtype parameters: list[str] - :keyword inner_errors: Inner errors. - :paramtype inner_errors: list[~azure.mgmt.domainregistration.models.ErrorEntity] - :keyword details: Error Details. - :paramtype details: list[~azure.mgmt.domainregistration.models.ErrorEntity] - :keyword target: The error target. - :paramtype target: str - :keyword code: Basic error code. - :paramtype code: str - :keyword message: Any details of the error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.extended_code = extended_code - self.message_template = message_template - self.parameters = parameters - self.inner_errors = inner_errors - self.details = details - self.target = target - self.code = code - self.message = message - - -class Experiments(_serialization.Model): - """Routing rules in production experiments. - - :ivar ramp_up_rules: List of ramp-up rules. - :vartype ramp_up_rules: list[~azure.mgmt.domainregistration.models.RampUpRule] - """ - - _attribute_map = { - "ramp_up_rules": {"key": "rampUpRules", "type": "[RampUpRule]"}, - } - - def __init__(self, *, ramp_up_rules: Optional[list["_models.RampUpRule"]] = None, **kwargs: Any) -> None: - """ - :keyword ramp_up_rules: List of ramp-up rules. - :paramtype ramp_up_rules: list[~azure.mgmt.domainregistration.models.RampUpRule] - """ - super().__init__(**kwargs) - self.ramp_up_rules = ramp_up_rules - - -class ExtendedLocation(_serialization.Model): - """Extended Location. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of extended location. - :vartype name: str - :ivar type: Type of extended location. - :vartype type: str - """ - - _validation = { - "type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Name of extended location. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - self.type: Optional[str] = None - - -class FunctionAppConfig(_serialization.Model): - """Function app configuration. - - :ivar deployment: Function app deployment configuration. - :vartype deployment: ~azure.mgmt.domainregistration.models.FunctionsDeployment - :ivar runtime: Function app runtime settings. - :vartype runtime: ~azure.mgmt.domainregistration.models.FunctionsRuntime - :ivar scale_and_concurrency: Function app scale and concurrency settings. - :vartype scale_and_concurrency: - ~azure.mgmt.domainregistration.models.FunctionsScaleAndConcurrency - """ - - _attribute_map = { - "deployment": {"key": "deployment", "type": "FunctionsDeployment"}, - "runtime": {"key": "runtime", "type": "FunctionsRuntime"}, - "scale_and_concurrency": {"key": "scaleAndConcurrency", "type": "FunctionsScaleAndConcurrency"}, - } - - def __init__( - self, - *, - deployment: Optional["_models.FunctionsDeployment"] = None, - runtime: Optional["_models.FunctionsRuntime"] = None, - scale_and_concurrency: Optional["_models.FunctionsScaleAndConcurrency"] = None, - **kwargs: Any - ) -> None: - """ - :keyword deployment: Function app deployment configuration. - :paramtype deployment: ~azure.mgmt.domainregistration.models.FunctionsDeployment - :keyword runtime: Function app runtime settings. - :paramtype runtime: ~azure.mgmt.domainregistration.models.FunctionsRuntime - :keyword scale_and_concurrency: Function app scale and concurrency settings. - :paramtype scale_and_concurrency: - ~azure.mgmt.domainregistration.models.FunctionsScaleAndConcurrency - """ - super().__init__(**kwargs) - self.deployment = deployment - self.runtime = runtime - self.scale_and_concurrency = scale_and_concurrency - - -class FunctionsAlwaysReadyConfig(_serialization.Model): - """Sets the number of 'Always Ready' instances for a function group or a specific function. - - :ivar name: Either a function group or a function name is required. For additional information - see https://aka.ms/flexconsumption/alwaysready. - :vartype name: str - :ivar instance_count: Sets the number of 'Always Ready' instances for a given function group or - a specific function. For additional information see https://aka.ms/flexconsumption/alwaysready. - :vartype instance_count: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, *, name: Optional[str] = None, instance_count: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword name: Either a function group or a function name is required. For additional - information see https://aka.ms/flexconsumption/alwaysready. - :paramtype name: str - :keyword instance_count: Sets the number of 'Always Ready' instances for a given function group - or a specific function. For additional information see - https://aka.ms/flexconsumption/alwaysready. - :paramtype instance_count: int - """ - super().__init__(**kwargs) - self.name = name - self.instance_count = instance_count - - -class FunctionsDeployment(_serialization.Model): - """Configuration section for the function app deployment. - - :ivar storage: Storage for deployed package used by the function app. - :vartype storage: ~azure.mgmt.domainregistration.models.FunctionsDeploymentStorage - """ - - _attribute_map = { - "storage": {"key": "storage", "type": "FunctionsDeploymentStorage"}, - } - - def __init__(self, *, storage: Optional["_models.FunctionsDeploymentStorage"] = None, **kwargs: Any) -> None: - """ - :keyword storage: Storage for deployed package used by the function app. - :paramtype storage: ~azure.mgmt.domainregistration.models.FunctionsDeploymentStorage - """ - super().__init__(**kwargs) - self.storage = storage - - -class FunctionsDeploymentStorage(_serialization.Model): - """Storage for deployed package used by the function app. - - :ivar type: Property to select Azure Storage type. Available options: blobContainer. - "blobContainer" - :vartype type: str or ~azure.mgmt.domainregistration.models.FunctionsDeploymentStorageType - :ivar value: Property to set the URL for the selected Azure Storage type. Example: For - blobContainer, the value could be https://\\ - :code:``.blob.core.windows.net/\\ :code:``. - :vartype value: str - :ivar authentication: Authentication method to access the storage account for deployment. - :vartype authentication: - ~azure.mgmt.domainregistration.models.FunctionsDeploymentStorageAuthentication - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "value": {"key": "value", "type": "str"}, - "authentication": {"key": "authentication", "type": "FunctionsDeploymentStorageAuthentication"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.FunctionsDeploymentStorageType"]] = None, - value: Optional[str] = None, - authentication: Optional["_models.FunctionsDeploymentStorageAuthentication"] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Property to select Azure Storage type. Available options: blobContainer. - "blobContainer" - :paramtype type: str or ~azure.mgmt.domainregistration.models.FunctionsDeploymentStorageType - :keyword value: Property to set the URL for the selected Azure Storage type. Example: For - blobContainer, the value could be https://\\ - :code:``.blob.core.windows.net/\\ :code:``. - :paramtype value: str - :keyword authentication: Authentication method to access the storage account for deployment. - :paramtype authentication: - ~azure.mgmt.domainregistration.models.FunctionsDeploymentStorageAuthentication - """ - super().__init__(**kwargs) - self.type = type - self.value = value - self.authentication = authentication - - -class FunctionsDeploymentStorageAuthentication(_serialization.Model): - """Authentication method to access the storage account for deployment. - - :ivar type: Property to select authentication type to access the selected storage account. - Available options: SystemAssignedIdentity, UserAssignedIdentity, - StorageAccountConnectionString. Known values are: "SystemAssignedIdentity", - "UserAssignedIdentity", and "StorageAccountConnectionString". - :vartype type: str or ~azure.mgmt.domainregistration.models.AuthenticationType - :ivar user_assigned_identity_resource_id: Use this property for UserAssignedIdentity. Set the - resource ID of the identity. Do not set a value for this property when using other - authentication type. - :vartype user_assigned_identity_resource_id: str - :ivar storage_account_connection_string_name: Use this property for - StorageAccountConnectionString. Set the name of the app setting that has the storage account - connection string. Do not set a value for this property when using other authentication type. - :vartype storage_account_connection_string_name: str - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "user_assigned_identity_resource_id": {"key": "userAssignedIdentityResourceId", "type": "str"}, - "storage_account_connection_string_name": {"key": "storageAccountConnectionStringName", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.AuthenticationType"]] = None, - user_assigned_identity_resource_id: Optional[str] = None, - storage_account_connection_string_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Property to select authentication type to access the selected storage account. - Available options: SystemAssignedIdentity, UserAssignedIdentity, - StorageAccountConnectionString. Known values are: "SystemAssignedIdentity", - "UserAssignedIdentity", and "StorageAccountConnectionString". - :paramtype type: str or ~azure.mgmt.domainregistration.models.AuthenticationType - :keyword user_assigned_identity_resource_id: Use this property for UserAssignedIdentity. Set - the resource ID of the identity. Do not set a value for this property when using other - authentication type. - :paramtype user_assigned_identity_resource_id: str - :keyword storage_account_connection_string_name: Use this property for - StorageAccountConnectionString. Set the name of the app setting that has the storage account - connection string. Do not set a value for this property when using other authentication type. - :paramtype storage_account_connection_string_name: str - """ - super().__init__(**kwargs) - self.type = type - self.user_assigned_identity_resource_id = user_assigned_identity_resource_id - self.storage_account_connection_string_name = storage_account_connection_string_name - - -class FunctionsRuntime(_serialization.Model): - """Function app runtime name and version. - - :ivar name: Function app runtime name. Available options: dotnet-isolated, node, java, - powershell, python, custom. Known values are: "dotnet-isolated", "node", "java", "powershell", - "python", and "custom". - :vartype name: str or ~azure.mgmt.domainregistration.models.RuntimeName - :ivar version: Function app runtime version. Example: 8 (for dotnet-isolated). - :vartype version: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, *, name: Optional[Union[str, "_models.RuntimeName"]] = None, version: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Function app runtime name. Available options: dotnet-isolated, node, java, - powershell, python, custom. Known values are: "dotnet-isolated", "node", "java", "powershell", - "python", and "custom". - :paramtype name: str or ~azure.mgmt.domainregistration.models.RuntimeName - :keyword version: Function app runtime version. Example: 8 (for dotnet-isolated). - :paramtype version: str - """ - super().__init__(**kwargs) - self.name = name - self.version = version - - -class FunctionsScaleAndConcurrency(_serialization.Model): - """Scale and concurrency settings for the function app. - - :ivar always_ready: 'Always Ready' configuration for the function app. - :vartype always_ready: list[~azure.mgmt.domainregistration.models.FunctionsAlwaysReadyConfig] - :ivar maximum_instance_count: The maximum number of instances for the function app. - :vartype maximum_instance_count: int - :ivar instance_memory_mb: Set the amount of memory allocated to each instance of the function - app in MB. CPU and network bandwidth are allocated proportionally. - :vartype instance_memory_mb: int - :ivar triggers: Scale and concurrency settings for the function app triggers. - :vartype triggers: ~azure.mgmt.domainregistration.models.FunctionsScaleAndConcurrencyTriggers - """ - - _attribute_map = { - "always_ready": {"key": "alwaysReady", "type": "[FunctionsAlwaysReadyConfig]"}, - "maximum_instance_count": {"key": "maximumInstanceCount", "type": "int"}, - "instance_memory_mb": {"key": "instanceMemoryMB", "type": "int"}, - "triggers": {"key": "triggers", "type": "FunctionsScaleAndConcurrencyTriggers"}, - } - - def __init__( - self, - *, - always_ready: Optional[list["_models.FunctionsAlwaysReadyConfig"]] = None, - maximum_instance_count: Optional[int] = None, - instance_memory_mb: Optional[int] = None, - triggers: Optional["_models.FunctionsScaleAndConcurrencyTriggers"] = None, - **kwargs: Any - ) -> None: - """ - :keyword always_ready: 'Always Ready' configuration for the function app. - :paramtype always_ready: list[~azure.mgmt.domainregistration.models.FunctionsAlwaysReadyConfig] - :keyword maximum_instance_count: The maximum number of instances for the function app. - :paramtype maximum_instance_count: int - :keyword instance_memory_mb: Set the amount of memory allocated to each instance of the - function app in MB. CPU and network bandwidth are allocated proportionally. - :paramtype instance_memory_mb: int - :keyword triggers: Scale and concurrency settings for the function app triggers. - :paramtype triggers: ~azure.mgmt.domainregistration.models.FunctionsScaleAndConcurrencyTriggers - """ - super().__init__(**kwargs) - self.always_ready = always_ready - self.maximum_instance_count = maximum_instance_count - self.instance_memory_mb = instance_memory_mb - self.triggers = triggers - - -class FunctionsScaleAndConcurrencyTriggers(_serialization.Model): - """Scale and concurrency settings for the function app triggers. - - :ivar http: Scale and concurrency settings for the HTTP trigger. - :vartype http: ~azure.mgmt.domainregistration.models.FunctionsScaleAndConcurrencyTriggersHttp - """ - - _attribute_map = { - "http": {"key": "http", "type": "FunctionsScaleAndConcurrencyTriggersHttp"}, - } - - def __init__( - self, *, http: Optional["_models.FunctionsScaleAndConcurrencyTriggersHttp"] = None, **kwargs: Any - ) -> None: - """ - :keyword http: Scale and concurrency settings for the HTTP trigger. - :paramtype http: ~azure.mgmt.domainregistration.models.FunctionsScaleAndConcurrencyTriggersHttp - """ - super().__init__(**kwargs) - self.http = http - - -class FunctionsScaleAndConcurrencyTriggersHttp(_serialization.Model): - """Scale and concurrency settings for the HTTP trigger. - - :ivar per_instance_concurrency: The maximum number of concurrent HTTP trigger invocations per - instance. - :vartype per_instance_concurrency: int - """ - - _attribute_map = { - "per_instance_concurrency": {"key": "perInstanceConcurrency", "type": "int"}, - } - - def __init__(self, *, per_instance_concurrency: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword per_instance_concurrency: The maximum number of concurrent HTTP trigger invocations - per instance. - :paramtype per_instance_concurrency: int - """ - super().__init__(**kwargs) - self.per_instance_concurrency = per_instance_concurrency - - -class HandlerMapping(_serialization.Model): - """The IIS handler mappings used to define which handler processes HTTP requests with certain - extension. - For example, it is used to configure php-cgi.exe process to handle all HTTP requests with *.php - extension. - - :ivar extension: Requests with this extension will be handled using the specified FastCGI - application. - :vartype extension: str - :ivar script_processor: The absolute path to the FastCGI application. - :vartype script_processor: str - :ivar arguments: Command-line arguments to be passed to the script processor. - :vartype arguments: str - """ - - _attribute_map = { - "extension": {"key": "extension", "type": "str"}, - "script_processor": {"key": "scriptProcessor", "type": "str"}, - "arguments": {"key": "arguments", "type": "str"}, - } - - def __init__( - self, - *, - extension: Optional[str] = None, - script_processor: Optional[str] = None, - arguments: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword extension: Requests with this extension will be handled using the specified FastCGI - application. - :paramtype extension: str - :keyword script_processor: The absolute path to the FastCGI application. - :paramtype script_processor: str - :keyword arguments: Command-line arguments to be passed to the script processor. - :paramtype arguments: str - """ - super().__init__(**kwargs) - self.extension = extension - self.script_processor = script_processor - self.arguments = arguments - - -class HostingEnvironmentProfile(_serialization.Model): - """Specification for an App Service Environment to use for this resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource ID of the App Service Environment. - :vartype id: str - :ivar name: Name of the App Service Environment. - :vartype name: str - :ivar type: Resource type of the App Service Environment. - :vartype type: str - """ - - _validation = { - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: Resource ID of the App Service Environment. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - self.name: Optional[str] = None - self.type: Optional[str] = None - - -class HostName(_serialization.Model): - """Details of a hostname derived from a domain. - - :ivar name: Name of the hostname. - :vartype name: str - :ivar site_names: List of apps the hostname is assigned to. This list will have more than one - app only if the hostname is pointing to a Traffic Manager. - :vartype site_names: list[str] - :ivar azure_resource_name: Name of the Azure resource the hostname is assigned to. If it is - assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the - app name. - :vartype azure_resource_name: str - :ivar azure_resource_type: Type of the Azure resource the hostname is assigned to. Known values - are: "Website" and "TrafficManager". - :vartype azure_resource_type: str or ~azure.mgmt.domainregistration.models.AzureResourceType - :ivar custom_host_name_dns_record_type: Type of the DNS record. Known values are: "CName" and - "A". - :vartype custom_host_name_dns_record_type: str or - ~azure.mgmt.domainregistration.models.CustomHostNameDnsRecordType - :ivar host_name_type: Type of the hostname. Known values are: "Verified" and "Managed". - :vartype host_name_type: str or ~azure.mgmt.domainregistration.models.HostNameType - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "site_names": {"key": "siteNames", "type": "[str]"}, - "azure_resource_name": {"key": "azureResourceName", "type": "str"}, - "azure_resource_type": {"key": "azureResourceType", "type": "str"}, - "custom_host_name_dns_record_type": {"key": "customHostNameDnsRecordType", "type": "str"}, - "host_name_type": {"key": "hostNameType", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - site_names: Optional[list[str]] = None, - azure_resource_name: Optional[str] = None, - azure_resource_type: Optional[Union[str, "_models.AzureResourceType"]] = None, - custom_host_name_dns_record_type: Optional[Union[str, "_models.CustomHostNameDnsRecordType"]] = None, - host_name_type: Optional[Union[str, "_models.HostNameType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the hostname. - :paramtype name: str - :keyword site_names: List of apps the hostname is assigned to. This list will have more than - one app only if the hostname is pointing to a Traffic Manager. - :paramtype site_names: list[str] - :keyword azure_resource_name: Name of the Azure resource the hostname is assigned to. If it is - assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the - app name. - :paramtype azure_resource_name: str - :keyword azure_resource_type: Type of the Azure resource the hostname is assigned to. Known - values are: "Website" and "TrafficManager". - :paramtype azure_resource_type: str or ~azure.mgmt.domainregistration.models.AzureResourceType - :keyword custom_host_name_dns_record_type: Type of the DNS record. Known values are: "CName" - and "A". - :paramtype custom_host_name_dns_record_type: str or - ~azure.mgmt.domainregistration.models.CustomHostNameDnsRecordType - :keyword host_name_type: Type of the hostname. Known values are: "Verified" and "Managed". - :paramtype host_name_type: str or ~azure.mgmt.domainregistration.models.HostNameType - """ - super().__init__(**kwargs) - self.name = name - self.site_names = site_names - self.azure_resource_name = azure_resource_name - self.azure_resource_type = azure_resource_type - self.custom_host_name_dns_record_type = custom_host_name_dns_record_type - self.host_name_type = host_name_type - - -class HostNameBinding(ProxyOnlyResource): - """A hostname binding object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar site_name: App Service app name. - :vartype site_name: str - :ivar domain_id: Fully qualified ARM domain resource URI. - :vartype domain_id: str - :ivar azure_resource_name: Azure resource name. - :vartype azure_resource_name: str - :ivar azure_resource_type: Azure resource type. Known values are: "Website" and - "TrafficManager". - :vartype azure_resource_type: str or ~azure.mgmt.domainregistration.models.AzureResourceType - :ivar custom_host_name_dns_record_type: Custom DNS record type. Known values are: "CName" and - "A". - :vartype custom_host_name_dns_record_type: str or - ~azure.mgmt.domainregistration.models.CustomHostNameDnsRecordType - :ivar host_name_type: Hostname type. Known values are: "Verified" and "Managed". - :vartype host_name_type: str or ~azure.mgmt.domainregistration.models.HostNameType - :ivar ssl_state: SSL type. Known values are: "Disabled", "SniEnabled", and "IpBasedEnabled". - :vartype ssl_state: str or ~azure.mgmt.domainregistration.models.SslState - :ivar thumbprint: SSL certificate thumbprint. - :vartype thumbprint: str - :ivar virtual_ip: Virtual IP address assigned to the hostname if IP based SSL is enabled. - :vartype virtual_ip: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "virtual_ip": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "site_name": {"key": "properties.siteName", "type": "str"}, - "domain_id": {"key": "properties.domainId", "type": "str"}, - "azure_resource_name": {"key": "properties.azureResourceName", "type": "str"}, - "azure_resource_type": {"key": "properties.azureResourceType", "type": "str"}, - "custom_host_name_dns_record_type": {"key": "properties.customHostNameDnsRecordType", "type": "str"}, - "host_name_type": {"key": "properties.hostNameType", "type": "str"}, - "ssl_state": {"key": "properties.sslState", "type": "str"}, - "thumbprint": {"key": "properties.thumbprint", "type": "str"}, - "virtual_ip": {"key": "properties.virtualIP", "type": "str"}, - } - - def __init__( - self, - *, - kind: Optional[str] = None, - site_name: Optional[str] = None, - domain_id: Optional[str] = None, - azure_resource_name: Optional[str] = None, - azure_resource_type: Optional[Union[str, "_models.AzureResourceType"]] = None, - custom_host_name_dns_record_type: Optional[Union[str, "_models.CustomHostNameDnsRecordType"]] = None, - host_name_type: Optional[Union[str, "_models.HostNameType"]] = None, - ssl_state: Optional[Union[str, "_models.SslState"]] = None, - thumbprint: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - :keyword site_name: App Service app name. - :paramtype site_name: str - :keyword domain_id: Fully qualified ARM domain resource URI. - :paramtype domain_id: str - :keyword azure_resource_name: Azure resource name. - :paramtype azure_resource_name: str - :keyword azure_resource_type: Azure resource type. Known values are: "Website" and - "TrafficManager". - :paramtype azure_resource_type: str or ~azure.mgmt.domainregistration.models.AzureResourceType - :keyword custom_host_name_dns_record_type: Custom DNS record type. Known values are: "CName" - and "A". - :paramtype custom_host_name_dns_record_type: str or - ~azure.mgmt.domainregistration.models.CustomHostNameDnsRecordType - :keyword host_name_type: Hostname type. Known values are: "Verified" and "Managed". - :paramtype host_name_type: str or ~azure.mgmt.domainregistration.models.HostNameType - :keyword ssl_state: SSL type. Known values are: "Disabled", "SniEnabled", and "IpBasedEnabled". - :paramtype ssl_state: str or ~azure.mgmt.domainregistration.models.SslState - :keyword thumbprint: SSL certificate thumbprint. - :paramtype thumbprint: str - """ - super().__init__(kind=kind, **kwargs) - self.site_name = site_name - self.domain_id = domain_id - self.azure_resource_name = azure_resource_name - self.azure_resource_type = azure_resource_type - self.custom_host_name_dns_record_type = custom_host_name_dns_record_type - self.host_name_type = host_name_type - self.ssl_state = ssl_state - self.thumbprint = thumbprint - self.virtual_ip: Optional[str] = None - - -class HostNameBindingCollection(_serialization.Model): - """Collection of hostname bindings. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.domainregistration.models.HostNameBinding] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[HostNameBinding]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.HostNameBinding"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.domainregistration.models.HostNameBinding] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class HostNameSslState(_serialization.Model): - """SSL-enabled hostname. - - :ivar name: Hostname. - :vartype name: str - :ivar ssl_state: SSL type. Known values are: "Disabled", "SniEnabled", and "IpBasedEnabled". - :vartype ssl_state: str or ~azure.mgmt.domainregistration.models.SslState - :ivar virtual_ip: Virtual IP address assigned to the hostname if IP based SSL is enabled. - :vartype virtual_ip: str - :ivar thumbprint: SSL certificate thumbprint. - :vartype thumbprint: str - :ivar to_update: Set to :code:`true` to update existing hostname. - :vartype to_update: bool - :ivar host_type: Indicates whether the hostname is a standard or repository hostname. Known - values are: "Standard" and "Repository". - :vartype host_type: str or ~azure.mgmt.domainregistration.models.HostType - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "ssl_state": {"key": "sslState", "type": "str"}, - "virtual_ip": {"key": "virtualIP", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "to_update": {"key": "toUpdate", "type": "bool"}, - "host_type": {"key": "hostType", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - ssl_state: Optional[Union[str, "_models.SslState"]] = None, - virtual_ip: Optional[str] = None, - thumbprint: Optional[str] = None, - to_update: Optional[bool] = None, - host_type: Optional[Union[str, "_models.HostType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Hostname. - :paramtype name: str - :keyword ssl_state: SSL type. Known values are: "Disabled", "SniEnabled", and "IpBasedEnabled". - :paramtype ssl_state: str or ~azure.mgmt.domainregistration.models.SslState - :keyword virtual_ip: Virtual IP address assigned to the hostname if IP based SSL is enabled. - :paramtype virtual_ip: str - :keyword thumbprint: SSL certificate thumbprint. - :paramtype thumbprint: str - :keyword to_update: Set to :code:`true` to update existing hostname. - :paramtype to_update: bool - :keyword host_type: Indicates whether the hostname is a standard or repository hostname. Known - values are: "Standard" and "Repository". - :paramtype host_type: str or ~azure.mgmt.domainregistration.models.HostType - """ - super().__init__(**kwargs) - self.name = name - self.ssl_state = ssl_state - self.virtual_ip = virtual_ip - self.thumbprint = thumbprint - self.to_update = to_update - self.host_type = host_type - - -class HttpScaleRule(_serialization.Model): - """Container App container Custom scaling rule. - - :ivar metadata: Metadata properties to describe http scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the custom scale rule. - :vartype auth: list[~azure.mgmt.domainregistration.models.ScaleRuleAuth] - """ - - _attribute_map = { - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - metadata: Optional[dict[str, str]] = None, - auth: Optional[list["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword metadata: Metadata properties to describe http scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the custom scale rule. - :paramtype auth: list[~azure.mgmt.domainregistration.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.metadata = metadata - self.auth = auth - - -class HybridConnection(ProxyOnlyResource): - """Hybrid Connection contract. This is used to configure a Hybrid Connection. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar service_bus_namespace: The name of the Service Bus namespace. - :vartype service_bus_namespace: str - :ivar relay_name: The name of the Service Bus relay. - :vartype relay_name: str - :ivar relay_arm_uri: The ARM URI to the Service Bus relay. - :vartype relay_arm_uri: str - :ivar hostname: The hostname of the endpoint. - :vartype hostname: str - :ivar port: The port of the endpoint. - :vartype port: int - :ivar send_key_name: The name of the Service Bus key which has Send permissions. This is used - to authenticate to Service Bus. - :vartype send_key_name: str - :ivar send_key_value: The value of the Service Bus key. This is used to authenticate to Service - Bus. In ARM this key will not be returned - normally, use the POST /listKeys API instead. - :vartype send_key_value: str - :ivar service_bus_suffix: The suffix for the service bus endpoint. By default this is - .servicebus.windows.net. - :vartype service_bus_suffix: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "service_bus_namespace": {"key": "properties.serviceBusNamespace", "type": "str"}, - "relay_name": {"key": "properties.relayName", "type": "str"}, - "relay_arm_uri": {"key": "properties.relayArmUri", "type": "str"}, - "hostname": {"key": "properties.hostname", "type": "str"}, - "port": {"key": "properties.port", "type": "int"}, - "send_key_name": {"key": "properties.sendKeyName", "type": "str"}, - "send_key_value": {"key": "properties.sendKeyValue", "type": "str"}, - "service_bus_suffix": {"key": "properties.serviceBusSuffix", "type": "str"}, - } - - def __init__( - self, - *, - kind: Optional[str] = None, - service_bus_namespace: Optional[str] = None, - relay_name: Optional[str] = None, - relay_arm_uri: Optional[str] = None, - hostname: Optional[str] = None, - port: Optional[int] = None, - send_key_name: Optional[str] = None, - send_key_value: Optional[str] = None, - service_bus_suffix: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - :keyword service_bus_namespace: The name of the Service Bus namespace. - :paramtype service_bus_namespace: str - :keyword relay_name: The name of the Service Bus relay. - :paramtype relay_name: str - :keyword relay_arm_uri: The ARM URI to the Service Bus relay. - :paramtype relay_arm_uri: str - :keyword hostname: The hostname of the endpoint. - :paramtype hostname: str - :keyword port: The port of the endpoint. - :paramtype port: int - :keyword send_key_name: The name of the Service Bus key which has Send permissions. This is - used to authenticate to Service Bus. - :paramtype send_key_name: str - :keyword send_key_value: The value of the Service Bus key. This is used to authenticate to - Service Bus. In ARM this key will not be returned - normally, use the POST /listKeys API instead. - :paramtype send_key_value: str - :keyword service_bus_suffix: The suffix for the service bus endpoint. By default this is - .servicebus.windows.net. - :paramtype service_bus_suffix: str - """ - super().__init__(kind=kind, **kwargs) - self.service_bus_namespace = service_bus_namespace - self.relay_name = relay_name - self.relay_arm_uri = relay_arm_uri - self.hostname = hostname - self.port = port - self.send_key_name = send_key_name - self.send_key_value = send_key_value - self.service_bus_suffix = service_bus_suffix - - -class Identifier(ProxyOnlyResource): - """A domain specific resource identifier. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar value: String representation of the identity. - :vartype value: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "value": {"key": "properties.id", "type": "str"}, - } - - def __init__(self, *, kind: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - :keyword value: String representation of the identity. - :paramtype value: str - """ - super().__init__(kind=kind, **kwargs) - self.value = value - - -class IdentifierCollection(_serialization.Model): - """Collection of identifiers. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.domainregistration.models.Identifier] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[Identifier]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.Identifier"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.domainregistration.models.Identifier] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class IpSecurityRestriction(_serialization.Model): - """IP security restriction on an app. - - :ivar ip_address: IP address the security restriction is valid for. - It can be in form of pure ipv4 address (required SubnetMask property) or - CIDR notation such as ipv4/mask (leading bit match). For CIDR, - SubnetMask property must not be specified. - :vartype ip_address: str - :ivar subnet_mask: Subnet mask for the range of IP addresses the restriction is valid for. - :vartype subnet_mask: str - :ivar vnet_subnet_resource_id: Virtual network resource id. - :vartype vnet_subnet_resource_id: str - :ivar vnet_traffic_tag: (internal) Vnet traffic tag. - :vartype vnet_traffic_tag: int - :ivar subnet_traffic_tag: (internal) Subnet traffic tag. - :vartype subnet_traffic_tag: int - :ivar action: Allow or Deny access for this IP range. - :vartype action: str - :ivar tag: Defines what this IP filter will be used for. This is to support IP filtering on - proxies. Known values are: "Default", "XffProxy", and "ServiceTag". - :vartype tag: str or ~azure.mgmt.domainregistration.models.IpFilterTag - :ivar priority: Priority of IP restriction rule. - :vartype priority: int - :ivar name: IP restriction rule name. - :vartype name: str - :ivar description: IP restriction rule description. - :vartype description: str - :ivar headers: IP restriction rule headers. - X-Forwarded-Host - (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). - The matching logic is .. - * If the property is null or empty (default), all hosts(or lack of) are allowed. - * A value is compared using ordinal-ignore-case (excluding port number). - * Subdomain wildcards are permitted but don't match the root domain. For example, - *.contoso.com matches the subdomain foo.contoso.com - but not the root domain contoso.com or multi-level foo.bar.contoso.com - * Unicode host names are allowed but are converted to Punycode for matching. - X-Forwarded-For - (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). - The matching logic is .. - * If the property is null or empty (default), any forwarded-for chains (or lack of) are - allowed. - * If any address (excluding port number) in the chain (comma separated) matches the CIDR - defined by the property. - X-Azure-FDID and X-FD-HealthProbe. - The matching logic is exact match. - :vartype headers: dict[str, list[str]] - """ - - _attribute_map = { - "ip_address": {"key": "ipAddress", "type": "str"}, - "subnet_mask": {"key": "subnetMask", "type": "str"}, - "vnet_subnet_resource_id": {"key": "vnetSubnetResourceId", "type": "str"}, - "vnet_traffic_tag": {"key": "vnetTrafficTag", "type": "int"}, - "subnet_traffic_tag": {"key": "subnetTrafficTag", "type": "int"}, - "action": {"key": "action", "type": "str"}, - "tag": {"key": "tag", "type": "str"}, - "priority": {"key": "priority", "type": "int"}, - "name": {"key": "name", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "headers": {"key": "headers", "type": "{[str]}"}, - } - - def __init__( - self, - *, - ip_address: Optional[str] = None, - subnet_mask: Optional[str] = None, - vnet_subnet_resource_id: Optional[str] = None, - vnet_traffic_tag: Optional[int] = None, - subnet_traffic_tag: Optional[int] = None, - action: Optional[str] = None, - tag: Optional[Union[str, "_models.IpFilterTag"]] = None, - priority: Optional[int] = None, - name: Optional[str] = None, - description: Optional[str] = None, - headers: Optional[dict[str, list[str]]] = None, - **kwargs: Any - ) -> None: - """ - :keyword ip_address: IP address the security restriction is valid for. - It can be in form of pure ipv4 address (required SubnetMask property) or - CIDR notation such as ipv4/mask (leading bit match). For CIDR, - SubnetMask property must not be specified. - :paramtype ip_address: str - :keyword subnet_mask: Subnet mask for the range of IP addresses the restriction is valid for. - :paramtype subnet_mask: str - :keyword vnet_subnet_resource_id: Virtual network resource id. - :paramtype vnet_subnet_resource_id: str - :keyword vnet_traffic_tag: (internal) Vnet traffic tag. - :paramtype vnet_traffic_tag: int - :keyword subnet_traffic_tag: (internal) Subnet traffic tag. - :paramtype subnet_traffic_tag: int - :keyword action: Allow or Deny access for this IP range. - :paramtype action: str - :keyword tag: Defines what this IP filter will be used for. This is to support IP filtering on - proxies. Known values are: "Default", "XffProxy", and "ServiceTag". - :paramtype tag: str or ~azure.mgmt.domainregistration.models.IpFilterTag - :keyword priority: Priority of IP restriction rule. - :paramtype priority: int - :keyword name: IP restriction rule name. - :paramtype name: str - :keyword description: IP restriction rule description. - :paramtype description: str - :keyword headers: IP restriction rule headers. - X-Forwarded-Host - (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples). - The matching logic is .. - * If the property is null or empty (default), all hosts(or lack of) are allowed. - * A value is compared using ordinal-ignore-case (excluding port number). - * Subdomain wildcards are permitted but don't match the root domain. For example, - *.contoso.com matches the subdomain foo.contoso.com - but not the root domain contoso.com or multi-level foo.bar.contoso.com - * Unicode host names are allowed but are converted to Punycode for matching. - X-Forwarded-For - (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). - The matching logic is .. - * If the property is null or empty (default), any forwarded-for chains (or lack of) are - allowed. - * If any address (excluding port number) in the chain (comma separated) matches the CIDR - defined by the property. - X-Azure-FDID and X-FD-HealthProbe. - The matching logic is exact match. - :paramtype headers: dict[str, list[str]] - """ - super().__init__(**kwargs) - self.ip_address = ip_address - self.subnet_mask = subnet_mask - self.vnet_subnet_resource_id = vnet_subnet_resource_id - self.vnet_traffic_tag = vnet_traffic_tag - self.subnet_traffic_tag = subnet_traffic_tag - self.action = action - self.tag = tag - self.priority = priority - self.name = name - self.description = description - self.headers = headers - - -class KeyValuePairStringObject(_serialization.Model): - """KeyValuePairStringObject. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar key: - :vartype key: str - :ivar value: Any object. - :vartype value: JSON - """ - - _validation = { - "key": {"readonly": True}, - "value": {"readonly": True}, - } - - _attribute_map = { - "key": {"key": "key", "type": "str"}, - "value": {"key": "value", "type": "object"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.key: Optional[str] = None - self.value: Optional[JSON] = None - - -class KubeEnvironmentProfile(_serialization.Model): - """Specification for a Kubernetes Environment to use for this resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource ID of the Kubernetes Environment. - :vartype id: str - :ivar name: Name of the Kubernetes Environment. - :vartype name: str - :ivar type: Resource type of the Kubernetes Environment. - :vartype type: str - """ - - _validation = { - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: Resource ID of the Kubernetes Environment. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - self.name: Optional[str] = None - self.type: Optional[str] = None - - -class LocalizableString(_serialization.Model): - """Localizable string object containing the name and a localized value. - - :ivar value: Non-localized name. - :vartype value: str - :ivar localized_value: Localized name. - :vartype localized_value: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "localized_value": {"key": "localizedValue", "type": "str"}, - } - - def __init__(self, *, value: Optional[str] = None, localized_value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword value: Non-localized name. - :paramtype value: str - :keyword localized_value: Localized name. - :paramtype localized_value: str - """ - super().__init__(**kwargs) - self.value = value - self.localized_value = localized_value - - -class LogSpecification(_serialization.Model): - """Log Definition of a single resource metric. - - :ivar name: - :vartype name: str - :ivar display_name: - :vartype display_name: str - :ivar blob_duration: - :vartype blob_duration: str - :ivar log_filter_pattern: - :vartype log_filter_pattern: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - "log_filter_pattern": {"key": "logFilterPattern", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - log_filter_pattern: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: - :paramtype name: str - :keyword display_name: - :paramtype display_name: str - :keyword blob_duration: - :paramtype blob_duration: str - :keyword log_filter_pattern: - :paramtype log_filter_pattern: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - self.log_filter_pattern = log_filter_pattern - - -class ManagedServiceIdentity(_serialization.Model): - """Managed service identity. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar type: Type of managed service identity. Known values are: "SystemAssigned", - "UserAssigned", "SystemAssigned, UserAssigned", and "None". - :vartype type: str or ~azure.mgmt.domainregistration.models.ManagedServiceIdentityType - :ivar tenant_id: Tenant of managed service identity. - :vartype tenant_id: str - :ivar principal_id: Principal Id of managed service identity. - :vartype principal_id: str - :ivar user_assigned_identities: The list of user assigned identities associated with the - resource. The user identity dictionary key references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - :vartype user_assigned_identities: dict[str, - ~azure.mgmt.domainregistration.models.UserAssignedIdentity] - """ - - _validation = { - "tenant_id": {"readonly": True}, - "principal_id": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedIdentity}"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedServiceIdentityType"]] = None, - user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentity"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of managed service identity. Known values are: "SystemAssigned", - "UserAssigned", "SystemAssigned, UserAssigned", and "None". - :paramtype type: str or ~azure.mgmt.domainregistration.models.ManagedServiceIdentityType - :keyword user_assigned_identities: The list of user assigned identities associated with the - resource. The user identity dictionary key references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.domainregistration.models.UserAssignedIdentity] - """ - super().__init__(**kwargs) - self.type = type - self.tenant_id: Optional[str] = None - self.principal_id: Optional[str] = None - self.user_assigned_identities = user_assigned_identities - - -class MetricAvailability(_serialization.Model): - """Retention policy of a resource metric. - - :ivar time_grain: - :vartype time_grain: str - :ivar blob_duration: - :vartype blob_duration: str - """ - - _attribute_map = { - "time_grain": {"key": "timeGrain", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__(self, *, time_grain: Optional[str] = None, blob_duration: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword time_grain: - :paramtype time_grain: str - :keyword blob_duration: - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.time_grain = time_grain - self.blob_duration = blob_duration - - -class MetricSpecification(_serialization.Model): - """Definition of a single resource metric. - - :ivar name: - :vartype name: str - :ivar display_name: - :vartype display_name: str - :ivar display_description: - :vartype display_description: str - :ivar unit: - :vartype unit: str - :ivar aggregation_type: - :vartype aggregation_type: str - :ivar supports_instance_level_aggregation: - :vartype supports_instance_level_aggregation: bool - :ivar enable_regional_mdm_account: - :vartype enable_regional_mdm_account: bool - :ivar source_mdm_account: - :vartype source_mdm_account: str - :ivar source_mdm_namespace: - :vartype source_mdm_namespace: str - :ivar metric_filter_pattern: - :vartype metric_filter_pattern: str - :ivar fill_gap_with_zero: - :vartype fill_gap_with_zero: bool - :ivar is_internal: - :vartype is_internal: bool - :ivar dimensions: - :vartype dimensions: list[~azure.mgmt.domainregistration.models.Dimension] - :ivar category: - :vartype category: str - :ivar availabilities: - :vartype availabilities: list[~azure.mgmt.domainregistration.models.MetricAvailability] - :ivar supported_time_grain_types: - :vartype supported_time_grain_types: list[str] - :ivar supported_aggregation_types: - :vartype supported_aggregation_types: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supports_instance_level_aggregation": {"key": "supportsInstanceLevelAggregation", "type": "bool"}, - "enable_regional_mdm_account": {"key": "enableRegionalMdmAccount", "type": "bool"}, - "source_mdm_account": {"key": "sourceMdmAccount", "type": "str"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - "metric_filter_pattern": {"key": "metricFilterPattern", "type": "str"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "is_internal": {"key": "isInternal", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[Dimension]"}, - "category": {"key": "category", "type": "str"}, - "availabilities": {"key": "availabilities", "type": "[MetricAvailability]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - aggregation_type: Optional[str] = None, - supports_instance_level_aggregation: Optional[bool] = None, - enable_regional_mdm_account: Optional[bool] = None, - source_mdm_account: Optional[str] = None, - source_mdm_namespace: Optional[str] = None, - metric_filter_pattern: Optional[str] = None, - fill_gap_with_zero: Optional[bool] = None, - is_internal: Optional[bool] = None, - dimensions: Optional[list["_models.Dimension"]] = None, - category: Optional[str] = None, - availabilities: Optional[list["_models.MetricAvailability"]] = None, - supported_time_grain_types: Optional[list[str]] = None, - supported_aggregation_types: Optional[list[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: - :paramtype name: str - :keyword display_name: - :paramtype display_name: str - :keyword display_description: - :paramtype display_description: str - :keyword unit: - :paramtype unit: str - :keyword aggregation_type: - :paramtype aggregation_type: str - :keyword supports_instance_level_aggregation: - :paramtype supports_instance_level_aggregation: bool - :keyword enable_regional_mdm_account: - :paramtype enable_regional_mdm_account: bool - :keyword source_mdm_account: - :paramtype source_mdm_account: str - :keyword source_mdm_namespace: - :paramtype source_mdm_namespace: str - :keyword metric_filter_pattern: - :paramtype metric_filter_pattern: str - :keyword fill_gap_with_zero: - :paramtype fill_gap_with_zero: bool - :keyword is_internal: - :paramtype is_internal: bool - :keyword dimensions: - :paramtype dimensions: list[~azure.mgmt.domainregistration.models.Dimension] - :keyword category: - :paramtype category: str - :keyword availabilities: - :paramtype availabilities: list[~azure.mgmt.domainregistration.models.MetricAvailability] - :keyword supported_time_grain_types: - :paramtype supported_time_grain_types: list[str] - :keyword supported_aggregation_types: - :paramtype supported_aggregation_types: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.aggregation_type = aggregation_type - self.supports_instance_level_aggregation = supports_instance_level_aggregation - self.enable_regional_mdm_account = enable_regional_mdm_account - self.source_mdm_account = source_mdm_account - self.source_mdm_namespace = source_mdm_namespace - self.metric_filter_pattern = metric_filter_pattern - self.fill_gap_with_zero = fill_gap_with_zero - self.is_internal = is_internal - self.dimensions = dimensions - self.category = category - self.availabilities = availabilities - self.supported_time_grain_types = supported_time_grain_types - self.supported_aggregation_types = supported_aggregation_types - - -class NameIdentifier(_serialization.Model): - """Identifies an object. - - :ivar name: Name of the object. - :vartype name: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Name of the object. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class NameIdentifierCollection(_serialization.Model): - """Collection of domain name identifiers. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.domainregistration.models.NameIdentifier] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[NameIdentifier]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.NameIdentifier"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.domainregistration.models.NameIdentifier] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class NameValuePair(_serialization.Model): - """Name value pair. - - :ivar name: Pair name. - :vartype name: str - :ivar value: Pair value. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Pair name. - :paramtype name: str - :keyword value: Pair value. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class Operation(_serialization.Model): - """An operation on a resource. - - :ivar id: Operation ID. - :vartype id: str - :ivar name: Operation name. - :vartype name: str - :ivar status: The current status of the operation. Known values are: "InProgress", "Failed", - "Succeeded", "TimedOut", and "Created". - :vartype status: str or ~azure.mgmt.domainregistration.models.OperationStatus - :ivar errors: Any errors associate with the operation. - :vartype errors: list[~azure.mgmt.domainregistration.models.ErrorEntity] - :ivar created_time: Time when operation has started. - :vartype created_time: ~datetime.datetime - :ivar modified_time: Time when operation has been updated. - :vartype modified_time: ~datetime.datetime - :ivar expiration_time: Time when operation will expire. - :vartype expiration_time: ~datetime.datetime - :ivar geo_master_operation_id: Applicable only for stamp operation ids. - :vartype geo_master_operation_id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "errors": {"key": "errors", "type": "[ErrorEntity]"}, - "created_time": {"key": "createdTime", "type": "iso-8601"}, - "modified_time": {"key": "modifiedTime", "type": "iso-8601"}, - "expiration_time": {"key": "expirationTime", "type": "iso-8601"}, - "geo_master_operation_id": {"key": "geoMasterOperationId", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - name: Optional[str] = None, - status: Optional[Union[str, "_models.OperationStatus"]] = None, - errors: Optional[list["_models.ErrorEntity"]] = None, - created_time: Optional[datetime.datetime] = None, - modified_time: Optional[datetime.datetime] = None, - expiration_time: Optional[datetime.datetime] = None, - geo_master_operation_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Operation ID. - :paramtype id: str - :keyword name: Operation name. - :paramtype name: str - :keyword status: The current status of the operation. Known values are: "InProgress", "Failed", - "Succeeded", "TimedOut", and "Created". - :paramtype status: str or ~azure.mgmt.domainregistration.models.OperationStatus - :keyword errors: Any errors associate with the operation. - :paramtype errors: list[~azure.mgmt.domainregistration.models.ErrorEntity] - :keyword created_time: Time when operation has started. - :paramtype created_time: ~datetime.datetime - :keyword modified_time: Time when operation has been updated. - :paramtype modified_time: ~datetime.datetime - :keyword expiration_time: Time when operation will expire. - :paramtype expiration_time: ~datetime.datetime - :keyword geo_master_operation_id: Applicable only for stamp operation ids. - :paramtype geo_master_operation_id: str - """ - super().__init__(**kwargs) - self.id = id - self.name = name - self.status = status - self.errors = errors - self.created_time = created_time - self.modified_time = modified_time - self.expiration_time = expiration_time - self.geo_master_operation_id = geo_master_operation_id - - -class OutboundVnetRouting(_serialization.Model): - """Outbound traffic options over virtual network. - - :ivar all_traffic: Enables all other routing options defined in OutboundVnetRouting if this - setting is set to true. - :vartype all_traffic: bool - :ivar application_traffic: This causes all outbound traffic to have Virtual Network Security - Groups and User Defined Routes applied. Previously called VnetRouteAllEnabled. - :vartype application_traffic: bool - :ivar content_share_traffic: Enables accessing content over virtual network. Previously called - VnetContentShareEnabled. - :vartype content_share_traffic: bool - :ivar image_pull_traffic: Enables pulling image over Virtual Network. Previously called - VnetImagePullEnabled. - :vartype image_pull_traffic: bool - :ivar backup_restore_traffic: Enables Backup and Restore operations over virtual network. - Previously called VnetBackupRestoreEnabled. - :vartype backup_restore_traffic: bool - """ - - _attribute_map = { - "all_traffic": {"key": "allTraffic", "type": "bool"}, - "application_traffic": {"key": "applicationTraffic", "type": "bool"}, - "content_share_traffic": {"key": "contentShareTraffic", "type": "bool"}, - "image_pull_traffic": {"key": "imagePullTraffic", "type": "bool"}, - "backup_restore_traffic": {"key": "backupRestoreTraffic", "type": "bool"}, - } - - def __init__( - self, - *, - all_traffic: Optional[bool] = None, - application_traffic: Optional[bool] = None, - content_share_traffic: Optional[bool] = None, - image_pull_traffic: Optional[bool] = None, - backup_restore_traffic: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword all_traffic: Enables all other routing options defined in OutboundVnetRouting if this - setting is set to true. - :paramtype all_traffic: bool - :keyword application_traffic: This causes all outbound traffic to have Virtual Network Security - Groups and User Defined Routes applied. Previously called VnetRouteAllEnabled. - :paramtype application_traffic: bool - :keyword content_share_traffic: Enables accessing content over virtual network. Previously - called VnetContentShareEnabled. - :paramtype content_share_traffic: bool - :keyword image_pull_traffic: Enables pulling image over Virtual Network. Previously called - VnetImagePullEnabled. - :paramtype image_pull_traffic: bool - :keyword backup_restore_traffic: Enables Backup and Restore operations over virtual network. - Previously called VnetBackupRestoreEnabled. - :paramtype backup_restore_traffic: bool - """ - super().__init__(**kwargs) - self.all_traffic = all_traffic - self.application_traffic = application_traffic - self.content_share_traffic = content_share_traffic - self.image_pull_traffic = image_pull_traffic - self.backup_restore_traffic = backup_restore_traffic - - -class PrivateEndpointConnectionCollection(_serialization.Model): - """PrivateEndpointConnectionCollection. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of resources. Required. - :vartype value: - list[~azure.mgmt.domainregistration.models.RemotePrivateEndpointConnectionARMResource] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[RemotePrivateEndpointConnectionARMResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.RemotePrivateEndpointConnectionARMResource"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: - list[~azure.mgmt.domainregistration.models.RemotePrivateEndpointConnectionARMResource] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class PrivateLinkConnectionApprovalRequestResource(ProxyOnlyResource): # pylint: disable=name-too-long - """Private Endpoint Connection Approval ARM resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar private_link_service_connection_state: The state of a private link connection. - :vartype private_link_service_connection_state: - ~azure.mgmt.domainregistration.models.PrivateLinkConnectionState - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "private_link_service_connection_state": { - "key": "properties.privateLinkServiceConnectionState", - "type": "PrivateLinkConnectionState", - }, - } - - def __init__( - self, - *, - kind: Optional[str] = None, - private_link_service_connection_state: Optional["_models.PrivateLinkConnectionState"] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - :keyword private_link_service_connection_state: The state of a private link connection. - :paramtype private_link_service_connection_state: - ~azure.mgmt.domainregistration.models.PrivateLinkConnectionState - """ - super().__init__(kind=kind, **kwargs) - self.private_link_service_connection_state = private_link_service_connection_state - - -class PrivateLinkConnectionState(_serialization.Model): - """The state of a private link connection. - - :ivar status: Status of a private link connection. - :vartype status: str - :ivar description: Description of a private link connection. - :vartype description: str - :ivar actions_required: ActionsRequired for a private link connection. - :vartype actions_required: str - """ - - _attribute_map = { - "status": {"key": "status", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "actions_required": {"key": "actionsRequired", "type": "str"}, - } - - def __init__( - self, - *, - status: Optional[str] = None, - description: Optional[str] = None, - actions_required: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword status: Status of a private link connection. - :paramtype status: str - :keyword description: Description of a private link connection. - :paramtype description: str - :keyword actions_required: ActionsRequired for a private link connection. - :paramtype actions_required: str - """ - super().__init__(**kwargs) - self.status = status - self.description = description - self.actions_required = actions_required - - -class PrivateLinkResource(_serialization.Model): - """A private link resource. - - All required parameters must be populated in order to send to server. - - :ivar id: Required. - :vartype id: str - :ivar name: Name of a private link resource. Required. - :vartype name: str - :ivar type: Required. - :vartype type: str - :ivar properties: Properties of a private link resource. Required. - :vartype properties: ~azure.mgmt.domainregistration.models.PrivateLinkResourceProperties - """ - - _validation = { - "id": {"required": True}, - "name": {"required": True}, - "type": {"required": True}, - "properties": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "PrivateLinkResourceProperties"}, - } - - def __init__( - self, - *, - id: str, # pylint: disable=redefined-builtin - name: str, - type: str, - properties: "_models.PrivateLinkResourceProperties", - **kwargs: Any - ) -> None: - """ - :keyword id: Required. - :paramtype id: str - :keyword name: Name of a private link resource. Required. - :paramtype name: str - :keyword type: Required. - :paramtype type: str - :keyword properties: Properties of a private link resource. Required. - :paramtype properties: ~azure.mgmt.domainregistration.models.PrivateLinkResourceProperties - """ - super().__init__(**kwargs) - self.id = id - self.name = name - self.type = type - self.properties = properties - - -class PrivateLinkResourceProperties(_serialization.Model): - """Properties of a private link resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar group_id: GroupId of a private link resource. - :vartype group_id: str - :ivar required_members: RequiredMembers of a private link resource. - :vartype required_members: list[str] - :ivar required_zone_names: RequiredZoneNames of a private link resource. - :vartype required_zone_names: list[str] - """ - - _validation = { - "group_id": {"readonly": True}, - "required_members": {"readonly": True}, - "required_zone_names": {"readonly": True}, - } - - _attribute_map = { - "group_id": {"key": "groupId", "type": "str"}, - "required_members": {"key": "requiredMembers", "type": "[str]"}, - "required_zone_names": {"key": "requiredZoneNames", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.group_id: Optional[str] = None - self.required_members: Optional[list[str]] = None - self.required_zone_names: Optional[list[str]] = None - - -class PrivateLinkResourcesWrapper(_serialization.Model): - """Wrapper for a collection of private link resources. - - All required parameters must be populated in order to send to server. - - :ivar value: Required. - :vartype value: list[~azure.mgmt.domainregistration.models.PrivateLinkResource] - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[PrivateLinkResource]"}, - } - - def __init__(self, *, value: list["_models.PrivateLinkResource"], **kwargs: Any) -> None: - """ - :keyword value: Required. - :paramtype value: list[~azure.mgmt.domainregistration.models.PrivateLinkResource] - """ - super().__init__(**kwargs) - self.value = value - - -class PushSettings(ProxyOnlyResource): - """Push settings for the App. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar is_push_enabled: Gets or sets a flag indicating whether the Push endpoint is enabled. - :vartype is_push_enabled: bool - :ivar tag_whitelist_json: Gets or sets a JSON string containing a list of tags that are - whitelisted for use by the push registration endpoint. - :vartype tag_whitelist_json: str - :ivar tags_requiring_auth: Gets or sets a JSON string containing a list of tags that require - user authentication to be used in the push registration endpoint. - Tags can consist of alphanumeric characters and the following: - '_', '@', '#', '.', ':', '-'. - Validation should be performed at the PushRequestHandler. - :vartype tags_requiring_auth: str - :ivar dynamic_tags_json: Gets or sets a JSON string containing a list of dynamic tags that will - be evaluated from user claims in the push registration endpoint. - :vartype dynamic_tags_json: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "is_push_enabled": {"key": "properties.isPushEnabled", "type": "bool"}, - "tag_whitelist_json": {"key": "properties.tagWhitelistJson", "type": "str"}, - "tags_requiring_auth": {"key": "properties.tagsRequiringAuth", "type": "str"}, - "dynamic_tags_json": {"key": "properties.dynamicTagsJson", "type": "str"}, - } - - def __init__( - self, - *, - kind: Optional[str] = None, - is_push_enabled: Optional[bool] = None, - tag_whitelist_json: Optional[str] = None, - tags_requiring_auth: Optional[str] = None, - dynamic_tags_json: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - :keyword is_push_enabled: Gets or sets a flag indicating whether the Push endpoint is enabled. - :paramtype is_push_enabled: bool - :keyword tag_whitelist_json: Gets or sets a JSON string containing a list of tags that are - whitelisted for use by the push registration endpoint. - :paramtype tag_whitelist_json: str - :keyword tags_requiring_auth: Gets or sets a JSON string containing a list of tags that require - user authentication to be used in the push registration endpoint. - Tags can consist of alphanumeric characters and the following: - '_', '@', '#', '.', ':', '-'. - Validation should be performed at the PushRequestHandler. - :paramtype tags_requiring_auth: str - :keyword dynamic_tags_json: Gets or sets a JSON string containing a list of dynamic tags that - will be evaluated from user claims in the push registration endpoint. - :paramtype dynamic_tags_json: str - """ - super().__init__(kind=kind, **kwargs) - self.is_push_enabled = is_push_enabled - self.tag_whitelist_json = tag_whitelist_json - self.tags_requiring_auth = tags_requiring_auth - self.dynamic_tags_json = dynamic_tags_json - - -class QueryUtterancesResult(_serialization.Model): - """Result for utterances query. - - :ivar sample_utterance: A sample utterance. - :vartype sample_utterance: ~azure.mgmt.domainregistration.models.SampleUtterance - :ivar score: Score of a sample utterance. - :vartype score: float - """ - - _attribute_map = { - "sample_utterance": {"key": "sampleUtterance", "type": "SampleUtterance"}, - "score": {"key": "score", "type": "float"}, - } - - def __init__( - self, - *, - sample_utterance: Optional["_models.SampleUtterance"] = None, - score: Optional[float] = None, - **kwargs: Any - ) -> None: - """ - :keyword sample_utterance: A sample utterance. - :paramtype sample_utterance: ~azure.mgmt.domainregistration.models.SampleUtterance - :keyword score: Score of a sample utterance. - :paramtype score: float - """ - super().__init__(**kwargs) - self.sample_utterance = sample_utterance - self.score = score - - -class QueryUtterancesResults(_serialization.Model): - """Suggested utterances where the detector can be applicable. - - :ivar query: Search Query. - :vartype query: str - :ivar results: Array of utterance results for search query. - :vartype results: list[~azure.mgmt.domainregistration.models.QueryUtterancesResult] - """ - - _attribute_map = { - "query": {"key": "query", "type": "str"}, - "results": {"key": "results", "type": "[QueryUtterancesResult]"}, - } - - def __init__( - self, - *, - query: Optional[str] = None, - results: Optional[list["_models.QueryUtterancesResult"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword query: Search Query. - :paramtype query: str - :keyword results: Array of utterance results for search query. - :paramtype results: list[~azure.mgmt.domainregistration.models.QueryUtterancesResult] - """ - super().__init__(**kwargs) - self.query = query - self.results = results - - -class QueueScaleRule(_serialization.Model): - """Container App container Azure Queue based scaling rule. - - :ivar queue_name: Queue name. - :vartype queue_name: str - :ivar queue_length: Queue length. - :vartype queue_length: int - :ivar auth: Authentication secrets for the queue scale rule. - :vartype auth: list[~azure.mgmt.domainregistration.models.ScaleRuleAuth] - """ - - _attribute_map = { - "queue_name": {"key": "queueName", "type": "str"}, - "queue_length": {"key": "queueLength", "type": "int"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - queue_name: Optional[str] = None, - queue_length: Optional[int] = None, - auth: Optional[list["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword queue_name: Queue name. - :paramtype queue_name: str - :keyword queue_length: Queue length. - :paramtype queue_length: int - :keyword auth: Authentication secrets for the queue scale rule. - :paramtype auth: list[~azure.mgmt.domainregistration.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.queue_name = queue_name - self.queue_length = queue_length - self.auth = auth - - -class RampUpRule(_serialization.Model): - """Routing rules for ramp up testing. This rule allows to redirect static traffic % to a slot or - to gradually change routing % based on performance. - - :ivar action_host_name: Hostname of a slot to which the traffic will be redirected if decided - to. E.g. myapp-stage.azurewebsites.net. - :vartype action_host_name: str - :ivar reroute_percentage: Percentage of the traffic which will be redirected to - :code:`ActionHostName`. - :vartype reroute_percentage: float - :ivar change_step: In auto ramp up scenario this is the step to add/remove from - :code:`ReroutePercentage` until it reaches \\n\\ - :code:`MinReroutePercentage` or - :code:`MaxReroutePercentage`. Site metrics are checked every N minutes specified - in :code:`ChangeIntervalInMinutes`.\\nCustom decision algorithm - can be provided in TiPCallback site extension which URL can be specified in - :code:`ChangeDecisionCallbackUrl`. - :vartype change_step: float - :ivar change_interval_in_minutes: Specifies interval in minutes to reevaluate - ReroutePercentage. - :vartype change_interval_in_minutes: int - :ivar min_reroute_percentage: Specifies lower boundary above which ReroutePercentage will stay. - :vartype min_reroute_percentage: float - :ivar max_reroute_percentage: Specifies upper boundary below which ReroutePercentage will stay. - :vartype max_reroute_percentage: float - :ivar change_decision_callback_url: Custom decision algorithm can be provided in TiPCallback - site extension which URL can be specified. - :vartype change_decision_callback_url: str - :ivar name: Name of the routing rule. The recommended name would be to point to the slot which - will receive the traffic in the experiment. - :vartype name: str - """ - - _attribute_map = { - "action_host_name": {"key": "actionHostName", "type": "str"}, - "reroute_percentage": {"key": "reroutePercentage", "type": "float"}, - "change_step": {"key": "changeStep", "type": "float"}, - "change_interval_in_minutes": {"key": "changeIntervalInMinutes", "type": "int"}, - "min_reroute_percentage": {"key": "minReroutePercentage", "type": "float"}, - "max_reroute_percentage": {"key": "maxReroutePercentage", "type": "float"}, - "change_decision_callback_url": {"key": "changeDecisionCallbackUrl", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__( - self, - *, - action_host_name: Optional[str] = None, - reroute_percentage: Optional[float] = None, - change_step: Optional[float] = None, - change_interval_in_minutes: Optional[int] = None, - min_reroute_percentage: Optional[float] = None, - max_reroute_percentage: Optional[float] = None, - change_decision_callback_url: Optional[str] = None, - name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword action_host_name: Hostname of a slot to which the traffic will be redirected if - decided to. E.g. myapp-stage.azurewebsites.net. - :paramtype action_host_name: str - :keyword reroute_percentage: Percentage of the traffic which will be redirected to - :code:`ActionHostName`. - :paramtype reroute_percentage: float - :keyword change_step: In auto ramp up scenario this is the step to add/remove from - :code:`ReroutePercentage` until it reaches \\n\\ - :code:`MinReroutePercentage` or - :code:`MaxReroutePercentage`. Site metrics are checked every N minutes specified - in :code:`ChangeIntervalInMinutes`.\\nCustom decision algorithm - can be provided in TiPCallback site extension which URL can be specified in - :code:`ChangeDecisionCallbackUrl`. - :paramtype change_step: float - :keyword change_interval_in_minutes: Specifies interval in minutes to reevaluate - ReroutePercentage. - :paramtype change_interval_in_minutes: int - :keyword min_reroute_percentage: Specifies lower boundary above which ReroutePercentage will - stay. - :paramtype min_reroute_percentage: float - :keyword max_reroute_percentage: Specifies upper boundary below which ReroutePercentage will - stay. - :paramtype max_reroute_percentage: float - :keyword change_decision_callback_url: Custom decision algorithm can be provided in TiPCallback - site extension which URL can be specified. - :paramtype change_decision_callback_url: str - :keyword name: Name of the routing rule. The recommended name would be to point to the slot - which will receive the traffic in the experiment. - :paramtype name: str - """ - super().__init__(**kwargs) - self.action_host_name = action_host_name - self.reroute_percentage = reroute_percentage - self.change_step = change_step - self.change_interval_in_minutes = change_interval_in_minutes - self.min_reroute_percentage = min_reroute_percentage - self.max_reroute_percentage = max_reroute_percentage - self.change_decision_callback_url = change_decision_callback_url - self.name = name - - -class RemotePrivateEndpointConnectionARMResource(ProxyOnlyResource): # pylint: disable=name-too-long - """Remote Private Endpoint Connection ARM resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar provisioning_state: - :vartype provisioning_state: str - :ivar private_endpoint: PrivateEndpoint of a remote private endpoint connection. - :vartype private_endpoint: ~azure.mgmt.domainregistration.models.ArmIdWrapper - :ivar private_link_service_connection_state: The state of a private link connection. - :vartype private_link_service_connection_state: - ~azure.mgmt.domainregistration.models.PrivateLinkConnectionState - :ivar ip_addresses: Private IPAddresses mapped to the remote private endpoint. - :vartype ip_addresses: list[str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "private_endpoint": {"key": "properties.privateEndpoint", "type": "ArmIdWrapper"}, - "private_link_service_connection_state": { - "key": "properties.privateLinkServiceConnectionState", - "type": "PrivateLinkConnectionState", - }, - "ip_addresses": {"key": "properties.ipAddresses", "type": "[str]"}, - } - - def __init__( - self, - *, - kind: Optional[str] = None, - private_endpoint: Optional["_models.ArmIdWrapper"] = None, - private_link_service_connection_state: Optional["_models.PrivateLinkConnectionState"] = None, - ip_addresses: Optional[list[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - :keyword private_endpoint: PrivateEndpoint of a remote private endpoint connection. - :paramtype private_endpoint: ~azure.mgmt.domainregistration.models.ArmIdWrapper - :keyword private_link_service_connection_state: The state of a private link connection. - :paramtype private_link_service_connection_state: - ~azure.mgmt.domainregistration.models.PrivateLinkConnectionState - :keyword ip_addresses: Private IPAddresses mapped to the remote private endpoint. - :paramtype ip_addresses: list[str] - """ - super().__init__(kind=kind, **kwargs) - self.provisioning_state: Optional[str] = None - self.private_endpoint = private_endpoint - self.private_link_service_connection_state = private_link_service_connection_state - self.ip_addresses = ip_addresses - - -class Rendering(_serialization.Model): - """Instructions for rendering the data. - - :ivar type: Rendering Type. Known values are: "NoGraph", "Table", "TimeSeries", - "TimeSeriesPerInstance", "PieChart", "DataSummary", "Email", "Insights", "DynamicInsight", - "Markdown", "Detector", "DropDown", "Card", "Solution", "Guage", "Form", "ChangeSets", - "ChangeAnalysisOnboarding", "ChangesView", "AppInsight", "DependencyGraph", "DownTime", - "SummaryCard", "SearchComponent", and "AppInsightEnablement". - :vartype type: str or ~azure.mgmt.domainregistration.models.RenderingType - :ivar title: Title of data. - :vartype title: str - :ivar description: Description of the data that will help it be interpreted. - :vartype description: str - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.RenderingType"]] = None, - title: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Rendering Type. Known values are: "NoGraph", "Table", "TimeSeries", - "TimeSeriesPerInstance", "PieChart", "DataSummary", "Email", "Insights", "DynamicInsight", - "Markdown", "Detector", "DropDown", "Card", "Solution", "Guage", "Form", "ChangeSets", - "ChangeAnalysisOnboarding", "ChangesView", "AppInsight", "DependencyGraph", "DownTime", - "SummaryCard", "SearchComponent", and "AppInsightEnablement". - :paramtype type: str or ~azure.mgmt.domainregistration.models.RenderingType - :keyword title: Title of data. - :paramtype title: str - :keyword description: Description of the data that will help it be interpreted. - :paramtype description: str - """ - super().__init__(**kwargs) - self.type = type - self.title = title - self.description = description - - -class RequestsBasedTrigger(_serialization.Model): - """Trigger based on total requests. - - :ivar count: Request Count. - :vartype count: int - :ivar time_interval: Time interval. - :vartype time_interval: str - """ - - _attribute_map = { - "count": {"key": "count", "type": "int"}, - "time_interval": {"key": "timeInterval", "type": "str"}, - } - - def __init__(self, *, count: Optional[int] = None, time_interval: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword count: Request Count. - :paramtype count: int - :keyword time_interval: Time interval. - :paramtype time_interval: str - """ - super().__init__(**kwargs) - self.count = count - self.time_interval = time_interval - - -class ResourceConfig(_serialization.Model): - """Function app resource requirements. - - :ivar cpu: Required CPU in cores, e.g. 0.5. - :vartype cpu: float - :ivar memory: Required memory, e.g. "1Gi". - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "float"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[float] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU in cores, e.g. 0.5. - :paramtype cpu: float - :keyword memory: Required memory, e.g. "1Gi". - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class SampleUtterance(_serialization.Model): - """Sample utterance. - - :ivar text: Text attribute of sample utterance. - :vartype text: str - :ivar links: Links attribute of sample utterance. - :vartype links: list[str] - :ivar qid: Question id of sample utterance (for stackoverflow questions titles). - :vartype qid: str - """ - - _attribute_map = { - "text": {"key": "text", "type": "str"}, - "links": {"key": "links", "type": "[str]"}, - "qid": {"key": "qid", "type": "str"}, - } - - def __init__( - self, *, text: Optional[str] = None, links: Optional[list[str]] = None, qid: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword text: Text attribute of sample utterance. - :paramtype text: str - :keyword links: Links attribute of sample utterance. - :paramtype links: list[str] - :keyword qid: Question id of sample utterance (for stackoverflow questions titles). - :paramtype qid: str - """ - super().__init__(**kwargs) - self.text = text - self.links = links - self.qid = qid - - -class Scale(_serialization.Model): - """Container App scaling configurations. - - :ivar min_replicas: Optional. Minimum number of container replicas. - :vartype min_replicas: int - :ivar max_replicas: Optional. Maximum number of container replicas. Defaults to 10 if not set. - :vartype max_replicas: int - :ivar rules: Scaling rules. - :vartype rules: list[~azure.mgmt.domainregistration.models.ScaleRule] - """ - - _attribute_map = { - "min_replicas": {"key": "minReplicas", "type": "int"}, - "max_replicas": {"key": "maxReplicas", "type": "int"}, - "rules": {"key": "rules", "type": "[ScaleRule]"}, - } - - def __init__( - self, - *, - min_replicas: Optional[int] = None, - max_replicas: Optional[int] = None, - rules: Optional[list["_models.ScaleRule"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword min_replicas: Optional. Minimum number of container replicas. - :paramtype min_replicas: int - :keyword max_replicas: Optional. Maximum number of container replicas. Defaults to 10 if not - set. - :paramtype max_replicas: int - :keyword rules: Scaling rules. - :paramtype rules: list[~azure.mgmt.domainregistration.models.ScaleRule] - """ - super().__init__(**kwargs) - self.min_replicas = min_replicas - self.max_replicas = max_replicas - self.rules = rules - - -class ScaleRule(_serialization.Model): - """Container App container scaling rule. - - :ivar name: Scale Rule Name. - :vartype name: str - :ivar azure_queue: Azure Queue based scaling. - :vartype azure_queue: ~azure.mgmt.domainregistration.models.QueueScaleRule - :ivar custom: Custom scale rule. - :vartype custom: ~azure.mgmt.domainregistration.models.CustomScaleRule - :ivar http: HTTP requests based scaling. - :vartype http: ~azure.mgmt.domainregistration.models.HttpScaleRule - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "azure_queue": {"key": "azureQueue", "type": "QueueScaleRule"}, - "custom": {"key": "custom", "type": "CustomScaleRule"}, - "http": {"key": "http", "type": "HttpScaleRule"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - azure_queue: Optional["_models.QueueScaleRule"] = None, - custom: Optional["_models.CustomScaleRule"] = None, - http: Optional["_models.HttpScaleRule"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Scale Rule Name. - :paramtype name: str - :keyword azure_queue: Azure Queue based scaling. - :paramtype azure_queue: ~azure.mgmt.domainregistration.models.QueueScaleRule - :keyword custom: Custom scale rule. - :paramtype custom: ~azure.mgmt.domainregistration.models.CustomScaleRule - :keyword http: HTTP requests based scaling. - :paramtype http: ~azure.mgmt.domainregistration.models.HttpScaleRule - """ - super().__init__(**kwargs) - self.name = name - self.azure_queue = azure_queue - self.custom = custom - self.http = http - - -class ScaleRuleAuth(_serialization.Model): - """Auth Secrets for Container App Scale Rule. - - :ivar secret_ref: Name of the Container App secret from which to pull the auth params. - :vartype secret_ref: str - :ivar trigger_parameter: Trigger Parameter that uses the secret. - :vartype trigger_parameter: str - """ - - _attribute_map = { - "secret_ref": {"key": "secretRef", "type": "str"}, - "trigger_parameter": {"key": "triggerParameter", "type": "str"}, - } - - def __init__( - self, *, secret_ref: Optional[str] = None, trigger_parameter: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword secret_ref: Name of the Container App secret from which to pull the auth params. - :paramtype secret_ref: str - :keyword trigger_parameter: Trigger Parameter that uses the secret. - :paramtype trigger_parameter: str - """ - super().__init__(**kwargs) - self.secret_ref = secret_ref - self.trigger_parameter = trigger_parameter - - -class ServiceSpecification(_serialization.Model): - """Resource metrics service provided by Microsoft.Insights resource provider. - - :ivar metric_specifications: - :vartype metric_specifications: list[~azure.mgmt.domainregistration.models.MetricSpecification] - :ivar log_specifications: - :vartype log_specifications: list[~azure.mgmt.domainregistration.models.LogSpecification] - """ - - _attribute_map = { - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - } - - def __init__( - self, - *, - metric_specifications: Optional[list["_models.MetricSpecification"]] = None, - log_specifications: Optional[list["_models.LogSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword metric_specifications: - :paramtype metric_specifications: - list[~azure.mgmt.domainregistration.models.MetricSpecification] - :keyword log_specifications: - :paramtype log_specifications: list[~azure.mgmt.domainregistration.models.LogSpecification] - """ - super().__init__(**kwargs) - self.metric_specifications = metric_specifications - self.log_specifications = log_specifications - - -class Site(Resource): - """A web app, a mobile app backend, or an API app. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. If the resource is an app, you can refer to - https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference - for details supported values for kind. - :vartype kind: str - :ivar location: Resource Location. Required. - :vartype location: str - :ivar type: Resource type. - :vartype type: str - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar identity: Managed service identity. - :vartype identity: ~azure.mgmt.domainregistration.models.ManagedServiceIdentity - :ivar extended_location: Extended Location. - :vartype extended_location: ~azure.mgmt.domainregistration.models.ExtendedLocation - :ivar state: Current state of the app. - :vartype state: str - :ivar host_names: Hostnames associated with the app. - :vartype host_names: list[str] - :ivar repository_site_name: Name of the repository site. - :vartype repository_site_name: str - :ivar usage_state: State indicating whether the app has exceeded its quota usage. Read-only. - Known values are: "Normal" and "Exceeded". - :vartype usage_state: str or ~azure.mgmt.domainregistration.models.UsageState - :ivar enabled: :code:`true` if the app is enabled; otherwise, - :code:`false`. Setting this value to false disables the app (takes the app - offline). - :vartype enabled: bool - :ivar enabled_host_names: Enabled hostnames for the app.Hostnames need to be assigned (see - HostNames) AND enabled. Otherwise, - the app is not served on those hostnames. - :vartype enabled_host_names: list[str] - :ivar availability_state: Management information availability state for the app. Known values - are: "Normal", "Limited", and "DisasterRecoveryMode". - :vartype availability_state: str or ~azure.mgmt.domainregistration.models.SiteAvailabilityState - :ivar host_name_ssl_states: Hostname SSL states are used to manage the SSL bindings for app's - hostnames. - :vartype host_name_ssl_states: list[~azure.mgmt.domainregistration.models.HostNameSslState] - :ivar server_farm_id: Resource ID of the associated App Service plan, formatted as: - "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". - :vartype server_farm_id: str - :ivar reserved: :code:`true` if reserved; otherwise, :code:`false`. - :vartype reserved: bool - :ivar is_xenon: Obsolete: Hyper-V sandbox. - :vartype is_xenon: bool - :ivar hyper_v: Hyper-V sandbox. - :vartype hyper_v: bool - :ivar last_modified_time_utc: Last time the app was modified, in UTC. Read-only. - :vartype last_modified_time_utc: ~datetime.datetime - :ivar dns_configuration: Property to configure various DNS related settings for a site. - :vartype dns_configuration: ~azure.mgmt.domainregistration.models.SiteDnsConfig - :ivar outbound_vnet_routing: Property to configure various outbound traffic routing options - over virtual network for a site. - :vartype outbound_vnet_routing: ~azure.mgmt.domainregistration.models.OutboundVnetRouting - :ivar site_config: Configuration of an App Service app. This property is not returned in - response to normal create and read requests since it may contain sensitive information. - :vartype site_config: ~azure.mgmt.domainregistration.models.SiteConfig - :ivar function_app_config: Configuration specific of the Azure Function app. - :vartype function_app_config: ~azure.mgmt.domainregistration.models.FunctionAppConfig - :ivar dapr_config: Dapr configuration of the app. - :vartype dapr_config: ~azure.mgmt.domainregistration.models.DaprConfig - :ivar workload_profile_name: Workload profile name for function app to execute on. - :vartype workload_profile_name: str - :ivar resource_config: Function app resource requirements. - :vartype resource_config: ~azure.mgmt.domainregistration.models.ResourceConfig - :ivar traffic_manager_host_names: Azure Traffic Manager hostnames associated with the app. - Read-only. - :vartype traffic_manager_host_names: list[str] - :ivar scm_site_also_stopped: :code:`true` to stop SCM (KUDU) site when the app is - stopped; otherwise, :code:`false`. The default is :code:`false`. - :vartype scm_site_also_stopped: bool - :ivar target_swap_slot: Specifies which deployment slot this app will swap into. Read-only. - :vartype target_swap_slot: str - :ivar hosting_environment_profile: App Service Environment to use for the app. - :vartype hosting_environment_profile: - ~azure.mgmt.domainregistration.models.HostingEnvironmentProfile - :ivar client_affinity_enabled: :code:`true` to enable client affinity; - :code:`false` to stop sending session affinity cookies, which route client - requests in the same session to the same instance. Default is :code:`true`. - :vartype client_affinity_enabled: bool - :ivar client_affinity_partitioning_enabled: :code:`true` to enable client affinity - partitioning using CHIPS cookies, this will add the :code:`partitioned` property - to the affinity cookies; :code:`false` to stop sending partitioned affinity - cookies. Default is :code:`false`. - :vartype client_affinity_partitioning_enabled: bool - :ivar client_affinity_proxy_enabled: :code:`true` to override client affinity - cookie domain with X-Forwarded-Host request header. :code:`false` to use default - domain. Default is :code:`false`. - :vartype client_affinity_proxy_enabled: bool - :ivar client_cert_enabled: :code:`true` to enable client certificate - authentication (TLS mutual authentication); otherwise, :code:`false`. Default is - :code:`false`. - :vartype client_cert_enabled: bool - :ivar client_cert_mode: This composes with ClientCertEnabled setting. - * ClientCertEnabled: false means ClientCert is ignored. - * ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required. - * ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or - accepted. Known values are: "Required", "Optional", and "OptionalInteractiveUser". - :vartype client_cert_mode: str or ~azure.mgmt.domainregistration.models.ClientCertMode - :ivar client_cert_exclusion_paths: client certificate authentication comma-separated exclusion - paths. - :vartype client_cert_exclusion_paths: str - :ivar ip_mode: Specifies the IP mode of the app. Known values are: "IPv4", "IPv6", and - "IPv4AndIPv6". - :vartype ip_mode: str or ~azure.mgmt.domainregistration.models.IPMode - :ivar end_to_end_encryption_enabled: Whether to use end to end encryption between the FrontEnd - and the Worker. - :vartype end_to_end_encryption_enabled: bool - :ivar ssh_enabled: Whether to enable ssh access. - :vartype ssh_enabled: bool - :ivar host_names_disabled: :code:`true` to disable the public hostnames of the - app; otherwise, :code:`false`. - If :code:`true`, the app is only accessible via API management process. - :vartype host_names_disabled: bool - :ivar custom_domain_verification_id: Unique identifier that verifies the custom domains - assigned to the app. Customer will add this id to a txt record for verification. - :vartype custom_domain_verification_id: str - :ivar outbound_ip_addresses: List of IP addresses that the app uses for outbound connections - (e.g. database access). Includes VIPs from tenants that site can be hosted with current - settings. Read-only. - :vartype outbound_ip_addresses: str - :ivar possible_outbound_ip_addresses: List of IP addresses that the app uses for outbound - connections (e.g. database access). Includes VIPs from all tenants except dataComponent. - Read-only. - :vartype possible_outbound_ip_addresses: str - :ivar container_size: Size of the function container. - :vartype container_size: int - :ivar daily_memory_time_quota: Maximum allowed daily memory-time quota (applicable on dynamic - apps only). - :vartype daily_memory_time_quota: int - :ivar suspended_till: App suspended till in case memory-time quota is exceeded. - :vartype suspended_till: ~datetime.datetime - :ivar max_number_of_workers: Maximum number of workers. - This only applies to Functions container. - :vartype max_number_of_workers: int - :ivar cloning_info: If specified during app creation, the app is cloned from a source app. - :vartype cloning_info: ~azure.mgmt.domainregistration.models.CloningInfo - :ivar resource_group: Name of the resource group the app belongs to. Read-only. - :vartype resource_group: str - :ivar is_default_container: :code:`true` if the app is a default container; - otherwise, :code:`false`. - :vartype is_default_container: bool - :ivar default_host_name: Default hostname of the app. Read-only. - :vartype default_host_name: str - :ivar slot_swap_status: Status of the last deployment slot swap operation. - :vartype slot_swap_status: ~azure.mgmt.domainregistration.models.SlotSwapStatus - :ivar https_only: HttpsOnly: configures a web site to accept only https requests. Issues - redirect for - http requests. - :vartype https_only: bool - :ivar redundancy_mode: Site redundancy mode. Known values are: "None", "Manual", "Failover", - "ActiveActive", and "GeoRedundant". - :vartype redundancy_mode: str or ~azure.mgmt.domainregistration.models.RedundancyMode - :ivar in_progress_operation_id: Specifies an operation id if this site has a pending operation. - :vartype in_progress_operation_id: str - :ivar public_network_access: Property to allow or block all public traffic. Allowed Values: - 'Enabled', 'Disabled' or an empty string. - :vartype public_network_access: str - :ivar storage_account_required: Checks if Customer provided storage account is required. - :vartype storage_account_required: bool - :ivar key_vault_reference_identity: Identity to use for Key Vault Reference authentication. - :vartype key_vault_reference_identity: str - :ivar auto_generated_domain_name_label_scope: Specifies the scope of uniqueness for the default - hostname during resource creation. Known values are: "TenantReuse", "SubscriptionReuse", - "ResourceGroupReuse", and "NoReuse". - :vartype auto_generated_domain_name_label_scope: str or - ~azure.mgmt.domainregistration.models.AutoGeneratedDomainNameLabelScope - :ivar virtual_network_subnet_id: 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}. - :vartype virtual_network_subnet_id: str - :ivar managed_environment_id: Azure Resource Manager ID of the customer's selected Managed - Environment on which to host this app. This must be of the form - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}. - :vartype managed_environment_id: str - :ivar sku: Current SKU of application based on associated App Service Plan. Some valid SKU - values are Free, Shared, Basic, Dynamic, FlexConsumption, Standard, Premium, PremiumV2, - PremiumV3, Isolated, IsolatedV2. - :vartype sku: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "location": {"required": True}, - "type": {"readonly": True}, - "state": {"readonly": True}, - "host_names": {"readonly": True}, - "repository_site_name": {"readonly": True}, - "usage_state": {"readonly": True}, - "enabled_host_names": {"readonly": True}, - "availability_state": {"readonly": True}, - "last_modified_time_utc": {"readonly": True}, - "traffic_manager_host_names": {"readonly": True}, - "target_swap_slot": {"readonly": True}, - "outbound_ip_addresses": {"readonly": True}, - "possible_outbound_ip_addresses": {"readonly": True}, - "suspended_till": {"readonly": True}, - "max_number_of_workers": {"readonly": True}, - "resource_group": {"readonly": True}, - "is_default_container": {"readonly": True}, - "default_host_name": {"readonly": True}, - "slot_swap_status": {"readonly": True}, - "in_progress_operation_id": {"readonly": True}, - "sku": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "identity": {"key": "identity", "type": "ManagedServiceIdentity"}, - "extended_location": {"key": "extendedLocation", "type": "ExtendedLocation"}, - "state": {"key": "properties.state", "type": "str"}, - "host_names": {"key": "properties.hostNames", "type": "[str]"}, - "repository_site_name": {"key": "properties.repositorySiteName", "type": "str"}, - "usage_state": {"key": "properties.usageState", "type": "str"}, - "enabled": {"key": "properties.enabled", "type": "bool"}, - "enabled_host_names": {"key": "properties.enabledHostNames", "type": "[str]"}, - "availability_state": {"key": "properties.availabilityState", "type": "str"}, - "host_name_ssl_states": {"key": "properties.hostNameSslStates", "type": "[HostNameSslState]"}, - "server_farm_id": {"key": "properties.serverFarmId", "type": "str"}, - "reserved": {"key": "properties.reserved", "type": "bool"}, - "is_xenon": {"key": "properties.isXenon", "type": "bool"}, - "hyper_v": {"key": "properties.hyperV", "type": "bool"}, - "last_modified_time_utc": {"key": "properties.lastModifiedTimeUtc", "type": "iso-8601"}, - "dns_configuration": {"key": "properties.dnsConfiguration", "type": "SiteDnsConfig"}, - "outbound_vnet_routing": {"key": "properties.outboundVnetRouting", "type": "OutboundVnetRouting"}, - "site_config": {"key": "properties.siteConfig", "type": "SiteConfig"}, - "function_app_config": {"key": "properties.functionAppConfig", "type": "FunctionAppConfig"}, - "dapr_config": {"key": "properties.daprConfig", "type": "DaprConfig"}, - "workload_profile_name": {"key": "properties.workloadProfileName", "type": "str"}, - "resource_config": {"key": "properties.resourceConfig", "type": "ResourceConfig"}, - "traffic_manager_host_names": {"key": "properties.trafficManagerHostNames", "type": "[str]"}, - "scm_site_also_stopped": {"key": "properties.scmSiteAlsoStopped", "type": "bool"}, - "target_swap_slot": {"key": "properties.targetSwapSlot", "type": "str"}, - "hosting_environment_profile": { - "key": "properties.hostingEnvironmentProfile", - "type": "HostingEnvironmentProfile", - }, - "client_affinity_enabled": {"key": "properties.clientAffinityEnabled", "type": "bool"}, - "client_affinity_partitioning_enabled": {"key": "properties.clientAffinityPartitioningEnabled", "type": "bool"}, - "client_affinity_proxy_enabled": {"key": "properties.clientAffinityProxyEnabled", "type": "bool"}, - "client_cert_enabled": {"key": "properties.clientCertEnabled", "type": "bool"}, - "client_cert_mode": {"key": "properties.clientCertMode", "type": "str"}, - "client_cert_exclusion_paths": {"key": "properties.clientCertExclusionPaths", "type": "str"}, - "ip_mode": {"key": "properties.ipMode", "type": "str"}, - "end_to_end_encryption_enabled": {"key": "properties.endToEndEncryptionEnabled", "type": "bool"}, - "ssh_enabled": {"key": "properties.sshEnabled", "type": "bool"}, - "host_names_disabled": {"key": "properties.hostNamesDisabled", "type": "bool"}, - "custom_domain_verification_id": {"key": "properties.customDomainVerificationId", "type": "str"}, - "outbound_ip_addresses": {"key": "properties.outboundIpAddresses", "type": "str"}, - "possible_outbound_ip_addresses": {"key": "properties.possibleOutboundIpAddresses", "type": "str"}, - "container_size": {"key": "properties.containerSize", "type": "int"}, - "daily_memory_time_quota": {"key": "properties.dailyMemoryTimeQuota", "type": "int"}, - "suspended_till": {"key": "properties.suspendedTill", "type": "iso-8601"}, - "max_number_of_workers": {"key": "properties.maxNumberOfWorkers", "type": "int"}, - "cloning_info": {"key": "properties.cloningInfo", "type": "CloningInfo"}, - "resource_group": {"key": "properties.resourceGroup", "type": "str"}, - "is_default_container": {"key": "properties.isDefaultContainer", "type": "bool"}, - "default_host_name": {"key": "properties.defaultHostName", "type": "str"}, - "slot_swap_status": {"key": "properties.slotSwapStatus", "type": "SlotSwapStatus"}, - "https_only": {"key": "properties.httpsOnly", "type": "bool"}, - "redundancy_mode": {"key": "properties.redundancyMode", "type": "str"}, - "in_progress_operation_id": {"key": "properties.inProgressOperationId", "type": "str"}, - "public_network_access": {"key": "properties.publicNetworkAccess", "type": "str"}, - "storage_account_required": {"key": "properties.storageAccountRequired", "type": "bool"}, - "key_vault_reference_identity": {"key": "properties.keyVaultReferenceIdentity", "type": "str"}, - "auto_generated_domain_name_label_scope": { - "key": "properties.autoGeneratedDomainNameLabelScope", - "type": "str", - }, - "virtual_network_subnet_id": {"key": "properties.virtualNetworkSubnetId", "type": "str"}, - "managed_environment_id": {"key": "properties.managedEnvironmentId", "type": "str"}, - "sku": {"key": "properties.sku", "type": "str"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - location: str, - kind: Optional[str] = None, - tags: Optional[dict[str, str]] = None, - identity: Optional["_models.ManagedServiceIdentity"] = None, - extended_location: Optional["_models.ExtendedLocation"] = None, - enabled: Optional[bool] = None, - host_name_ssl_states: Optional[list["_models.HostNameSslState"]] = None, - server_farm_id: Optional[str] = None, - reserved: bool = False, - is_xenon: bool = False, - hyper_v: bool = False, - dns_configuration: Optional["_models.SiteDnsConfig"] = None, - outbound_vnet_routing: Optional["_models.OutboundVnetRouting"] = None, - site_config: Optional["_models.SiteConfig"] = None, - function_app_config: Optional["_models.FunctionAppConfig"] = None, - dapr_config: Optional["_models.DaprConfig"] = None, - workload_profile_name: Optional[str] = None, - resource_config: Optional["_models.ResourceConfig"] = None, - scm_site_also_stopped: bool = False, - hosting_environment_profile: Optional["_models.HostingEnvironmentProfile"] = None, - client_affinity_enabled: Optional[bool] = None, - client_affinity_partitioning_enabled: Optional[bool] = None, - client_affinity_proxy_enabled: Optional[bool] = None, - client_cert_enabled: Optional[bool] = None, - client_cert_mode: Optional[Union[str, "_models.ClientCertMode"]] = None, - client_cert_exclusion_paths: Optional[str] = None, - ip_mode: Optional[Union[str, "_models.IPMode"]] = None, - end_to_end_encryption_enabled: Optional[bool] = None, - ssh_enabled: Optional[bool] = None, - host_names_disabled: Optional[bool] = None, - custom_domain_verification_id: Optional[str] = None, - container_size: Optional[int] = None, - daily_memory_time_quota: Optional[int] = None, - cloning_info: Optional["_models.CloningInfo"] = None, - https_only: Optional[bool] = None, - redundancy_mode: Optional[Union[str, "_models.RedundancyMode"]] = None, - public_network_access: Optional[str] = None, - storage_account_required: Optional[bool] = None, - key_vault_reference_identity: Optional[str] = None, - auto_generated_domain_name_label_scope: Optional[ - Union[str, "_models.AutoGeneratedDomainNameLabelScope"] - ] = None, - virtual_network_subnet_id: Optional[str] = None, - managed_environment_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. If the resource is an app, you can refer to - https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference - for details supported values for kind. - :paramtype kind: str - :keyword location: Resource Location. Required. - :paramtype location: str - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - :keyword identity: Managed service identity. - :paramtype identity: ~azure.mgmt.domainregistration.models.ManagedServiceIdentity - :keyword extended_location: Extended Location. - :paramtype extended_location: ~azure.mgmt.domainregistration.models.ExtendedLocation - :keyword enabled: :code:`true` if the app is enabled; otherwise, - :code:`false`. Setting this value to false disables the app (takes the app - offline). - :paramtype enabled: bool - :keyword host_name_ssl_states: Hostname SSL states are used to manage the SSL bindings for - app's hostnames. - :paramtype host_name_ssl_states: list[~azure.mgmt.domainregistration.models.HostNameSslState] - :keyword server_farm_id: Resource ID of the associated App Service plan, formatted as: - "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". - :paramtype server_farm_id: str - :keyword reserved: :code:`true` if reserved; otherwise, - :code:`false`. - :paramtype reserved: bool - :keyword is_xenon: Obsolete: Hyper-V sandbox. - :paramtype is_xenon: bool - :keyword hyper_v: Hyper-V sandbox. - :paramtype hyper_v: bool - :keyword dns_configuration: Property to configure various DNS related settings for a site. - :paramtype dns_configuration: ~azure.mgmt.domainregistration.models.SiteDnsConfig - :keyword outbound_vnet_routing: Property to configure various outbound traffic routing options - over virtual network for a site. - :paramtype outbound_vnet_routing: ~azure.mgmt.domainregistration.models.OutboundVnetRouting - :keyword site_config: Configuration of an App Service app. This property is not returned in - response to normal create and read requests since it may contain sensitive information. - :paramtype site_config: ~azure.mgmt.domainregistration.models.SiteConfig - :keyword function_app_config: Configuration specific of the Azure Function app. - :paramtype function_app_config: ~azure.mgmt.domainregistration.models.FunctionAppConfig - :keyword dapr_config: Dapr configuration of the app. - :paramtype dapr_config: ~azure.mgmt.domainregistration.models.DaprConfig - :keyword workload_profile_name: Workload profile name for function app to execute on. - :paramtype workload_profile_name: str - :keyword resource_config: Function app resource requirements. - :paramtype resource_config: ~azure.mgmt.domainregistration.models.ResourceConfig - :keyword scm_site_also_stopped: :code:`true` to stop SCM (KUDU) site when the app - is stopped; otherwise, :code:`false`. The default is :code:`false`. - :paramtype scm_site_also_stopped: bool - :keyword hosting_environment_profile: App Service Environment to use for the app. - :paramtype hosting_environment_profile: - ~azure.mgmt.domainregistration.models.HostingEnvironmentProfile - :keyword client_affinity_enabled: :code:`true` to enable client affinity; - :code:`false` to stop sending session affinity cookies, which route client - requests in the same session to the same instance. Default is :code:`true`. - :paramtype client_affinity_enabled: bool - :keyword client_affinity_partitioning_enabled: :code:`true` to enable client - affinity partitioning using CHIPS cookies, this will add the :code:`partitioned` - property to the affinity cookies; :code:`false` to stop sending partitioned - affinity cookies. Default is :code:`false`. - :paramtype client_affinity_partitioning_enabled: bool - :keyword client_affinity_proxy_enabled: :code:`true` to override client affinity - cookie domain with X-Forwarded-Host request header. :code:`false` to use default - domain. Default is :code:`false`. - :paramtype client_affinity_proxy_enabled: bool - :keyword client_cert_enabled: :code:`true` to enable client certificate - authentication (TLS mutual authentication); otherwise, :code:`false`. Default is - :code:`false`. - :paramtype client_cert_enabled: bool - :keyword client_cert_mode: This composes with ClientCertEnabled setting. - * ClientCertEnabled: false means ClientCert is ignored. - * ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required. - * ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or - accepted. Known values are: "Required", "Optional", and "OptionalInteractiveUser". - :paramtype client_cert_mode: str or ~azure.mgmt.domainregistration.models.ClientCertMode - :keyword client_cert_exclusion_paths: client certificate authentication comma-separated - exclusion paths. - :paramtype client_cert_exclusion_paths: str - :keyword ip_mode: Specifies the IP mode of the app. Known values are: "IPv4", "IPv6", and - "IPv4AndIPv6". - :paramtype ip_mode: str or ~azure.mgmt.domainregistration.models.IPMode - :keyword end_to_end_encryption_enabled: Whether to use end to end encryption between the - FrontEnd and the Worker. - :paramtype end_to_end_encryption_enabled: bool - :keyword ssh_enabled: Whether to enable ssh access. - :paramtype ssh_enabled: bool - :keyword host_names_disabled: :code:`true` to disable the public hostnames of the - app; otherwise, :code:`false`. - If :code:`true`, the app is only accessible via API management process. - :paramtype host_names_disabled: bool - :keyword custom_domain_verification_id: Unique identifier that verifies the custom domains - assigned to the app. Customer will add this id to a txt record for verification. - :paramtype custom_domain_verification_id: str - :keyword container_size: Size of the function container. - :paramtype container_size: int - :keyword daily_memory_time_quota: Maximum allowed daily memory-time quota (applicable on - dynamic apps only). - :paramtype daily_memory_time_quota: int - :keyword cloning_info: If specified during app creation, the app is cloned from a source app. - :paramtype cloning_info: ~azure.mgmt.domainregistration.models.CloningInfo - :keyword https_only: HttpsOnly: configures a web site to accept only https requests. Issues - redirect for - http requests. - :paramtype https_only: bool - :keyword redundancy_mode: Site redundancy mode. Known values are: "None", "Manual", "Failover", - "ActiveActive", and "GeoRedundant". - :paramtype redundancy_mode: str or ~azure.mgmt.domainregistration.models.RedundancyMode - :keyword public_network_access: Property to allow or block all public traffic. Allowed Values: - 'Enabled', 'Disabled' or an empty string. - :paramtype public_network_access: str - :keyword storage_account_required: Checks if Customer provided storage account is required. - :paramtype storage_account_required: bool - :keyword key_vault_reference_identity: Identity to use for Key Vault Reference authentication. - :paramtype key_vault_reference_identity: str - :keyword auto_generated_domain_name_label_scope: Specifies the scope of uniqueness for the - default hostname during resource creation. Known values are: "TenantReuse", - "SubscriptionReuse", "ResourceGroupReuse", and "NoReuse". - :paramtype auto_generated_domain_name_label_scope: str or - ~azure.mgmt.domainregistration.models.AutoGeneratedDomainNameLabelScope - :keyword virtual_network_subnet_id: 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}. - :paramtype virtual_network_subnet_id: str - :keyword managed_environment_id: Azure Resource Manager ID of the customer's selected Managed - Environment on which to host this app. This must be of the form - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}. - :paramtype managed_environment_id: str - """ - super().__init__(kind=kind, location=location, tags=tags, **kwargs) - self.identity = identity - self.extended_location = extended_location - self.state: Optional[str] = None - self.host_names: Optional[list[str]] = None - self.repository_site_name: Optional[str] = None - self.usage_state: Optional[Union[str, "_models.UsageState"]] = None - self.enabled = enabled - self.enabled_host_names: Optional[list[str]] = None - self.availability_state: Optional[Union[str, "_models.SiteAvailabilityState"]] = None - self.host_name_ssl_states = host_name_ssl_states - self.server_farm_id = server_farm_id - self.reserved = reserved - self.is_xenon = is_xenon - self.hyper_v = hyper_v - self.last_modified_time_utc: Optional[datetime.datetime] = None - self.dns_configuration = dns_configuration - self.outbound_vnet_routing = outbound_vnet_routing - self.site_config = site_config - self.function_app_config = function_app_config - self.dapr_config = dapr_config - self.workload_profile_name = workload_profile_name - self.resource_config = resource_config - self.traffic_manager_host_names: Optional[list[str]] = None - self.scm_site_also_stopped = scm_site_also_stopped - self.target_swap_slot: Optional[str] = None - self.hosting_environment_profile = hosting_environment_profile - self.client_affinity_enabled = client_affinity_enabled - self.client_affinity_partitioning_enabled = client_affinity_partitioning_enabled - self.client_affinity_proxy_enabled = client_affinity_proxy_enabled - self.client_cert_enabled = client_cert_enabled - self.client_cert_mode = client_cert_mode - self.client_cert_exclusion_paths = client_cert_exclusion_paths - self.ip_mode = ip_mode - self.end_to_end_encryption_enabled = end_to_end_encryption_enabled - self.ssh_enabled = ssh_enabled - self.host_names_disabled = host_names_disabled - self.custom_domain_verification_id = custom_domain_verification_id - self.outbound_ip_addresses: Optional[str] = None - self.possible_outbound_ip_addresses: Optional[str] = None - self.container_size = container_size - self.daily_memory_time_quota = daily_memory_time_quota - self.suspended_till: Optional[datetime.datetime] = None - self.max_number_of_workers: Optional[int] = None - self.cloning_info = cloning_info - self.resource_group: Optional[str] = None - self.is_default_container: Optional[bool] = None - self.default_host_name: Optional[str] = None - self.slot_swap_status: Optional["_models.SlotSwapStatus"] = None - self.https_only = https_only - self.redundancy_mode = redundancy_mode - self.in_progress_operation_id: Optional[str] = None - self.public_network_access = public_network_access - self.storage_account_required = storage_account_required - self.key_vault_reference_identity = key_vault_reference_identity - self.auto_generated_domain_name_label_scope = auto_generated_domain_name_label_scope - self.virtual_network_subnet_id = virtual_network_subnet_id - self.managed_environment_id = managed_environment_id - self.sku: Optional[str] = None - - -class SiteConfig(_serialization.Model): - """Configuration of an App Service app. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar number_of_workers: Number of workers. - :vartype number_of_workers: int - :ivar default_documents: Default documents. - :vartype default_documents: list[str] - :ivar net_framework_version: .NET Framework version. - :vartype net_framework_version: str - :ivar php_version: Version of PHP. - :vartype php_version: str - :ivar python_version: Version of Python. - :vartype python_version: str - :ivar node_version: Version of Node.js. - :vartype node_version: str - :ivar power_shell_version: Version of PowerShell. - :vartype power_shell_version: str - :ivar linux_fx_version: Linux App Framework and version. - :vartype linux_fx_version: str - :ivar windows_fx_version: Xenon App Framework and version. - :vartype windows_fx_version: str - :ivar request_tracing_enabled: :code:`true` if request tracing is enabled; - otherwise, :code:`false`. - :vartype request_tracing_enabled: bool - :ivar request_tracing_expiration_time: Request tracing expiration time. - :vartype request_tracing_expiration_time: ~datetime.datetime - :ivar remote_debugging_enabled: :code:`true` if remote debugging is enabled; - otherwise, :code:`false`. - :vartype remote_debugging_enabled: bool - :ivar remote_debugging_version: Remote debugging version. - :vartype remote_debugging_version: str - :ivar http_logging_enabled: :code:`true` if HTTP logging is enabled; otherwise, - :code:`false`. - :vartype http_logging_enabled: bool - :ivar acr_use_managed_identity_creds: Flag to use Managed Identity Creds for ACR pull. - :vartype acr_use_managed_identity_creds: bool - :ivar acr_user_managed_identity_id: If using user managed identity, the user managed identity - ClientId. - :vartype acr_user_managed_identity_id: str - :ivar logs_directory_size_limit: HTTP logs directory size limit. - :vartype logs_directory_size_limit: int - :ivar detailed_error_logging_enabled: :code:`true` if detailed error logging is - enabled; otherwise, :code:`false`. - :vartype detailed_error_logging_enabled: bool - :ivar publishing_username: Publishing user name. - :vartype publishing_username: str - :ivar app_settings: Application settings. This property is not returned in response to normal - create and read requests since it may contain sensitive information. - :vartype app_settings: list[~azure.mgmt.domainregistration.models.NameValuePair] - :ivar metadata: Application metadata. This property cannot be retrieved, since it may contain - secrets. - :vartype metadata: list[~azure.mgmt.domainregistration.models.NameValuePair] - :ivar connection_strings: Connection strings. This property is not returned in response to - normal create and read requests since it may contain sensitive information. - :vartype connection_strings: list[~azure.mgmt.domainregistration.models.ConnStringInfo] - :ivar machine_key: Site MachineKey. - :vartype machine_key: ~azure.mgmt.domainregistration.models.SiteMachineKey - :ivar handler_mappings: Handler mappings. - :vartype handler_mappings: list[~azure.mgmt.domainregistration.models.HandlerMapping] - :ivar document_root: Document root. - :vartype document_root: str - :ivar scm_type: SCM type. Known values are: "None", "Dropbox", "Tfs", "LocalGit", "GitHub", - "CodePlexGit", "CodePlexHg", "BitbucketGit", "BitbucketHg", "ExternalGit", "ExternalHg", - "OneDrive", "VSO", and "VSTSRM". - :vartype scm_type: str or ~azure.mgmt.domainregistration.models.ScmType - :ivar use32_bit_worker_process: :code:`true` to use 32-bit worker process; - otherwise, :code:`false`. - :vartype use32_bit_worker_process: bool - :ivar web_sockets_enabled: :code:`true` if WebSocket is enabled; otherwise, - :code:`false`. - :vartype web_sockets_enabled: bool - :ivar always_on: :code:`true` if Always On is enabled; otherwise, - :code:`false`. - :vartype always_on: bool - :ivar java_version: Java version. - :vartype java_version: str - :ivar java_container: Java container. - :vartype java_container: str - :ivar java_container_version: Java container version. - :vartype java_container_version: str - :ivar app_command_line: App command line to launch. - :vartype app_command_line: str - :ivar managed_pipeline_mode: Managed pipeline mode. Known values are: "Integrated" and - "Classic". - :vartype managed_pipeline_mode: str or - ~azure.mgmt.domainregistration.models.ManagedPipelineMode - :ivar virtual_applications: Virtual applications. - :vartype virtual_applications: list[~azure.mgmt.domainregistration.models.VirtualApplication] - :ivar load_balancing: Site load balancing. Known values are: "WeightedRoundRobin", - "LeastRequests", "LeastResponseTime", "WeightedTotalTraffic", "RequestHash", - "PerSiteRoundRobin", and "LeastRequestsWithTieBreaker". - :vartype load_balancing: str or ~azure.mgmt.domainregistration.models.SiteLoadBalancing - :ivar experiments: This is work around for polymorphic types. - :vartype experiments: ~azure.mgmt.domainregistration.models.Experiments - :ivar limits: Site limits. - :vartype limits: ~azure.mgmt.domainregistration.models.SiteLimits - :ivar auto_heal_enabled: :code:`true` if Auto Heal is enabled; otherwise, - :code:`false`. - :vartype auto_heal_enabled: bool - :ivar auto_heal_rules: Auto Heal rules. - :vartype auto_heal_rules: ~azure.mgmt.domainregistration.models.AutoHealRules - :ivar tracing_options: Tracing options. - :vartype tracing_options: str - :ivar vnet_name: Virtual Network name. - :vartype vnet_name: str - :ivar vnet_route_all_enabled: Virtual Network Route All enabled. This causes all outbound - traffic to have Virtual Network Security Groups and User Defined Routes applied. - :vartype vnet_route_all_enabled: bool - :ivar vnet_private_ports_count: The number of private ports assigned to this app. These will be - assigned dynamically on runtime. - :vartype vnet_private_ports_count: int - :ivar cors: Cross-Origin Resource Sharing (CORS) settings. - :vartype cors: ~azure.mgmt.domainregistration.models.CorsSettings - :ivar push: Push endpoint settings. - :vartype push: ~azure.mgmt.domainregistration.models.PushSettings - :ivar api_definition: Information about the formal API definition for the app. - :vartype api_definition: ~azure.mgmt.domainregistration.models.ApiDefinitionInfo - :ivar api_management_config: Azure API management settings linked to the app. - :vartype api_management_config: ~azure.mgmt.domainregistration.models.ApiManagementConfig - :ivar auto_swap_slot_name: Auto-swap slot name. - :vartype auto_swap_slot_name: str - :ivar local_my_sql_enabled: :code:`true` to enable local MySQL; otherwise, - :code:`false`. - :vartype local_my_sql_enabled: bool - :ivar managed_service_identity_id: Managed Service Identity Id. - :vartype managed_service_identity_id: int - :ivar x_managed_service_identity_id: Explicit Managed Service Identity Id. - :vartype x_managed_service_identity_id: int - :ivar key_vault_reference_identity: Identity to use for Key Vault Reference authentication. - :vartype key_vault_reference_identity: str - :ivar ip_security_restrictions: IP security restrictions for main. - :vartype ip_security_restrictions: - list[~azure.mgmt.domainregistration.models.IpSecurityRestriction] - :ivar ip_security_restrictions_default_action: Default action for main access restriction if no - rules are matched. Known values are: "Allow" and "Deny". - :vartype ip_security_restrictions_default_action: str or - ~azure.mgmt.domainregistration.models.DefaultAction - :ivar scm_ip_security_restrictions: IP security restrictions for scm. - :vartype scm_ip_security_restrictions: - list[~azure.mgmt.domainregistration.models.IpSecurityRestriction] - :ivar scm_ip_security_restrictions_default_action: Default action for scm access restriction if - no rules are matched. Known values are: "Allow" and "Deny". - :vartype scm_ip_security_restrictions_default_action: str or - ~azure.mgmt.domainregistration.models.DefaultAction - :ivar scm_ip_security_restrictions_use_main: IP security restrictions for scm to use main. - :vartype scm_ip_security_restrictions_use_main: bool - :ivar http20_enabled: Http20Enabled: configures a web site to allow clients to connect over - http2.0. - :vartype http20_enabled: bool - :ivar http20_proxy_flag: Http20ProxyFlag: Configures a website to allow http2.0 to pass be - proxied all the way to the app. 0 = disabled, 1 = pass through all http2 traffic, 2 = pass - through gRPC only. - :vartype http20_proxy_flag: int - :ivar min_tls_version: MinTlsVersion: configures the minimum version of TLS required for SSL - requests. Known values are: "1.0", "1.1", "1.2", and "1.3". - :vartype min_tls_version: str or ~azure.mgmt.domainregistration.models.SupportedTlsVersions - :ivar min_tls_cipher_suite: The minimum strength TLS cipher suite allowed for an application. - Known values are: "TLS_AES_256_GCM_SHA384", "TLS_AES_128_GCM_SHA256", - "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", - "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", - "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384", - "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256", "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", - "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", "TLS_RSA_WITH_AES_256_GCM_SHA384", - "TLS_RSA_WITH_AES_128_GCM_SHA256", "TLS_RSA_WITH_AES_256_CBC_SHA256", - "TLS_RSA_WITH_AES_128_CBC_SHA256", "TLS_RSA_WITH_AES_256_CBC_SHA", and - "TLS_RSA_WITH_AES_128_CBC_SHA". - :vartype min_tls_cipher_suite: str or ~azure.mgmt.domainregistration.models.TlsCipherSuites - :ivar scm_min_tls_version: ScmMinTlsVersion: configures the minimum version of TLS required for - SSL requests for SCM site. Known values are: "1.0", "1.1", "1.2", and "1.3". - :vartype scm_min_tls_version: str or ~azure.mgmt.domainregistration.models.SupportedTlsVersions - :ivar ftps_state: State of FTP / FTPS service. Known values are: "AllAllowed", "FtpsOnly", and - "Disabled". - :vartype ftps_state: str or ~azure.mgmt.domainregistration.models.FtpsState - :ivar pre_warmed_instance_count: Number of preWarmed instances. - This setting only applies to the Consumption and Elastic Plans. - :vartype pre_warmed_instance_count: int - :ivar function_app_scale_limit: Maximum number of workers that a site can scale out to. - This setting only applies to the Consumption and Elastic Premium Plans. - :vartype function_app_scale_limit: int - :ivar elastic_web_app_scale_limit: Maximum number of workers that a site can scale out to. - This setting only applies to apps in plans where ElasticScaleEnabled is - :code:`true`. - :vartype elastic_web_app_scale_limit: int - :ivar health_check_path: Health check path. - :vartype health_check_path: str - :ivar functions_runtime_scale_monitoring_enabled: Gets or sets a value indicating whether - functions runtime scale monitoring is enabled. When enabled, - the ScaleController will not monitor event sources directly, but will instead call to the - runtime to get scale status. - :vartype functions_runtime_scale_monitoring_enabled: bool - :ivar website_time_zone: Sets the time zone a site uses for generating timestamps. Compatible - with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence - over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a - quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, - expects one of the time zones listed under HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows - NT\\CurrentVersion\\Time Zones. - :vartype website_time_zone: str - :ivar minimum_elastic_instance_count: Number of minimum instance count for a site - This setting only applies to the Elastic Plans. - :vartype minimum_elastic_instance_count: int - :ivar azure_storage_accounts: List of Azure Storage Accounts. - :vartype azure_storage_accounts: dict[str, - ~azure.mgmt.domainregistration.models.AzureStorageInfoValue] - :ivar public_network_access: Property to allow or block all public traffic. - :vartype public_network_access: str - """ - - _validation = { - "machine_key": {"readonly": True}, - "pre_warmed_instance_count": {"maximum": 10, "minimum": 0}, - "function_app_scale_limit": {"minimum": 0}, - "elastic_web_app_scale_limit": {"minimum": 0}, - "minimum_elastic_instance_count": {"maximum": 20, "minimum": 0}, - } - - _attribute_map = { - "number_of_workers": {"key": "numberOfWorkers", "type": "int"}, - "default_documents": {"key": "defaultDocuments", "type": "[str]"}, - "net_framework_version": {"key": "netFrameworkVersion", "type": "str"}, - "php_version": {"key": "phpVersion", "type": "str"}, - "python_version": {"key": "pythonVersion", "type": "str"}, - "node_version": {"key": "nodeVersion", "type": "str"}, - "power_shell_version": {"key": "powerShellVersion", "type": "str"}, - "linux_fx_version": {"key": "linuxFxVersion", "type": "str"}, - "windows_fx_version": {"key": "windowsFxVersion", "type": "str"}, - "request_tracing_enabled": {"key": "requestTracingEnabled", "type": "bool"}, - "request_tracing_expiration_time": {"key": "requestTracingExpirationTime", "type": "iso-8601"}, - "remote_debugging_enabled": {"key": "remoteDebuggingEnabled", "type": "bool"}, - "remote_debugging_version": {"key": "remoteDebuggingVersion", "type": "str"}, - "http_logging_enabled": {"key": "httpLoggingEnabled", "type": "bool"}, - "acr_use_managed_identity_creds": {"key": "acrUseManagedIdentityCreds", "type": "bool"}, - "acr_user_managed_identity_id": {"key": "acrUserManagedIdentityID", "type": "str"}, - "logs_directory_size_limit": {"key": "logsDirectorySizeLimit", "type": "int"}, - "detailed_error_logging_enabled": {"key": "detailedErrorLoggingEnabled", "type": "bool"}, - "publishing_username": {"key": "publishingUsername", "type": "str"}, - "app_settings": {"key": "appSettings", "type": "[NameValuePair]"}, - "metadata": {"key": "metadata", "type": "[NameValuePair]"}, - "connection_strings": {"key": "connectionStrings", "type": "[ConnStringInfo]"}, - "machine_key": {"key": "machineKey", "type": "SiteMachineKey"}, - "handler_mappings": {"key": "handlerMappings", "type": "[HandlerMapping]"}, - "document_root": {"key": "documentRoot", "type": "str"}, - "scm_type": {"key": "scmType", "type": "str"}, - "use32_bit_worker_process": {"key": "use32BitWorkerProcess", "type": "bool"}, - "web_sockets_enabled": {"key": "webSocketsEnabled", "type": "bool"}, - "always_on": {"key": "alwaysOn", "type": "bool"}, - "java_version": {"key": "javaVersion", "type": "str"}, - "java_container": {"key": "javaContainer", "type": "str"}, - "java_container_version": {"key": "javaContainerVersion", "type": "str"}, - "app_command_line": {"key": "appCommandLine", "type": "str"}, - "managed_pipeline_mode": {"key": "managedPipelineMode", "type": "str"}, - "virtual_applications": {"key": "virtualApplications", "type": "[VirtualApplication]"}, - "load_balancing": {"key": "loadBalancing", "type": "str"}, - "experiments": {"key": "experiments", "type": "Experiments"}, - "limits": {"key": "limits", "type": "SiteLimits"}, - "auto_heal_enabled": {"key": "autoHealEnabled", "type": "bool"}, - "auto_heal_rules": {"key": "autoHealRules", "type": "AutoHealRules"}, - "tracing_options": {"key": "tracingOptions", "type": "str"}, - "vnet_name": {"key": "vnetName", "type": "str"}, - "vnet_route_all_enabled": {"key": "vnetRouteAllEnabled", "type": "bool"}, - "vnet_private_ports_count": {"key": "vnetPrivatePortsCount", "type": "int"}, - "cors": {"key": "cors", "type": "CorsSettings"}, - "push": {"key": "push", "type": "PushSettings"}, - "api_definition": {"key": "apiDefinition", "type": "ApiDefinitionInfo"}, - "api_management_config": {"key": "apiManagementConfig", "type": "ApiManagementConfig"}, - "auto_swap_slot_name": {"key": "autoSwapSlotName", "type": "str"}, - "local_my_sql_enabled": {"key": "localMySqlEnabled", "type": "bool"}, - "managed_service_identity_id": {"key": "managedServiceIdentityId", "type": "int"}, - "x_managed_service_identity_id": {"key": "xManagedServiceIdentityId", "type": "int"}, - "key_vault_reference_identity": {"key": "keyVaultReferenceIdentity", "type": "str"}, - "ip_security_restrictions": {"key": "ipSecurityRestrictions", "type": "[IpSecurityRestriction]"}, - "ip_security_restrictions_default_action": {"key": "ipSecurityRestrictionsDefaultAction", "type": "str"}, - "scm_ip_security_restrictions": {"key": "scmIpSecurityRestrictions", "type": "[IpSecurityRestriction]"}, - "scm_ip_security_restrictions_default_action": {"key": "scmIpSecurityRestrictionsDefaultAction", "type": "str"}, - "scm_ip_security_restrictions_use_main": {"key": "scmIpSecurityRestrictionsUseMain", "type": "bool"}, - "http20_enabled": {"key": "http20Enabled", "type": "bool"}, - "http20_proxy_flag": {"key": "http20ProxyFlag", "type": "int"}, - "min_tls_version": {"key": "minTlsVersion", "type": "str"}, - "min_tls_cipher_suite": {"key": "minTlsCipherSuite", "type": "str"}, - "scm_min_tls_version": {"key": "scmMinTlsVersion", "type": "str"}, - "ftps_state": {"key": "ftpsState", "type": "str"}, - "pre_warmed_instance_count": {"key": "preWarmedInstanceCount", "type": "int"}, - "function_app_scale_limit": {"key": "functionAppScaleLimit", "type": "int"}, - "elastic_web_app_scale_limit": {"key": "elasticWebAppScaleLimit", "type": "int"}, - "health_check_path": {"key": "healthCheckPath", "type": "str"}, - "functions_runtime_scale_monitoring_enabled": {"key": "functionsRuntimeScaleMonitoringEnabled", "type": "bool"}, - "website_time_zone": {"key": "websiteTimeZone", "type": "str"}, - "minimum_elastic_instance_count": {"key": "minimumElasticInstanceCount", "type": "int"}, - "azure_storage_accounts": {"key": "azureStorageAccounts", "type": "{AzureStorageInfoValue}"}, - "public_network_access": {"key": "publicNetworkAccess", "type": "str"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - number_of_workers: Optional[int] = None, - default_documents: Optional[list[str]] = None, - net_framework_version: str = "v4.6", - php_version: Optional[str] = None, - python_version: Optional[str] = None, - node_version: Optional[str] = None, - power_shell_version: Optional[str] = None, - linux_fx_version: Optional[str] = None, - windows_fx_version: Optional[str] = None, - request_tracing_enabled: Optional[bool] = None, - request_tracing_expiration_time: Optional[datetime.datetime] = None, - remote_debugging_enabled: Optional[bool] = None, - remote_debugging_version: Optional[str] = None, - http_logging_enabled: Optional[bool] = None, - acr_use_managed_identity_creds: Optional[bool] = None, - acr_user_managed_identity_id: Optional[str] = None, - logs_directory_size_limit: Optional[int] = None, - detailed_error_logging_enabled: Optional[bool] = None, - publishing_username: Optional[str] = None, - app_settings: Optional[list["_models.NameValuePair"]] = None, - metadata: Optional[list["_models.NameValuePair"]] = None, - connection_strings: Optional[list["_models.ConnStringInfo"]] = None, - handler_mappings: Optional[list["_models.HandlerMapping"]] = None, - document_root: Optional[str] = None, - scm_type: Optional[Union[str, "_models.ScmType"]] = None, - use32_bit_worker_process: Optional[bool] = None, - web_sockets_enabled: Optional[bool] = None, - always_on: Optional[bool] = None, - java_version: Optional[str] = None, - java_container: Optional[str] = None, - java_container_version: Optional[str] = None, - app_command_line: Optional[str] = None, - managed_pipeline_mode: Optional[Union[str, "_models.ManagedPipelineMode"]] = None, - virtual_applications: Optional[list["_models.VirtualApplication"]] = None, - load_balancing: Optional[Union[str, "_models.SiteLoadBalancing"]] = None, - experiments: Optional["_models.Experiments"] = None, - limits: Optional["_models.SiteLimits"] = None, - auto_heal_enabled: Optional[bool] = None, - auto_heal_rules: Optional["_models.AutoHealRules"] = None, - tracing_options: Optional[str] = None, - vnet_name: Optional[str] = None, - vnet_route_all_enabled: Optional[bool] = None, - vnet_private_ports_count: Optional[int] = None, - cors: Optional["_models.CorsSettings"] = None, - push: Optional["_models.PushSettings"] = None, - api_definition: Optional["_models.ApiDefinitionInfo"] = None, - api_management_config: Optional["_models.ApiManagementConfig"] = None, - auto_swap_slot_name: Optional[str] = None, - local_my_sql_enabled: bool = False, - managed_service_identity_id: Optional[int] = None, - x_managed_service_identity_id: Optional[int] = None, - key_vault_reference_identity: Optional[str] = None, - ip_security_restrictions: Optional[list["_models.IpSecurityRestriction"]] = None, - ip_security_restrictions_default_action: Optional[Union[str, "_models.DefaultAction"]] = None, - scm_ip_security_restrictions: Optional[list["_models.IpSecurityRestriction"]] = None, - scm_ip_security_restrictions_default_action: Optional[Union[str, "_models.DefaultAction"]] = None, - scm_ip_security_restrictions_use_main: Optional[bool] = None, - http20_enabled: bool = True, - http20_proxy_flag: int = 0, - min_tls_version: Optional[Union[str, "_models.SupportedTlsVersions"]] = None, - min_tls_cipher_suite: Optional[Union[str, "_models.TlsCipherSuites"]] = None, - scm_min_tls_version: Optional[Union[str, "_models.SupportedTlsVersions"]] = None, - ftps_state: Optional[Union[str, "_models.FtpsState"]] = None, - pre_warmed_instance_count: Optional[int] = None, - function_app_scale_limit: Optional[int] = None, - elastic_web_app_scale_limit: Optional[int] = None, - health_check_path: Optional[str] = None, - functions_runtime_scale_monitoring_enabled: Optional[bool] = None, - website_time_zone: Optional[str] = None, - minimum_elastic_instance_count: Optional[int] = None, - azure_storage_accounts: Optional[dict[str, "_models.AzureStorageInfoValue"]] = None, - public_network_access: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword number_of_workers: Number of workers. - :paramtype number_of_workers: int - :keyword default_documents: Default documents. - :paramtype default_documents: list[str] - :keyword net_framework_version: .NET Framework version. - :paramtype net_framework_version: str - :keyword php_version: Version of PHP. - :paramtype php_version: str - :keyword python_version: Version of Python. - :paramtype python_version: str - :keyword node_version: Version of Node.js. - :paramtype node_version: str - :keyword power_shell_version: Version of PowerShell. - :paramtype power_shell_version: str - :keyword linux_fx_version: Linux App Framework and version. - :paramtype linux_fx_version: str - :keyword windows_fx_version: Xenon App Framework and version. - :paramtype windows_fx_version: str - :keyword request_tracing_enabled: :code:`true` if request tracing is enabled; - otherwise, :code:`false`. - :paramtype request_tracing_enabled: bool - :keyword request_tracing_expiration_time: Request tracing expiration time. - :paramtype request_tracing_expiration_time: ~datetime.datetime - :keyword remote_debugging_enabled: :code:`true` if remote debugging is enabled; - otherwise, :code:`false`. - :paramtype remote_debugging_enabled: bool - :keyword remote_debugging_version: Remote debugging version. - :paramtype remote_debugging_version: str - :keyword http_logging_enabled: :code:`true` if HTTP logging is enabled; otherwise, - :code:`false`. - :paramtype http_logging_enabled: bool - :keyword acr_use_managed_identity_creds: Flag to use Managed Identity Creds for ACR pull. - :paramtype acr_use_managed_identity_creds: bool - :keyword acr_user_managed_identity_id: If using user managed identity, the user managed - identity ClientId. - :paramtype acr_user_managed_identity_id: str - :keyword logs_directory_size_limit: HTTP logs directory size limit. - :paramtype logs_directory_size_limit: int - :keyword detailed_error_logging_enabled: :code:`true` if detailed error logging is - enabled; otherwise, :code:`false`. - :paramtype detailed_error_logging_enabled: bool - :keyword publishing_username: Publishing user name. - :paramtype publishing_username: str - :keyword app_settings: Application settings. This property is not returned in response to - normal create and read requests since it may contain sensitive information. - :paramtype app_settings: list[~azure.mgmt.domainregistration.models.NameValuePair] - :keyword metadata: Application metadata. This property cannot be retrieved, since it may - contain secrets. - :paramtype metadata: list[~azure.mgmt.domainregistration.models.NameValuePair] - :keyword connection_strings: Connection strings. This property is not returned in response to - normal create and read requests since it may contain sensitive information. - :paramtype connection_strings: list[~azure.mgmt.domainregistration.models.ConnStringInfo] - :keyword handler_mappings: Handler mappings. - :paramtype handler_mappings: list[~azure.mgmt.domainregistration.models.HandlerMapping] - :keyword document_root: Document root. - :paramtype document_root: str - :keyword scm_type: SCM type. Known values are: "None", "Dropbox", "Tfs", "LocalGit", "GitHub", - "CodePlexGit", "CodePlexHg", "BitbucketGit", "BitbucketHg", "ExternalGit", "ExternalHg", - "OneDrive", "VSO", and "VSTSRM". - :paramtype scm_type: str or ~azure.mgmt.domainregistration.models.ScmType - :keyword use32_bit_worker_process: :code:`true` to use 32-bit worker process; - otherwise, :code:`false`. - :paramtype use32_bit_worker_process: bool - :keyword web_sockets_enabled: :code:`true` if WebSocket is enabled; otherwise, - :code:`false`. - :paramtype web_sockets_enabled: bool - :keyword always_on: :code:`true` if Always On is enabled; otherwise, - :code:`false`. - :paramtype always_on: bool - :keyword java_version: Java version. - :paramtype java_version: str - :keyword java_container: Java container. - :paramtype java_container: str - :keyword java_container_version: Java container version. - :paramtype java_container_version: str - :keyword app_command_line: App command line to launch. - :paramtype app_command_line: str - :keyword managed_pipeline_mode: Managed pipeline mode. Known values are: "Integrated" and - "Classic". - :paramtype managed_pipeline_mode: str or - ~azure.mgmt.domainregistration.models.ManagedPipelineMode - :keyword virtual_applications: Virtual applications. - :paramtype virtual_applications: list[~azure.mgmt.domainregistration.models.VirtualApplication] - :keyword load_balancing: Site load balancing. Known values are: "WeightedRoundRobin", - "LeastRequests", "LeastResponseTime", "WeightedTotalTraffic", "RequestHash", - "PerSiteRoundRobin", and "LeastRequestsWithTieBreaker". - :paramtype load_balancing: str or ~azure.mgmt.domainregistration.models.SiteLoadBalancing - :keyword experiments: This is work around for polymorphic types. - :paramtype experiments: ~azure.mgmt.domainregistration.models.Experiments - :keyword limits: Site limits. - :paramtype limits: ~azure.mgmt.domainregistration.models.SiteLimits - :keyword auto_heal_enabled: :code:`true` if Auto Heal is enabled; otherwise, - :code:`false`. - :paramtype auto_heal_enabled: bool - :keyword auto_heal_rules: Auto Heal rules. - :paramtype auto_heal_rules: ~azure.mgmt.domainregistration.models.AutoHealRules - :keyword tracing_options: Tracing options. - :paramtype tracing_options: str - :keyword vnet_name: Virtual Network name. - :paramtype vnet_name: str - :keyword vnet_route_all_enabled: Virtual Network Route All enabled. This causes all outbound - traffic to have Virtual Network Security Groups and User Defined Routes applied. - :paramtype vnet_route_all_enabled: bool - :keyword vnet_private_ports_count: The number of private ports assigned to this app. These will - be assigned dynamically on runtime. - :paramtype vnet_private_ports_count: int - :keyword cors: Cross-Origin Resource Sharing (CORS) settings. - :paramtype cors: ~azure.mgmt.domainregistration.models.CorsSettings - :keyword push: Push endpoint settings. - :paramtype push: ~azure.mgmt.domainregistration.models.PushSettings - :keyword api_definition: Information about the formal API definition for the app. - :paramtype api_definition: ~azure.mgmt.domainregistration.models.ApiDefinitionInfo - :keyword api_management_config: Azure API management settings linked to the app. - :paramtype api_management_config: ~azure.mgmt.domainregistration.models.ApiManagementConfig - :keyword auto_swap_slot_name: Auto-swap slot name. - :paramtype auto_swap_slot_name: str - :keyword local_my_sql_enabled: :code:`true` to enable local MySQL; otherwise, - :code:`false`. - :paramtype local_my_sql_enabled: bool - :keyword managed_service_identity_id: Managed Service Identity Id. - :paramtype managed_service_identity_id: int - :keyword x_managed_service_identity_id: Explicit Managed Service Identity Id. - :paramtype x_managed_service_identity_id: int - :keyword key_vault_reference_identity: Identity to use for Key Vault Reference authentication. - :paramtype key_vault_reference_identity: str - :keyword ip_security_restrictions: IP security restrictions for main. - :paramtype ip_security_restrictions: - list[~azure.mgmt.domainregistration.models.IpSecurityRestriction] - :keyword ip_security_restrictions_default_action: Default action for main access restriction if - no rules are matched. Known values are: "Allow" and "Deny". - :paramtype ip_security_restrictions_default_action: str or - ~azure.mgmt.domainregistration.models.DefaultAction - :keyword scm_ip_security_restrictions: IP security restrictions for scm. - :paramtype scm_ip_security_restrictions: - list[~azure.mgmt.domainregistration.models.IpSecurityRestriction] - :keyword scm_ip_security_restrictions_default_action: Default action for scm access restriction - if no rules are matched. Known values are: "Allow" and "Deny". - :paramtype scm_ip_security_restrictions_default_action: str or - ~azure.mgmt.domainregistration.models.DefaultAction - :keyword scm_ip_security_restrictions_use_main: IP security restrictions for scm to use main. - :paramtype scm_ip_security_restrictions_use_main: bool - :keyword http20_enabled: Http20Enabled: configures a web site to allow clients to connect over - http2.0. - :paramtype http20_enabled: bool - :keyword http20_proxy_flag: Http20ProxyFlag: Configures a website to allow http2.0 to pass be - proxied all the way to the app. 0 = disabled, 1 = pass through all http2 traffic, 2 = pass - through gRPC only. - :paramtype http20_proxy_flag: int - :keyword min_tls_version: MinTlsVersion: configures the minimum version of TLS required for SSL - requests. Known values are: "1.0", "1.1", "1.2", and "1.3". - :paramtype min_tls_version: str or ~azure.mgmt.domainregistration.models.SupportedTlsVersions - :keyword min_tls_cipher_suite: The minimum strength TLS cipher suite allowed for an - application. Known values are: "TLS_AES_256_GCM_SHA384", "TLS_AES_128_GCM_SHA256", - "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", - "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", - "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384", - "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256", "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", - "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", "TLS_RSA_WITH_AES_256_GCM_SHA384", - "TLS_RSA_WITH_AES_128_GCM_SHA256", "TLS_RSA_WITH_AES_256_CBC_SHA256", - "TLS_RSA_WITH_AES_128_CBC_SHA256", "TLS_RSA_WITH_AES_256_CBC_SHA", and - "TLS_RSA_WITH_AES_128_CBC_SHA". - :paramtype min_tls_cipher_suite: str or ~azure.mgmt.domainregistration.models.TlsCipherSuites - :keyword scm_min_tls_version: ScmMinTlsVersion: configures the minimum version of TLS required - for SSL requests for SCM site. Known values are: "1.0", "1.1", "1.2", and "1.3". - :paramtype scm_min_tls_version: str or - ~azure.mgmt.domainregistration.models.SupportedTlsVersions - :keyword ftps_state: State of FTP / FTPS service. Known values are: "AllAllowed", "FtpsOnly", - and "Disabled". - :paramtype ftps_state: str or ~azure.mgmt.domainregistration.models.FtpsState - :keyword pre_warmed_instance_count: Number of preWarmed instances. - This setting only applies to the Consumption and Elastic Plans. - :paramtype pre_warmed_instance_count: int - :keyword function_app_scale_limit: Maximum number of workers that a site can scale out to. - This setting only applies to the Consumption and Elastic Premium Plans. - :paramtype function_app_scale_limit: int - :keyword elastic_web_app_scale_limit: Maximum number of workers that a site can scale out to. - This setting only applies to apps in plans where ElasticScaleEnabled is - :code:`true`. - :paramtype elastic_web_app_scale_limit: int - :keyword health_check_path: Health check path. - :paramtype health_check_path: str - :keyword functions_runtime_scale_monitoring_enabled: Gets or sets a value indicating whether - functions runtime scale monitoring is enabled. When enabled, - the ScaleController will not monitor event sources directly, but will instead call to the - runtime to get scale status. - :paramtype functions_runtime_scale_monitoring_enabled: bool - :keyword website_time_zone: Sets the time zone a site uses for generating timestamps. - Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes - precedence over this config. For Linux, expects tz database values - https://www.iana.org/time-zones (for a quick reference see - https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the - time zones listed under HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows - NT\\CurrentVersion\\Time Zones. - :paramtype website_time_zone: str - :keyword minimum_elastic_instance_count: Number of minimum instance count for a site - This setting only applies to the Elastic Plans. - :paramtype minimum_elastic_instance_count: int - :keyword azure_storage_accounts: List of Azure Storage Accounts. - :paramtype azure_storage_accounts: dict[str, - ~azure.mgmt.domainregistration.models.AzureStorageInfoValue] - :keyword public_network_access: Property to allow or block all public traffic. - :paramtype public_network_access: str - """ - super().__init__(**kwargs) - self.number_of_workers = number_of_workers - self.default_documents = default_documents - self.net_framework_version = net_framework_version - self.php_version = php_version - self.python_version = python_version - self.node_version = node_version - self.power_shell_version = power_shell_version - self.linux_fx_version = linux_fx_version - self.windows_fx_version = windows_fx_version - self.request_tracing_enabled = request_tracing_enabled - self.request_tracing_expiration_time = request_tracing_expiration_time - self.remote_debugging_enabled = remote_debugging_enabled - self.remote_debugging_version = remote_debugging_version - self.http_logging_enabled = http_logging_enabled - self.acr_use_managed_identity_creds = acr_use_managed_identity_creds - self.acr_user_managed_identity_id = acr_user_managed_identity_id - self.logs_directory_size_limit = logs_directory_size_limit - self.detailed_error_logging_enabled = detailed_error_logging_enabled - self.publishing_username = publishing_username - self.app_settings = app_settings - self.metadata = metadata - self.connection_strings = connection_strings - self.machine_key: Optional["_models.SiteMachineKey"] = None - self.handler_mappings = handler_mappings - self.document_root = document_root - self.scm_type = scm_type - self.use32_bit_worker_process = use32_bit_worker_process - self.web_sockets_enabled = web_sockets_enabled - self.always_on = always_on - self.java_version = java_version - self.java_container = java_container - self.java_container_version = java_container_version - self.app_command_line = app_command_line - self.managed_pipeline_mode = managed_pipeline_mode - self.virtual_applications = virtual_applications - self.load_balancing = load_balancing - self.experiments = experiments - self.limits = limits - self.auto_heal_enabled = auto_heal_enabled - self.auto_heal_rules = auto_heal_rules - self.tracing_options = tracing_options - self.vnet_name = vnet_name - self.vnet_route_all_enabled = vnet_route_all_enabled - self.vnet_private_ports_count = vnet_private_ports_count - self.cors = cors - self.push = push - self.api_definition = api_definition - self.api_management_config = api_management_config - self.auto_swap_slot_name = auto_swap_slot_name - self.local_my_sql_enabled = local_my_sql_enabled - self.managed_service_identity_id = managed_service_identity_id - self.x_managed_service_identity_id = x_managed_service_identity_id - self.key_vault_reference_identity = key_vault_reference_identity - self.ip_security_restrictions = ip_security_restrictions - self.ip_security_restrictions_default_action = ip_security_restrictions_default_action - self.scm_ip_security_restrictions = scm_ip_security_restrictions - self.scm_ip_security_restrictions_default_action = scm_ip_security_restrictions_default_action - self.scm_ip_security_restrictions_use_main = scm_ip_security_restrictions_use_main - self.http20_enabled = http20_enabled - self.http20_proxy_flag = http20_proxy_flag - self.min_tls_version = min_tls_version - self.min_tls_cipher_suite = min_tls_cipher_suite - self.scm_min_tls_version = scm_min_tls_version - self.ftps_state = ftps_state - self.pre_warmed_instance_count = pre_warmed_instance_count - self.function_app_scale_limit = function_app_scale_limit - self.elastic_web_app_scale_limit = elastic_web_app_scale_limit - self.health_check_path = health_check_path - self.functions_runtime_scale_monitoring_enabled = functions_runtime_scale_monitoring_enabled - self.website_time_zone = website_time_zone - self.minimum_elastic_instance_count = minimum_elastic_instance_count - self.azure_storage_accounts = azure_storage_accounts - self.public_network_access = public_network_access - - -class SiteDnsConfig(_serialization.Model): - """SiteDnsConfig. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar dns_servers: List of custom DNS servers to be used by an app for lookups. Maximum 5 dns - servers can be set. - :vartype dns_servers: list[str] - :ivar dns_alt_server: Alternate DNS server to be used by apps. This property replicates the - WEBSITE_DNS_ALT_SERVER app setting. - :vartype dns_alt_server: str - :ivar dns_retry_attempt_timeout: Timeout for a single dns lookup in seconds. Allowed range: - 1-30. Default is 3. - :vartype dns_retry_attempt_timeout: int - :ivar dns_retry_attempt_count: Total number of retries for dns lookup. Allowed range: 1-5. - Default is 3. - :vartype dns_retry_attempt_count: int - :ivar dns_max_cache_timeout: Custom time for DNS to be cached in seconds. Allowed range: 0-60. - Default is 30 seconds. 0 means caching disabled. - :vartype dns_max_cache_timeout: int - :ivar dns_legacy_sort_order: Indicates that sites using Virtual network custom DNS servers are - still sorting the list of DNS servers. Read-Only. - :vartype dns_legacy_sort_order: bool - """ - - _validation = { - "dns_legacy_sort_order": {"readonly": True}, - } - - _attribute_map = { - "dns_servers": {"key": "dnsServers", "type": "[str]"}, - "dns_alt_server": {"key": "dnsAltServer", "type": "str"}, - "dns_retry_attempt_timeout": {"key": "dnsRetryAttemptTimeout", "type": "int"}, - "dns_retry_attempt_count": {"key": "dnsRetryAttemptCount", "type": "int"}, - "dns_max_cache_timeout": {"key": "dnsMaxCacheTimeout", "type": "int"}, - "dns_legacy_sort_order": {"key": "dnsLegacySortOrder", "type": "bool"}, - } - - def __init__( - self, - *, - dns_servers: Optional[list[str]] = None, - dns_alt_server: Optional[str] = None, - dns_retry_attempt_timeout: Optional[int] = None, - dns_retry_attempt_count: Optional[int] = None, - dns_max_cache_timeout: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword dns_servers: List of custom DNS servers to be used by an app for lookups. Maximum 5 - dns servers can be set. - :paramtype dns_servers: list[str] - :keyword dns_alt_server: Alternate DNS server to be used by apps. This property replicates the - WEBSITE_DNS_ALT_SERVER app setting. - :paramtype dns_alt_server: str - :keyword dns_retry_attempt_timeout: Timeout for a single dns lookup in seconds. Allowed range: - 1-30. Default is 3. - :paramtype dns_retry_attempt_timeout: int - :keyword dns_retry_attempt_count: Total number of retries for dns lookup. Allowed range: 1-5. - Default is 3. - :paramtype dns_retry_attempt_count: int - :keyword dns_max_cache_timeout: Custom time for DNS to be cached in seconds. Allowed range: - 0-60. Default is 30 seconds. 0 means caching disabled. - :paramtype dns_max_cache_timeout: int - """ - super().__init__(**kwargs) - self.dns_servers = dns_servers - self.dns_alt_server = dns_alt_server - self.dns_retry_attempt_timeout = dns_retry_attempt_timeout - self.dns_retry_attempt_count = dns_retry_attempt_count - self.dns_max_cache_timeout = dns_max_cache_timeout - self.dns_legacy_sort_order: Optional[bool] = None - - -class SiteLimits(_serialization.Model): - """Metric limits set on an app. - - :ivar max_percentage_cpu: Maximum allowed CPU usage percentage. - :vartype max_percentage_cpu: float - :ivar max_memory_in_mb: Maximum allowed memory usage in MB. - :vartype max_memory_in_mb: int - :ivar max_disk_size_in_mb: Maximum allowed disk size usage in MB. - :vartype max_disk_size_in_mb: int - """ - - _attribute_map = { - "max_percentage_cpu": {"key": "maxPercentageCpu", "type": "float"}, - "max_memory_in_mb": {"key": "maxMemoryInMb", "type": "int"}, - "max_disk_size_in_mb": {"key": "maxDiskSizeInMb", "type": "int"}, - } - - def __init__( - self, - *, - max_percentage_cpu: Optional[float] = None, - max_memory_in_mb: Optional[int] = None, - max_disk_size_in_mb: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword max_percentage_cpu: Maximum allowed CPU usage percentage. - :paramtype max_percentage_cpu: float - :keyword max_memory_in_mb: Maximum allowed memory usage in MB. - :paramtype max_memory_in_mb: int - :keyword max_disk_size_in_mb: Maximum allowed disk size usage in MB. - :paramtype max_disk_size_in_mb: int - """ - super().__init__(**kwargs) - self.max_percentage_cpu = max_percentage_cpu - self.max_memory_in_mb = max_memory_in_mb - self.max_disk_size_in_mb = max_disk_size_in_mb - - -class SiteMachineKey(_serialization.Model): - """MachineKey of an app. - - :ivar validation: MachineKey validation. - :vartype validation: str - :ivar validation_key: Validation key. - :vartype validation_key: str - :ivar decryption: Algorithm used for decryption. - :vartype decryption: str - :ivar decryption_key: Decryption key. - :vartype decryption_key: str - """ - - _attribute_map = { - "validation": {"key": "validation", "type": "str"}, - "validation_key": {"key": "validationKey", "type": "str"}, - "decryption": {"key": "decryption", "type": "str"}, - "decryption_key": {"key": "decryptionKey", "type": "str"}, - } - - def __init__( - self, - *, - validation: Optional[str] = None, - validation_key: Optional[str] = None, - decryption: Optional[str] = None, - decryption_key: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword validation: MachineKey validation. - :paramtype validation: str - :keyword validation_key: Validation key. - :paramtype validation_key: str - :keyword decryption: Algorithm used for decryption. - :paramtype decryption: str - :keyword decryption_key: Decryption key. - :paramtype decryption_key: str - """ - super().__init__(**kwargs) - self.validation = validation - self.validation_key = validation_key - self.decryption = decryption - self.decryption_key = decryption_key - - -class SkuCapacity(_serialization.Model): - """Description of the App Service plan scale options. - - :ivar minimum: Minimum number of workers for this App Service plan SKU. - :vartype minimum: int - :ivar maximum: Maximum number of workers for this App Service plan SKU. - :vartype maximum: int - :ivar elastic_maximum: Maximum number of Elastic workers for this App Service plan SKU. - :vartype elastic_maximum: int - :ivar default: Default number of workers for this App Service plan SKU. - :vartype default: int - :ivar scale_type: Available scale configurations for an App Service plan. - :vartype scale_type: str - """ - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "elastic_maximum": {"key": "elasticMaximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: Optional[int] = None, - maximum: Optional[int] = None, - elastic_maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Minimum number of workers for this App Service plan SKU. - :paramtype minimum: int - :keyword maximum: Maximum number of workers for this App Service plan SKU. - :paramtype maximum: int - :keyword elastic_maximum: Maximum number of Elastic workers for this App Service plan SKU. - :paramtype elastic_maximum: int - :keyword default: Default number of workers for this App Service plan SKU. - :paramtype default: int - :keyword scale_type: Available scale configurations for an App Service plan. - :paramtype scale_type: str - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.elastic_maximum = elastic_maximum - self.default = default - self.scale_type = scale_type - - -class SkuDescription(_serialization.Model): - """Description of a SKU for a scalable resource. - - :ivar name: Name of the resource SKU. - :vartype name: str - :ivar tier: Service tier of the resource SKU. - :vartype tier: str - :ivar size: Size specifier of the resource SKU. - :vartype size: str - :ivar family: Family code of the resource SKU. - :vartype family: str - :ivar capacity: Current number of instances assigned to the resource. - :vartype capacity: int - :ivar sku_capacity: Min, max, and default scale values of the SKU. - :vartype sku_capacity: ~azure.mgmt.domainregistration.models.SkuCapacity - :ivar locations: Locations of the SKU. - :vartype locations: list[str] - :ivar capabilities: Capabilities of the SKU, e.g., is traffic manager enabled?. - :vartype capabilities: list[~azure.mgmt.domainregistration.models.Capability] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "size": {"key": "size", "type": "str"}, - "family": {"key": "family", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - "sku_capacity": {"key": "skuCapacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[Capability]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - tier: Optional[str] = None, - size: Optional[str] = None, - family: Optional[str] = None, - capacity: Optional[int] = None, - sku_capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[list[str]] = None, - capabilities: Optional[list["_models.Capability"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the resource SKU. - :paramtype name: str - :keyword tier: Service tier of the resource SKU. - :paramtype tier: str - :keyword size: Size specifier of the resource SKU. - :paramtype size: str - :keyword family: Family code of the resource SKU. - :paramtype family: str - :keyword capacity: Current number of instances assigned to the resource. - :paramtype capacity: int - :keyword sku_capacity: Min, max, and default scale values of the SKU. - :paramtype sku_capacity: ~azure.mgmt.domainregistration.models.SkuCapacity - :keyword locations: Locations of the SKU. - :paramtype locations: list[str] - :keyword capabilities: Capabilities of the SKU, e.g., is traffic manager enabled?. - :paramtype capabilities: list[~azure.mgmt.domainregistration.models.Capability] - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.size = size - self.family = family - self.capacity = capacity - self.sku_capacity = sku_capacity - self.locations = locations - self.capabilities = capabilities - - -class SlotSwapStatus(_serialization.Model): - """The status of the last successful slot swap operation. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar timestamp_utc: The time the last successful slot swap completed. - :vartype timestamp_utc: ~datetime.datetime - :ivar source_slot_name: The source slot of the last swap operation. - :vartype source_slot_name: str - :ivar destination_slot_name: The destination slot of the last swap operation. - :vartype destination_slot_name: str - """ - - _validation = { - "timestamp_utc": {"readonly": True}, - "source_slot_name": {"readonly": True}, - "destination_slot_name": {"readonly": True}, - } - - _attribute_map = { - "timestamp_utc": {"key": "timestampUtc", "type": "iso-8601"}, - "source_slot_name": {"key": "sourceSlotName", "type": "str"}, - "destination_slot_name": {"key": "destinationSlotName", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.timestamp_utc: Optional[datetime.datetime] = None - self.source_slot_name: Optional[str] = None - self.destination_slot_name: Optional[str] = None - - -class SlowRequestsBasedTrigger(_serialization.Model): - """Trigger based on request execution time. - - :ivar time_taken: Time taken. - :vartype time_taken: str - :ivar path: Request Path. - :vartype path: str - :ivar count: Request Count. - :vartype count: int - :ivar time_interval: Time interval. - :vartype time_interval: str - """ - - _attribute_map = { - "time_taken": {"key": "timeTaken", "type": "str"}, - "path": {"key": "path", "type": "str"}, - "count": {"key": "count", "type": "int"}, - "time_interval": {"key": "timeInterval", "type": "str"}, - } - - def __init__( - self, - *, - time_taken: Optional[str] = None, - path: Optional[str] = None, - count: Optional[int] = None, - time_interval: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword time_taken: Time taken. - :paramtype time_taken: str - :keyword path: Request Path. - :paramtype path: str - :keyword count: Request Count. - :paramtype count: int - :keyword time_interval: Time interval. - :paramtype time_interval: str - """ - super().__init__(**kwargs) - self.time_taken = time_taken - self.path = path - self.count = count - self.time_interval = time_interval - - -class Snapshot(ProxyOnlyResource): - """A snapshot of an app. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar time: The time the snapshot was taken. - :vartype time: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "time": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "time": {"key": "properties.time", "type": "str"}, - } - - def __init__(self, *, kind: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - """ - super().__init__(kind=kind, **kwargs) - self.time: Optional[str] = None - - -class Status(_serialization.Model): - """Identify the status of the most severe insight generated by the detector. - - :ivar message: Descriptive message. - :vartype message: str - :ivar status_id: Level of the most severe insight generated by the detector. Known values are: - "Critical", "Warning", "Info", "Success", and "None". - :vartype status_id: str or ~azure.mgmt.domainregistration.models.InsightStatus - """ - - _attribute_map = { - "message": {"key": "message", "type": "str"}, - "status_id": {"key": "statusId", "type": "str"}, - } - - def __init__( - self, - *, - message: Optional[str] = None, - status_id: Optional[Union[str, "_models.InsightStatus"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword message: Descriptive message. - :paramtype message: str - :keyword status_id: Level of the most severe insight generated by the detector. Known values - are: "Critical", "Warning", "Info", "Success", and "None". - :paramtype status_id: str or ~azure.mgmt.domainregistration.models.InsightStatus - """ - super().__init__(**kwargs) - self.message = message - self.status_id = status_id - - -class StatusCodesBasedTrigger(_serialization.Model): - """Trigger based on status code. - - :ivar status: HTTP status code. - :vartype status: int - :ivar sub_status: Request Sub Status. - :vartype sub_status: int - :ivar win32_status: Win32 error code. - :vartype win32_status: int - :ivar count: Request Count. - :vartype count: int - :ivar time_interval: Time interval. - :vartype time_interval: str - :ivar path: Request Path. - :vartype path: str - """ - - _attribute_map = { - "status": {"key": "status", "type": "int"}, - "sub_status": {"key": "subStatus", "type": "int"}, - "win32_status": {"key": "win32Status", "type": "int"}, - "count": {"key": "count", "type": "int"}, - "time_interval": {"key": "timeInterval", "type": "str"}, - "path": {"key": "path", "type": "str"}, - } - - def __init__( - self, - *, - status: Optional[int] = None, - sub_status: Optional[int] = None, - win32_status: Optional[int] = None, - count: Optional[int] = None, - time_interval: Optional[str] = None, - path: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword status: HTTP status code. - :paramtype status: int - :keyword sub_status: Request Sub Status. - :paramtype sub_status: int - :keyword win32_status: Win32 error code. - :paramtype win32_status: int - :keyword count: Request Count. - :paramtype count: int - :keyword time_interval: Time interval. - :paramtype time_interval: str - :keyword path: Request Path. - :paramtype path: str - """ - super().__init__(**kwargs) - self.status = status - self.sub_status = sub_status - self.win32_status = win32_status - self.count = count - self.time_interval = time_interval - self.path = path - - -class StatusCodesRangeBasedTrigger(_serialization.Model): - """Trigger based on range of status codes. - - :ivar status_codes: HTTP status code. - :vartype status_codes: str - :ivar path: - :vartype path: str - :ivar count: Request Count. - :vartype count: int - :ivar time_interval: Time interval. - :vartype time_interval: str - """ - - _attribute_map = { - "status_codes": {"key": "statusCodes", "type": "str"}, - "path": {"key": "path", "type": "str"}, - "count": {"key": "count", "type": "int"}, - "time_interval": {"key": "timeInterval", "type": "str"}, - } - - def __init__( - self, - *, - status_codes: Optional[str] = None, - path: Optional[str] = None, - count: Optional[int] = None, - time_interval: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword status_codes: HTTP status code. - :paramtype status_codes: str - :keyword path: - :paramtype path: str - :keyword count: Request Count. - :paramtype count: int - :keyword time_interval: Time interval. - :paramtype time_interval: str - """ - super().__init__(**kwargs) - self.status_codes = status_codes - self.path = path - self.count = count - self.time_interval = time_interval - - -class StringDictionary(ProxyOnlyResource): - """String dictionary resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar properties: Settings. - :vartype properties: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "{str}"}, - } - - def __init__( - self, *, kind: Optional[str] = None, properties: Optional[dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - :keyword properties: Settings. - :paramtype properties: dict[str, str] - """ - super().__init__(kind=kind, **kwargs) - self.properties = properties - - -class SupportTopic(_serialization.Model): - """Defines a unique Support Topic. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Support Topic Id. - :vartype id: str - :ivar pes_id: Unique resource Id. - :vartype pes_id: str - """ - - _validation = { - "id": {"readonly": True}, - "pes_id": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "pes_id": {"key": "pesId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.pes_id: Optional[str] = None - - -class Template(_serialization.Model): - """Container App versioned application definition. - Defines the desired state of an immutable revision. - Any changes to this section Will result in a new revision being created. - - :ivar revision_suffix: User friendly suffix that is appended to the revision name. - :vartype revision_suffix: str - :ivar containers: List of container definitions for the Container App. - :vartype containers: list[~azure.mgmt.domainregistration.models.Container] - :ivar scale: Scaling properties for the Container App. - :vartype scale: ~azure.mgmt.domainregistration.models.Scale - :ivar dapr: Dapr configuration for the Container App. - :vartype dapr: ~azure.mgmt.domainregistration.models.Dapr - """ - - _attribute_map = { - "revision_suffix": {"key": "revisionSuffix", "type": "str"}, - "containers": {"key": "containers", "type": "[Container]"}, - "scale": {"key": "scale", "type": "Scale"}, - "dapr": {"key": "dapr", "type": "Dapr"}, - } - - def __init__( - self, - *, - revision_suffix: Optional[str] = None, - containers: Optional[list["_models.Container"]] = None, - scale: Optional["_models.Scale"] = None, - dapr: Optional["_models.Dapr"] = None, - **kwargs: Any - ) -> None: - """ - :keyword revision_suffix: User friendly suffix that is appended to the revision name. - :paramtype revision_suffix: str - :keyword containers: List of container definitions for the Container App. - :paramtype containers: list[~azure.mgmt.domainregistration.models.Container] - :keyword scale: Scaling properties for the Container App. - :paramtype scale: ~azure.mgmt.domainregistration.models.Scale - :keyword dapr: Dapr configuration for the Container App. - :paramtype dapr: ~azure.mgmt.domainregistration.models.Dapr - """ - super().__init__(**kwargs) - self.revision_suffix = revision_suffix - self.containers = containers - self.scale = scale - self.dapr = dapr - - -class TldLegalAgreement(_serialization.Model): - """Legal agreement for a top level domain. - - All required parameters must be populated in order to send to server. - - :ivar agreement_key: Unique identifier for the agreement. Required. - :vartype agreement_key: str - :ivar title: Agreement title. Required. - :vartype title: str - :ivar content: Agreement details. Required. - :vartype content: str - :ivar url: URL where a copy of the agreement details is hosted. - :vartype url: str - """ - - _validation = { - "agreement_key": {"required": True}, - "title": {"required": True}, - "content": {"required": True}, - } - - _attribute_map = { - "agreement_key": {"key": "agreementKey", "type": "str"}, - "title": {"key": "title", "type": "str"}, - "content": {"key": "content", "type": "str"}, - "url": {"key": "url", "type": "str"}, - } - - def __init__( - self, *, agreement_key: str, title: str, content: str, url: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword agreement_key: Unique identifier for the agreement. Required. - :paramtype agreement_key: str - :keyword title: Agreement title. Required. - :paramtype title: str - :keyword content: Agreement details. Required. - :paramtype content: str - :keyword url: URL where a copy of the agreement details is hosted. - :paramtype url: str - """ - super().__init__(**kwargs) - self.agreement_key = agreement_key - self.title = title - self.content = content - self.url = url - - -class TldLegalAgreementCollection(_serialization.Model): - """Collection of top-level domain legal agreements. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.domainregistration.models.TldLegalAgreement] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[TldLegalAgreement]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.TldLegalAgreement"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.domainregistration.models.TldLegalAgreement] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class TopLevelDomain(ProxyOnlyResource): - """A top level domain object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar privacy: If :code:`true`, then the top level domain supports domain privacy; - otherwise, :code:`false`. - :vartype privacy: bool - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "privacy": {"key": "properties.privacy", "type": "bool"}, - } - - def __init__(self, *, kind: Optional[str] = None, privacy: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - :keyword privacy: If :code:`true`, then the top level domain supports domain - privacy; otherwise, :code:`false`. - :paramtype privacy: bool - """ - super().__init__(kind=kind, **kwargs) - self.privacy = privacy - - -class TopLevelDomainAgreementOption(_serialization.Model): - """Options for retrieving the list of top level domain legal agreements. - - :ivar include_privacy: If :code:`true`, then the list of agreements will include - agreements for domain privacy as well; otherwise, :code:`false`. - :vartype include_privacy: bool - :ivar for_transfer: If :code:`true`, then the list of agreements will include - agreements for domain transfer as well; otherwise, :code:`false`. - :vartype for_transfer: bool - """ - - _attribute_map = { - "include_privacy": {"key": "includePrivacy", "type": "bool"}, - "for_transfer": {"key": "forTransfer", "type": "bool"}, - } - - def __init__( - self, *, include_privacy: Optional[bool] = None, for_transfer: Optional[bool] = None, **kwargs: Any - ) -> None: - """ - :keyword include_privacy: If :code:`true`, then the list of agreements will - include agreements for domain privacy as well; otherwise, :code:`false`. - :paramtype include_privacy: bool - :keyword for_transfer: If :code:`true`, then the list of agreements will include - agreements for domain transfer as well; otherwise, :code:`false`. - :paramtype for_transfer: bool - """ - super().__init__(**kwargs) - self.include_privacy = include_privacy - self.for_transfer = for_transfer - - -class TopLevelDomainCollection(_serialization.Model): - """Collection of Top-level domains. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.domainregistration.models.TopLevelDomain] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[TopLevelDomain]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.TopLevelDomain"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.domainregistration.models.TopLevelDomain] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class User(ProxyOnlyResource): - """User credentials used for publishing activity. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar publishing_user_name: Username used for publishing. - :vartype publishing_user_name: str - :ivar publishing_password: Password used for publishing. - :vartype publishing_password: str - :ivar publishing_password_hash: Password hash used for publishing. - :vartype publishing_password_hash: str - :ivar publishing_password_hash_salt: Password hash salt used for publishing. - :vartype publishing_password_hash_salt: str - :ivar scm_uri: Url of SCM site. - :vartype scm_uri: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "publishing_user_name": {"key": "properties.publishingUserName", "type": "str"}, - "publishing_password": {"key": "properties.publishingPassword", "type": "str"}, - "publishing_password_hash": {"key": "properties.publishingPasswordHash", "type": "str"}, - "publishing_password_hash_salt": {"key": "properties.publishingPasswordHashSalt", "type": "str"}, - "scm_uri": {"key": "properties.scmUri", "type": "str"}, - } - - def __init__( - self, - *, - kind: Optional[str] = None, - publishing_user_name: Optional[str] = None, - publishing_password: Optional[str] = None, - publishing_password_hash: Optional[str] = None, - publishing_password_hash_salt: Optional[str] = None, - scm_uri: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - :keyword publishing_user_name: Username used for publishing. - :paramtype publishing_user_name: str - :keyword publishing_password: Password used for publishing. - :paramtype publishing_password: str - :keyword publishing_password_hash: Password hash used for publishing. - :paramtype publishing_password_hash: str - :keyword publishing_password_hash_salt: Password hash salt used for publishing. - :paramtype publishing_password_hash_salt: str - :keyword scm_uri: Url of SCM site. - :paramtype scm_uri: str - """ - super().__init__(kind=kind, **kwargs) - self.publishing_user_name = publishing_user_name - self.publishing_password = publishing_password - self.publishing_password_hash = publishing_password_hash - self.publishing_password_hash_salt = publishing_password_hash_salt - self.scm_uri = scm_uri - - -class UserAssignedIdentity(_serialization.Model): - """User Assigned identity. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: Principal Id of user assigned identity. - :vartype principal_id: str - :ivar client_id: Client Id of user assigned identity. - :vartype client_id: str - """ - - _validation = { - "principal_id": {"readonly": True}, - "client_id": {"readonly": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "client_id": {"key": "clientId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.principal_id: Optional[str] = None - self.client_id: Optional[str] = None - - -class VirtualApplication(_serialization.Model): - """Virtual application in an app. - - :ivar virtual_path: Virtual path. - :vartype virtual_path: str - :ivar physical_path: Physical path. - :vartype physical_path: str - :ivar preload_enabled: :code:`true` if preloading is enabled; otherwise, - :code:`false`. - :vartype preload_enabled: bool - :ivar virtual_directories: Virtual directories for virtual application. - :vartype virtual_directories: list[~azure.mgmt.domainregistration.models.VirtualDirectory] - """ - - _attribute_map = { - "virtual_path": {"key": "virtualPath", "type": "str"}, - "physical_path": {"key": "physicalPath", "type": "str"}, - "preload_enabled": {"key": "preloadEnabled", "type": "bool"}, - "virtual_directories": {"key": "virtualDirectories", "type": "[VirtualDirectory]"}, - } - - def __init__( - self, - *, - virtual_path: Optional[str] = None, - physical_path: Optional[str] = None, - preload_enabled: Optional[bool] = None, - virtual_directories: Optional[list["_models.VirtualDirectory"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword virtual_path: Virtual path. - :paramtype virtual_path: str - :keyword physical_path: Physical path. - :paramtype physical_path: str - :keyword preload_enabled: :code:`true` if preloading is enabled; otherwise, - :code:`false`. - :paramtype preload_enabled: bool - :keyword virtual_directories: Virtual directories for virtual application. - :paramtype virtual_directories: list[~azure.mgmt.domainregistration.models.VirtualDirectory] - """ - super().__init__(**kwargs) - self.virtual_path = virtual_path - self.physical_path = physical_path - self.preload_enabled = preload_enabled - self.virtual_directories = virtual_directories - - -class VirtualDirectory(_serialization.Model): - """Directory for virtual application. - - :ivar virtual_path: Path to virtual application. - :vartype virtual_path: str - :ivar physical_path: Physical path. - :vartype physical_path: str - """ - - _attribute_map = { - "virtual_path": {"key": "virtualPath", "type": "str"}, - "physical_path": {"key": "physicalPath", "type": "str"}, - } - - def __init__( - self, *, virtual_path: Optional[str] = None, physical_path: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword virtual_path: Path to virtual application. - :paramtype virtual_path: str - :keyword physical_path: Physical path. - :paramtype physical_path: str - """ - super().__init__(**kwargs) - self.virtual_path = virtual_path - self.physical_path = physical_path - - -class VirtualNetworkProfile(_serialization.Model): - """Specification for using a Virtual Network. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Resource id of the Virtual Network. Required. - :vartype id: str - :ivar name: Name of the Virtual Network (read-only). - :vartype name: str - :ivar type: Resource type of the Virtual Network (read-only). - :vartype type: str - :ivar subnet: Subnet within the Virtual Network. - :vartype subnet: str - """ - - _validation = { - "id": {"required": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "subnet": {"key": "subnet", "type": "str"}, - } - - def __init__( - self, *, id: str, subnet: Optional[str] = None, **kwargs: Any # pylint: disable=redefined-builtin - ) -> None: - """ - :keyword id: Resource id of the Virtual Network. Required. - :paramtype id: str - :keyword subnet: Subnet within the Virtual Network. - :paramtype subnet: str - """ - super().__init__(**kwargs) - self.id = id - self.name: Optional[str] = None - self.type: Optional[str] = None - self.subnet = subnet - - -class VnetGateway(ProxyOnlyResource): - """The Virtual Network gateway contract. This is used to give the Virtual Network gateway access - to the VPN package. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar vnet_name: The Virtual Network name. - :vartype vnet_name: str - :ivar vpn_package_uri: The URI where the VPN package can be downloaded. - :vartype vpn_package_uri: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "vnet_name": {"key": "properties.vnetName", "type": "str"}, - "vpn_package_uri": {"key": "properties.vpnPackageUri", "type": "str"}, - } - - def __init__( - self, - *, - kind: Optional[str] = None, - vnet_name: Optional[str] = None, - vpn_package_uri: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - :keyword vnet_name: The Virtual Network name. - :paramtype vnet_name: str - :keyword vpn_package_uri: The URI where the VPN package can be downloaded. - :paramtype vpn_package_uri: str - """ - super().__init__(kind=kind, **kwargs) - self.vnet_name = vnet_name - self.vpn_package_uri = vpn_package_uri - - -class VnetInfoResource(ProxyOnlyResource): - """Virtual Network information ARM resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar vnet_resource_id: The Virtual Network's resource ID. - :vartype vnet_resource_id: str - :ivar cert_thumbprint: The client certificate thumbprint. - :vartype cert_thumbprint: str - :ivar cert_blob: A certificate file (.cer) blob containing the public key of the private key - used to authenticate a - Point-To-Site VPN connection. - :vartype cert_blob: str - :ivar routes: The routes that this Virtual Network connection uses. - :vartype routes: list[~azure.mgmt.domainregistration.models.VnetRoute] - :ivar resync_required: :code:`true` if a resync is required; otherwise, - :code:`false`. - :vartype resync_required: bool - :ivar dns_servers: DNS servers to be used by this Virtual Network. This should be a - comma-separated list of IP addresses. - :vartype dns_servers: str - :ivar is_swift: Flag that is used to denote if this is VNET injection. - :vartype is_swift: bool - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "cert_thumbprint": {"readonly": True}, - "routes": {"readonly": True}, - "resync_required": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "vnet_resource_id": {"key": "properties.vnetResourceId", "type": "str"}, - "cert_thumbprint": {"key": "properties.certThumbprint", "type": "str"}, - "cert_blob": {"key": "properties.certBlob", "type": "str"}, - "routes": {"key": "properties.routes", "type": "[VnetRoute]"}, - "resync_required": {"key": "properties.resyncRequired", "type": "bool"}, - "dns_servers": {"key": "properties.dnsServers", "type": "str"}, - "is_swift": {"key": "properties.isSwift", "type": "bool"}, - } - - def __init__( - self, - *, - kind: Optional[str] = None, - vnet_resource_id: Optional[str] = None, - cert_blob: Optional[str] = None, - dns_servers: Optional[str] = None, - is_swift: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - :keyword vnet_resource_id: The Virtual Network's resource ID. - :paramtype vnet_resource_id: str - :keyword cert_blob: A certificate file (.cer) blob containing the public key of the private key - used to authenticate a - Point-To-Site VPN connection. - :paramtype cert_blob: str - :keyword dns_servers: DNS servers to be used by this Virtual Network. This should be a - comma-separated list of IP addresses. - :paramtype dns_servers: str - :keyword is_swift: Flag that is used to denote if this is VNET injection. - :paramtype is_swift: bool - """ - super().__init__(kind=kind, **kwargs) - self.vnet_resource_id = vnet_resource_id - self.cert_thumbprint: Optional[str] = None - self.cert_blob = cert_blob - self.routes: Optional[list["_models.VnetRoute"]] = None - self.resync_required: Optional[bool] = None - self.dns_servers = dns_servers - self.is_swift = is_swift - - -class VnetRoute(ProxyOnlyResource): - """Virtual Network route contract used to pass routing information for a Virtual Network. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar kind: Kind of resource. - :vartype kind: str - :ivar type: Resource type. - :vartype type: str - :ivar start_address: The starting address for this route. This may also include a CIDR - notation, in which case the end address must not be specified. - :vartype start_address: str - :ivar end_address: The ending address for this route. If the start address is specified in CIDR - notation, this must be omitted. - :vartype end_address: str - :ivar route_type: The type of route this is: - DEFAULT - By default, every app has routes to the local address ranges specified by RFC1918 - INHERITED - Routes inherited from the real Virtual Network routes - STATIC - Static route set on the app only - These values will be used for syncing an app's routes with those from a Virtual Network. Known - values are: "DEFAULT", "INHERITED", and "STATIC". - :vartype route_type: str or ~azure.mgmt.domainregistration.models.RouteType - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "start_address": {"key": "properties.startAddress", "type": "str"}, - "end_address": {"key": "properties.endAddress", "type": "str"}, - "route_type": {"key": "properties.routeType", "type": "str"}, - } - - def __init__( - self, - *, - kind: Optional[str] = None, - start_address: Optional[str] = None, - end_address: Optional[str] = None, - route_type: Optional[Union[str, "_models.RouteType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Kind of resource. - :paramtype kind: str - :keyword start_address: The starting address for this route. This may also include a CIDR - notation, in which case the end address must not be specified. - :paramtype start_address: str - :keyword end_address: The ending address for this route. If the start address is specified in - CIDR notation, this must be omitted. - :paramtype end_address: str - :keyword route_type: The type of route this is: - DEFAULT - By default, every app has routes to the local address ranges specified by RFC1918 - INHERITED - Routes inherited from the real Virtual Network routes - STATIC - Static route set on the app only - These values will be used for syncing an app's routes with those from a Virtual Network. Known - values are: "DEFAULT", "INHERITED", and "STATIC". - :paramtype route_type: str or ~azure.mgmt.domainregistration.models.RouteType - """ - super().__init__(kind=kind, **kwargs) - self.start_address = start_address - self.end_address = end_address - self.route_type = route_type - - -class WebAppCollection(_serialization.Model): - """Collection of App Service apps. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.domainregistration.models.Site] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[Site]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.Site"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.domainregistration.models.Site] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/models/_web_site_management_client_enums.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/models/_web_site_management_client_enums.py deleted file mode 100644 index c5c3498e2b6c..000000000000 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/models/_web_site_management_client_enums.py +++ /dev/null @@ -1,500 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class AuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Property to select authentication type to access the selected storage account. Available - options: SystemAssignedIdentity, UserAssignedIdentity, StorageAccountConnectionString. - """ - - SYSTEM_ASSIGNED_IDENTITY = "SystemAssignedIdentity" - USER_ASSIGNED_IDENTITY = "UserAssignedIdentity" - STORAGE_ACCOUNT_CONNECTION_STRING = "StorageAccountConnectionString" - - -class AutoGeneratedDomainNameLabelScope(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Specifies the scope of uniqueness for the default hostname during resource creation.""" - - TENANT_REUSE = "TenantReuse" - SUBSCRIPTION_REUSE = "SubscriptionReuse" - RESOURCE_GROUP_REUSE = "ResourceGroupReuse" - NO_REUSE = "NoReuse" - - -class AutoHealActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Predefined action to be taken.""" - - RECYCLE = "Recycle" - LOG_EVENT = "LogEvent" - CUSTOM_ACTION = "CustomAction" - - -class AzureResourceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the Azure resource the hostname is assigned to.""" - - WEBSITE = "Website" - TRAFFIC_MANAGER = "TrafficManager" - - -class AzureStorageProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Mounting protocol to use for the storage account.""" - - SMB = "Smb" - HTTP = "Http" - NFS = "Nfs" - - -class AzureStorageState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the storage account.""" - - OK = "Ok" - INVALID_CREDENTIALS = "InvalidCredentials" - INVALID_SHARE = "InvalidShare" - NOT_VALIDATED = "NotValidated" - - -class AzureStorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of storage.""" - - AZURE_FILES = "AzureFiles" - AZURE_BLOB = "AzureBlob" - - -class ClientCertMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """This composes with ClientCertEnabled setting. - * ClientCertEnabled: false means ClientCert is ignored. - * ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required. - * ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or - accepted. - """ - - REQUIRED = "Required" - OPTIONAL = "Optional" - OPTIONAL_INTERACTIVE_USER = "OptionalInteractiveUser" - - -class ConnectionStringType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of database.""" - - MY_SQL = "MySql" - SQL_SERVER = "SQLServer" - SQL_AZURE = "SQLAzure" - CUSTOM = "Custom" - NOTIFICATION_HUB = "NotificationHub" - SERVICE_BUS = "ServiceBus" - EVENT_HUB = "EventHub" - API_HUB = "ApiHub" - DOC_DB = "DocDb" - REDIS_CACHE = "RedisCache" - POSTGRE_SQL = "PostgreSQL" - - -class CustomDnsSuffixProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """CustomDnsSuffixProvisioningState.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DEGRADED = "Degraded" - IN_PROGRESS = "InProgress" - - -class CustomHostNameDnsRecordType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the DNS record.""" - - C_NAME = "CName" - A = "A" - - -class DaprLogLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default - is info. - """ - - INFO = "info" - DEBUG = "debug" - WARN = "warn" - ERROR = "error" - - -class DefaultAction(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Default action for main access restriction if no rules are matched.""" - - ALLOW = "Allow" - DENY = "Deny" - - -class DetectorType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Whether this detector is an Analysis Detector or not.""" - - DETECTOR = "Detector" - ANALYSIS = "Analysis" - CATEGORY_OVERVIEW = "CategoryOverview" - - -class DnsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Current DNS type.""" - - AZURE_DNS = "AzureDns" - DEFAULT_DOMAIN_REGISTRAR_DNS = "DefaultDomainRegistrarDns" - - -class DomainStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Domain registration status.""" - - ACTIVE = "Active" - AWAITING = "Awaiting" - CANCELLED = "Cancelled" - CONFISCATED = "Confiscated" - DISABLED = "Disabled" - EXCLUDED = "Excluded" - EXPIRED = "Expired" - FAILED = "Failed" - HELD = "Held" - LOCKED = "Locked" - PARKED = "Parked" - PENDING = "Pending" - RESERVED = "Reserved" - REVERTED = "Reverted" - SUSPENDED = "Suspended" - TRANSFERRED = "Transferred" - UNKNOWN = "Unknown" - UNLOCKED = "Unlocked" - UNPARKED = "Unparked" - UPDATED = "Updated" - JSON_CONVERTER_FAILED = "JsonConverterFailed" - - -class DomainType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Valid values are Regular domain: Azure will charge the full price of domain registration, - SoftDeleted: Purchasing this domain will simply restore it and this operation will not cost - anything. - """ - - REGULAR = "Regular" - SOFT_DELETED = "SoftDeleted" - - -class FtpsState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of FTP / FTPS service.""" - - ALL_ALLOWED = "AllAllowed" - FTPS_ONLY = "FtpsOnly" - DISABLED = "Disabled" - - -class FunctionsDeploymentStorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Property to select Azure Storage type. Available options: blobContainer.""" - - BLOB_CONTAINER = "blobContainer" - - -class HostingEnvironmentStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Current status of the App Service Environment.""" - - PREPARING = "Preparing" - READY = "Ready" - SCALING = "Scaling" - DELETING = "Deleting" - - -class HostNameType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the hostname.""" - - VERIFIED = "Verified" - MANAGED = "Managed" - - -class HostType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Indicates whether the hostname is a standard or repository hostname.""" - - STANDARD = "Standard" - REPOSITORY = "Repository" - - -class InsightStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Level of the most severe insight generated by the detector.""" - - CRITICAL = "Critical" - WARNING = "Warning" - INFO = "Info" - SUCCESS = "Success" - NONE = "None" - - -class IpFilterTag(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Defines what this IP filter will be used for. This is to support IP filtering on proxies.""" - - DEFAULT = "Default" - XFF_PROXY = "XffProxy" - SERVICE_TAG = "ServiceTag" - - -class IPMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Specifies the IP mode of the app.""" - - I_PV4 = "IPv4" - I_PV6 = "IPv6" - I_PV4_AND_I_PV6 = "IPv4AndIPv6" - - -class KeyVaultSecretStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Key Vault secret.""" - - INITIALIZED = "Initialized" - WAITING_ON_CERTIFICATE_ORDER = "WaitingOnCertificateOrder" - SUCCEEDED = "Succeeded" - CERTIFICATE_ORDER_FAILED = "CertificateOrderFailed" - OPERATION_NOT_PERMITTED_ON_KEY_VAULT = "OperationNotPermittedOnKeyVault" - AZURE_SERVICE_UNAUTHORIZED_TO_ACCESS_KEY_VAULT = "AzureServiceUnauthorizedToAccessKeyVault" - KEY_VAULT_DOES_NOT_EXIST = "KeyVaultDoesNotExist" - KEY_VAULT_SECRET_DOES_NOT_EXIST = "KeyVaultSecretDoesNotExist" - UNKNOWN_ERROR = "UnknownError" - EXTERNAL_PRIVATE_KEY = "ExternalPrivateKey" - UNKNOWN = "Unknown" - - -class LoadBalancingMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Specifies which endpoints to serve internally in the Virtual Network for the App Service - Environment. - """ - - NONE = "None" - WEB = "Web" - PUBLISHING = "Publishing" - WEB_PUBLISHING = "Web, Publishing" - - -class ManagedPipelineMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Managed pipeline mode.""" - - INTEGRATED = "Integrated" - CLASSIC = "Classic" - - -class ManagedServiceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of managed service identity.""" - - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned, UserAssigned" - NONE = "None" - - -class OperationStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The current status of the operation.""" - - IN_PROGRESS = "InProgress" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - TIMED_OUT = "TimedOut" - CREATED = "Created" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Domain provisioning state.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CANCELED = "Canceled" - IN_PROGRESS = "InProgress" - DELETING = "Deleting" - - -class RedundancyMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Site redundancy mode.""" - - NONE = "None" - MANUAL = "Manual" - FAILOVER = "Failover" - ACTIVE_ACTIVE = "ActiveActive" - GEO_REDUNDANT = "GeoRedundant" - - -class RenderingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Rendering Type.""" - - NO_GRAPH = "NoGraph" - TABLE = "Table" - TIME_SERIES = "TimeSeries" - TIME_SERIES_PER_INSTANCE = "TimeSeriesPerInstance" - PIE_CHART = "PieChart" - DATA_SUMMARY = "DataSummary" - EMAIL = "Email" - INSIGHTS = "Insights" - DYNAMIC_INSIGHT = "DynamicInsight" - MARKDOWN = "Markdown" - DETECTOR = "Detector" - DROP_DOWN = "DropDown" - CARD = "Card" - SOLUTION = "Solution" - GUAGE = "Guage" - FORM = "Form" - CHANGE_SETS = "ChangeSets" - CHANGE_ANALYSIS_ONBOARDING = "ChangeAnalysisOnboarding" - CHANGES_VIEW = "ChangesView" - APP_INSIGHT = "AppInsight" - DEPENDENCY_GRAPH = "DependencyGraph" - DOWN_TIME = "DownTime" - SUMMARY_CARD = "SummaryCard" - SEARCH_COMPONENT = "SearchComponent" - APP_INSIGHT_ENABLEMENT = "AppInsightEnablement" - - -class ResourceNotRenewableReason(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """ResourceNotRenewableReason.""" - - REGISTRATION_STATUS_NOT_SUPPORTED_FOR_RENEWAL = "RegistrationStatusNotSupportedForRenewal" - EXPIRATION_NOT_IN_RENEWAL_TIME_RANGE = "ExpirationNotInRenewalTimeRange" - SUBSCRIPTION_NOT_ACTIVE = "SubscriptionNotActive" - - -class RouteType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of route this is: - DEFAULT - By default, every app has routes to the local address ranges specified by RFC1918 - INHERITED - Routes inherited from the real Virtual Network routes - STATIC - Static route set on the app only - These values will be used for syncing an app's routes with those from a Virtual Network. - """ - - DEFAULT = "DEFAULT" - INHERITED = "INHERITED" - STATIC = "STATIC" - - -class RuntimeName(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Function app runtime name. Available options: dotnet-isolated, node, java, powershell, python, - custom. - """ - - DOTNET_ISOLATED = "dotnet-isolated" - NODE = "node" - JAVA = "java" - POWERSHELL = "powershell" - PYTHON = "python" - CUSTOM = "custom" - - -class ScmType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """SCM type.""" - - NONE = "None" - DROPBOX = "Dropbox" - TFS = "Tfs" - LOCAL_GIT = "LocalGit" - GIT_HUB = "GitHub" - CODE_PLEX_GIT = "CodePlexGit" - CODE_PLEX_HG = "CodePlexHg" - BITBUCKET_GIT = "BitbucketGit" - BITBUCKET_HG = "BitbucketHg" - EXTERNAL_GIT = "ExternalGit" - EXTERNAL_HG = "ExternalHg" - ONE_DRIVE = "OneDrive" - VSO = "VSO" - VSTSRM = "VSTSRM" - - -class SiteAvailabilityState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Management information availability state for the app.""" - - NORMAL = "Normal" - LIMITED = "Limited" - DISASTER_RECOVERY_MODE = "DisasterRecoveryMode" - - -class SiteLoadBalancing(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Site load balancing.""" - - WEIGHTED_ROUND_ROBIN = "WeightedRoundRobin" - LEAST_REQUESTS = "LeastRequests" - LEAST_RESPONSE_TIME = "LeastResponseTime" - WEIGHTED_TOTAL_TRAFFIC = "WeightedTotalTraffic" - REQUEST_HASH = "RequestHash" - PER_SITE_ROUND_ROBIN = "PerSiteRoundRobin" - LEAST_REQUESTS_WITH_TIE_BREAKER = "LeastRequestsWithTieBreaker" - - -class SslState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """SSL type.""" - - DISABLED = "Disabled" - SNI_ENABLED = "SniEnabled" - IP_BASED_ENABLED = "IpBasedEnabled" - - -class StatusOptions(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """App Service plan status.""" - - READY = "Ready" - PENDING = "Pending" - CREATING = "Creating" - - -class SupportedTlsVersions(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """MinTlsVersion: configures the minimum version of TLS required for SSL requests.""" - - ONE0 = "1.0" - ONE1 = "1.1" - ONE2 = "1.2" - ONE3 = "1.3" - - -class TlsCipherSuites(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The minimum strength TLS cipher suite allowed for an application.""" - - TLS_AES256_GCM_SHA384 = "TLS_AES_256_GCM_SHA384" - TLS_AES128_GCM_SHA256 = "TLS_AES_128_GCM_SHA256" - TLS_ECDHE_ECDSA_WITH_AES256_GCM_SHA384 = "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" - TLS_ECDHE_ECDSA_WITH_AES128_CBC_SHA256 = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256" - TLS_ECDHE_ECDSA_WITH_AES128_GCM_SHA256 = "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" - TLS_ECDHE_RSA_WITH_AES256_GCM_SHA384 = "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" - TLS_ECDHE_RSA_WITH_AES128_GCM_SHA256 = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" - TLS_ECDHE_RSA_WITH_AES256_CBC_SHA384 = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384" - TLS_ECDHE_RSA_WITH_AES128_CBC_SHA256 = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" - TLS_ECDHE_RSA_WITH_AES256_CBC_SHA = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" - TLS_ECDHE_RSA_WITH_AES128_CBC_SHA = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" - TLS_RSA_WITH_AES256_GCM_SHA384 = "TLS_RSA_WITH_AES_256_GCM_SHA384" - TLS_RSA_WITH_AES128_GCM_SHA256 = "TLS_RSA_WITH_AES_128_GCM_SHA256" - TLS_RSA_WITH_AES256_CBC_SHA256 = "TLS_RSA_WITH_AES_256_CBC_SHA256" - TLS_RSA_WITH_AES128_CBC_SHA256 = "TLS_RSA_WITH_AES_128_CBC_SHA256" - TLS_RSA_WITH_AES256_CBC_SHA = "TLS_RSA_WITH_AES_256_CBC_SHA" - TLS_RSA_WITH_AES128_CBC_SHA = "TLS_RSA_WITH_AES_128_CBC_SHA" - - -class UpgradeAvailability(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Whether an upgrade is available for this App Service Environment.""" - - NONE = "None" - """No upgrade is currently available for this App Service Environment""" - READY = "Ready" - """An upgrade is ready to be manually initiated on this App Service Environment""" - - -class UpgradePreference(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Upgrade Preference.""" - - NONE = "None" - """No preference on when this App Service Environment will be upgraded""" - EARLY = "Early" - """This App Service Environment will be upgraded before others in the same region that have - Upgrade Preference 'Late'""" - LATE = "Late" - """This App Service Environment will be upgraded after others in the same region that have Upgrade - Preference 'Early'""" - MANUAL = "Manual" - """ASEv3 only. Once an upgrade is available, this App Service Environment will wait 10 days for - the upgrade to be manually initiated. After 10 days the upgrade will begin automatically""" - - -class UsageState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State indicating whether the app has exceeded its quota usage. Read-only.""" - - NORMAL = "Normal" - EXCEEDED = "Exceeded" diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/operations/__init__.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/operations/__init__.py index 1c83589d9854..9260e533c5e8 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/operations/__init__.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/operations/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -12,18 +12,18 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._domain_registration_provider_operations import DomainRegistrationProviderOperations # type: ignore -from ._domains_operations import DomainsOperations # type: ignore -from ._top_level_domains_operations import TopLevelDomainsOperations # type: ignore +from ._operations import DomainsOperations # type: ignore +from ._operations import TopLevelDomainsOperations # type: ignore +from ._operations import DomainRegistrationProviderOperations # type: ignore from ._patch import __all__ as _patch_all from ._patch import * from ._patch import patch_sdk as _patch_sdk __all__ = [ - "DomainRegistrationProviderOperations", "DomainsOperations", "TopLevelDomainsOperations", + "DomainRegistrationProviderOperations", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore _patch_sdk() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/operations/_domain_registration_provider_operations.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/operations/_domain_registration_provider_operations.py deleted file mode 100644 index d3af763ba234..000000000000 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/operations/_domain_registration_provider_operations.py +++ /dev/null @@ -1,156 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import WebSiteManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_operations_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.DomainRegistration/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class DomainRegistrationProviderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.domainregistration.WebSiteManagementClient`'s - :attr:`domain_registration_provider` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: WebSiteManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_operations(self, **kwargs: Any) -> ItemPaged["_models.CsmOperationDescription"]: - """Implements Csm operations Api to exposes the list of available Csm Apis under the resource - provider. - - Description for Implements Csm operations Api to exposes the list of available Csm Apis under - the resource provider. - - :return: An iterator like instance of either CsmOperationDescription or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.CsmOperationDescription] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.CsmOperationCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_operations_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CsmOperationCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/operations/_domains_operations.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/operations/_operations.py similarity index 53% rename from sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/operations/_domains_operations.py rename to sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/operations/_operations.py index ba58f06ee71d..0fa21725a26c 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/operations/_domains_operations.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/operations/_operations.py @@ -3,11 +3,12 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase +import json from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload import urllib.parse @@ -32,9 +33,11 @@ from azure.mgmt.core.polling.arm_polling import ARMPolling from .. import models as _models -from .._configuration import WebSiteManagementClientConfiguration +from .._configuration import DomainRegistrationClientConfiguration +from .._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from .._utils.serialization import Deserializer, Serializer +JSON = MutableMapping[str, Any] T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] List = list @@ -43,20 +46,21 @@ _SERIALIZER.client_side_validation = False -def build_check_availability_request(subscription_id: str, **kwargs: Any) -> HttpRequest: +def build_domains_get_request( + resource_group_name: str, domain_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop( - "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/checkDomainAvailability" - ) + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -65,24 +69,27 @@ def build_check_availability_request(subscription_id: str, **kwargs: Any) -> Htt _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: +def build_domains_create_or_update_request( + resource_group_name: str, domain_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/domains") + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -91,26 +98,29 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) -def build_get_control_center_sso_request_request( # pylint: disable=name-too-long - subscription_id: str, **kwargs: Any +def build_domains_update_request( + resource_group_name: str, domain_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop( - "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/generateSsoRequest" - ) + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -119,42 +129,47 @@ def build_get_control_center_sso_request_request( # pylint: disable=name-too-lo _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) -def build_list_recommendations_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) +def build_domains_delete_request( + resource_group_name: str, + domain_name: str, + subscription_id: str, + *, + force_hard_delete_domain: Optional[bool] = None, + **kwargs: Any, +) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/listDomainRecommendations", - ) + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if force_hard_delete_domain is not None: + _params["forceHardDeleteDomain"] = _SERIALIZER.query( + "force_hard_delete_domain", force_hard_delete_domain, "bool" + ) - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) -def build_list_by_resource_group_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: +def build_domains_list_by_resource_group_request( # pylint: disable=name-too-long + resource_group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) @@ -162,20 +177,10 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains", - ) + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains" path_format_arguments = { - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", - resource_group_name, - "str", - max_length=90, - min_length=1, - pattern=r"^[-\w\._\(\)]+[^\.]$", - ), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -189,7 +194,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -def build_get_request(resource_group_name: str, domain_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: +def build_domains_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) @@ -197,20 +202,8 @@ def build_get_request(resource_group_name: str, domain_name: str, subscription_i accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}", - ) + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/domains" path_format_arguments = { - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", - resource_group_name, - "str", - max_length=90, - min_length=1, - pattern=r"^[-\w\._\(\)]+[^\.]$", - ), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } @@ -225,32 +218,43 @@ def build_get_request(resource_group_name: str, domain_name: str, subscription_i return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -def build_create_or_update_request( +def build_domains_renew_request( + resource_group_name: str, domain_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/renew" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_domains_transfer_out_request( resource_group_name: str, domain_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}", - ) + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/transferOut" path_format_arguments = { - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", - resource_group_name, - "str", - max_length=90, - min_length=1, - pattern=r"^[-\w\._\(\)]+[^\.]$", - ), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str", pattern=r"[a-zA-Z0-9][a-zA-Z0-9\.-]+"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -259,20 +263,13 @@ def build_create_or_update_request( _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) -def build_delete_request( - resource_group_name: str, - domain_name: str, - subscription_id: str, - *, - force_hard_delete_domain: Optional[bool] = None, - **kwargs: Any +def build_domains_get_ownership_identifier_request( # pylint: disable=name-too-long + resource_group_name: str, domain_name: str, name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) @@ -281,64 +278,42 @@ def build_delete_request( accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}", - ) + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}" path_format_arguments = { - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", - resource_group_name, - "str", - max_length=90, - min_length=1, - pattern=r"^[-\w\._\(\)]+[^\.]$", - ), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters - if force_hard_delete_domain is not None: - _params["forceHardDeleteDomain"] = _SERIALIZER.query( - "force_hard_delete_domain", force_hard_delete_domain, "bool" - ) _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -def build_update_request( - resource_group_name: str, domain_name: str, subscription_id: str, **kwargs: Any +def build_domains_create_or_update_ownership_identifier_request( # pylint: disable=name-too-long + resource_group_name: str, domain_name: str, name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}", - ) + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}" path_format_arguments = { - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", - resource_group_name, - "str", - max_length=90, - min_length=1, - pattern=r"^[-\w\._\(\)]+[^\.]$", - ), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str", pattern=r"[a-zA-Z0-9][a-zA-Z0-9\.-]+"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -351,34 +326,26 @@ def build_update_request( _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) -def build_list_ownership_identifiers_request( - resource_group_name: str, domain_name: str, subscription_id: str, **kwargs: Any +def build_domains_update_ownership_identifier_request( # pylint: disable=name-too-long + resource_group_name: str, domain_name: str, name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers", - ) + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}" path_format_arguments = { - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", - resource_group_name, - "str", - max_length=90, - min_length=1, - pattern=r"^[-\w\._\(\)]+[^\.]$", - ), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -387,13 +354,38 @@ def build_list_ownership_identifiers_request( _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) -def build_get_ownership_identifier_request( +def build_domains_delete_ownership_identifier_request( # pylint: disable=name-too-long resource_group_name: str, domain_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_domains_list_ownership_identifiers_request( # pylint: disable=name-too-long + resource_group_name: str, domain_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) @@ -402,22 +394,11 @@ def build_get_ownership_identifier_request( accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}", - ) + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers" path_format_arguments = { - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", - resource_group_name, - "str", - max_length=90, - min_length=1, - pattern=r"^[-\w\._\(\)]+[^\.]$", - ), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - "name": _SERIALIZER.url("name", name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -431,32 +412,17 @@ def build_get_ownership_identifier_request( return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -def build_create_or_update_ownership_identifier_request( # pylint: disable=name-too-long - resource_group_name: str, domain_name: str, name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: +def build_domains_check_availability_request(subscription_id: str, **kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}", - ) + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/checkDomainAvailability" path_format_arguments = { - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", - resource_group_name, - "str", - max_length=90, - min_length=1, - pattern=r"^[-\w\._\(\)]+[^\.]$", - ), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - "name": _SERIALIZER.url("name", name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } @@ -470,11 +436,11 @@ def build_create_or_update_ownership_identifier_request( # pylint: disable=name _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -def build_delete_ownership_identifier_request( # pylint: disable=name-too-long - resource_group_name: str, domain_name: str, name: str, subscription_id: str, **kwargs: Any +def build_domains_get_control_center_sso_request_request( # pylint: disable=name-too-long + subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) @@ -483,21 +449,8 @@ def build_delete_ownership_identifier_request( # pylint: disable=name-too-long accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}", - ) + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/generateSsoRequest" path_format_arguments = { - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", - resource_group_name, - "str", - max_length=90, - min_length=1, - pattern=r"^[-\w\._\(\)]+[^\.]$", - ), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - "name": _SERIALIZER.url("name", name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } @@ -509,35 +462,22 @@ def build_delete_ownership_identifier_request( # pylint: disable=name-too-long # Construct headers _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -def build_update_ownership_identifier_request( # pylint: disable=name-too-long - resource_group_name: str, domain_name: str, name: str, subscription_id: str, **kwargs: Any +def build_domains_list_recommendations_request( # pylint: disable=name-too-long + subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}", - ) + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/listDomainRecommendations" path_format_arguments = { - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", - resource_group_name, - "str", - max_length=90, - min_length=1, - pattern=r"^[-\w\._\(\)]+[^\.]$", - ), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - "name": _SERIALIZER.url("name", name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } @@ -551,10 +491,10 @@ def build_update_ownership_identifier_request( # pylint: disable=name-too-long _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -def build_renew_request(resource_group_name: str, domain_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: +def build_top_level_domains_get_request(name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) @@ -562,20 +502,33 @@ def build_renew_request(resource_group_name: str, domain_name: str, subscription accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/renew", - ) + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_top_level_domains_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains" path_format_arguments = { - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", - resource_group_name, - "str", - max_length=90, - min_length=1, - pattern=r"^[-\w\._\(\)]+[^\.]$", - ), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } @@ -587,34 +540,26 @@ def build_renew_request(resource_group_name: str, domain_name: str, subscription # Construct headers _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -def build_transfer_out_request( - resource_group_name: str, domain_name: str, subscription_id: str, **kwargs: Any +def build_top_level_domains_list_agreements_request( # pylint: disable=name-too-long + name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/transferOut", + _url = ( + "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}/listAgreements" ) path_format_arguments = { - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", - resource_group_name, - "str", - max_length=90, - min_length=1, - pattern=r"^[-\w\._\(\)]+[^\.]$", - ), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "name": _SERIALIZER.url("name", name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -623,9 +568,32 @@ def build_transfer_out_request( _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_domain_registration_provider_list_operations_request( # pylint: disable=name-too-long + **kwargs: Any, +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/providers/Microsoft.DomainRegistration/operations" + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) class DomainsOperations: @@ -634,68 +602,30 @@ class DomainsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.domainregistration.WebSiteManagementClient`'s + :class:`~azure.mgmt.domainregistration.DomainRegistrationClient`'s :attr:`domains` attribute. """ - models = _models - def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: WebSiteManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._config: DomainRegistrationClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - @overload - def check_availability( - self, identifier: _models.NameIdentifier, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.DomainAvailabilityCheckResult: - """Check if a domain is available for registration. - - Description for Check if a domain is available for registration. - - :param identifier: Name of the domain. Required. - :type identifier: ~azure.mgmt.domainregistration.models.NameIdentifier - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: DomainAvailabilityCheckResult or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainAvailabilityCheckResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_availability( - self, identifier: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.DomainAvailabilityCheckResult: - """Check if a domain is available for registration. - - Description for Check if a domain is available for registration. - - :param identifier: Name of the domain. Required. - :type identifier: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: DomainAvailabilityCheckResult or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainAvailabilityCheckResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace - def check_availability( - self, identifier: Union[_models.NameIdentifier, IO[bytes]], **kwargs: Any - ) -> _models.DomainAvailabilityCheckResult: - """Check if a domain is available for registration. + def get(self, resource_group_name: str, domain_name: str, **kwargs: Any) -> _models.Domain: + """Get a domain. - Description for Check if a domain is available for registration. + Description for Get a domain. - :param identifier: Name of the domain. Is either a NameIdentifier type or a IO[bytes] type. + :param resource_group_name: The name of the resource group. The name is case insensitive. Required. - :type identifier: ~azure.mgmt.domainregistration.models.NameIdentifier or IO[bytes] - :return: DomainAvailabilityCheckResult or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainAvailabilityCheckResult + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :return: Domain. The Domain is compatible with MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.Domain :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -706,33 +636,25 @@ def check_availability( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DomainAvailabilityCheckResult] = kwargs.pop("cls", None) + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(identifier, (IOBase, bytes)): - _content = identifier - else: - _json = self._serialize.body(identifier, "NameIdentifier") + cls: ClsType[_models.Domain] = kwargs.pop("cls", None) - _request = build_check_availability_request( + _request = build_domains_get_request( + resource_group_name=resource_group_name, + domain_name=domain_name, subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, + api_version=self._config.api_version, headers=_headers, params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _stream = False + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) @@ -740,33 +662,28 @@ def check_availability( response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize("DomainAvailabilityCheckResult", pipeline_response.http_response) + if _stream: + deserialized = response.iter_bytes() + else: + deserialized = _deserialize(_models.Domain, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @distributed_trace - def list(self, **kwargs: Any) -> ItemPaged["_models.Domain"]: - """Get all domains in a subscription. - - Description for Get all domains in a subscription. - - :return: An iterator like instance of either Domain or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.Domain] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DomainCollection] = kwargs.pop("cls", None) - + def _create_or_update_initial( + self, resource_group_name: str, domain_name: str, domain: Union[_models.Domain, JSON, IO[bytes]], **kwargs: Any + ) -> Iterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -775,201 +692,512 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.Domain"]: } error_map.update(kwargs.pop("error_map", {}) or {}) - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DomainCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_control_center_sso_request(self, **kwargs: Any) -> _models.DomainControlCenterSsoRequest: - """Generate a single sign-on request for the domain management portal. - - Description for Generate a single sign-on request for the domain management portal. - - :return: DomainControlCenterSsoRequest or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainControlCenterSsoRequest - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DomainControlCenterSsoRequest] = kwargs.pop("cls", None) + content_type = content_type or "application/json" + _content = None + if isinstance(domain, (IOBase, bytes)): + _content = domain + else: + _content = json.dumps(domain, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_get_control_center_sso_request_request( + _request = build_domains_create_or_update_request( + resource_group_name=resource_group_name, + domain_name=domain_name, subscription_id=self._config.subscription_id, - api_version=api_version, + content_type=content_type, + api_version=self._config.api_version, + content=_content, headers=_headers, params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _stream = False + _stream = True pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200]: + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize("DomainControlCenterSsoRequest", pipeline_response.http_response) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.iter_bytes() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore @overload - def list_recommendations( + def begin_create_or_update( self, - parameters: _models.DomainRecommendationSearchParameters, + resource_group_name: str, + domain_name: str, + domain: _models.Domain, *, content_type: str = "application/json", - **kwargs: Any - ) -> ItemPaged["_models.NameIdentifier"]: - """Get domain name recommendations based on keywords. + **kwargs: Any, + ) -> LROPoller[_models.Domain]: + """Creates or updates a domain. - Description for Get domain name recommendations based on keywords. + Description for Creates or updates a domain. - :param parameters: Search parameters for domain name recommendations. Required. - :type parameters: ~azure.mgmt.domainregistration.models.DomainRecommendationSearchParameters + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param domain: Domain registration information. Required. + :type domain: ~azure.mgmt.domainregistration.models.Domain :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An iterator like instance of either NameIdentifier or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.NameIdentifier] + :return: An instance of LROPoller that returns Domain. The Domain is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.domainregistration.models.Domain] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def list_recommendations( - self, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> ItemPaged["_models.NameIdentifier"]: - """Get domain name recommendations based on keywords. + def begin_create_or_update( + self, + resource_group_name: str, + domain_name: str, + domain: JSON, + *, + content_type: str = "application/json", + **kwargs: Any, + ) -> LROPoller[_models.Domain]: + """Creates or updates a domain. - Description for Get domain name recommendations based on keywords. + Description for Creates or updates a domain. - :param parameters: Search parameters for domain name recommendations. Required. - :type parameters: IO[bytes] + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param domain: Domain registration information. Required. + :type domain: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns Domain. The Domain is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.domainregistration.models.Domain] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + domain_name: str, + domain: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any, + ) -> LROPoller[_models.Domain]: + """Creates or updates a domain. + + Description for Creates or updates a domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param domain: Domain registration information. Required. + :type domain: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An iterator like instance of either NameIdentifier or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.NameIdentifier] + :return: An instance of LROPoller that returns Domain. The Domain is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.domainregistration.models.Domain] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace - def list_recommendations( - self, parameters: Union[_models.DomainRecommendationSearchParameters, IO[bytes]], **kwargs: Any - ) -> ItemPaged["_models.NameIdentifier"]: - """Get domain name recommendations based on keywords. + def begin_create_or_update( + self, resource_group_name: str, domain_name: str, domain: Union[_models.Domain, JSON, IO[bytes]], **kwargs: Any + ) -> LROPoller[_models.Domain]: + """Creates or updates a domain. - Description for Get domain name recommendations based on keywords. + Description for Creates or updates a domain. - :param parameters: Search parameters for domain name recommendations. Is either a - DomainRecommendationSearchParameters type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.domainregistration.models.DomainRecommendationSearchParameters or - IO[bytes] - :return: An iterator like instance of either NameIdentifier or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.NameIdentifier] + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param domain: Domain registration information. Is one of the following types: Domain, JSON, + IO[bytes] Required. + :type domain: ~azure.mgmt.domainregistration.models.Domain or JSON or IO[bytes] + :return: An instance of LROPoller that returns Domain. The Domain is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.domainregistration.models.Domain] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + _params = kwargs.pop("params", {}) or {} - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameIdentifierCollection] = kwargs.pop("cls", None) + cls: ClsType[_models.Domain] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + domain_name=domain_name, + domain=domain, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs, + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.Domain, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } - error_map.update(kwargs.pop("error_map", {}) or {}) - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "DomainRecommendationSearchParameters") - def prepare_request(next_link=None): - if not next_link: + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.Domain].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.Domain]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - _request = build_list_recommendations_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, + @overload + def update( + self, + resource_group_name: str, + domain_name: str, + domain: _models.DomainPatchResource, + *, + content_type: str = "application/json", + **kwargs: Any, + ) -> _models.Domain: + """Creates or updates a domain. + + Description for Creates or updates a domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param domain: Domain registration information. Required. + :type domain: ~azure.mgmt.domainregistration.models.DomainPatchResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Domain. The Domain is compatible with MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.Domain + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + domain_name: str, + domain: JSON, + *, + content_type: str = "application/json", + **kwargs: Any, + ) -> _models.Domain: + """Creates or updates a domain. + + Description for Creates or updates a domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param domain: Domain registration information. Required. + :type domain: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Domain. The Domain is compatible with MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.Domain + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + domain_name: str, + domain: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any, + ) -> _models.Domain: + """Creates or updates a domain. + + Description for Creates or updates a domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param domain: Domain registration information. Required. + :type domain: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: Domain. The Domain is compatible with MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.Domain + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def update( + self, + resource_group_name: str, + domain_name: str, + domain: Union[_models.DomainPatchResource, JSON, IO[bytes]], + **kwargs: Any, + ) -> _models.Domain: + """Creates or updates a domain. + + Description for Creates or updates a domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param domain: Domain registration information. Is one of the following types: + DomainPatchResource, JSON, IO[bytes] Required. + :type domain: ~azure.mgmt.domainregistration.models.DomainPatchResource or JSON or IO[bytes] + :return: Domain. The Domain is compatible with MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.Domain + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Domain] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(domain, (IOBase, bytes)): + _content = domain + else: + _content = json.dumps(domain, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_domains_update_request( + resource_group_name=resource_group_name, + domain_name=domain_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + if _stream: + deserialized = response.iter_bytes() + else: + deserialized = _deserialize(_models.Domain, response.json()) + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + domain_name: str, + *, + force_hard_delete_domain: Optional[bool] = None, + **kwargs: Any, + ) -> None: + """Delete a domain. + + Description for Delete a domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :keyword force_hard_delete_domain: Specify true to delete the domain immediately. + The default is false which deletes the domain after 24 hours. Default value is + None. + :paramtype force_hard_delete_domain: bool + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_domains_delete_request( + resource_group_name=resource_group_name, + domain_name=domain_name, + subscription_id=self._config.subscription_id, + force_hard_delete_domain=force_hard_delete_domain, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Domain"]: + """Get all domains in a resource group. + + Description for Get all domains in a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of Domain + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.Domain] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Domain]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_domains_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) else: # make call to next link with the client's api-version @@ -984,16 +1212,21 @@ def prepare_request(next_link=None): _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + return _request def extract_data(pipeline_response): - deserialized = self._deserialize("NameIdentifierCollection", pipeline_response) - list_of_elem = deserialized.value + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize(List[_models.Domain], deserialized.get("value", [])) if cls: list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) + return deserialized.get("nextLink") or None, iter(list_of_elem) def get_next(next_link=None): _request = prepare_request(next_link) @@ -1006,7 +1239,7 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -1014,22 +1247,19 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Domain"]: - """Get all domains in a resource group. + def list(self, **kwargs: Any) -> ItemPaged["_models.Domain"]: + """Get all domains in a subscription. - Description for Get all domains in a resource group. + Description for Get all domains in a subscription. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :return: An iterator like instance of either Domain or the result of cls(response) + :return: An iterator like instance of Domain :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.Domain] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + _params = kwargs.pop("params", {}) or {} - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DomainCollection] = kwargs.pop("cls", None) + cls: ClsType[List[_models.Domain]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -1042,14 +1272,18 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite def prepare_request(next_link=None): if not next_link: - _request = build_list_by_resource_group_request( - resource_group_name=resource_group_name, + _request = build_domains_list_request( subscription_id=self._config.subscription_id, - api_version=api_version, + api_version=self._config.api_version, headers=_headers, params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) else: # make call to next link with the client's api-version @@ -1064,16 +1298,21 @@ def prepare_request(next_link=None): _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + return _request def extract_data(pipeline_response): - deserialized = self._deserialize("DomainCollection", pipeline_response) - list_of_elem = deserialized.value + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize(List[_models.Domain], deserialized.get("value", [])) if cls: list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) + return deserialized.get("nextLink") or None, iter(list_of_elem) def get_next(next_link=None): _request = prepare_request(next_link) @@ -1086,7 +1325,7 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -1094,17 +1333,20 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) @distributed_trace - def get(self, resource_group_name: str, domain_name: str, **kwargs: Any) -> _models.Domain: - """Get a domain. + def renew( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, domain_name: str, **kwargs: Any + ) -> None: + """Renew a domain. - Description for Get a domain. + Description for Renew a domain. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. :type resource_group_name: str :param domain_name: Name of the domain. Required. :type domain_name: str - :return: Domain or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.Domain + :return: None + :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1116,20 +1358,22 @@ def get(self, resource_group_name: str, domain_name: str, **kwargs: Any) -> _mod error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + _params = kwargs.pop("params", {}) or {} - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Domain] = kwargs.pop("cls", None) + cls: ClsType[None] = kwargs.pop("cls", None) - _request = build_get_request( + _request = build_domains_renew_request( resource_group_name=resource_group_name, domain_name=domain_name, subscription_id=self._config.subscription_id, - api_version=api_version, + api_version=self._config.api_version, headers=_headers, params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access @@ -1138,75 +1382,154 @@ def get(self, resource_group_name: str, domain_name: str, **kwargs: Any) -> _mod response = pipeline_response.http_response - if response.status_code not in [200]: + if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize("Domain", pipeline_response.http_response) + response_headers = {} + if response.status_code == 202: + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, None, response_headers) # type: ignore - return deserialized # type: ignore + @distributed_trace + def transfer_out(self, resource_group_name: str, domain_name: str, **kwargs: Any) -> _models.Domain: + """Transfer out domain to another registrar. - def _create_or_update_initial( - self, resource_group_name: str, domain_name: str, domain: Union[_models.Domain, IO[bytes]], **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, + Transfer out domain to another registrar. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :return: Domain. The Domain is compatible with MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.Domain + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + cls: ClsType[_models.Domain] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain, (IOBase, bytes)): - _content = domain + _request = build_domains_transfer_out_request( + resource_group_name=resource_group_name, + domain_name=domain_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() else: - _json = self._serialize.body(domain, "Domain") + deserialized = _deserialize(_models.Domain, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def get_ownership_identifier( + self, resource_group_name: str, domain_name: str, name: str, **kwargs: Any + ) -> _models.DomainOwnershipIdentifier: + """Get ownership identifier for domain. + + Description for Get ownership identifier for domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param name: Name of identifier. Required. + :type name: str + :return: DomainOwnershipIdentifier. The DomainOwnershipIdentifier is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DomainOwnershipIdentifier] = kwargs.pop("cls", None) - _request = build_create_or_update_request( + _request = build_domains_get_ownership_identifier_request( resource_group_name=resource_group_name, domain_name=domain_name, + name=name, subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, + api_version=self._config.api_version, headers=_headers, params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) + if _stream: + deserialized = response.iter_bytes() + else: + deserialized = _deserialize(_models.DomainOwnershipIdentifier, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -1214,145 +1537,143 @@ def _create_or_update_initial( return deserialized # type: ignore @overload - def begin_create_or_update( + def create_or_update_ownership_identifier( self, resource_group_name: str, domain_name: str, - domain: _models.Domain, + name: str, + domain_ownership_identifier: _models.DomainOwnershipIdentifier, *, content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.Domain]: - """Creates or updates a domain. + **kwargs: Any, + ) -> _models.DomainOwnershipIdentifier: + """Creates an ownership identifier for a domain or updates identifier details for an existing + identifier. - Description for Creates or updates a domain. + Description for Creates an ownership identifier for a domain or updates identifier details for + an existing identifier. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. :type resource_group_name: str :param domain_name: Name of the domain. Required. :type domain_name: str - :param domain: Domain registration information. Required. - :type domain: ~azure.mgmt.domainregistration.models.Domain + :param name: Name of identifier. Required. + :type name: str + :param domain_ownership_identifier: A JSON representation of the domain ownership properties. + Required. + :type domain_ownership_identifier: + ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns either Domain or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.domainregistration.models.Domain] + :return: DomainOwnershipIdentifier. The DomainOwnershipIdentifier is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def begin_create_or_update( + def create_or_update_ownership_identifier( self, resource_group_name: str, domain_name: str, - domain: IO[bytes], + name: str, + domain_ownership_identifier: JSON, *, content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.Domain]: - """Creates or updates a domain. + **kwargs: Any, + ) -> _models.DomainOwnershipIdentifier: + """Creates an ownership identifier for a domain or updates identifier details for an existing + identifier. - Description for Creates or updates a domain. + Description for Creates an ownership identifier for a domain or updates identifier details for + an existing identifier. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. :type resource_group_name: str :param domain_name: Name of the domain. Required. :type domain_name: str - :param domain: Domain registration information. Required. - :type domain: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + :param name: Name of identifier. Required. + :type name: str + :param domain_ownership_identifier: A JSON representation of the domain ownership properties. + Required. + :type domain_ownership_identifier: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns either Domain or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.domainregistration.models.Domain] + :return: DomainOwnershipIdentifier. The DomainOwnershipIdentifier is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier :raises ~azure.core.exceptions.HttpResponseError: """ - @distributed_trace - def begin_create_or_update( - self, resource_group_name: str, domain_name: str, domain: Union[_models.Domain, IO[bytes]], **kwargs: Any - ) -> LROPoller[_models.Domain]: - """Creates or updates a domain. + @overload + def create_or_update_ownership_identifier( + self, + resource_group_name: str, + domain_name: str, + name: str, + domain_ownership_identifier: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any, + ) -> _models.DomainOwnershipIdentifier: + """Creates an ownership identifier for a domain or updates identifier details for an existing + identifier. - Description for Creates or updates a domain. + Description for Creates an ownership identifier for a domain or updates identifier details for + an existing identifier. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. :type resource_group_name: str :param domain_name: Name of the domain. Required. :type domain_name: str - :param domain: Domain registration information. Is either a Domain type or a IO[bytes] type. + :param name: Name of identifier. Required. + :type name: str + :param domain_ownership_identifier: A JSON representation of the domain ownership properties. Required. - :type domain: ~azure.mgmt.domainregistration.models.Domain or IO[bytes] - :return: An instance of LROPoller that returns either Domain or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.domainregistration.models.Domain] + :type domain_ownership_identifier: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: DomainOwnershipIdentifier. The DomainOwnershipIdentifier is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Domain] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - domain_name=domain_name, - domain=domain, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("Domain", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.Domain].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.Domain]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, domain_name: str, force_hard_delete_domain: Optional[bool] = None, **kwargs: Any - ) -> None: - """Delete a domain. + def create_or_update_ownership_identifier( + self, + resource_group_name: str, + domain_name: str, + name: str, + domain_ownership_identifier: Union[_models.DomainOwnershipIdentifier, JSON, IO[bytes]], + **kwargs: Any, + ) -> _models.DomainOwnershipIdentifier: + """Creates an ownership identifier for a domain or updates identifier details for an existing + identifier. - Description for Delete a domain. + Description for Creates an ownership identifier for a domain or updates identifier details for + an existing identifier. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. :type resource_group_name: str :param domain_name: Name of the domain. Required. :type domain_name: str - :param force_hard_delete_domain: Specify :code:`true` to delete the domain - immediately. The default is :code:`false` which deletes the domain after 24 hours. - Default value is None. - :type force_hard_delete_domain: bool - :return: None or the result of cls(response) - :rtype: None + :param name: Name of identifier. Required. + :type name: str + :param domain_ownership_identifier: A JSON representation of the domain ownership properties. + Is one of the following types: DomainOwnershipIdentifier, JSON, IO[bytes] Required. + :type domain_ownership_identifier: + ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier or JSON or IO[bytes] + :return: DomainOwnershipIdentifier. The DomainOwnershipIdentifier is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1363,115 +1684,200 @@ def delete( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DomainOwnershipIdentifier] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(domain_ownership_identifier, (IOBase, bytes)): + _content = domain_ownership_identifier + else: + _content = json.dumps(domain_ownership_identifier, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_delete_request( + _request = build_domains_create_or_update_ownership_identifier_request( resource_group_name=resource_group_name, domain_name=domain_name, + name=name, subscription_id=self._config.subscription_id, - force_hard_delete_domain=force_hard_delete_domain, - api_version=api_version, + content_type=content_type, + api_version=self._config.api_version, + content=_content, headers=_headers, params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _stream = False + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 204]: + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + if _stream: + deserialized = response.iter_bytes() + else: + deserialized = _deserialize(_models.DomainOwnershipIdentifier, response.json()) + if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore @overload - def update( + def update_ownership_identifier( self, resource_group_name: str, domain_name: str, - domain: _models.DomainPatchResource, + name: str, + domain_ownership_identifier: _models.DomainOwnershipIdentifier, *, content_type: str = "application/json", - **kwargs: Any - ) -> _models.Domain: - """Creates or updates a domain. + **kwargs: Any, + ) -> _models.DomainOwnershipIdentifier: + """Creates an ownership identifier for a domain or updates identifier details for an existing + identifier. - Description for Creates or updates a domain. + Description for Creates an ownership identifier for a domain or updates identifier details for + an existing identifier. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. :type resource_group_name: str :param domain_name: Name of the domain. Required. :type domain_name: str - :param domain: Domain registration information. Required. - :type domain: ~azure.mgmt.domainregistration.models.DomainPatchResource + :param name: Name of identifier. Required. + :type name: str + :param domain_ownership_identifier: A JSON representation of the domain ownership properties. + Required. + :type domain_ownership_identifier: + ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: Domain or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.Domain + :return: DomainOwnershipIdentifier. The DomainOwnershipIdentifier is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def update( + def update_ownership_identifier( self, resource_group_name: str, domain_name: str, - domain: IO[bytes], + name: str, + domain_ownership_identifier: JSON, *, content_type: str = "application/json", - **kwargs: Any - ) -> _models.Domain: - """Creates or updates a domain. + **kwargs: Any, + ) -> _models.DomainOwnershipIdentifier: + """Creates an ownership identifier for a domain or updates identifier details for an existing + identifier. - Description for Creates or updates a domain. + Description for Creates an ownership identifier for a domain or updates identifier details for + an existing identifier. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. :type resource_group_name: str :param domain_name: Name of the domain. Required. :type domain_name: str - :param domain: Domain registration information. Required. - :type domain: IO[bytes] + :param name: Name of identifier. Required. + :type name: str + :param domain_ownership_identifier: A JSON representation of the domain ownership properties. + Required. + :type domain_ownership_identifier: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DomainOwnershipIdentifier. The DomainOwnershipIdentifier is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update_ownership_identifier( + self, + resource_group_name: str, + domain_name: str, + name: str, + domain_ownership_identifier: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any, + ) -> _models.DomainOwnershipIdentifier: + """Creates an ownership identifier for a domain or updates identifier details for an existing + identifier. + + Description for Creates an ownership identifier for a domain or updates identifier details for + an existing identifier. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param name: Name of identifier. Required. + :type name: str + :param domain_ownership_identifier: A JSON representation of the domain ownership properties. + Required. + :type domain_ownership_identifier: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: Domain or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.Domain + :return: DomainOwnershipIdentifier. The DomainOwnershipIdentifier is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace - def update( + def update_ownership_identifier( self, resource_group_name: str, domain_name: str, - domain: Union[_models.DomainPatchResource, IO[bytes]], - **kwargs: Any - ) -> _models.Domain: - """Creates or updates a domain. + name: str, + domain_ownership_identifier: Union[_models.DomainOwnershipIdentifier, JSON, IO[bytes]], + **kwargs: Any, + ) -> _models.DomainOwnershipIdentifier: + """Creates an ownership identifier for a domain or updates identifier details for an existing + identifier. - Description for Creates or updates a domain. + Description for Creates an ownership identifier for a domain or updates identifier details for + an existing identifier. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. :type resource_group_name: str :param domain_name: Name of the domain. Required. :type domain_name: str - :param domain: Domain registration information. Is either a DomainPatchResource type or a - IO[bytes] type. Required. - :type domain: ~azure.mgmt.domainregistration.models.DomainPatchResource or IO[bytes] - :return: Domain or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.Domain + :param name: Name of identifier. Required. + :type name: str + :param domain_ownership_identifier: A JSON representation of the domain ownership properties. + Is one of the following types: DomainOwnershipIdentifier, JSON, IO[bytes] Required. + :type domain_ownership_identifier: + ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier or JSON or IO[bytes] + :return: DomainOwnershipIdentifier. The DomainOwnershipIdentifier is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1483,52 +1889,122 @@ def update( error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + _params = kwargs.pop("params", {}) or {} - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Domain] = kwargs.pop("cls", None) + cls: ClsType[_models.DomainOwnershipIdentifier] = kwargs.pop("cls", None) content_type = content_type or "application/json" - _json = None _content = None - if isinstance(domain, (IOBase, bytes)): - _content = domain + if isinstance(domain_ownership_identifier, (IOBase, bytes)): + _content = domain_ownership_identifier else: - _json = self._serialize.body(domain, "DomainPatchResource") + _content = json.dumps(domain_ownership_identifier, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_update_request( + _request = build_domains_update_ownership_identifier_request( resource_group_name=resource_group_name, domain_name=domain_name, + name=name, subscription_id=self._config.subscription_id, - api_version=api_version, content_type=content_type, - json=_json, + api_version=self._config.api_version, content=_content, headers=_headers, params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _stream = False + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize("Domain", pipeline_response.http_response) + if _stream: + deserialized = response.iter_bytes() + else: + deserialized = _deserialize(_models.DomainOwnershipIdentifier, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore + @distributed_trace + def delete_ownership_identifier( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, domain_name: str, name: str, **kwargs: Any + ) -> None: + """Delete ownership identifier for domain. + + Description for Delete ownership identifier for domain. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param domain_name: Name of the domain. Required. + :type domain_name: str + :param name: Name of identifier. Required. + :type name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_domains_delete_ownership_identifier_request( + resource_group_name=resource_group_name, + domain_name=domain_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + @distributed_trace def list_ownership_identifiers( self, resource_group_name: str, domain_name: str, **kwargs: Any @@ -1537,21 +2013,20 @@ def list_ownership_identifiers( Description for Lists domain ownership identifiers. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. :type resource_group_name: str - :param domain_name: Name of domain. Required. + :param domain_name: Name of the domain. Required. :type domain_name: str - :return: An iterator like instance of either DomainOwnershipIdentifier or the result of - cls(response) + :return: An iterator like instance of DomainOwnershipIdentifier :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + _params = kwargs.pop("params", {}) or {} - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DomainOwnershipIdentifierCollection] = kwargs.pop("cls", None) + cls: ClsType[List[_models.DomainOwnershipIdentifier]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -1564,15 +2039,20 @@ def list_ownership_identifiers( def prepare_request(next_link=None): if not next_link: - _request = build_list_ownership_identifiers_request( + _request = build_domains_list_ownership_identifiers_request( resource_group_name=resource_group_name, domain_name=domain_name, subscription_id=self._config.subscription_id, - api_version=api_version, + api_version=self._config.api_version, headers=_headers, params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) else: # make call to next link with the client's api-version @@ -1587,16 +2067,21 @@ def prepare_request(next_link=None): _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + return _request def extract_data(pipeline_response): - deserialized = self._deserialize("DomainOwnershipIdentifierCollection", pipeline_response) - list_of_elem = deserialized.value + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize(List[_models.DomainOwnershipIdentifier], deserialized.get("value", [])) if cls: list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) + return deserialized.get("nextLink") or None, iter(list_of_elem) def get_next(next_link=None): _request = prepare_request(next_link) @@ -1609,29 +2094,84 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response return ItemPaged(get_next, extract_data) + @overload + def check_availability( + self, identifier: _models.NameIdentifier, *, content_type: str = "application/json", **kwargs: Any + ) -> _models.DomainAvailabilityCheckResult: + """Check if a domain is available for registration. + + Description for Check if a domain is available for registration. + + :param identifier: The request body. Required. + :type identifier: ~azure.mgmt.domainregistration.models.NameIdentifier + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DomainAvailabilityCheckResult. The DomainAvailabilityCheckResult is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainAvailabilityCheckResult + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def check_availability( + self, identifier: JSON, *, content_type: str = "application/json", **kwargs: Any + ) -> _models.DomainAvailabilityCheckResult: + """Check if a domain is available for registration. + + Description for Check if a domain is available for registration. + + :param identifier: The request body. Required. + :type identifier: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DomainAvailabilityCheckResult. The DomainAvailabilityCheckResult is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainAvailabilityCheckResult + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def check_availability( + self, identifier: IO[bytes], *, content_type: str = "application/json", **kwargs: Any + ) -> _models.DomainAvailabilityCheckResult: + """Check if a domain is available for registration. + + Description for Check if a domain is available for registration. + + :param identifier: The request body. Required. + :type identifier: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: DomainAvailabilityCheckResult. The DomainAvailabilityCheckResult is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainAvailabilityCheckResult + :raises ~azure.core.exceptions.HttpResponseError: + """ + @distributed_trace - def get_ownership_identifier( - self, resource_group_name: str, domain_name: str, name: str, **kwargs: Any - ) -> _models.DomainOwnershipIdentifier: - """Get ownership identifier for domain. + def check_availability( + self, identifier: Union[_models.NameIdentifier, JSON, IO[bytes]], **kwargs: Any + ) -> _models.DomainAvailabilityCheckResult: + """Check if a domain is available for registration. - Description for Get ownership identifier for domain. + Description for Check if a domain is available for registration. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :param name: Name of identifier. Required. - :type name: str - :return: DomainOwnershipIdentifier or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :param identifier: The request body. Is one of the following types: NameIdentifier, JSON, + IO[bytes] Required. + :type identifier: ~azure.mgmt.domainregistration.models.NameIdentifier or JSON or IO[bytes] + :return: DomainAvailabilityCheckResult. The DomainAvailabilityCheckResult is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainAvailabilityCheckResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1642,24 +2182,33 @@ def get_ownership_identifier( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DomainOwnershipIdentifier] = kwargs.pop("cls", None) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DomainAvailabilityCheckResult] = kwargs.pop("cls", None) - _request = build_get_ownership_identifier_request( - resource_group_name=resource_group_name, - domain_name=domain_name, - name=name, + content_type = content_type or "application/json" + _content = None + if isinstance(identifier, (IOBase, bytes)): + _content = identifier + else: + _content = json.dumps(identifier, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_domains_check_availability_request( subscription_id=self._config.subscription_id, - api_version=api_version, + content_type=content_type, + api_version=self._config.api_version, + content=_content, headers=_headers, params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _stream = False + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) @@ -1667,115 +2216,167 @@ def get_ownership_identifier( response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize("DomainOwnershipIdentifier", pipeline_response.http_response) + if _stream: + deserialized = response.iter_bytes() + else: + deserialized = _deserialize(_models.DomainAvailabilityCheckResult, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @overload - def create_or_update_ownership_identifier( - self, - resource_group_name: str, - domain_name: str, - name: str, - domain_ownership_identifier: _models.DomainOwnershipIdentifier, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DomainOwnershipIdentifier: - """Creates an ownership identifier for a domain or updates identifier details for an existing - identifier. + @distributed_trace + def get_control_center_sso_request(self, **kwargs: Any) -> _models.DomainControlCenterSsoRequest: + """Generate a single sign-on request for the domain management portal. - Description for Creates an ownership identifier for a domain or updates identifier details for - an existing identifier. + Description for Generate a single sign-on request for the domain management portal. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :param name: Name of identifier. Required. - :type name: str - :param domain_ownership_identifier: A JSON representation of the domain ownership properties. - Required. - :type domain_ownership_identifier: - ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: DomainOwnershipIdentifier or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :return: DomainControlCenterSsoRequest. The DomainControlCenterSsoRequest is compatible with + MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.DomainControlCenterSsoRequest :raises ~azure.core.exceptions.HttpResponseError: """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DomainControlCenterSsoRequest] = kwargs.pop("cls", None) + + _request = build_domains_get_control_center_sso_request_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() + else: + deserialized = _deserialize(_models.DomainControlCenterSsoRequest, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore @overload - def create_or_update_ownership_identifier( + def list_recommendations( self, - resource_group_name: str, - domain_name: str, - name: str, - domain_ownership_identifier: IO[bytes], + parameters: _models.DomainRecommendationSearchParameters, *, content_type: str = "application/json", - **kwargs: Any - ) -> _models.DomainOwnershipIdentifier: - """Creates an ownership identifier for a domain or updates identifier details for an existing - identifier. + **kwargs: Any, + ) -> ItemPaged["_models.NameIdentifier"]: + """Get domain name recommendations based on keywords. - Description for Creates an ownership identifier for a domain or updates identifier details for - an existing identifier. + Description for Get domain name recommendations based on keywords. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :param name: Name of identifier. Required. - :type name: str - :param domain_ownership_identifier: A JSON representation of the domain ownership properties. - Required. - :type domain_ownership_identifier: IO[bytes] + :param parameters: The request body. Required. + :type parameters: ~azure.mgmt.domainregistration.models.DomainRecommendationSearchParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An iterator like instance of NameIdentifier + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.NameIdentifier] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def list_recommendations( + self, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any + ) -> ItemPaged["_models.NameIdentifier"]: + """Get domain name recommendations based on keywords. + + Description for Get domain name recommendations based on keywords. + + :param parameters: The request body. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An iterator like instance of NameIdentifier + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.NameIdentifier] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def list_recommendations( + self, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any + ) -> ItemPaged["_models.NameIdentifier"]: + """Get domain name recommendations based on keywords. + + Description for Get domain name recommendations based on keywords. + + :param parameters: The request body. Required. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: DomainOwnershipIdentifier or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :return: An iterator like instance of NameIdentifier + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.NameIdentifier] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace - def create_or_update_ownership_identifier( - self, - resource_group_name: str, - domain_name: str, - name: str, - domain_ownership_identifier: Union[_models.DomainOwnershipIdentifier, IO[bytes]], - **kwargs: Any - ) -> _models.DomainOwnershipIdentifier: - """Creates an ownership identifier for a domain or updates identifier details for an existing - identifier. + def list_recommendations( + self, parameters: Union[_models.DomainRecommendationSearchParameters, JSON, IO[bytes]], **kwargs: Any + ) -> ItemPaged["_models.NameIdentifier"]: + """Get domain name recommendations based on keywords. - Description for Creates an ownership identifier for a domain or updates identifier details for - an existing identifier. + Description for Get domain name recommendations based on keywords. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :param name: Name of identifier. Required. - :type name: str - :param domain_ownership_identifier: A JSON representation of the domain ownership properties. - Is either a DomainOwnershipIdentifier type or a IO[bytes] type. Required. - :type domain_ownership_identifier: - ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier or IO[bytes] - :return: DomainOwnershipIdentifier or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :param parameters: The request body. Is one of the following types: + DomainRecommendationSearchParameters, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.domainregistration.models.DomainRecommendationSearchParameters or + JSON or IO[bytes] + :return: An iterator like instance of NameIdentifier + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.NameIdentifier] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[List[_models.NameIdentifier]] = kwargs.pop("cls", None) + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -1783,37 +2384,134 @@ def create_or_update_ownership_identifier( 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DomainOwnershipIdentifier] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _json = None _content = None - if isinstance(domain_ownership_identifier, (IOBase, bytes)): - _content = domain_ownership_identifier + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - _json = self._serialize.body(domain_ownership_identifier, "DomainOwnershipIdentifier") + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_create_or_update_ownership_identifier_request( - resource_group_name=resource_group_name, - domain_name=domain_name, + def prepare_request(next_link=None): + if not next_link: + + _request = build_domains_list_recommendations_request( + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize(List[_models.NameIdentifier], deserialized.get("value", [])) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class TopLevelDomainsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.domainregistration.DomainRegistrationClient`'s + :attr:`top_level_domains` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DomainRegistrationClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, name: str, **kwargs: Any) -> _models.TopLevelDomain: + """Get details of a top-level domain. + + Description for Get details of a top-level domain. + + :param name: Name of the top-level domain. Required. + :type name: str + :return: TopLevelDomain. The TopLevelDomain is compatible with MutableMapping + :rtype: ~azure.mgmt.domainregistration.models.TopLevelDomain + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.TopLevelDomain] = kwargs.pop("cls", None) + + _request = build_top_level_domains_get_request( name=name, subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, + api_version=self._config.api_version, headers=_headers, params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _stream = False + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) @@ -1821,11 +2519,19 @@ def create_or_update_ownership_identifier( response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize("DomainOwnershipIdentifier", pipeline_response.http_response) + if _stream: + deserialized = response.iter_bytes() + else: + deserialized = _deserialize(_models.TopLevelDomain, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -1833,23 +2539,20 @@ def create_or_update_ownership_identifier( return deserialized # type: ignore @distributed_trace - def delete_ownership_identifier( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, domain_name: str, name: str, **kwargs: Any - ) -> None: - """Delete ownership identifier for domain. + def list(self, **kwargs: Any) -> ItemPaged["_models.TopLevelDomain"]: + """Get all top-level domains supported for registration. - Description for Delete ownership identifier for domain. + Description for Get all top-level domains supported for registration. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :param name: Name of identifier. Required. - :type name: str - :return: None or the result of cls(response) - :rtype: None + :return: An iterator like instance of TopLevelDomain + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.TopLevelDomain] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.TopLevelDomain]] = kwargs.pop("cls", None) + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -1858,136 +2561,158 @@ def delete_ownership_identifier( # pylint: disable=inconsistent-return-statemen } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + def prepare_request(next_link=None): + if not next_link: - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) + _request = build_top_level_domains_list_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _request = build_delete_ownership_identifier_request( - resource_group_name=resource_group_name, - domain_name=domain_name, - name=name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + return _request - response = pipeline_response.http_response + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize(List[_models.TopLevelDomain], deserialized.get("value", [])) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + return pipeline_response - if cls: - return cls(pipeline_response, None, {}) # type: ignore + return ItemPaged(get_next, extract_data) @overload - def update_ownership_identifier( + def list_agreements( self, - resource_group_name: str, - domain_name: str, name: str, - domain_ownership_identifier: _models.DomainOwnershipIdentifier, + agreement_option: _models.TopLevelDomainAgreementOption, *, content_type: str = "application/json", - **kwargs: Any - ) -> _models.DomainOwnershipIdentifier: - """Creates an ownership identifier for a domain or updates identifier details for an existing - identifier. + **kwargs: Any, + ) -> ItemPaged["_models.TldLegalAgreement"]: + """Gets all legal agreements that user needs to accept before purchasing a domain. - Description for Creates an ownership identifier for a domain or updates identifier details for - an existing identifier. + Description for Gets all legal agreements that user needs to accept before purchasing a domain. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :param name: Name of identifier. Required. + :param name: Name of the top-level domain. Required. :type name: str - :param domain_ownership_identifier: A JSON representation of the domain ownership properties. - Required. - :type domain_ownership_identifier: - ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :param agreement_option: Domain agreement options. Required. + :type agreement_option: ~azure.mgmt.domainregistration.models.TopLevelDomainAgreementOption :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: DomainOwnershipIdentifier or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :return: An iterator like instance of TldLegalAgreement + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.TldLegalAgreement] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def update_ownership_identifier( - self, - resource_group_name: str, - domain_name: str, - name: str, - domain_ownership_identifier: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DomainOwnershipIdentifier: - """Creates an ownership identifier for a domain or updates identifier details for an existing - identifier. + def list_agreements( + self, name: str, agreement_option: JSON, *, content_type: str = "application/json", **kwargs: Any + ) -> ItemPaged["_models.TldLegalAgreement"]: + """Gets all legal agreements that user needs to accept before purchasing a domain. - Description for Creates an ownership identifier for a domain or updates identifier details for - an existing identifier. + Description for Gets all legal agreements that user needs to accept before purchasing a domain. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :param name: Name of identifier. Required. + :param name: Name of the top-level domain. Required. :type name: str - :param domain_ownership_identifier: A JSON representation of the domain ownership properties. - Required. - :type domain_ownership_identifier: IO[bytes] + :param agreement_option: Domain agreement options. Required. + :type agreement_option: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An iterator like instance of TldLegalAgreement + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.TldLegalAgreement] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def list_agreements( + self, name: str, agreement_option: IO[bytes], *, content_type: str = "application/json", **kwargs: Any + ) -> ItemPaged["_models.TldLegalAgreement"]: + """Gets all legal agreements that user needs to accept before purchasing a domain. + + Description for Gets all legal agreements that user needs to accept before purchasing a domain. + + :param name: Name of the top-level domain. Required. + :type name: str + :param agreement_option: Domain agreement options. Required. + :type agreement_option: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: DomainOwnershipIdentifier or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :return: An iterator like instance of TldLegalAgreement + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.TldLegalAgreement] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace - def update_ownership_identifier( - self, - resource_group_name: str, - domain_name: str, - name: str, - domain_ownership_identifier: Union[_models.DomainOwnershipIdentifier, IO[bytes]], - **kwargs: Any - ) -> _models.DomainOwnershipIdentifier: - """Creates an ownership identifier for a domain or updates identifier details for an existing - identifier. + def list_agreements( + self, name: str, agreement_option: Union[_models.TopLevelDomainAgreementOption, JSON, IO[bytes]], **kwargs: Any + ) -> ItemPaged["_models.TldLegalAgreement"]: + """Gets all legal agreements that user needs to accept before purchasing a domain. - Description for Creates an ownership identifier for a domain or updates identifier details for - an existing identifier. + Description for Gets all legal agreements that user needs to accept before purchasing a domain. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :param name: Name of identifier. Required. + :param name: Name of the top-level domain. Required. :type name: str - :param domain_ownership_identifier: A JSON representation of the domain ownership properties. - Is either a DomainOwnershipIdentifier type or a IO[bytes] type. Required. - :type domain_ownership_identifier: - ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier or IO[bytes] - :return: DomainOwnershipIdentifier or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.DomainOwnershipIdentifier + :param agreement_option: Domain agreement options. Is one of the following types: + TopLevelDomainAgreementOption, JSON, IO[bytes] Required. + :type agreement_option: ~azure.mgmt.domainregistration.models.TopLevelDomainAgreementOption or + JSON or IO[bytes] + :return: An iterator like instance of TldLegalAgreement + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.TldLegalAgreement] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[List[_models.TldLegalAgreement]] = kwargs.pop("cls", None) + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -1995,124 +2720,115 @@ def update_ownership_identifier( 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DomainOwnershipIdentifier] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _json = None _content = None - if isinstance(domain_ownership_identifier, (IOBase, bytes)): - _content = domain_ownership_identifier + if isinstance(agreement_option, (IOBase, bytes)): + _content = agreement_option else: - _json = self._serialize.body(domain_ownership_identifier, "DomainOwnershipIdentifier") - - _request = build_update_ownership_identifier_request( - resource_group_name=resource_group_name, - domain_name=domain_name, - name=name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + _content = json.dumps(agreement_option, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + def prepare_request(next_link=None): + if not next_link: - deserialized = self._deserialize("DomainOwnershipIdentifier", pipeline_response.http_response) + _request = build_top_level_domains_list_agreements_request( + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - return deserialized # type: ignore + return _request - @distributed_trace - def renew( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, domain_name: str, **kwargs: Any - ) -> None: - """Renew a domain. + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize(List[_models.TldLegalAgreement], deserialized.get("value", [])) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) - Description for Renew a domain. + def get_next(next_link=None): + _request = prepare_request(next_link) - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of the domain. Required. - :type domain_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) + return pipeline_response - _request = build_renew_request( - resource_group_name=resource_group_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) + return ItemPaged(get_next, extract_data) - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response +class DomainRegistrationProviderOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + Instead, you should access the following operations through + :class:`~azure.mgmt.domainregistration.DomainRegistrationClient`'s + :attr:`domain_registration_provider` attribute. + """ - if cls: - return cls(pipeline_response, None, {}) # type: ignore + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DomainRegistrationClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - def transfer_out(self, resource_group_name: str, domain_name: str, **kwargs: Any) -> _models.Domain: - """Transfer out domain to another registrar. + def list_operations(self, **kwargs: Any) -> ItemPaged["_models.CsmOperationDescription"]: + """Implements Csm operations Api to exposes the list of available Csm Apis under the resource + provider. - Transfer out domain to another registrar. + Description for Implements Csm operations Api to exposes the list of available Csm Apis under + the resource provider. - :param resource_group_name: Name of the resource group to which the resource belongs. Required. - :type resource_group_name: str - :param domain_name: Name of domain. Required. - :type domain_name: str - :return: Domain or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.Domain + :return: An iterator like instance of CsmOperationDescription + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.CsmOperationDescription] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.CsmOperationDescription]] = kwargs.pop("cls", None) + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -2121,37 +2837,64 @@ def transfer_out(self, resource_group_name: str, domain_name: str, **kwargs: Any } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + def prepare_request(next_link=None): + if not next_link: - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Domain] = kwargs.pop("cls", None) + _request = build_domain_registration_provider_list_operations_request( + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _request = build_transfer_out_request( - resource_group_name=resource_group_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + return _request - response = pipeline_response.http_response + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize(List[_models.CsmOperationDescription], deserialized.get("value", [])) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + def get_next(next_link=None): + _request = prepare_request(next_link) - deserialized = self._deserialize("Domain", pipeline_response.http_response) + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize(_models.DefaultErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - return deserialized # type: ignore + return pipeline_response + + return ItemPaged(get_next, extract_data) diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/operations/_top_level_domains_operations.py b/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/operations/_top_level_domains_operations.py deleted file mode 100644 index 4519e028b350..000000000000 --- a/sdk/domainregistration/azure-mgmt-domainregistration/azure/mgmt/domainregistration/operations/_top_level_domains_operations.py +++ /dev/null @@ -1,415 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import WebSiteManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains" - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request(name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}" - ) - path_format_arguments = { - "name": _SERIALIZER.url("name", name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_agreements_request(name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}/listAgreements", - ) - path_format_arguments = { - "name": _SERIALIZER.url("name", name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class TopLevelDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.domainregistration.WebSiteManagementClient`'s - :attr:`top_level_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: WebSiteManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, **kwargs: Any) -> ItemPaged["_models.TopLevelDomain"]: - """Get all top-level domains supported for registration. - - Description for Get all top-level domains supported for registration. - - :return: An iterator like instance of either TopLevelDomain or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.TopLevelDomain] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.TopLevelDomainCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("TopLevelDomainCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get(self, name: str, **kwargs: Any) -> _models.TopLevelDomain: - """Get details of a top-level domain. - - Description for Get details of a top-level domain. - - :param name: Name of the top-level domain. Required. - :type name: str - :return: TopLevelDomain or the result of cls(response) - :rtype: ~azure.mgmt.domainregistration.models.TopLevelDomain - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.TopLevelDomain] = kwargs.pop("cls", None) - - _request = build_get_request( - name=name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TopLevelDomain", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def list_agreements( - self, - name: str, - agreement_option: _models.TopLevelDomainAgreementOption, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> ItemPaged["_models.TldLegalAgreement"]: - """Gets all legal agreements that user needs to accept before purchasing a domain. - - Description for Gets all legal agreements that user needs to accept before purchasing a domain. - - :param name: Name of the top-level domain. Required. - :type name: str - :param agreement_option: Domain agreement options. Required. - :type agreement_option: ~azure.mgmt.domainregistration.models.TopLevelDomainAgreementOption - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An iterator like instance of either TldLegalAgreement or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.TldLegalAgreement] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def list_agreements( - self, name: str, agreement_option: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> ItemPaged["_models.TldLegalAgreement"]: - """Gets all legal agreements that user needs to accept before purchasing a domain. - - Description for Gets all legal agreements that user needs to accept before purchasing a domain. - - :param name: Name of the top-level domain. Required. - :type name: str - :param agreement_option: Domain agreement options. Required. - :type agreement_option: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An iterator like instance of either TldLegalAgreement or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.TldLegalAgreement] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def list_agreements( - self, name: str, agreement_option: Union[_models.TopLevelDomainAgreementOption, IO[bytes]], **kwargs: Any - ) -> ItemPaged["_models.TldLegalAgreement"]: - """Gets all legal agreements that user needs to accept before purchasing a domain. - - Description for Gets all legal agreements that user needs to accept before purchasing a domain. - - :param name: Name of the top-level domain. Required. - :type name: str - :param agreement_option: Domain agreement options. Is either a TopLevelDomainAgreementOption - type or a IO[bytes] type. Required. - :type agreement_option: ~azure.mgmt.domainregistration.models.TopLevelDomainAgreementOption or - IO[bytes] - :return: An iterator like instance of either TldLegalAgreement or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.domainregistration.models.TldLegalAgreement] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TldLegalAgreementCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agreement_option, (IOBase, bytes)): - _content = agreement_option - else: - _json = self._serialize.body(agreement_option, "TopLevelDomainAgreementOption") - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_agreements_request( - name=name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("TldLegalAgreementCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/code_report_swagger.json b/sdk/domainregistration/azure-mgmt-domainregistration/code_report_swagger.json index bccf272446cf..dd164dfe8963 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/code_report_swagger.json +++ b/sdk/domainregistration/azure-mgmt-domainregistration/code_report_swagger.json @@ -1193,7 +1193,15 @@ } } }, - "ApiDefinitionInfo": { + "AzureResourceType": { + "type": "Enum", + "methods": {}, + "properties": { + "TRAFFIC_MANAGER": "TRAFFIC_MANAGER", + "WEBSITE": "WEBSITE" + } + }, + "Contact": { "type": null, "methods": { "__init__": { @@ -1202,7 +1210,39 @@ "default": null, "param_type": "positional_or_keyword" }, - "url": { + "email": { + "default": null, + "param_type": "keyword_only" + }, + "name_first": { + "default": null, + "param_type": "keyword_only" + }, + "name_last": { + "default": null, + "param_type": "keyword_only" + }, + "phone": { + "default": null, + "param_type": "keyword_only" + }, + "address_mailing": { + "default": "none", + "param_type": "keyword_only" + }, + "fax": { + "default": "none", + "param_type": "keyword_only" + }, + "job_title": { + "default": "none", + "param_type": "keyword_only" + }, + "name_middle": { + "default": "none", + "param_type": "keyword_only" + }, + "organization": { "default": "none", "param_type": "keyword_only" }, @@ -1298,15 +1338,49 @@ } }, "properties": { - "url": { - "attr_type": "url" + "address_mailing": { + "attr_type": "address_mailing" + }, + "email": { + "attr_type": "email" + }, + "fax": { + "attr_type": "fax" + }, + "job_title": { + "attr_type": "job_title" + }, + "name_first": { + "attr_type": "name_first" + }, + "name_last": { + "attr_type": "name_last" + }, + "name_middle": { + "attr_type": "name_middle" + }, + "organization": { + "attr_type": "organization" + }, + "phone": { + "attr_type": "phone" }, "additional_properties": { "attr_type": null } } }, - "ApiManagementConfig": { + "CreatedByType": { + "type": "Enum", + "methods": {}, + "properties": { + "APPLICATION": "APPLICATION", + "KEY": "KEY", + "MANAGED_IDENTITY": "MANAGED_IDENTITY", + "USER": "USER" + } + }, + "CsmOperationCollection": { "type": null, "methods": { "__init__": { @@ -1315,8 +1389,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "id": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -1411,15 +1485,18 @@ } }, "properties": { - "id": { - "attr_type": "id" + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "AppServiceEnvironment": { + "CsmOperationDescription": { "type": null, "methods": { "__init__": { @@ -1428,55 +1505,23 @@ "default": null, "param_type": "positional_or_keyword" }, - "virtual_network": { - "default": null, - "param_type": "keyword_only" - }, - "internal_load_balancing_mode": { - "default": "none", - "param_type": "keyword_only" - }, - "multi_size": { - "default": "none", - "param_type": "keyword_only" - }, - "ipssl_address_count": { - "default": "none", - "param_type": "keyword_only" - }, - "dns_suffix": { - "default": "none", - "param_type": "keyword_only" - }, - "front_end_scale_factor": { - "default": "none", - "param_type": "keyword_only" - }, - "cluster_settings": { - "default": "none", - "param_type": "keyword_only" - }, - "user_whitelisted_ip_ranges": { + "name": { "default": "none", "param_type": "keyword_only" }, - "upgrade_preference": { - "default": "str", - "param_type": "keyword_only" - }, - "dedicated_host_count": { + "is_data_action": { "default": "none", "param_type": "keyword_only" }, - "zone_redundant": { + "display": { "default": "none", "param_type": "keyword_only" }, - "custom_dns_suffix_configuration": { + "origin": { "default": "none", "param_type": "keyword_only" }, - "networking_configuration": { + "properties": { "default": "none", "param_type": "keyword_only" }, @@ -1572,72 +1617,27 @@ } }, "properties": { - "provisioning_state": { - "attr_type": null - }, - "status": { - "attr_type": null - }, - "virtual_network": { - "attr_type": "virtual_network" - }, - "internal_load_balancing_mode": { - "attr_type": "internal_load_balancing_mode" - }, - "multi_size": { - "attr_type": "multi_size" - }, - "multi_role_count": { - "attr_type": null - }, - "ipssl_address_count": { - "attr_type": "ipssl_address_count" - }, - "dns_suffix": { - "attr_type": "dns_suffix" - }, - "maximum_number_of_machines": { - "attr_type": null - }, - "front_end_scale_factor": { - "attr_type": "front_end_scale_factor" - }, - "suspended": { - "attr_type": null - }, - "cluster_settings": { - "attr_type": "cluster_settings" - }, - "user_whitelisted_ip_ranges": { - "attr_type": "user_whitelisted_ip_ranges" - }, - "has_linux_workers": { - "attr_type": null - }, - "upgrade_preference": { - "attr_type": "upgrade_preference" - }, - "dedicated_host_count": { - "attr_type": "dedicated_host_count" + "name": { + "attr_type": "name" }, - "zone_redundant": { - "attr_type": "zone_redundant" + "is_data_action": { + "attr_type": "is_data_action" }, - "custom_dns_suffix_configuration": { - "attr_type": "custom_dns_suffix_configuration" + "display": { + "attr_type": "display" }, - "networking_configuration": { - "attr_type": "networking_configuration" + "origin": { + "attr_type": "origin" }, - "upgrade_availability": { - "attr_type": null + "properties": { + "attr_type": "properties" }, "additional_properties": { "attr_type": null } } }, - "AppServicePlan": { + "CsmOperationDescriptionProperties": { "type": null, "methods": { "__init__": { @@ -1646,87 +1646,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "location": { - "default": null, - "param_type": "keyword_only" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "sku": { - "default": "none", - "param_type": "keyword_only" - }, - "extended_location": { - "default": "none", - "param_type": "keyword_only" - }, - "worker_tier_name": { - "default": "none", - "param_type": "keyword_only" - }, - "hosting_environment_profile": { - "default": "none", - "param_type": "keyword_only" - }, - "per_site_scaling": { - "default": "bool", - "param_type": "keyword_only" - }, - "elastic_scale_enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "maximum_elastic_worker_count": { - "default": "none", - "param_type": "keyword_only" - }, - "is_spot": { - "default": "none", - "param_type": "keyword_only" - }, - "spot_expiration_time": { - "default": "none", - "param_type": "keyword_only" - }, - "free_offer_expiration_time": { - "default": "none", - "param_type": "keyword_only" - }, - "reserved": { - "default": "bool", - "param_type": "keyword_only" - }, - "is_xenon": { - "default": "bool", - "param_type": "keyword_only" - }, - "hyper_v": { - "default": "bool", - "param_type": "keyword_only" - }, - "target_worker_count": { - "default": "none", - "param_type": "keyword_only" - }, - "target_worker_size_id": { - "default": "none", - "param_type": "keyword_only" - }, - "kube_environment_profile": { - "default": "none", - "param_type": "keyword_only" - }, - "zone_redundant": { - "default": "bool", - "param_type": "keyword_only" - }, - "async_scaling_enabled": { + "service_specification": { "default": "none", "param_type": "keyword_only" }, @@ -1822,127 +1742,46 @@ } }, "properties": { - "sku": { - "attr_type": "sku" - }, - "extended_location": { - "attr_type": "extended_location" - }, - "worker_tier_name": { - "attr_type": "worker_tier_name" - }, - "status": { - "attr_type": null + "service_specification": { + "attr_type": "service_specification" }, - "subscription": { + "additional_properties": { "attr_type": null - }, - "hosting_environment_profile": { - "attr_type": "hosting_environment_profile" - }, - "maximum_number_of_workers": { - "attr_type": null - }, - "number_of_workers": { - "attr_type": null - }, - "geo_region": { - "attr_type": null - }, - "per_site_scaling": { - "attr_type": "per_site_scaling" - }, - "elastic_scale_enabled": { - "attr_type": "elastic_scale_enabled" - }, - "maximum_elastic_worker_count": { - "attr_type": "maximum_elastic_worker_count" - }, - "number_of_sites": { - "attr_type": null - }, - "is_spot": { - "attr_type": "is_spot" - }, - "spot_expiration_time": { - "attr_type": "spot_expiration_time" - }, - "free_offer_expiration_time": { - "attr_type": "free_offer_expiration_time" - }, - "resource_group": { - "attr_type": null - }, - "reserved": { - "attr_type": "reserved" - }, - "is_xenon": { - "attr_type": "is_xenon" - }, - "hyper_v": { - "attr_type": "hyper_v" - }, - "target_worker_count": { - "attr_type": "target_worker_count" - }, - "target_worker_size_id": { - "attr_type": "target_worker_size_id" - }, - "provisioning_state": { - "attr_type": null - }, - "kube_environment_profile": { - "attr_type": "kube_environment_profile" - }, - "zone_redundant": { - "attr_type": "zone_redundant" - }, - "async_scaling_enabled": { - "attr_type": "async_scaling_enabled" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "location": { - "attr_type": "location" - }, - "type": { - "attr_type": null - }, - "tags": { - "attr_type": "tags" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "AppServicePlanCollection": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "value": { - "default": null, - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] + } + } + }, + "CsmOperationDisplay": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "provider": { + "default": "none", + "param_type": "keyword_only" + }, + "resource": { + "default": "none", + "param_type": "keyword_only" + }, + "operation": { + "default": "none", + "param_type": "keyword_only" + }, + "description": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] }, "as_dict": { "parameters": { @@ -2028,127 +1867,32 @@ } }, "properties": { - "value": { - "attr_type": "value" + "provider": { + "attr_type": "provider" }, - "next_link": { - "attr_type": null + "resource": { + "attr_type": "resource" + }, + "operation": { + "attr_type": "operation" + }, + "description": { + "attr_type": "description" }, "additional_properties": { "attr_type": null } } }, - "ArmIdWrapper": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, + "CustomHostNameDnsRecordType": { + "type": "Enum", + "methods": {}, "properties": { - "id": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } + "A": "A", + "C_NAME": "C_NAME" } }, - "AseV3NetworkingConfiguration": { + "DefaultErrorResponse": { "type": null, "methods": { "__init__": { @@ -2157,26 +1901,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "allow_new_private_endpoint_connections": { - "default": "none", - "param_type": "keyword_only" - }, - "ftp_enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "remote_debug_enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "inbound_ip_address_override": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -2269,40 +1993,7 @@ } }, "properties": { - "windows_outbound_ip_addresses": { - "attr_type": null - }, - "linux_outbound_ip_addresses": { - "attr_type": null - }, - "external_inbound_ip_addresses": { - "attr_type": null - }, - "internal_inbound_ip_addresses": { - "attr_type": null - }, - "allow_new_private_endpoint_connections": { - "attr_type": "allow_new_private_endpoint_connections" - }, - "ftp_enabled": { - "attr_type": "ftp_enabled" - }, - "remote_debug_enabled": { - "attr_type": "remote_debug_enabled" - }, - "inbound_ip_address_override": { - "attr_type": "inbound_ip_address_override" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "type": { + "error": { "attr_type": null }, "additional_properties": { @@ -2310,176 +2001,7 @@ } } }, - "AuthenticationType": { - "type": "Enum", - "methods": {}, - "properties": { - "STORAGE_ACCOUNT_CONNECTION_STRING": "STORAGE_ACCOUNT_CONNECTION_STRING", - "SYSTEM_ASSIGNED_IDENTITY": "SYSTEM_ASSIGNED_IDENTITY", - "USER_ASSIGNED_IDENTITY": "USER_ASSIGNED_IDENTITY", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "AutoGeneratedDomainNameLabelScope": { - "type": "Enum", - "methods": {}, - "properties": { - "NO_REUSE": "NO_REUSE", - "RESOURCE_GROUP_REUSE": "RESOURCE_GROUP_REUSE", - "SUBSCRIPTION_REUSE": "SUBSCRIPTION_REUSE", - "TENANT_REUSE": "TENANT_REUSE", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "AutoHealActionType": { - "type": "Enum", - "methods": {}, - "properties": { - "CUSTOM_ACTION": "CUSTOM_ACTION", - "LOG_EVENT": "LOG_EVENT", - "RECYCLE": "RECYCLE", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "AutoHealActions": { + "DefaultErrorResponseError": { "type": null, "methods": { "__init__": { @@ -2488,15 +2010,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "action_type": { - "default": "none", - "param_type": "keyword_only" - }, - "custom_action": { - "default": "none", - "param_type": "keyword_only" - }, - "min_process_execution_time": { + "details": { "default": "none", "param_type": "keyword_only" }, @@ -2547,17413 +2061,72 @@ "enable_additional_properties_sending": { "parameters": {}, "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "action_type": { - "attr_type": "action_type" - }, - "custom_action": { - "attr_type": "custom_action" - }, - "min_process_execution_time": { - "attr_type": "min_process_execution_time" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "AutoHealCustomAction": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "exe": { - "default": "none", - "param_type": "keyword_only" - }, - "parameters": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "exe": { - "attr_type": "exe" - }, - "parameters": { - "attr_type": "parameters" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "AutoHealRules": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "triggers": { - "default": "none", - "param_type": "keyword_only" - }, - "actions": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "triggers": { - "attr_type": "triggers" - }, - "actions": { - "attr_type": "actions" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "AutoHealTriggers": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "requests": { - "default": "none", - "param_type": "keyword_only" - }, - "private_bytes_in_kb": { - "default": "none", - "param_type": "keyword_only" - }, - "status_codes": { - "default": "none", - "param_type": "keyword_only" - }, - "slow_requests": { - "default": "none", - "param_type": "keyword_only" - }, - "slow_requests_with_path": { - "default": "none", - "param_type": "keyword_only" - }, - "status_codes_range": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "requests": { - "attr_type": "requests" - }, - "private_bytes_in_kb": { - "attr_type": "private_bytes_in_kb" - }, - "status_codes": { - "attr_type": "status_codes" - }, - "slow_requests": { - "attr_type": "slow_requests" - }, - "slow_requests_with_path": { - "attr_type": "slow_requests_with_path" - }, - "status_codes_range": { - "attr_type": "status_codes_range" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "AzureResourceType": { - "type": "Enum", - "methods": {}, - "properties": { - "TRAFFIC_MANAGER": "TRAFFIC_MANAGER", - "WEBSITE": "WEBSITE", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "AzureStorageInfoValue": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "type": { - "default": "none", - "param_type": "keyword_only" - }, - "account_name": { - "default": "none", - "param_type": "keyword_only" - }, - "share_name": { - "default": "none", - "param_type": "keyword_only" - }, - "access_key": { - "default": "none", - "param_type": "keyword_only" - }, - "mount_path": { - "default": "none", - "param_type": "keyword_only" - }, - "protocol": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "type": { - "attr_type": "type" - }, - "account_name": { - "attr_type": "account_name" - }, - "share_name": { - "attr_type": "share_name" - }, - "access_key": { - "attr_type": "access_key" - }, - "mount_path": { - "attr_type": "mount_path" - }, - "state": { - "attr_type": null - }, - "protocol": { - "attr_type": "protocol" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "AzureStorageProtocol": { - "type": "Enum", - "methods": {}, - "properties": { - "HTTP": "HTTP", - "NFS": "NFS", - "SMB": "SMB", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "AzureStorageState": { - "type": "Enum", - "methods": {}, - "properties": { - "INVALID_CREDENTIALS": "INVALID_CREDENTIALS", - "INVALID_SHARE": "INVALID_SHARE", - "NOT_VALIDATED": "NOT_VALIDATED", - "OK": "OK", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "AzureStorageType": { - "type": "Enum", - "methods": {}, - "properties": { - "AZURE_BLOB": "AZURE_BLOB", - "AZURE_FILES": "AZURE_FILES", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "Capability": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "reason": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "value": { - "attr_type": "value" - }, - "reason": { - "attr_type": "reason" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "Certificate": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "location": { - "default": null, - "param_type": "keyword_only" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "password": { - "default": "none", - "param_type": "keyword_only" - }, - "host_names": { - "default": "none", - "param_type": "keyword_only" - }, - "pfx_blob": { - "default": "none", - "param_type": "keyword_only" - }, - "key_vault_id": { - "default": "none", - "param_type": "keyword_only" - }, - "key_vault_secret_name": { - "default": "none", - "param_type": "keyword_only" - }, - "server_farm_id": { - "default": "none", - "param_type": "keyword_only" - }, - "canonical_name": { - "default": "none", - "param_type": "keyword_only" - }, - "domain_validation_method": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "password": { - "attr_type": "password" - }, - "friendly_name": { - "attr_type": null - }, - "subject_name": { - "attr_type": null - }, - "host_names": { - "attr_type": "host_names" - }, - "pfx_blob": { - "attr_type": "pfx_blob" - }, - "site_name": { - "attr_type": null - }, - "self_link": { - "attr_type": null - }, - "issuer": { - "attr_type": null - }, - "issue_date": { - "attr_type": null - }, - "expiration_date": { - "attr_type": null - }, - "thumbprint": { - "attr_type": null - }, - "valid": { - "attr_type": null - }, - "cer_blob": { - "attr_type": null - }, - "public_key_hash": { - "attr_type": null - }, - "hosting_environment_profile": { - "attr_type": null - }, - "key_vault_id": { - "attr_type": "key_vault_id" - }, - "key_vault_secret_name": { - "attr_type": "key_vault_secret_name" - }, - "key_vault_secret_status": { - "attr_type": null - }, - "server_farm_id": { - "attr_type": "server_farm_id" - }, - "canonical_name": { - "attr_type": "canonical_name" - }, - "domain_validation_method": { - "attr_type": "domain_validation_method" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "location": { - "attr_type": "location" - }, - "type": { - "attr_type": null - }, - "tags": { - "attr_type": "tags" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "CertificateCollection": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "value": { - "default": null, - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" - }, - "next_link": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "CertificatePatchResource": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "password": { - "default": "none", - "param_type": "keyword_only" - }, - "host_names": { - "default": "none", - "param_type": "keyword_only" - }, - "pfx_blob": { - "default": "none", - "param_type": "keyword_only" - }, - "key_vault_id": { - "default": "none", - "param_type": "keyword_only" - }, - "key_vault_secret_name": { - "default": "none", - "param_type": "keyword_only" - }, - "server_farm_id": { - "default": "none", - "param_type": "keyword_only" - }, - "canonical_name": { - "default": "none", - "param_type": "keyword_only" - }, - "domain_validation_method": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "password": { - "attr_type": "password" - }, - "friendly_name": { - "attr_type": null - }, - "subject_name": { - "attr_type": null - }, - "host_names": { - "attr_type": "host_names" - }, - "pfx_blob": { - "attr_type": "pfx_blob" - }, - "site_name": { - "attr_type": null - }, - "self_link": { - "attr_type": null - }, - "issuer": { - "attr_type": null - }, - "issue_date": { - "attr_type": null - }, - "expiration_date": { - "attr_type": null - }, - "thumbprint": { - "attr_type": null - }, - "valid": { - "attr_type": null - }, - "cer_blob": { - "attr_type": null - }, - "public_key_hash": { - "attr_type": null - }, - "hosting_environment_profile": { - "attr_type": null - }, - "key_vault_id": { - "attr_type": "key_vault_id" - }, - "key_vault_secret_name": { - "attr_type": "key_vault_secret_name" - }, - "key_vault_secret_status": { - "attr_type": null - }, - "server_farm_id": { - "attr_type": "server_farm_id" - }, - "canonical_name": { - "attr_type": "canonical_name" - }, - "domain_validation_method": { - "attr_type": "domain_validation_method" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "type": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "CipherSuites": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "suites": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "suites": { - "attr_type": "suites" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ClientCertMode": { - "type": "Enum", - "methods": {}, - "properties": { - "OPTIONAL": "OPTIONAL", - "OPTIONAL_INTERACTIVE_USER": "OPTIONAL_INTERACTIVE_USER", - "REQUIRED": "REQUIRED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "CloningInfo": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "source_web_app_id": { - "default": null, - "param_type": "keyword_only" - }, - "correlation_id": { - "default": "none", - "param_type": "keyword_only" - }, - "overwrite": { - "default": "none", - "param_type": "keyword_only" - }, - "clone_custom_host_names": { - "default": "none", - "param_type": "keyword_only" - }, - "clone_source_control": { - "default": "none", - "param_type": "keyword_only" - }, - "source_web_app_location": { - "default": "none", - "param_type": "keyword_only" - }, - "hosting_environment": { - "default": "none", - "param_type": "keyword_only" - }, - "app_settings_overrides": { - "default": "none", - "param_type": "keyword_only" - }, - "configure_load_balancing": { - "default": "none", - "param_type": "keyword_only" - }, - "traffic_manager_profile_id": { - "default": "none", - "param_type": "keyword_only" - }, - "traffic_manager_profile_name": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "correlation_id": { - "attr_type": "correlation_id" - }, - "overwrite": { - "attr_type": "overwrite" - }, - "clone_custom_host_names": { - "attr_type": "clone_custom_host_names" - }, - "clone_source_control": { - "attr_type": "clone_source_control" - }, - "source_web_app_id": { - "attr_type": "source_web_app_id" - }, - "source_web_app_location": { - "attr_type": "source_web_app_location" - }, - "hosting_environment": { - "attr_type": "hosting_environment" - }, - "app_settings_overrides": { - "attr_type": "app_settings_overrides" - }, - "configure_load_balancing": { - "attr_type": "configure_load_balancing" - }, - "traffic_manager_profile_id": { - "attr_type": "traffic_manager_profile_id" - }, - "traffic_manager_profile_name": { - "attr_type": "traffic_manager_profile_name" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ConnStringInfo": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "connection_string": { - "default": "none", - "param_type": "keyword_only" - }, - "type": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "connection_string": { - "attr_type": "connection_string" - }, - "type": { - "attr_type": "type" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ConnectionStringType": { - "type": "Enum", - "methods": {}, - "properties": { - "API_HUB": "API_HUB", - "CUSTOM": "CUSTOM", - "DOC_DB": "DOC_DB", - "EVENT_HUB": "EVENT_HUB", - "MY_SQL": "MY_SQL", - "NOTIFICATION_HUB": "NOTIFICATION_HUB", - "POSTGRE_SQL": "POSTGRE_SQL", - "REDIS_CACHE": "REDIS_CACHE", - "SERVICE_BUS": "SERVICE_BUS", - "SQL_AZURE": "SQL_AZURE", - "SQL_SERVER": "SQL_SERVER", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "Contact": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "email": { - "default": null, - "param_type": "keyword_only" - }, - "name_first": { - "default": null, - "param_type": "keyword_only" - }, - "name_last": { - "default": null, - "param_type": "keyword_only" - }, - "phone": { - "default": null, - "param_type": "keyword_only" - }, - "address_mailing": { - "default": "none", - "param_type": "keyword_only" - }, - "fax": { - "default": "none", - "param_type": "keyword_only" - }, - "job_title": { - "default": "none", - "param_type": "keyword_only" - }, - "name_middle": { - "default": "none", - "param_type": "keyword_only" - }, - "organization": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "address_mailing": { - "attr_type": "address_mailing" - }, - "email": { - "attr_type": "email" - }, - "fax": { - "attr_type": "fax" - }, - "job_title": { - "attr_type": "job_title" - }, - "name_first": { - "attr_type": "name_first" - }, - "name_last": { - "attr_type": "name_last" - }, - "name_middle": { - "attr_type": "name_middle" - }, - "organization": { - "attr_type": "organization" - }, - "phone": { - "attr_type": "phone" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "Container": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "image": { - "default": "none", - "param_type": "keyword_only" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "command": { - "default": "none", - "param_type": "keyword_only" - }, - "args": { - "default": "none", - "param_type": "keyword_only" - }, - "env": { - "default": "none", - "param_type": "keyword_only" - }, - "resources": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "image": { - "attr_type": "image" - }, - "name": { - "attr_type": "name" - }, - "command": { - "attr_type": "command" - }, - "args": { - "attr_type": "args" - }, - "env": { - "attr_type": "env" - }, - "resources": { - "attr_type": "resources" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ContainerResources": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "cpu": { - "default": "none", - "param_type": "keyword_only" - }, - "memory": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "cpu": { - "attr_type": "cpu" - }, - "memory": { - "attr_type": "memory" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "CorsSettings": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "allowed_origins": { - "default": "none", - "param_type": "keyword_only" - }, - "support_credentials": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "allowed_origins": { - "attr_type": "allowed_origins" - }, - "support_credentials": { - "attr_type": "support_credentials" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "CsmOperationCollection": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "value": { - "default": null, - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" - }, - "next_link": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "CsmOperationDescription": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "is_data_action": { - "default": "none", - "param_type": "keyword_only" - }, - "display": { - "default": "none", - "param_type": "keyword_only" - }, - "origin": { - "default": "none", - "param_type": "keyword_only" - }, - "properties": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "is_data_action": { - "attr_type": "is_data_action" - }, - "display": { - "attr_type": "display" - }, - "origin": { - "attr_type": "origin" - }, - "properties": { - "attr_type": "properties" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "CsmOperationDescriptionProperties": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "service_specification": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "service_specification": { - "attr_type": "service_specification" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "CsmOperationDisplay": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "provider": { - "default": "none", - "param_type": "keyword_only" - }, - "resource": { - "default": "none", - "param_type": "keyword_only" - }, - "operation": { - "default": "none", - "param_type": "keyword_only" - }, - "description": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "provider": { - "attr_type": "provider" - }, - "resource": { - "attr_type": "resource" - }, - "operation": { - "attr_type": "operation" - }, - "description": { - "attr_type": "description" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "CsmUsageQuota": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "unit": { - "default": "none", - "param_type": "keyword_only" - }, - "next_reset_time": { - "default": "none", - "param_type": "keyword_only" - }, - "current_value": { - "default": "none", - "param_type": "keyword_only" - }, - "limit": { - "default": "none", - "param_type": "keyword_only" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "unit": { - "attr_type": "unit" - }, - "next_reset_time": { - "attr_type": "next_reset_time" - }, - "current_value": { - "attr_type": "current_value" - }, - "limit": { - "attr_type": "limit" - }, - "name": { - "attr_type": "name" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "CsmUsageQuotaCollection": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "value": { - "default": null, - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" - }, - "next_link": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "CustomDnsSuffixConfiguration": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "dns_suffix": { - "default": "none", - "param_type": "keyword_only" - }, - "certificate_url": { - "default": "none", - "param_type": "keyword_only" - }, - "key_vault_reference_identity": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "provisioning_state": { - "attr_type": null - }, - "provisioning_details": { - "attr_type": null - }, - "dns_suffix": { - "attr_type": "dns_suffix" - }, - "certificate_url": { - "attr_type": "certificate_url" - }, - "key_vault_reference_identity": { - "attr_type": "key_vault_reference_identity" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "type": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "CustomDnsSuffixProvisioningState": { - "type": "Enum", - "methods": {}, - "properties": { - "DEGRADED": "DEGRADED", - "FAILED": "FAILED", - "IN_PROGRESS": "IN_PROGRESS", - "SUCCEEDED": "SUCCEEDED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "CustomHostNameDnsRecordType": { - "type": "Enum", - "methods": {}, - "properties": { - "A": "A", - "C_NAME": "C_NAME", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "CustomScaleRule": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "type": { - "default": "none", - "param_type": "keyword_only" - }, - "metadata": { - "default": "none", - "param_type": "keyword_only" - }, - "auth": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "type": { - "attr_type": "type" - }, - "metadata": { - "attr_type": "metadata" - }, - "auth": { - "attr_type": "auth" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "Dapr": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "app_id": { - "default": "none", - "param_type": "keyword_only" - }, - "app_port": { - "default": "none", - "param_type": "keyword_only" - }, - "components": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "enabled": { - "attr_type": "enabled" - }, - "app_id": { - "attr_type": "app_id" - }, - "app_port": { - "attr_type": "app_port" - }, - "components": { - "attr_type": "components" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DaprComponent": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "type": { - "default": "none", - "param_type": "keyword_only" - }, - "version": { - "default": "none", - "param_type": "keyword_only" - }, - "metadata": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "type": { - "attr_type": "type" - }, - "version": { - "attr_type": "version" - }, - "metadata": { - "attr_type": "metadata" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DaprConfig": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "enabled": { - "default": "bool", - "param_type": "keyword_only" - }, - "app_id": { - "default": "none", - "param_type": "keyword_only" - }, - "app_port": { - "default": "none", - "param_type": "keyword_only" - }, - "http_read_buffer_size": { - "default": "none", - "param_type": "keyword_only" - }, - "http_max_request_size": { - "default": "none", - "param_type": "keyword_only" - }, - "log_level": { - "default": "none", - "param_type": "keyword_only" - }, - "enable_api_logging": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "enabled": { - "attr_type": "enabled" - }, - "app_id": { - "attr_type": "app_id" - }, - "app_port": { - "attr_type": "app_port" - }, - "http_read_buffer_size": { - "attr_type": "http_read_buffer_size" - }, - "http_max_request_size": { - "attr_type": "http_max_request_size" - }, - "log_level": { - "attr_type": "log_level" - }, - "enable_api_logging": { - "attr_type": "enable_api_logging" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DaprLogLevel": { - "type": "Enum", - "methods": {}, - "properties": { - "DEBUG": "DEBUG", - "ERROR": "ERROR", - "INFO": "INFO", - "WARN": "WARN", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "DaprMetadata": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "secret_ref": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "value": { - "attr_type": "value" - }, - "secret_ref": { - "attr_type": "secret_ref" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DataProviderMetadata": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "provider_name": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "provider_name": { - "attr_type": "provider_name" - }, - "property_bag": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DataTableResponseColumn": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "column_name": { - "default": "none", - "param_type": "keyword_only" - }, - "data_type": { - "default": "none", - "param_type": "keyword_only" - }, - "column_type": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "column_name": { - "attr_type": "column_name" - }, - "data_type": { - "attr_type": "data_type" - }, - "column_type": { - "attr_type": "column_type" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DataTableResponseObject": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "table_name": { - "default": "none", - "param_type": "keyword_only" - }, - "columns": { - "default": "none", - "param_type": "keyword_only" - }, - "rows": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "table_name": { - "attr_type": "table_name" - }, - "columns": { - "attr_type": "columns" - }, - "rows": { - "attr_type": "rows" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DefaultAction": { - "type": "Enum", - "methods": {}, - "properties": { - "ALLOW": "ALLOW", - "DENY": "DENY", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "DefaultErrorResponse": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "error": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DefaultErrorResponseError": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "details": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "code": { - "attr_type": null - }, - "message": { - "attr_type": null - }, - "target": { - "attr_type": null - }, - "details": { - "attr_type": "details" - }, - "innererror": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DefaultErrorResponseErrorDetailsItem": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "code": { - "attr_type": null - }, - "message": { - "attr_type": null - }, - "target": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DeletedSite": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "deleted_site_id": { - "attr_type": null - }, - "deleted_timestamp": { - "attr_type": null - }, - "subscription": { - "attr_type": null - }, - "resource_group": { - "attr_type": null - }, - "deleted_site_name": { - "attr_type": null - }, - "slot": { - "attr_type": null - }, - "kind_properties_kind": { - "attr_type": null - }, - "geo_region_name": { - "attr_type": null - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "type": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DetectorInfo": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "description": { - "attr_type": null - }, - "author": { - "attr_type": null - }, - "category": { - "attr_type": null - }, - "support_topic_list": { - "attr_type": null - }, - "analysis_type": { - "attr_type": null - }, - "type": { - "attr_type": null - }, - "score": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DetectorResponse": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "metadata": { - "default": "none", - "param_type": "keyword_only" - }, - "dataset": { - "default": "none", - "param_type": "keyword_only" - }, - "status": { - "default": "none", - "param_type": "keyword_only" - }, - "data_providers_metadata": { - "default": "none", - "param_type": "keyword_only" - }, - "suggested_utterances": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "metadata": { - "attr_type": "metadata" - }, - "dataset": { - "attr_type": "dataset" - }, - "status": { - "attr_type": "status" - }, - "data_providers_metadata": { - "attr_type": "data_providers_metadata" - }, - "suggested_utterances": { - "attr_type": "suggested_utterances" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "type": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DetectorResponseCollection": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "value": { - "default": null, - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" - }, - "next_link": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DetectorType": { - "type": "Enum", - "methods": {}, - "properties": { - "ANALYSIS": "ANALYSIS", - "CATEGORY_OVERVIEW": "CATEGORY_OVERVIEW", - "DETECTOR": "DETECTOR", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "DiagnosticData": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "table": { - "default": "none", - "param_type": "keyword_only" - }, - "rendering_properties": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "table": { - "attr_type": "table" - }, - "rendering_properties": { - "attr_type": "rendering_properties" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "Dimension": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "display_name": { - "default": "none", - "param_type": "keyword_only" - }, - "internal_name": { - "default": "none", - "param_type": "keyword_only" - }, - "to_be_exported_for_shoebox": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "display_name": { - "attr_type": "display_name" - }, - "internal_name": { - "attr_type": "internal_name" - }, - "to_be_exported_for_shoebox": { - "attr_type": "to_be_exported_for_shoebox" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DnsType": { - "type": "Enum", - "methods": {}, - "properties": { - "AZURE_DNS": "AZURE_DNS", - "DEFAULT_DOMAIN_REGISTRAR_DNS": "DEFAULT_DOMAIN_REGISTRAR_DNS", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "Domain": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "location": { - "default": null, - "param_type": "keyword_only" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "contact_admin": { - "default": "none", - "param_type": "keyword_only" - }, - "contact_billing": { - "default": "none", - "param_type": "keyword_only" - }, - "contact_registrant": { - "default": "none", - "param_type": "keyword_only" - }, - "contact_tech": { - "default": "none", - "param_type": "keyword_only" - }, - "privacy": { - "default": "none", - "param_type": "keyword_only" - }, - "auto_renew": { - "default": "bool", - "param_type": "keyword_only" - }, - "consent": { - "default": "none", - "param_type": "keyword_only" - }, - "dns_type": { - "default": "none", - "param_type": "keyword_only" - }, - "dns_zone_id": { - "default": "none", - "param_type": "keyword_only" - }, - "target_dns_type": { - "default": "none", - "param_type": "keyword_only" - }, - "auth_code": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "contact_admin": { - "attr_type": "contact_admin" - }, - "contact_billing": { - "attr_type": "contact_billing" - }, - "contact_registrant": { - "attr_type": "contact_registrant" - }, - "contact_tech": { - "attr_type": "contact_tech" - }, - "registration_status": { - "attr_type": null - }, - "provisioning_state": { - "attr_type": null - }, - "name_servers": { - "attr_type": null - }, - "privacy": { - "attr_type": "privacy" - }, - "created_time": { - "attr_type": null - }, - "expiration_time": { - "attr_type": null - }, - "last_renewed_time": { - "attr_type": null - }, - "auto_renew": { - "attr_type": "auto_renew" - }, - "ready_for_dns_record_management": { - "attr_type": null - }, - "managed_host_names": { - "attr_type": null - }, - "consent": { - "attr_type": "consent" - }, - "domain_not_renewable_reasons": { - "attr_type": null - }, - "dns_type": { - "attr_type": "dns_type" - }, - "dns_zone_id": { - "attr_type": "dns_zone_id" - }, - "target_dns_type": { - "attr_type": "target_dns_type" - }, - "auth_code": { - "attr_type": "auth_code" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "location": { - "attr_type": "location" - }, - "type": { - "attr_type": null - }, - "tags": { - "attr_type": "tags" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DomainAvailabilityCheckResult": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "available": { - "default": "none", - "param_type": "keyword_only" - }, - "domain_type": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "available": { - "attr_type": "available" - }, - "domain_type": { - "attr_type": "domain_type" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DomainCollection": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "value": { - "default": null, - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" - }, - "next_link": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DomainControlCenterSsoRequest": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "url": { - "attr_type": null - }, - "post_parameter_key": { - "attr_type": null - }, - "post_parameter_value": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DomainOwnershipIdentifier": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "ownership_id": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "ownership_id": { - "attr_type": "ownership_id" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "type": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DomainOwnershipIdentifierCollection": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "value": { - "default": null, - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" - }, - "next_link": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DomainPatchResource": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "contact_admin": { - "default": "none", - "param_type": "keyword_only" - }, - "contact_billing": { - "default": "none", - "param_type": "keyword_only" - }, - "contact_registrant": { - "default": "none", - "param_type": "keyword_only" - }, - "contact_tech": { - "default": "none", - "param_type": "keyword_only" - }, - "privacy": { - "default": "none", - "param_type": "keyword_only" - }, - "auto_renew": { - "default": "bool", - "param_type": "keyword_only" - }, - "consent": { - "default": "none", - "param_type": "keyword_only" - }, - "dns_type": { - "default": "none", - "param_type": "keyword_only" - }, - "dns_zone_id": { - "default": "none", - "param_type": "keyword_only" - }, - "target_dns_type": { - "default": "none", - "param_type": "keyword_only" - }, - "auth_code": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "contact_admin": { - "attr_type": "contact_admin" - }, - "contact_billing": { - "attr_type": "contact_billing" - }, - "contact_registrant": { - "attr_type": "contact_registrant" - }, - "contact_tech": { - "attr_type": "contact_tech" - }, - "registration_status": { - "attr_type": null - }, - "provisioning_state": { - "attr_type": null - }, - "name_servers": { - "attr_type": null - }, - "privacy": { - "attr_type": "privacy" - }, - "created_time": { - "attr_type": null - }, - "expiration_time": { - "attr_type": null - }, - "last_renewed_time": { - "attr_type": null - }, - "auto_renew": { - "attr_type": "auto_renew" - }, - "ready_for_dns_record_management": { - "attr_type": null - }, - "managed_host_names": { - "attr_type": null - }, - "consent": { - "attr_type": "consent" - }, - "domain_not_renewable_reasons": { - "attr_type": null - }, - "dns_type": { - "attr_type": "dns_type" - }, - "dns_zone_id": { - "attr_type": "dns_zone_id" - }, - "target_dns_type": { - "attr_type": "target_dns_type" - }, - "auth_code": { - "attr_type": "auth_code" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "type": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DomainPurchaseConsent": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "agreement_keys": { - "default": "none", - "param_type": "keyword_only" - }, - "agreed_by": { - "default": "none", - "param_type": "keyword_only" - }, - "agreed_at": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "agreement_keys": { - "attr_type": "agreement_keys" - }, - "agreed_by": { - "attr_type": "agreed_by" - }, - "agreed_at": { - "attr_type": "agreed_at" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DomainRecommendationSearchParameters": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keywords": { - "default": "none", - "param_type": "keyword_only" - }, - "max_domain_recommendations": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "keywords": { - "attr_type": "keywords" - }, - "max_domain_recommendations": { - "attr_type": "max_domain_recommendations" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "DomainStatus": { - "type": "Enum", - "methods": {}, - "properties": { - "ACTIVE": "ACTIVE", - "AWAITING": "AWAITING", - "CANCELLED": "CANCELLED", - "CONFISCATED": "CONFISCATED", - "DISABLED": "DISABLED", - "EXCLUDED": "EXCLUDED", - "EXPIRED": "EXPIRED", - "FAILED": "FAILED", - "HELD": "HELD", - "JSON_CONVERTER_FAILED": "JSON_CONVERTER_FAILED", - "LOCKED": "LOCKED", - "PARKED": "PARKED", - "PENDING": "PENDING", - "RESERVED": "RESERVED", - "REVERTED": "REVERTED", - "SUSPENDED": "SUSPENDED", - "TRANSFERRED": "TRANSFERRED", - "UNKNOWN": "UNKNOWN", - "UNLOCKED": "UNLOCKED", - "UNPARKED": "UNPARKED", - "UPDATED": "UPDATED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "DomainType": { - "type": "Enum", - "methods": {}, - "properties": { - "REGULAR": "REGULAR", - "SOFT_DELETED": "SOFT_DELETED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "EnvironmentVar": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "secret_ref": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "value": { - "attr_type": "value" - }, - "secret_ref": { - "attr_type": "secret_ref" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ErrorEntity": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "extended_code": { - "default": "none", - "param_type": "keyword_only" - }, - "message_template": { - "default": "none", - "param_type": "keyword_only" - }, - "parameters": { - "default": "none", - "param_type": "keyword_only" - }, - "inner_errors": { - "default": "none", - "param_type": "keyword_only" - }, - "details": { - "default": "none", - "param_type": "keyword_only" - }, - "target": { - "default": "none", - "param_type": "keyword_only" - }, - "code": { - "default": "none", - "param_type": "keyword_only" - }, - "message": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "extended_code": { - "attr_type": "extended_code" - }, - "message_template": { - "attr_type": "message_template" - }, - "parameters": { - "attr_type": "parameters" - }, - "inner_errors": { - "attr_type": "inner_errors" - }, - "details": { - "attr_type": "details" - }, - "target": { - "attr_type": "target" - }, - "code": { - "attr_type": "code" - }, - "message": { - "attr_type": "message" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "Experiments": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "ramp_up_rules": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "ramp_up_rules": { - "attr_type": "ramp_up_rules" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ExtendedLocation": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "type": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "FtpsState": { - "type": "Enum", - "methods": {}, - "properties": { - "ALL_ALLOWED": "ALL_ALLOWED", - "DISABLED": "DISABLED", - "FTPS_ONLY": "FTPS_ONLY", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "FunctionAppConfig": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "deployment": { - "default": "none", - "param_type": "keyword_only" - }, - "runtime": { - "default": "none", - "param_type": "keyword_only" - }, - "scale_and_concurrency": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "deployment": { - "attr_type": "deployment" - }, - "runtime": { - "attr_type": "runtime" - }, - "scale_and_concurrency": { - "attr_type": "scale_and_concurrency" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "FunctionsAlwaysReadyConfig": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "instance_count": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "instance_count": { - "attr_type": "instance_count" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "FunctionsDeployment": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "storage": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "storage": { - "attr_type": "storage" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "FunctionsDeploymentStorage": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "type": { - "default": "none", - "param_type": "keyword_only" - }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "authentication": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "type": { - "attr_type": "type" - }, - "value": { - "attr_type": "value" - }, - "authentication": { - "attr_type": "authentication" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "FunctionsDeploymentStorageAuthentication": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "type": { - "default": "none", - "param_type": "keyword_only" - }, - "user_assigned_identity_resource_id": { - "default": "none", - "param_type": "keyword_only" - }, - "storage_account_connection_string_name": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "type": { - "attr_type": "type" - }, - "user_assigned_identity_resource_id": { - "attr_type": "user_assigned_identity_resource_id" - }, - "storage_account_connection_string_name": { - "attr_type": "storage_account_connection_string_name" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "FunctionsDeploymentStorageType": { - "type": "Enum", - "methods": {}, - "properties": { - "BLOB_CONTAINER": "BLOB_CONTAINER", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "FunctionsRuntime": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "version": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "version": { - "attr_type": "version" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "FunctionsScaleAndConcurrency": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "always_ready": { - "default": "none", - "param_type": "keyword_only" - }, - "maximum_instance_count": { - "default": "none", - "param_type": "keyword_only" - }, - "instance_memory_mb": { - "default": "none", - "param_type": "keyword_only" - }, - "triggers": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "always_ready": { - "attr_type": "always_ready" - }, - "maximum_instance_count": { - "attr_type": "maximum_instance_count" - }, - "instance_memory_mb": { - "attr_type": "instance_memory_mb" - }, - "triggers": { - "attr_type": "triggers" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "FunctionsScaleAndConcurrencyTriggers": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "http": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "http": { - "attr_type": "http" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "FunctionsScaleAndConcurrencyTriggersHttp": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "per_instance_concurrency": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "per_instance_concurrency": { - "attr_type": "per_instance_concurrency" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "HandlerMapping": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "extension": { - "default": "none", - "param_type": "keyword_only" - }, - "script_processor": { - "default": "none", - "param_type": "keyword_only" - }, - "arguments": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "extension": { - "attr_type": "extension" - }, - "script_processor": { - "attr_type": "script_processor" - }, - "arguments": { - "attr_type": "arguments" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "HostName": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "site_names": { - "default": "none", - "param_type": "keyword_only" - }, - "azure_resource_name": { - "default": "none", - "param_type": "keyword_only" - }, - "azure_resource_type": { - "default": "none", - "param_type": "keyword_only" - }, - "custom_host_name_dns_record_type": { - "default": "none", - "param_type": "keyword_only" - }, - "host_name_type": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "site_names": { - "attr_type": "site_names" - }, - "azure_resource_name": { - "attr_type": "azure_resource_name" - }, - "azure_resource_type": { - "attr_type": "azure_resource_type" - }, - "custom_host_name_dns_record_type": { - "attr_type": "custom_host_name_dns_record_type" - }, - "host_name_type": { - "attr_type": "host_name_type" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "HostNameBinding": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "site_name": { - "default": "none", - "param_type": "keyword_only" - }, - "domain_id": { - "default": "none", - "param_type": "keyword_only" - }, - "azure_resource_name": { - "default": "none", - "param_type": "keyword_only" - }, - "azure_resource_type": { - "default": "none", - "param_type": "keyword_only" - }, - "custom_host_name_dns_record_type": { - "default": "none", - "param_type": "keyword_only" - }, - "host_name_type": { - "default": "none", - "param_type": "keyword_only" - }, - "ssl_state": { - "default": "none", - "param_type": "keyword_only" - }, - "thumbprint": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "site_name": { - "attr_type": "site_name" - }, - "domain_id": { - "attr_type": "domain_id" - }, - "azure_resource_name": { - "attr_type": "azure_resource_name" - }, - "azure_resource_type": { - "attr_type": "azure_resource_type" - }, - "custom_host_name_dns_record_type": { - "attr_type": "custom_host_name_dns_record_type" - }, - "host_name_type": { - "attr_type": "host_name_type" - }, - "ssl_state": { - "attr_type": "ssl_state" - }, - "thumbprint": { - "attr_type": "thumbprint" - }, - "virtual_ip": { - "attr_type": null - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "type": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "HostNameBindingCollection": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "value": { - "default": null, - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" - }, - "next_link": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "HostNameSslState": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "ssl_state": { - "default": "none", - "param_type": "keyword_only" - }, - "virtual_ip": { - "default": "none", - "param_type": "keyword_only" - }, - "thumbprint": { - "default": "none", - "param_type": "keyword_only" - }, - "to_update": { - "default": "none", - "param_type": "keyword_only" - }, - "host_type": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "ssl_state": { - "attr_type": "ssl_state" - }, - "virtual_ip": { - "attr_type": "virtual_ip" - }, - "thumbprint": { - "attr_type": "thumbprint" - }, - "to_update": { - "attr_type": "to_update" - }, - "host_type": { - "attr_type": "host_type" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "HostNameType": { - "type": "Enum", - "methods": {}, - "properties": { - "MANAGED": "MANAGED", - "VERIFIED": "VERIFIED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "HostType": { - "type": "Enum", - "methods": {}, - "properties": { - "REPOSITORY": "REPOSITORY", - "STANDARD": "STANDARD", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "HostingEnvironmentProfile": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "id": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "id": { - "attr_type": "id" - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "HostingEnvironmentStatus": { - "type": "Enum", - "methods": {}, - "properties": { - "DELETING": "DELETING", - "PREPARING": "PREPARING", - "READY": "READY", - "SCALING": "SCALING", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "HttpScaleRule": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "metadata": { - "default": "none", - "param_type": "keyword_only" - }, - "auth": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "metadata": { - "attr_type": "metadata" - }, - "auth": { - "attr_type": "auth" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "HybridConnection": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "service_bus_namespace": { - "default": "none", - "param_type": "keyword_only" - }, - "relay_name": { - "default": "none", - "param_type": "keyword_only" - }, - "relay_arm_uri": { - "default": "none", - "param_type": "keyword_only" - }, - "hostname": { - "default": "none", - "param_type": "keyword_only" - }, - "port": { - "default": "none", - "param_type": "keyword_only" - }, - "send_key_name": { - "default": "none", - "param_type": "keyword_only" - }, - "send_key_value": { - "default": "none", - "param_type": "keyword_only" - }, - "service_bus_suffix": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "service_bus_namespace": { - "attr_type": "service_bus_namespace" - }, - "relay_name": { - "attr_type": "relay_name" - }, - "relay_arm_uri": { - "attr_type": "relay_arm_uri" - }, - "hostname": { - "attr_type": "hostname" - }, - "port": { - "attr_type": "port" - }, - "send_key_name": { - "attr_type": "send_key_name" - }, - "send_key_value": { - "attr_type": "send_key_value" - }, - "service_bus_suffix": { - "attr_type": "service_bus_suffix" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "type": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "IPMode": { - "type": "Enum", - "methods": {}, - "properties": { - "I_PV4": "I_PV4", - "I_PV4_AND_I_PV6": "I_PV4_AND_I_PV6", - "I_PV6": "I_PV6", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "Identifier": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "type": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "IdentifierCollection": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "value": { - "default": null, - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" - }, - "next_link": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "InsightStatus": { - "type": "Enum", - "methods": {}, - "properties": { - "CRITICAL": "CRITICAL", - "INFO": "INFO", - "NONE": "NONE", - "SUCCESS": "SUCCESS", - "WARNING": "WARNING", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "IpFilterTag": { - "type": "Enum", - "methods": {}, - "properties": { - "DEFAULT": "DEFAULT", - "SERVICE_TAG": "SERVICE_TAG", - "XFF_PROXY": "XFF_PROXY", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "IpSecurityRestriction": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "ip_address": { - "default": "none", - "param_type": "keyword_only" - }, - "subnet_mask": { - "default": "none", - "param_type": "keyword_only" - }, - "vnet_subnet_resource_id": { - "default": "none", - "param_type": "keyword_only" - }, - "vnet_traffic_tag": { - "default": "none", - "param_type": "keyword_only" - }, - "subnet_traffic_tag": { - "default": "none", - "param_type": "keyword_only" - }, - "action": { - "default": "none", - "param_type": "keyword_only" - }, - "tag": { - "default": "none", - "param_type": "keyword_only" - }, - "priority": { - "default": "none", - "param_type": "keyword_only" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "description": { - "default": "none", - "param_type": "keyword_only" - }, - "headers": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "ip_address": { - "attr_type": "ip_address" - }, - "subnet_mask": { - "attr_type": "subnet_mask" - }, - "vnet_subnet_resource_id": { - "attr_type": "vnet_subnet_resource_id" - }, - "vnet_traffic_tag": { - "attr_type": "vnet_traffic_tag" - }, - "subnet_traffic_tag": { - "attr_type": "subnet_traffic_tag" - }, - "action": { - "attr_type": "action" - }, - "tag": { - "attr_type": "tag" - }, - "priority": { - "attr_type": "priority" - }, - "name": { - "attr_type": "name" - }, - "description": { - "attr_type": "description" - }, - "headers": { - "attr_type": "headers" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "KeyValuePairStringObject": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "key": { - "attr_type": null - }, - "value": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "KeyVaultSecretStatus": { - "type": "Enum", - "methods": {}, - "properties": { - "AZURE_SERVICE_UNAUTHORIZED_TO_ACCESS_KEY_VAULT": "AZURE_SERVICE_UNAUTHORIZED_TO_ACCESS_KEY_VAULT", - "CERTIFICATE_ORDER_FAILED": "CERTIFICATE_ORDER_FAILED", - "EXTERNAL_PRIVATE_KEY": "EXTERNAL_PRIVATE_KEY", - "INITIALIZED": "INITIALIZED", - "KEY_VAULT_DOES_NOT_EXIST": "KEY_VAULT_DOES_NOT_EXIST", - "KEY_VAULT_SECRET_DOES_NOT_EXIST": "KEY_VAULT_SECRET_DOES_NOT_EXIST", - "OPERATION_NOT_PERMITTED_ON_KEY_VAULT": "OPERATION_NOT_PERMITTED_ON_KEY_VAULT", - "SUCCEEDED": "SUCCEEDED", - "UNKNOWN": "UNKNOWN", - "UNKNOWN_ERROR": "UNKNOWN_ERROR", - "WAITING_ON_CERTIFICATE_ORDER": "WAITING_ON_CERTIFICATE_ORDER", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "KubeEnvironmentProfile": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "id": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "id": { - "attr_type": "id" - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "LoadBalancingMode": { - "type": "Enum", - "methods": {}, - "properties": { - "NONE": "NONE", - "PUBLISHING": "PUBLISHING", - "WEB": "WEB", - "WEB_PUBLISHING": "WEB_PUBLISHING", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "LocalizableString": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "localized_value": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" - }, - "localized_value": { - "attr_type": "localized_value" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "LogSpecification": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "display_name": { - "default": "none", - "param_type": "keyword_only" - }, - "blob_duration": { - "default": "none", - "param_type": "keyword_only" - }, - "log_filter_pattern": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "display_name": { - "attr_type": "display_name" - }, - "blob_duration": { - "attr_type": "blob_duration" - }, - "log_filter_pattern": { - "attr_type": "log_filter_pattern" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ManagedPipelineMode": { - "type": "Enum", - "methods": {}, - "properties": { - "CLASSIC": "CLASSIC", - "INTEGRATED": "INTEGRATED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "ManagedServiceIdentity": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "type": { - "default": "none", - "param_type": "keyword_only" - }, - "user_assigned_identities": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "type": { - "attr_type": "type" - }, - "tenant_id": { - "attr_type": null - }, - "principal_id": { - "attr_type": null - }, - "user_assigned_identities": { - "attr_type": "user_assigned_identities" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ManagedServiceIdentityType": { - "type": "Enum", - "methods": {}, - "properties": { - "NONE": "NONE", - "SYSTEM_ASSIGNED": "SYSTEM_ASSIGNED", - "SYSTEM_ASSIGNED_USER_ASSIGNED": "SYSTEM_ASSIGNED_USER_ASSIGNED", - "USER_ASSIGNED": "USER_ASSIGNED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "MetricAvailability": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "time_grain": { - "default": "none", - "param_type": "keyword_only" - }, - "blob_duration": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "time_grain": { - "attr_type": "time_grain" - }, - "blob_duration": { - "attr_type": "blob_duration" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "MetricSpecification": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "display_name": { - "default": "none", - "param_type": "keyword_only" - }, - "display_description": { - "default": "none", - "param_type": "keyword_only" - }, - "unit": { - "default": "none", - "param_type": "keyword_only" - }, - "aggregation_type": { - "default": "none", - "param_type": "keyword_only" - }, - "supports_instance_level_aggregation": { - "default": "none", - "param_type": "keyword_only" - }, - "enable_regional_mdm_account": { - "default": "none", - "param_type": "keyword_only" - }, - "source_mdm_account": { - "default": "none", - "param_type": "keyword_only" - }, - "source_mdm_namespace": { - "default": "none", - "param_type": "keyword_only" - }, - "metric_filter_pattern": { - "default": "none", - "param_type": "keyword_only" - }, - "fill_gap_with_zero": { - "default": "none", - "param_type": "keyword_only" - }, - "is_internal": { - "default": "none", - "param_type": "keyword_only" - }, - "dimensions": { - "default": "none", - "param_type": "keyword_only" - }, - "category": { - "default": "none", - "param_type": "keyword_only" - }, - "availabilities": { - "default": "none", - "param_type": "keyword_only" - }, - "supported_time_grain_types": { - "default": "none", - "param_type": "keyword_only" - }, - "supported_aggregation_types": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "display_name": { - "attr_type": "display_name" - }, - "display_description": { - "attr_type": "display_description" - }, - "unit": { - "attr_type": "unit" - }, - "aggregation_type": { - "attr_type": "aggregation_type" - }, - "supports_instance_level_aggregation": { - "attr_type": "supports_instance_level_aggregation" - }, - "enable_regional_mdm_account": { - "attr_type": "enable_regional_mdm_account" - }, - "source_mdm_account": { - "attr_type": "source_mdm_account" - }, - "source_mdm_namespace": { - "attr_type": "source_mdm_namespace" - }, - "metric_filter_pattern": { - "attr_type": "metric_filter_pattern" - }, - "fill_gap_with_zero": { - "attr_type": "fill_gap_with_zero" - }, - "is_internal": { - "attr_type": "is_internal" - }, - "dimensions": { - "attr_type": "dimensions" - }, - "category": { - "attr_type": "category" - }, - "availabilities": { - "attr_type": "availabilities" - }, - "supported_time_grain_types": { - "attr_type": "supported_time_grain_types" - }, - "supported_aggregation_types": { - "attr_type": "supported_aggregation_types" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "NameIdentifier": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "NameIdentifierCollection": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "value": { - "default": null, - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" - }, - "next_link": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "NameValuePair": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "value": { - "attr_type": "value" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "Operation": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "id": { - "default": "none", - "param_type": "keyword_only" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "status": { - "default": "none", - "param_type": "keyword_only" - }, - "errors": { - "default": "none", - "param_type": "keyword_only" - }, - "created_time": { - "default": "none", - "param_type": "keyword_only" - }, - "modified_time": { - "default": "none", - "param_type": "keyword_only" - }, - "expiration_time": { - "default": "none", - "param_type": "keyword_only" - }, - "geo_master_operation_id": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "id": { - "attr_type": "id" - }, - "name": { - "attr_type": "name" - }, - "status": { - "attr_type": "status" - }, - "errors": { - "attr_type": "errors" - }, - "created_time": { - "attr_type": "created_time" - }, - "modified_time": { - "attr_type": "modified_time" - }, - "expiration_time": { - "attr_type": "expiration_time" - }, - "geo_master_operation_id": { - "attr_type": "geo_master_operation_id" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "OperationStatus": { - "type": "Enum", - "methods": {}, - "properties": { - "CREATED": "CREATED", - "FAILED": "FAILED", - "IN_PROGRESS": "IN_PROGRESS", - "SUCCEEDED": "SUCCEEDED", - "TIMED_OUT": "TIMED_OUT", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "OutboundVnetRouting": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "all_traffic": { - "default": "none", - "param_type": "keyword_only" - }, - "application_traffic": { - "default": "none", - "param_type": "keyword_only" - }, - "content_share_traffic": { - "default": "none", - "param_type": "keyword_only" - }, - "image_pull_traffic": { - "default": "none", - "param_type": "keyword_only" - }, - "backup_restore_traffic": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "all_traffic": { - "attr_type": "all_traffic" - }, - "application_traffic": { - "attr_type": "application_traffic" - }, - "content_share_traffic": { - "attr_type": "content_share_traffic" - }, - "image_pull_traffic": { - "attr_type": "image_pull_traffic" - }, - "backup_restore_traffic": { - "attr_type": "backup_restore_traffic" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "PrivateEndpointConnectionCollection": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "value": { - "default": null, - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" - }, - "next_link": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "PrivateLinkConnectionApprovalRequestResource": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "private_link_service_connection_state": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "private_link_service_connection_state": { - "attr_type": "private_link_service_connection_state" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "type": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "PrivateLinkConnectionState": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "status": { - "default": "none", - "param_type": "keyword_only" - }, - "description": { - "default": "none", - "param_type": "keyword_only" - }, - "actions_required": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "status": { - "attr_type": "status" - }, - "description": { - "attr_type": "description" - }, - "actions_required": { - "attr_type": "actions_required" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "PrivateLinkResource": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "id": { - "default": null, - "param_type": "keyword_only" - }, - "name": { - "default": null, - "param_type": "keyword_only" - }, - "type": { - "default": null, - "param_type": "keyword_only" - }, - "properties": { - "default": null, - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "id": { - "attr_type": "id" - }, - "name": { - "attr_type": "name" - }, - "type": { - "attr_type": "type" - }, - "properties": { - "attr_type": "properties" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "PrivateLinkResourceProperties": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "group_id": { - "attr_type": null - }, - "required_members": { - "attr_type": null - }, - "required_zone_names": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "PrivateLinkResourcesWrapper": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "value": { - "default": null, - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ProvisioningState": { - "type": "Enum", - "methods": {}, - "properties": { - "CANCELED": "CANCELED", - "DELETING": "DELETING", - "FAILED": "FAILED", - "IN_PROGRESS": "IN_PROGRESS", - "SUCCEEDED": "SUCCEEDED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "ProxyOnlyResource": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "type": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "PushSettings": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "is_push_enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "tag_whitelist_json": { - "default": "none", - "param_type": "keyword_only" - }, - "tags_requiring_auth": { - "default": "none", - "param_type": "keyword_only" - }, - "dynamic_tags_json": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "is_push_enabled": { - "attr_type": "is_push_enabled" - }, - "tag_whitelist_json": { - "attr_type": "tag_whitelist_json" - }, - "tags_requiring_auth": { - "attr_type": "tags_requiring_auth" - }, - "dynamic_tags_json": { - "attr_type": "dynamic_tags_json" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "type": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "QueryUtterancesResult": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "sample_utterance": { - "default": "none", - "param_type": "keyword_only" - }, - "score": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "sample_utterance": { - "attr_type": "sample_utterance" - }, - "score": { - "attr_type": "score" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "QueryUtterancesResults": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "query": { - "default": "none", - "param_type": "keyword_only" - }, - "results": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "query": { - "attr_type": "query" - }, - "results": { - "attr_type": "results" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "QueueScaleRule": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "queue_name": { - "default": "none", - "param_type": "keyword_only" - }, - "queue_length": { - "default": "none", - "param_type": "keyword_only" - }, - "auth": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "queue_name": { - "attr_type": "queue_name" - }, - "queue_length": { - "attr_type": "queue_length" - }, - "auth": { - "attr_type": "auth" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "RampUpRule": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "action_host_name": { - "default": "none", - "param_type": "keyword_only" - }, - "reroute_percentage": { - "default": "none", - "param_type": "keyword_only" - }, - "change_step": { - "default": "none", - "param_type": "keyword_only" - }, - "change_interval_in_minutes": { - "default": "none", - "param_type": "keyword_only" - }, - "min_reroute_percentage": { - "default": "none", - "param_type": "keyword_only" - }, - "max_reroute_percentage": { - "default": "none", - "param_type": "keyword_only" - }, - "change_decision_callback_url": { - "default": "none", - "param_type": "keyword_only" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "action_host_name": { - "attr_type": "action_host_name" - }, - "reroute_percentage": { - "attr_type": "reroute_percentage" - }, - "change_step": { - "attr_type": "change_step" - }, - "change_interval_in_minutes": { - "attr_type": "change_interval_in_minutes" - }, - "min_reroute_percentage": { - "attr_type": "min_reroute_percentage" - }, - "max_reroute_percentage": { - "attr_type": "max_reroute_percentage" - }, - "change_decision_callback_url": { - "attr_type": "change_decision_callback_url" - }, - "name": { - "attr_type": "name" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "RedundancyMode": { - "type": "Enum", - "methods": {}, - "properties": { - "ACTIVE_ACTIVE": "ACTIVE_ACTIVE", - "FAILOVER": "FAILOVER", - "GEO_REDUNDANT": "GEO_REDUNDANT", - "MANUAL": "MANUAL", - "NONE": "NONE", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "RemotePrivateEndpointConnectionARMResource": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "private_endpoint": { - "default": "none", - "param_type": "keyword_only" - }, - "private_link_service_connection_state": { - "default": "none", - "param_type": "keyword_only" - }, - "ip_addresses": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "provisioning_state": { - "attr_type": null - }, - "private_endpoint": { - "attr_type": "private_endpoint" - }, - "private_link_service_connection_state": { - "attr_type": "private_link_service_connection_state" - }, - "ip_addresses": { - "attr_type": "ip_addresses" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "type": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "Rendering": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "type": { - "default": "none", - "param_type": "keyword_only" - }, - "title": { - "default": "none", - "param_type": "keyword_only" - }, - "description": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "type": { - "attr_type": "type" - }, - "title": { - "attr_type": "title" - }, - "description": { - "attr_type": "description" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "RenderingType": { - "type": "Enum", - "methods": {}, - "properties": { - "APP_INSIGHT": "APP_INSIGHT", - "APP_INSIGHT_ENABLEMENT": "APP_INSIGHT_ENABLEMENT", - "CARD": "CARD", - "CHANGES_VIEW": "CHANGES_VIEW", - "CHANGE_ANALYSIS_ONBOARDING": "CHANGE_ANALYSIS_ONBOARDING", - "CHANGE_SETS": "CHANGE_SETS", - "DATA_SUMMARY": "DATA_SUMMARY", - "DEPENDENCY_GRAPH": "DEPENDENCY_GRAPH", - "DETECTOR": "DETECTOR", - "DOWN_TIME": "DOWN_TIME", - "DROP_DOWN": "DROP_DOWN", - "DYNAMIC_INSIGHT": "DYNAMIC_INSIGHT", - "EMAIL": "EMAIL", - "FORM": "FORM", - "GUAGE": "GUAGE", - "INSIGHTS": "INSIGHTS", - "MARKDOWN": "MARKDOWN", - "NO_GRAPH": "NO_GRAPH", - "PIE_CHART": "PIE_CHART", - "SEARCH_COMPONENT": "SEARCH_COMPONENT", - "SOLUTION": "SOLUTION", - "SUMMARY_CARD": "SUMMARY_CARD", - "TABLE": "TABLE", - "TIME_SERIES": "TIME_SERIES", - "TIME_SERIES_PER_INSTANCE": "TIME_SERIES_PER_INSTANCE", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "RequestsBasedTrigger": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "count": { - "default": "none", - "param_type": "keyword_only" - }, - "time_interval": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "count": { - "attr_type": "count" - }, - "time_interval": { - "attr_type": "time_interval" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "Resource": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "location": { - "default": null, - "param_type": "keyword_only" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "location": { - "attr_type": "location" - }, - "type": { - "attr_type": null - }, - "tags": { - "attr_type": "tags" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ResourceConfig": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "cpu": { - "default": "none", - "param_type": "keyword_only" - }, - "memory": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "cpu": { - "attr_type": "cpu" - }, - "memory": { - "attr_type": "memory" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ResourceNotRenewableReason": { - "type": "Enum", - "methods": {}, - "properties": { - "EXPIRATION_NOT_IN_RENEWAL_TIME_RANGE": "EXPIRATION_NOT_IN_RENEWAL_TIME_RANGE", - "REGISTRATION_STATUS_NOT_SUPPORTED_FOR_RENEWAL": "REGISTRATION_STATUS_NOT_SUPPORTED_FOR_RENEWAL", - "SUBSCRIPTION_NOT_ACTIVE": "SUBSCRIPTION_NOT_ACTIVE", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "RouteType": { - "type": "Enum", - "methods": {}, - "properties": { - "DEFAULT": "DEFAULT", - "INHERITED": "INHERITED", - "STATIC": "STATIC", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "RuntimeName": { - "type": "Enum", - "methods": {}, - "properties": { - "CUSTOM": "CUSTOM", - "DOTNET_ISOLATED": "DOTNET_ISOLATED", - "JAVA": "JAVA", - "NODE": "NODE", - "POWERSHELL": "POWERSHELL", - "PYTHON": "PYTHON", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "SampleUtterance": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "text": { - "default": "none", - "param_type": "keyword_only" - }, - "links": { - "default": "none", - "param_type": "keyword_only" - }, - "qid": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "text": { - "attr_type": "text" - }, - "links": { - "attr_type": "links" - }, - "qid": { - "attr_type": "qid" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "Scale": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "min_replicas": { - "default": "none", - "param_type": "keyword_only" - }, - "max_replicas": { - "default": "none", - "param_type": "keyword_only" - }, - "rules": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "min_replicas": { - "attr_type": "min_replicas" - }, - "max_replicas": { - "attr_type": "max_replicas" - }, - "rules": { - "attr_type": "rules" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ScaleRule": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "azure_queue": { - "default": "none", - "param_type": "keyword_only" - }, - "custom": { - "default": "none", - "param_type": "keyword_only" - }, - "http": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "name": { - "attr_type": "name" - }, - "azure_queue": { - "attr_type": "azure_queue" - }, - "custom": { - "attr_type": "custom" - }, - "http": { - "attr_type": "http" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ScaleRuleAuth": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "secret_ref": { - "default": "none", - "param_type": "keyword_only" - }, - "trigger_parameter": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "secret_ref": { - "attr_type": "secret_ref" - }, - "trigger_parameter": { - "attr_type": "trigger_parameter" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ScmType": { - "type": "Enum", - "methods": {}, - "properties": { - "BITBUCKET_GIT": "BITBUCKET_GIT", - "BITBUCKET_HG": "BITBUCKET_HG", - "CODE_PLEX_GIT": "CODE_PLEX_GIT", - "CODE_PLEX_HG": "CODE_PLEX_HG", - "DROPBOX": "DROPBOX", - "EXTERNAL_GIT": "EXTERNAL_GIT", - "EXTERNAL_HG": "EXTERNAL_HG", - "GIT_HUB": "GIT_HUB", - "LOCAL_GIT": "LOCAL_GIT", - "NONE": "NONE", - "ONE_DRIVE": "ONE_DRIVE", - "TFS": "TFS", - "VSO": "VSO", - "VSTSRM": "VSTSRM", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "ServiceSpecification": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "metric_specifications": { - "default": "none", - "param_type": "keyword_only" - }, - "log_specifications": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "metric_specifications": { - "attr_type": "metric_specifications" - }, - "log_specifications": { - "attr_type": "log_specifications" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "Site": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "location": { - "default": null, - "param_type": "keyword_only" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "identity": { - "default": "none", - "param_type": "keyword_only" - }, - "extended_location": { - "default": "none", - "param_type": "keyword_only" - }, - "enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "host_name_ssl_states": { - "default": "none", - "param_type": "keyword_only" - }, - "server_farm_id": { - "default": "none", - "param_type": "keyword_only" - }, - "reserved": { - "default": "bool", - "param_type": "keyword_only" - }, - "is_xenon": { - "default": "bool", - "param_type": "keyword_only" - }, - "hyper_v": { - "default": "bool", - "param_type": "keyword_only" - }, - "dns_configuration": { - "default": "none", - "param_type": "keyword_only" - }, - "outbound_vnet_routing": { - "default": "none", - "param_type": "keyword_only" - }, - "site_config": { - "default": "none", - "param_type": "keyword_only" - }, - "function_app_config": { - "default": "none", - "param_type": "keyword_only" - }, - "dapr_config": { - "default": "none", - "param_type": "keyword_only" - }, - "workload_profile_name": { - "default": "none", - "param_type": "keyword_only" - }, - "resource_config": { - "default": "none", - "param_type": "keyword_only" - }, - "scm_site_also_stopped": { - "default": "bool", - "param_type": "keyword_only" - }, - "hosting_environment_profile": { - "default": "none", - "param_type": "keyword_only" - }, - "client_affinity_enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "client_affinity_partitioning_enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "client_affinity_proxy_enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "client_cert_enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "client_cert_mode": { - "default": "none", - "param_type": "keyword_only" - }, - "client_cert_exclusion_paths": { - "default": "none", - "param_type": "keyword_only" - }, - "ip_mode": { - "default": "none", - "param_type": "keyword_only" - }, - "end_to_end_encryption_enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "ssh_enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "host_names_disabled": { - "default": "none", - "param_type": "keyword_only" - }, - "custom_domain_verification_id": { - "default": "none", - "param_type": "keyword_only" - }, - "container_size": { - "default": "none", - "param_type": "keyword_only" - }, - "daily_memory_time_quota": { - "default": "none", - "param_type": "keyword_only" - }, - "cloning_info": { - "default": "none", - "param_type": "keyword_only" - }, - "https_only": { - "default": "none", - "param_type": "keyword_only" - }, - "redundancy_mode": { - "default": "none", - "param_type": "keyword_only" - }, - "public_network_access": { - "default": "none", - "param_type": "keyword_only" - }, - "storage_account_required": { - "default": "none", - "param_type": "keyword_only" - }, - "key_vault_reference_identity": { - "default": "none", - "param_type": "keyword_only" - }, - "auto_generated_domain_name_label_scope": { - "default": "none", - "param_type": "keyword_only" - }, - "virtual_network_subnet_id": { - "default": "none", - "param_type": "keyword_only" - }, - "managed_environment_id": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "identity": { - "attr_type": "identity" - }, - "extended_location": { - "attr_type": "extended_location" - }, - "state": { - "attr_type": null - }, - "host_names": { - "attr_type": null - }, - "repository_site_name": { - "attr_type": null - }, - "usage_state": { - "attr_type": null - }, - "enabled": { - "attr_type": "enabled" - }, - "enabled_host_names": { - "attr_type": null - }, - "availability_state": { - "attr_type": null - }, - "host_name_ssl_states": { - "attr_type": "host_name_ssl_states" - }, - "server_farm_id": { - "attr_type": "server_farm_id" - }, - "reserved": { - "attr_type": "reserved" - }, - "is_xenon": { - "attr_type": "is_xenon" - }, - "hyper_v": { - "attr_type": "hyper_v" - }, - "last_modified_time_utc": { - "attr_type": null - }, - "dns_configuration": { - "attr_type": "dns_configuration" - }, - "outbound_vnet_routing": { - "attr_type": "outbound_vnet_routing" - }, - "site_config": { - "attr_type": "site_config" - }, - "function_app_config": { - "attr_type": "function_app_config" - }, - "dapr_config": { - "attr_type": "dapr_config" - }, - "workload_profile_name": { - "attr_type": "workload_profile_name" - }, - "resource_config": { - "attr_type": "resource_config" - }, - "traffic_manager_host_names": { - "attr_type": null - }, - "scm_site_also_stopped": { - "attr_type": "scm_site_also_stopped" - }, - "target_swap_slot": { - "attr_type": null - }, - "hosting_environment_profile": { - "attr_type": "hosting_environment_profile" - }, - "client_affinity_enabled": { - "attr_type": "client_affinity_enabled" - }, - "client_affinity_partitioning_enabled": { - "attr_type": "client_affinity_partitioning_enabled" - }, - "client_affinity_proxy_enabled": { - "attr_type": "client_affinity_proxy_enabled" - }, - "client_cert_enabled": { - "attr_type": "client_cert_enabled" - }, - "client_cert_mode": { - "attr_type": "client_cert_mode" - }, - "client_cert_exclusion_paths": { - "attr_type": "client_cert_exclusion_paths" - }, - "ip_mode": { - "attr_type": "ip_mode" - }, - "end_to_end_encryption_enabled": { - "attr_type": "end_to_end_encryption_enabled" - }, - "ssh_enabled": { - "attr_type": "ssh_enabled" - }, - "host_names_disabled": { - "attr_type": "host_names_disabled" - }, - "custom_domain_verification_id": { - "attr_type": "custom_domain_verification_id" - }, - "outbound_ip_addresses": { - "attr_type": null - }, - "possible_outbound_ip_addresses": { - "attr_type": null - }, - "container_size": { - "attr_type": "container_size" - }, - "daily_memory_time_quota": { - "attr_type": "daily_memory_time_quota" - }, - "suspended_till": { - "attr_type": null - }, - "max_number_of_workers": { - "attr_type": null - }, - "cloning_info": { - "attr_type": "cloning_info" - }, - "resource_group": { - "attr_type": null - }, - "is_default_container": { - "attr_type": null - }, - "default_host_name": { - "attr_type": null - }, - "slot_swap_status": { - "attr_type": null - }, - "https_only": { - "attr_type": "https_only" - }, - "redundancy_mode": { - "attr_type": "redundancy_mode" - }, - "in_progress_operation_id": { - "attr_type": null - }, - "public_network_access": { - "attr_type": "public_network_access" - }, - "storage_account_required": { - "attr_type": "storage_account_required" - }, - "key_vault_reference_identity": { - "attr_type": "key_vault_reference_identity" - }, - "auto_generated_domain_name_label_scope": { - "attr_type": "auto_generated_domain_name_label_scope" - }, - "virtual_network_subnet_id": { - "attr_type": "virtual_network_subnet_id" - }, - "managed_environment_id": { - "attr_type": "managed_environment_id" - }, - "sku": { - "attr_type": null - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" - }, - "location": { - "attr_type": "location" - }, - "type": { - "attr_type": null - }, - "tags": { - "attr_type": "tags" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "SiteAvailabilityState": { - "type": "Enum", - "methods": {}, - "properties": { - "DISASTER_RECOVERY_MODE": "DISASTER_RECOVERY_MODE", - "LIMITED": "LIMITED", - "NORMAL": "NORMAL", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "SiteConfig": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "number_of_workers": { - "default": "none", - "param_type": "keyword_only" - }, - "default_documents": { - "default": "none", - "param_type": "keyword_only" - }, - "net_framework_version": { - "default": "str", - "param_type": "keyword_only" - }, - "php_version": { - "default": "none", - "param_type": "keyword_only" - }, - "python_version": { - "default": "none", - "param_type": "keyword_only" - }, - "node_version": { - "default": "none", - "param_type": "keyword_only" - }, - "power_shell_version": { - "default": "none", - "param_type": "keyword_only" - }, - "linux_fx_version": { - "default": "none", - "param_type": "keyword_only" - }, - "windows_fx_version": { - "default": "none", - "param_type": "keyword_only" - }, - "request_tracing_enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "request_tracing_expiration_time": { - "default": "none", - "param_type": "keyword_only" - }, - "remote_debugging_enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "remote_debugging_version": { - "default": "none", - "param_type": "keyword_only" - }, - "http_logging_enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "acr_use_managed_identity_creds": { - "default": "none", - "param_type": "keyword_only" - }, - "acr_user_managed_identity_id": { - "default": "none", - "param_type": "keyword_only" - }, - "logs_directory_size_limit": { - "default": "none", - "param_type": "keyword_only" - }, - "detailed_error_logging_enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "publishing_username": { - "default": "none", - "param_type": "keyword_only" - }, - "app_settings": { - "default": "none", - "param_type": "keyword_only" - }, - "metadata": { - "default": "none", - "param_type": "keyword_only" - }, - "connection_strings": { - "default": "none", - "param_type": "keyword_only" - }, - "handler_mappings": { - "default": "none", - "param_type": "keyword_only" - }, - "document_root": { - "default": "none", - "param_type": "keyword_only" - }, - "scm_type": { - "default": "none", - "param_type": "keyword_only" - }, - "use32_bit_worker_process": { - "default": "none", - "param_type": "keyword_only" - }, - "web_sockets_enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "always_on": { - "default": "none", - "param_type": "keyword_only" - }, - "java_version": { - "default": "none", - "param_type": "keyword_only" - }, - "java_container": { - "default": "none", - "param_type": "keyword_only" - }, - "java_container_version": { - "default": "none", - "param_type": "keyword_only" - }, - "app_command_line": { - "default": "none", - "param_type": "keyword_only" - }, - "managed_pipeline_mode": { - "default": "none", - "param_type": "keyword_only" - }, - "virtual_applications": { - "default": "none", - "param_type": "keyword_only" - }, - "load_balancing": { - "default": "none", - "param_type": "keyword_only" - }, - "experiments": { - "default": "none", - "param_type": "keyword_only" - }, - "limits": { - "default": "none", - "param_type": "keyword_only" - }, - "auto_heal_enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "auto_heal_rules": { - "default": "none", - "param_type": "keyword_only" - }, - "tracing_options": { - "default": "none", - "param_type": "keyword_only" - }, - "vnet_name": { - "default": "none", - "param_type": "keyword_only" - }, - "vnet_route_all_enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "vnet_private_ports_count": { - "default": "none", - "param_type": "keyword_only" - }, - "cors": { - "default": "none", - "param_type": "keyword_only" - }, - "push": { - "default": "none", - "param_type": "keyword_only" - }, - "api_definition": { - "default": "none", - "param_type": "keyword_only" - }, - "api_management_config": { - "default": "none", - "param_type": "keyword_only" - }, - "auto_swap_slot_name": { - "default": "none", - "param_type": "keyword_only" - }, - "local_my_sql_enabled": { - "default": "bool", - "param_type": "keyword_only" - }, - "managed_service_identity_id": { - "default": "none", - "param_type": "keyword_only" - }, - "x_managed_service_identity_id": { - "default": "none", - "param_type": "keyword_only" - }, - "key_vault_reference_identity": { - "default": "none", - "param_type": "keyword_only" - }, - "ip_security_restrictions": { - "default": "none", - "param_type": "keyword_only" - }, - "ip_security_restrictions_default_action": { - "default": "none", - "param_type": "keyword_only" - }, - "scm_ip_security_restrictions": { - "default": "none", - "param_type": "keyword_only" - }, - "scm_ip_security_restrictions_default_action": { - "default": "none", - "param_type": "keyword_only" - }, - "scm_ip_security_restrictions_use_main": { - "default": "none", - "param_type": "keyword_only" - }, - "http20_enabled": { - "default": "bool", - "param_type": "keyword_only" - }, - "http20_proxy_flag": { - "default": "int", - "param_type": "keyword_only" - }, - "min_tls_version": { - "default": "none", - "param_type": "keyword_only" - }, - "min_tls_cipher_suite": { - "default": "none", - "param_type": "keyword_only" - }, - "scm_min_tls_version": { - "default": "none", - "param_type": "keyword_only" - }, - "ftps_state": { - "default": "none", - "param_type": "keyword_only" - }, - "pre_warmed_instance_count": { - "default": "none", - "param_type": "keyword_only" - }, - "function_app_scale_limit": { - "default": "none", - "param_type": "keyword_only" - }, - "elastic_web_app_scale_limit": { - "default": "none", - "param_type": "keyword_only" - }, - "health_check_path": { - "default": "none", - "param_type": "keyword_only" - }, - "functions_runtime_scale_monitoring_enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "website_time_zone": { - "default": "none", - "param_type": "keyword_only" - }, - "minimum_elastic_instance_count": { - "default": "none", - "param_type": "keyword_only" - }, - "azure_storage_accounts": { - "default": "none", - "param_type": "keyword_only" - }, - "public_network_access": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "number_of_workers": { - "attr_type": "number_of_workers" - }, - "default_documents": { - "attr_type": "default_documents" - }, - "net_framework_version": { - "attr_type": "net_framework_version" - }, - "php_version": { - "attr_type": "php_version" - }, - "python_version": { - "attr_type": "python_version" - }, - "node_version": { - "attr_type": "node_version" - }, - "power_shell_version": { - "attr_type": "power_shell_version" - }, - "linux_fx_version": { - "attr_type": "linux_fx_version" - }, - "windows_fx_version": { - "attr_type": "windows_fx_version" - }, - "request_tracing_enabled": { - "attr_type": "request_tracing_enabled" - }, - "request_tracing_expiration_time": { - "attr_type": "request_tracing_expiration_time" - }, - "remote_debugging_enabled": { - "attr_type": "remote_debugging_enabled" - }, - "remote_debugging_version": { - "attr_type": "remote_debugging_version" - }, - "http_logging_enabled": { - "attr_type": "http_logging_enabled" - }, - "acr_use_managed_identity_creds": { - "attr_type": "acr_use_managed_identity_creds" - }, - "acr_user_managed_identity_id": { - "attr_type": "acr_user_managed_identity_id" - }, - "logs_directory_size_limit": { - "attr_type": "logs_directory_size_limit" - }, - "detailed_error_logging_enabled": { - "attr_type": "detailed_error_logging_enabled" - }, - "publishing_username": { - "attr_type": "publishing_username" - }, - "app_settings": { - "attr_type": "app_settings" - }, - "metadata": { - "attr_type": "metadata" - }, - "connection_strings": { - "attr_type": "connection_strings" - }, - "machine_key": { - "attr_type": null - }, - "handler_mappings": { - "attr_type": "handler_mappings" - }, - "document_root": { - "attr_type": "document_root" - }, - "scm_type": { - "attr_type": "scm_type" - }, - "use32_bit_worker_process": { - "attr_type": "use32_bit_worker_process" - }, - "web_sockets_enabled": { - "attr_type": "web_sockets_enabled" - }, - "always_on": { - "attr_type": "always_on" - }, - "java_version": { - "attr_type": "java_version" - }, - "java_container": { - "attr_type": "java_container" - }, - "java_container_version": { - "attr_type": "java_container_version" - }, - "app_command_line": { - "attr_type": "app_command_line" - }, - "managed_pipeline_mode": { - "attr_type": "managed_pipeline_mode" - }, - "virtual_applications": { - "attr_type": "virtual_applications" - }, - "load_balancing": { - "attr_type": "load_balancing" - }, - "experiments": { - "attr_type": "experiments" - }, - "limits": { - "attr_type": "limits" - }, - "auto_heal_enabled": { - "attr_type": "auto_heal_enabled" - }, - "auto_heal_rules": { - "attr_type": "auto_heal_rules" - }, - "tracing_options": { - "attr_type": "tracing_options" - }, - "vnet_name": { - "attr_type": "vnet_name" - }, - "vnet_route_all_enabled": { - "attr_type": "vnet_route_all_enabled" - }, - "vnet_private_ports_count": { - "attr_type": "vnet_private_ports_count" - }, - "cors": { - "attr_type": "cors" - }, - "push": { - "attr_type": "push" - }, - "api_definition": { - "attr_type": "api_definition" - }, - "api_management_config": { - "attr_type": "api_management_config" - }, - "auto_swap_slot_name": { - "attr_type": "auto_swap_slot_name" - }, - "local_my_sql_enabled": { - "attr_type": "local_my_sql_enabled" - }, - "managed_service_identity_id": { - "attr_type": "managed_service_identity_id" - }, - "x_managed_service_identity_id": { - "attr_type": "x_managed_service_identity_id" - }, - "key_vault_reference_identity": { - "attr_type": "key_vault_reference_identity" - }, - "ip_security_restrictions": { - "attr_type": "ip_security_restrictions" - }, - "ip_security_restrictions_default_action": { - "attr_type": "ip_security_restrictions_default_action" - }, - "scm_ip_security_restrictions": { - "attr_type": "scm_ip_security_restrictions" - }, - "scm_ip_security_restrictions_default_action": { - "attr_type": "scm_ip_security_restrictions_default_action" - }, - "scm_ip_security_restrictions_use_main": { - "attr_type": "scm_ip_security_restrictions_use_main" - }, - "http20_enabled": { - "attr_type": "http20_enabled" - }, - "http20_proxy_flag": { - "attr_type": "http20_proxy_flag" - }, - "min_tls_version": { - "attr_type": "min_tls_version" - }, - "min_tls_cipher_suite": { - "attr_type": "min_tls_cipher_suite" - }, - "scm_min_tls_version": { - "attr_type": "scm_min_tls_version" - }, - "ftps_state": { - "attr_type": "ftps_state" - }, - "pre_warmed_instance_count": { - "attr_type": "pre_warmed_instance_count" - }, - "function_app_scale_limit": { - "attr_type": "function_app_scale_limit" + "overloads": [] }, - "elastic_web_app_scale_limit": { - "attr_type": "elastic_web_app_scale_limit" + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "health_check_path": { - "attr_type": "health_check_path" + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] }, - "functions_runtime_scale_monitoring_enabled": { - "attr_type": "functions_runtime_scale_monitoring_enabled" + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": { + "attr_type": null }, - "website_time_zone": { - "attr_type": "website_time_zone" + "message": { + "attr_type": null }, - "minimum_elastic_instance_count": { - "attr_type": "minimum_elastic_instance_count" + "target": { + "attr_type": null }, - "azure_storage_accounts": { - "attr_type": "azure_storage_accounts" + "details": { + "attr_type": "details" }, - "public_network_access": { - "attr_type": "public_network_access" + "innererror": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "SiteDnsConfig": { + "DefaultErrorResponseErrorDetailsItem": { "type": null, "methods": { "__init__": { @@ -19962,26 +2135,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "dns_servers": { - "default": "none", - "param_type": "keyword_only" - }, - "dns_alt_server": { - "default": "none", - "param_type": "keyword_only" - }, - "dns_retry_attempt_timeout": { - "default": "none", - "param_type": "keyword_only" - }, - "dns_retry_attempt_count": { - "default": "none", - "param_type": "keyword_only" - }, - "dns_max_cache_timeout": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -20074,22 +2227,13 @@ } }, "properties": { - "dns_servers": { - "attr_type": "dns_servers" - }, - "dns_alt_server": { - "attr_type": "dns_alt_server" - }, - "dns_retry_attempt_timeout": { - "attr_type": "dns_retry_attempt_timeout" - }, - "dns_retry_attempt_count": { - "attr_type": "dns_retry_attempt_count" + "code": { + "attr_type": null }, - "dns_max_cache_timeout": { - "attr_type": "dns_max_cache_timeout" + "message": { + "attr_type": null }, - "dns_legacy_sort_order": { + "target": { "attr_type": null }, "additional_properties": { @@ -20097,7 +2241,7 @@ } } }, - "SiteLimits": { + "Dimension": { "type": null, "methods": { "__init__": { @@ -20106,15 +2250,19 @@ "default": null, "param_type": "positional_or_keyword" }, - "max_percentage_cpu": { + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "display_name": { "default": "none", "param_type": "keyword_only" }, - "max_memory_in_mb": { + "internal_name": { "default": "none", "param_type": "keyword_only" }, - "max_disk_size_in_mb": { + "to_be_exported_for_shoebox": { "default": "none", "param_type": "keyword_only" }, @@ -20210,81 +2358,32 @@ } }, "properties": { - "max_percentage_cpu": { - "attr_type": "max_percentage_cpu" + "name": { + "attr_type": "name" + }, + "display_name": { + "attr_type": "display_name" }, - "max_memory_in_mb": { - "attr_type": "max_memory_in_mb" + "internal_name": { + "attr_type": "internal_name" }, - "max_disk_size_in_mb": { - "attr_type": "max_disk_size_in_mb" + "to_be_exported_for_shoebox": { + "attr_type": "to_be_exported_for_shoebox" }, "additional_properties": { "attr_type": null } } }, - "SiteLoadBalancing": { + "DnsType": { "type": "Enum", "methods": {}, "properties": { - "LEAST_REQUESTS": "LEAST_REQUESTS", - "LEAST_REQUESTS_WITH_TIE_BREAKER": "LEAST_REQUESTS_WITH_TIE_BREAKER", - "LEAST_RESPONSE_TIME": "LEAST_RESPONSE_TIME", - "PER_SITE_ROUND_ROBIN": "PER_SITE_ROUND_ROBIN", - "REQUEST_HASH": "REQUEST_HASH", - "WEIGHTED_ROUND_ROBIN": "WEIGHTED_ROUND_ROBIN", - "WEIGHTED_TOTAL_TRAFFIC": "WEIGHTED_TOTAL_TRAFFIC", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" + "AZURE_DNS": "AZURE_DNS", + "DEFAULT_DOMAIN_REGISTRAR_DNS": "DEFAULT_DOMAIN_REGISTRAR_DNS" } }, - "SiteMachineKey": { + "Domain": { "type": null, "methods": { "__init__": { @@ -20293,19 +2392,59 @@ "default": null, "param_type": "positional_or_keyword" }, - "validation": { + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kind": { + "default": "none", + "param_type": "keyword_only" + }, + "contact_admin": { + "default": "none", + "param_type": "keyword_only" + }, + "contact_billing": { + "default": "none", + "param_type": "keyword_only" + }, + "contact_registrant": { + "default": "none", + "param_type": "keyword_only" + }, + "contact_tech": { + "default": "none", + "param_type": "keyword_only" + }, + "privacy": { + "default": "none", + "param_type": "keyword_only" + }, + "auto_renew": { + "default": "bool", + "param_type": "keyword_only" + }, + "consent": { + "default": "none", + "param_type": "keyword_only" + }, + "dns_type": { "default": "none", "param_type": "keyword_only" }, - "validation_key": { + "dns_zone_id": { "default": "none", "param_type": "keyword_only" }, - "decryption": { + "target_dns_type": { "default": "none", "param_type": "keyword_only" }, - "decryption_key": { + "auth_code": { "default": "none", "param_type": "keyword_only" }, @@ -20401,24 +2540,93 @@ } }, "properties": { - "validation": { - "attr_type": "validation" + "kind": { + "attr_type": "kind" + }, + "contact_admin": { + "attr_type": "contact_admin" + }, + "contact_billing": { + "attr_type": "contact_billing" + }, + "contact_registrant": { + "attr_type": "contact_registrant" + }, + "contact_tech": { + "attr_type": "contact_tech" + }, + "registration_status": { + "attr_type": null + }, + "provisioning_state": { + "attr_type": null + }, + "name_servers": { + "attr_type": null + }, + "privacy": { + "attr_type": "privacy" + }, + "created_time": { + "attr_type": null + }, + "expiration_time": { + "attr_type": null + }, + "last_renewed_time": { + "attr_type": null + }, + "auto_renew": { + "attr_type": "auto_renew" + }, + "ready_for_dns_record_management": { + "attr_type": null + }, + "managed_host_names": { + "attr_type": null + }, + "consent": { + "attr_type": "consent" + }, + "domain_not_renewable_reasons": { + "attr_type": null + }, + "dns_type": { + "attr_type": "dns_type" + }, + "dns_zone_id": { + "attr_type": "dns_zone_id" + }, + "target_dns_type": { + "attr_type": "target_dns_type" + }, + "auth_code": { + "attr_type": "auth_code" + }, + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" }, - "validation_key": { - "attr_type": "validation_key" + "id": { + "attr_type": null + }, + "name": { + "attr_type": null }, - "decryption": { - "attr_type": "decryption" + "type": { + "attr_type": null }, - "decryption_key": { - "attr_type": "decryption_key" + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "SkuCapacity": { + "DomainAvailabilityCheckResult": { "type": null, "methods": { "__init__": { @@ -20427,23 +2635,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "minimum": { - "default": "none", - "param_type": "keyword_only" - }, - "maximum": { - "default": "none", - "param_type": "keyword_only" - }, - "elastic_maximum": { + "name": { "default": "none", "param_type": "keyword_only" }, - "default": { + "available": { "default": "none", "param_type": "keyword_only" }, - "scale_type": { + "domain_type": { "default": "none", "param_type": "keyword_only" }, @@ -20539,27 +2739,21 @@ } }, "properties": { - "minimum": { - "attr_type": "minimum" - }, - "maximum": { - "attr_type": "maximum" - }, - "elastic_maximum": { - "attr_type": "elastic_maximum" + "name": { + "attr_type": "name" }, - "default": { - "attr_type": "default" + "available": { + "attr_type": "available" }, - "scale_type": { - "attr_type": "scale_type" + "domain_type": { + "attr_type": "domain_type" }, "additional_properties": { "attr_type": null } } }, - "SkuDescription": { + "DomainCollection": { "type": null, "methods": { "__init__": { @@ -20568,35 +2762,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "tier": { - "default": "none", - "param_type": "keyword_only" - }, - "size": { - "default": "none", - "param_type": "keyword_only" - }, - "family": { - "default": "none", - "param_type": "keyword_only" - }, - "capacity": { - "default": "none", - "param_type": "keyword_only" - }, - "sku_capacity": { - "default": "none", - "param_type": "keyword_only" - }, - "locations": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, - "capabilities": { + "next_link": { "default": "none", "param_type": "keyword_only" }, @@ -20692,36 +2862,18 @@ } }, "properties": { - "name": { - "attr_type": "name" - }, - "tier": { - "attr_type": "tier" - }, - "size": { - "attr_type": "size" - }, - "family": { - "attr_type": "family" - }, - "capacity": { - "attr_type": "capacity" - }, - "sku_capacity": { - "attr_type": "sku_capacity" - }, - "locations": { - "attr_type": "locations" + "value": { + "attr_type": "value" }, - "capabilities": { - "attr_type": "capabilities" + "next_link": { + "attr_type": "next_link" }, "additional_properties": { "attr_type": null } } }, - "SlotSwapStatus": { + "DomainControlCenterSsoRequest": { "type": null, "methods": { "__init__": { @@ -20822,13 +2974,13 @@ } }, "properties": { - "timestamp_utc": { + "url": { "attr_type": null }, - "source_slot_name": { + "post_parameter_key": { "attr_type": null }, - "destination_slot_name": { + "post_parameter_value": { "attr_type": null }, "additional_properties": { @@ -20836,7 +2988,7 @@ } } }, - "SlowRequestsBasedTrigger": { + "DomainOwnershipIdentifier": { "type": null, "methods": { "__init__": { @@ -20845,19 +2997,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "time_taken": { - "default": "none", - "param_type": "keyword_only" - }, - "path": { - "default": "none", - "param_type": "keyword_only" - }, - "count": { + "kind": { "default": "none", "param_type": "keyword_only" }, - "time_interval": { + "ownership_id": { "default": "none", "param_type": "keyword_only" }, @@ -20953,24 +3097,30 @@ } }, "properties": { - "time_taken": { - "attr_type": "time_taken" + "kind": { + "attr_type": "kind" + }, + "ownership_id": { + "attr_type": "ownership_id" + }, + "id": { + "attr_type": null }, - "path": { - "attr_type": "path" + "name": { + "attr_type": null }, - "count": { - "attr_type": "count" + "type": { + "attr_type": null }, - "time_interval": { - "attr_type": "time_interval" + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "Snapshot": { + "DomainOwnershipIdentifierCollection": { "type": null, "methods": { "__init__": { @@ -20979,7 +3129,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "kind": { + "value": { + "default": null, + "param_type": "keyword_only" + }, + "next_link": { "default": "none", "param_type": "keyword_only" }, @@ -21075,83 +3229,18 @@ } }, "properties": { - "time": { - "attr_type": null - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" + "value": { + "attr_type": "value" }, - "type": { - "attr_type": null + "next_link": { + "attr_type": "next_link" }, "additional_properties": { "attr_type": null } } }, - "SslState": { - "type": "Enum", - "methods": {}, - "properties": { - "DISABLED": "DISABLED", - "IP_BASED_ENABLED": "IP_BASED_ENABLED", - "SNI_ENABLED": "SNI_ENABLED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "Status": { + "DomainPatchResource": { "type": null, "methods": { "__init__": { @@ -21160,11 +3249,51 @@ "default": null, "param_type": "positional_or_keyword" }, - "message": { + "kind": { + "default": "none", + "param_type": "keyword_only" + }, + "contact_admin": { + "default": "none", + "param_type": "keyword_only" + }, + "contact_billing": { + "default": "none", + "param_type": "keyword_only" + }, + "contact_registrant": { + "default": "none", + "param_type": "keyword_only" + }, + "contact_tech": { + "default": "none", + "param_type": "keyword_only" + }, + "privacy": { + "default": "none", + "param_type": "keyword_only" + }, + "auto_renew": { + "default": "bool", + "param_type": "keyword_only" + }, + "consent": { + "default": "none", + "param_type": "keyword_only" + }, + "dns_type": { + "default": "none", + "param_type": "keyword_only" + }, + "dns_zone_id": { + "default": "none", + "param_type": "keyword_only" + }, + "target_dns_type": { "default": "none", "param_type": "keyword_only" }, - "status_id": { + "auth_code": { "default": "none", "param_type": "keyword_only" }, @@ -21260,18 +3389,84 @@ } }, "properties": { - "message": { - "attr_type": "message" + "contact_admin": { + "attr_type": "contact_admin" + }, + "contact_billing": { + "attr_type": "contact_billing" + }, + "contact_registrant": { + "attr_type": "contact_registrant" + }, + "contact_tech": { + "attr_type": "contact_tech" + }, + "registration_status": { + "attr_type": null + }, + "provisioning_state": { + "attr_type": null + }, + "name_servers": { + "attr_type": null + }, + "privacy": { + "attr_type": "privacy" + }, + "created_time": { + "attr_type": null + }, + "expiration_time": { + "attr_type": null + }, + "last_renewed_time": { + "attr_type": null + }, + "auto_renew": { + "attr_type": "auto_renew" + }, + "ready_for_dns_record_management": { + "attr_type": null + }, + "managed_host_names": { + "attr_type": null + }, + "consent": { + "attr_type": "consent" + }, + "domain_not_renewable_reasons": { + "attr_type": null + }, + "dns_type": { + "attr_type": "dns_type" + }, + "dns_zone_id": { + "attr_type": "dns_zone_id" + }, + "target_dns_type": { + "attr_type": "target_dns_type" + }, + "auth_code": { + "attr_type": "auth_code" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "kind": { + "attr_type": "kind" }, - "status_id": { - "attr_type": "status_id" + "type": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "StatusCodesBasedTrigger": { + "DomainPurchaseConsent": { "type": null, "methods": { "__init__": { @@ -21280,27 +3475,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "status": { - "default": "none", - "param_type": "keyword_only" - }, - "sub_status": { - "default": "none", - "param_type": "keyword_only" - }, - "win32_status": { - "default": "none", - "param_type": "keyword_only" - }, - "count": { + "agreement_keys": { "default": "none", "param_type": "keyword_only" }, - "time_interval": { + "agreed_by": { "default": "none", "param_type": "keyword_only" }, - "path": { + "agreed_at": { "default": "none", "param_type": "keyword_only" }, @@ -21396,30 +3579,21 @@ } }, "properties": { - "status": { - "attr_type": "status" - }, - "sub_status": { - "attr_type": "sub_status" - }, - "win32_status": { - "attr_type": "win32_status" - }, - "count": { - "attr_type": "count" + "agreement_keys": { + "attr_type": "agreement_keys" }, - "time_interval": { - "attr_type": "time_interval" + "agreed_by": { + "attr_type": "agreed_by" }, - "path": { - "attr_type": "path" + "agreed_at": { + "attr_type": "agreed_at" }, "additional_properties": { "attr_type": null } } }, - "StatusCodesRangeBasedTrigger": { + "DomainRecommendationSearchParameters": { "type": null, "methods": { "__init__": { @@ -21428,19 +3602,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "status_codes": { - "default": "none", - "param_type": "keyword_only" - }, - "path": { - "default": "none", - "param_type": "keyword_only" - }, - "count": { + "keywords": { "default": "none", "param_type": "keyword_only" }, - "time_interval": { + "max_domain_recommendations": { "default": "none", "param_type": "keyword_only" }, @@ -21536,80 +3702,53 @@ } }, "properties": { - "status_codes": { - "attr_type": "status_codes" - }, - "path": { - "attr_type": "path" - }, - "count": { - "attr_type": "count" + "keywords": { + "attr_type": "keywords" }, - "time_interval": { - "attr_type": "time_interval" + "max_domain_recommendations": { + "attr_type": "max_domain_recommendations" }, "additional_properties": { "attr_type": null } } }, - "StatusOptions": { + "DomainStatus": { "type": "Enum", "methods": {}, "properties": { - "CREATING": "CREATING", + "ACTIVE": "ACTIVE", + "AWAITING": "AWAITING", + "CANCELLED": "CANCELLED", + "CONFISCATED": "CONFISCATED", + "DISABLED": "DISABLED", + "EXCLUDED": "EXCLUDED", + "EXPIRED": "EXPIRED", + "FAILED": "FAILED", + "HELD": "HELD", + "JSON_CONVERTER_FAILED": "JSON_CONVERTER_FAILED", + "LOCKED": "LOCKED", + "PARKED": "PARKED", "PENDING": "PENDING", - "READY": "READY", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" + "RESERVED": "RESERVED", + "REVERTED": "REVERTED", + "SUSPENDED": "SUSPENDED", + "TRANSFERRED": "TRANSFERRED", + "UNKNOWN": "UNKNOWN", + "UNLOCKED": "UNLOCKED", + "UNPARKED": "UNPARKED", + "UPDATED": "UPDATED" + } + }, + "DomainType": { + "type": "Enum", + "methods": {}, + "properties": { + "REGULAR": "REGULAR", + "SOFT_DELETED": "SOFT_DELETED" } }, - "StringDictionary": { + "HostName": { "type": null, "methods": { "__init__": { @@ -21618,11 +3757,27 @@ "default": null, "param_type": "positional_or_keyword" }, - "kind": { + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "site_names": { + "default": "none", + "param_type": "keyword_only" + }, + "azure_resource_name": { + "default": "none", + "param_type": "keyword_only" + }, + "azure_resource_type": { "default": "none", "param_type": "keyword_only" }, - "properties": { + "custom_host_name_dns_record_type": { + "default": "none", + "param_type": "keyword_only" + }, + "host_name_type": { "default": "none", "param_type": "keyword_only" }, @@ -21718,27 +3873,38 @@ } }, "properties": { - "properties": { - "attr_type": "properties" + "name": { + "attr_type": "name" }, - "id": { - "attr_type": null + "site_names": { + "attr_type": "site_names" }, - "name": { - "attr_type": null + "azure_resource_name": { + "attr_type": "azure_resource_name" }, - "kind": { - "attr_type": "kind" + "azure_resource_type": { + "attr_type": "azure_resource_type" }, - "type": { - "attr_type": null + "custom_host_name_dns_record_type": { + "attr_type": "custom_host_name_dns_record_type" + }, + "host_name_type": { + "attr_type": "host_name_type" }, "additional_properties": { "attr_type": null } } }, - "SupportTopic": { + "HostNameType": { + "type": "Enum", + "methods": {}, + "properties": { + "MANAGED": "MANAGED", + "VERIFIED": "VERIFIED" + } + }, + "LogSpecification": { "type": null, "methods": { "__init__": { @@ -21747,6 +3913,22 @@ "default": null, "param_type": "positional_or_keyword" }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "display_name": { + "default": "none", + "param_type": "keyword_only" + }, + "blob_duration": { + "default": "none", + "param_type": "keyword_only" + }, + "log_filter_pattern": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -21839,75 +4021,24 @@ } }, "properties": { - "id": { - "attr_type": null + "name": { + "attr_type": "name" }, - "pes_id": { - "attr_type": null + "display_name": { + "attr_type": "display_name" + }, + "blob_duration": { + "attr_type": "blob_duration" + }, + "log_filter_pattern": { + "attr_type": "log_filter_pattern" }, "additional_properties": { "attr_type": null } } }, - "SupportedTlsVersions": { - "type": "Enum", - "methods": {}, - "properties": { - "ONE0": "ONE0", - "ONE1": "ONE1", - "ONE2": "ONE2", - "ONE3": "ONE3", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "Template": { + "MetricAvailability": { "type": null, "methods": { "__init__": { @@ -21916,19 +4047,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "revision_suffix": { - "default": "none", - "param_type": "keyword_only" - }, - "containers": { - "default": "none", - "param_type": "keyword_only" - }, - "scale": { + "time_grain": { "default": "none", "param_type": "keyword_only" }, - "dapr": { + "blob_duration": { "default": "none", "param_type": "keyword_only" }, @@ -22024,24 +4147,18 @@ } }, "properties": { - "revision_suffix": { - "attr_type": "revision_suffix" - }, - "containers": { - "attr_type": "containers" - }, - "scale": { - "attr_type": "scale" + "time_grain": { + "attr_type": "time_grain" }, - "dapr": { - "attr_type": "dapr" + "blob_duration": { + "attr_type": "blob_duration" }, "additional_properties": { "attr_type": null } } }, - "TldLegalAgreement": { + "MetricSpecification": { "type": null, "methods": { "__init__": { @@ -22050,19 +4167,71 @@ "default": null, "param_type": "positional_or_keyword" }, - "agreement_key": { - "default": null, + "name": { + "default": "none", "param_type": "keyword_only" }, - "title": { - "default": null, + "display_name": { + "default": "none", "param_type": "keyword_only" }, - "content": { - "default": null, + "display_description": { + "default": "none", "param_type": "keyword_only" }, - "url": { + "unit": { + "default": "none", + "param_type": "keyword_only" + }, + "aggregation_type": { + "default": "none", + "param_type": "keyword_only" + }, + "supports_instance_level_aggregation": { + "default": "none", + "param_type": "keyword_only" + }, + "enable_regional_mdm_account": { + "default": "none", + "param_type": "keyword_only" + }, + "source_mdm_account": { + "default": "none", + "param_type": "keyword_only" + }, + "source_mdm_namespace": { + "default": "none", + "param_type": "keyword_only" + }, + "metric_filter_pattern": { + "default": "none", + "param_type": "keyword_only" + }, + "fill_gap_with_zero": { + "default": "none", + "param_type": "keyword_only" + }, + "is_internal": { + "default": "none", + "param_type": "keyword_only" + }, + "dimensions": { + "default": "none", + "param_type": "keyword_only" + }, + "category": { + "default": "none", + "param_type": "keyword_only" + }, + "availabilities": { + "default": "none", + "param_type": "keyword_only" + }, + "supported_time_grain_types": { + "default": "none", + "param_type": "keyword_only" + }, + "supported_aggregation_types": { "default": "none", "param_type": "keyword_only" }, @@ -22158,24 +4327,63 @@ } }, "properties": { - "agreement_key": { - "attr_type": "agreement_key" + "name": { + "attr_type": "name" }, - "title": { - "attr_type": "title" + "display_name": { + "attr_type": "display_name" }, - "content": { - "attr_type": "content" + "display_description": { + "attr_type": "display_description" }, - "url": { - "attr_type": "url" + "unit": { + "attr_type": "unit" + }, + "aggregation_type": { + "attr_type": "aggregation_type" + }, + "supports_instance_level_aggregation": { + "attr_type": "supports_instance_level_aggregation" + }, + "enable_regional_mdm_account": { + "attr_type": "enable_regional_mdm_account" + }, + "source_mdm_account": { + "attr_type": "source_mdm_account" + }, + "source_mdm_namespace": { + "attr_type": "source_mdm_namespace" + }, + "metric_filter_pattern": { + "attr_type": "metric_filter_pattern" + }, + "fill_gap_with_zero": { + "attr_type": "fill_gap_with_zero" + }, + "is_internal": { + "attr_type": "is_internal" + }, + "dimensions": { + "attr_type": "dimensions" + }, + "category": { + "attr_type": "category" + }, + "availabilities": { + "attr_type": "availabilities" + }, + "supported_time_grain_types": { + "attr_type": "supported_time_grain_types" + }, + "supported_aggregation_types": { + "attr_type": "supported_aggregation_types" }, "additional_properties": { "attr_type": null } } }, - "TldLegalAgreementCollection": { + "NameIdentifier": { "type": null, "methods": { "__init__": { @@ -22184,8 +4392,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, + "name": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -22280,88 +4488,15 @@ } }, "properties": { - "value": { - "attr_type": "value" - }, - "next_link": { - "attr_type": null + "name": { + "attr_type": "name" }, "additional_properties": { "attr_type": null } } }, - "TlsCipherSuites": { - "type": "Enum", - "methods": {}, - "properties": { - "TLS_AES128_GCM_SHA256": "TLS_AES128_GCM_SHA256", - "TLS_AES256_GCM_SHA384": "TLS_AES256_GCM_SHA384", - "TLS_ECDHE_ECDSA_WITH_AES128_CBC_SHA256": "TLS_ECDHE_ECDSA_WITH_AES128_CBC_SHA256", - "TLS_ECDHE_ECDSA_WITH_AES128_GCM_SHA256": "TLS_ECDHE_ECDSA_WITH_AES128_GCM_SHA256", - "TLS_ECDHE_ECDSA_WITH_AES256_GCM_SHA384": "TLS_ECDHE_ECDSA_WITH_AES256_GCM_SHA384", - "TLS_ECDHE_RSA_WITH_AES128_CBC_SHA": "TLS_ECDHE_RSA_WITH_AES128_CBC_SHA", - "TLS_ECDHE_RSA_WITH_AES128_CBC_SHA256": "TLS_ECDHE_RSA_WITH_AES128_CBC_SHA256", - "TLS_ECDHE_RSA_WITH_AES128_GCM_SHA256": "TLS_ECDHE_RSA_WITH_AES128_GCM_SHA256", - "TLS_ECDHE_RSA_WITH_AES256_CBC_SHA": "TLS_ECDHE_RSA_WITH_AES256_CBC_SHA", - "TLS_ECDHE_RSA_WITH_AES256_CBC_SHA384": "TLS_ECDHE_RSA_WITH_AES256_CBC_SHA384", - "TLS_ECDHE_RSA_WITH_AES256_GCM_SHA384": "TLS_ECDHE_RSA_WITH_AES256_GCM_SHA384", - "TLS_RSA_WITH_AES128_CBC_SHA": "TLS_RSA_WITH_AES128_CBC_SHA", - "TLS_RSA_WITH_AES128_CBC_SHA256": "TLS_RSA_WITH_AES128_CBC_SHA256", - "TLS_RSA_WITH_AES128_GCM_SHA256": "TLS_RSA_WITH_AES128_GCM_SHA256", - "TLS_RSA_WITH_AES256_CBC_SHA": "TLS_RSA_WITH_AES256_CBC_SHA", - "TLS_RSA_WITH_AES256_CBC_SHA256": "TLS_RSA_WITH_AES256_CBC_SHA256", - "TLS_RSA_WITH_AES256_GCM_SHA384": "TLS_RSA_WITH_AES256_GCM_SHA384", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "TopLevelDomain": { + "NameIdentifierCollection": { "type": null, "methods": { "__init__": { @@ -22370,11 +4505,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "kind": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, - "privacy": { + "next_link": { "default": "none", "param_type": "keyword_only" }, @@ -22470,27 +4605,29 @@ } }, "properties": { - "privacy": { - "attr_type": "privacy" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" + "value": { + "attr_type": "value" }, - "type": { - "attr_type": null + "next_link": { + "attr_type": "next_link" }, "additional_properties": { "attr_type": null } } }, - "TopLevelDomainAgreementOption": { + "ProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED" + } + }, + "ProxyOnlyResource": { "type": null, "methods": { "__init__": { @@ -22499,11 +4636,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "include_privacy": { - "default": "none", - "param_type": "keyword_only" - }, - "for_transfer": { + "kind": { "default": "none", "param_type": "keyword_only" }, @@ -22599,18 +4732,24 @@ } }, "properties": { - "include_privacy": { - "attr_type": "include_privacy" + "id": { + "attr_type": null }, - "for_transfer": { - "attr_type": "for_transfer" + "name": { + "attr_type": null + }, + "kind": { + "attr_type": "kind" + }, + "type": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "TopLevelDomainCollection": { + "ProxyResource": { "type": null, "methods": { "__init__": { @@ -22619,10 +4758,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -22715,10 +4850,16 @@ } }, "properties": { - "value": { - "attr_type": "value" + "id": { + "attr_type": null }, - "next_link": { + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { "attr_type": null }, "additional_properties": { @@ -22726,174 +4867,7 @@ } } }, - "UpgradeAvailability": { - "type": "Enum", - "methods": {}, - "properties": { - "NONE": "NONE", - "READY": "READY", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "UpgradePreference": { - "type": "Enum", - "methods": {}, - "properties": { - "EARLY": "EARLY", - "LATE": "LATE", - "MANUAL": "MANUAL", - "NONE": "NONE", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "UsageState": { - "type": "Enum", - "methods": {}, - "properties": { - "EXCEEDED": "EXCEEDED", - "NORMAL": "NORMAL", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "User": { + "Resource": { "type": null, "methods": { "__init__": { @@ -22902,30 +4876,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "publishing_user_name": { - "default": "none", - "param_type": "keyword_only" - }, - "publishing_password": { - "default": "none", - "param_type": "keyword_only" - }, - "publishing_password_hash": { - "default": "none", - "param_type": "keyword_only" - }, - "publishing_password_hash_salt": { - "default": "none", - "param_type": "keyword_only" - }, - "scm_uri": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -23018,39 +4968,33 @@ } }, "properties": { - "publishing_user_name": { - "attr_type": "publishing_user_name" - }, - "publishing_password": { - "attr_type": "publishing_password" - }, - "publishing_password_hash": { - "attr_type": "publishing_password_hash" - }, - "publishing_password_hash_salt": { - "attr_type": "publishing_password_hash_salt" - }, - "scm_uri": { - "attr_type": "scm_uri" - }, "id": { "attr_type": null }, "name": { "attr_type": null }, - "kind": { - "attr_type": "kind" - }, "type": { "attr_type": null }, + "system_data": { + "attr_type": null + }, "additional_properties": { "attr_type": null } } }, - "UserAssignedIdentity": { + "ResourceNotRenewableReason": { + "type": "Enum", + "methods": {}, + "properties": { + "EXPIRATION_NOT_IN_RENEWAL_TIME_RANGE": "EXPIRATION_NOT_IN_RENEWAL_TIME_RANGE", + "REGISTRATION_STATUS_NOT_SUPPORTED_FOR_RENEWAL": "REGISTRATION_STATUS_NOT_SUPPORTED_FOR_RENEWAL", + "SUBSCRIPTION_NOT_ACTIVE": "SUBSCRIPTION_NOT_ACTIVE" + } + }, + "ServiceSpecification": { "type": null, "methods": { "__init__": { @@ -23059,6 +5003,14 @@ "default": null, "param_type": "positional_or_keyword" }, + "metric_specifications": { + "default": "none", + "param_type": "keyword_only" + }, + "log_specifications": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -23151,18 +5103,18 @@ } }, "properties": { - "principal_id": { - "attr_type": null + "metric_specifications": { + "attr_type": "metric_specifications" }, - "client_id": { - "attr_type": null + "log_specifications": { + "attr_type": "log_specifications" }, "additional_properties": { "attr_type": null } } }, - "VirtualApplication": { + "SystemData": { "type": null, "methods": { "__init__": { @@ -23171,19 +5123,27 @@ "default": null, "param_type": "positional_or_keyword" }, - "virtual_path": { + "created_by": { "default": "none", "param_type": "keyword_only" }, - "physical_path": { + "created_by_type": { "default": "none", "param_type": "keyword_only" }, - "preload_enabled": { + "created_at": { "default": "none", "param_type": "keyword_only" }, - "virtual_directories": { + "last_modified_by": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_by_type": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_at": { "default": "none", "param_type": "keyword_only" }, @@ -23279,24 +5239,30 @@ } }, "properties": { - "virtual_path": { - "attr_type": "virtual_path" + "created_by": { + "attr_type": "created_by" + }, + "created_by_type": { + "attr_type": "created_by_type" + }, + "created_at": { + "attr_type": "created_at" }, - "physical_path": { - "attr_type": "physical_path" + "last_modified_by": { + "attr_type": "last_modified_by" }, - "preload_enabled": { - "attr_type": "preload_enabled" + "last_modified_by_type": { + "attr_type": "last_modified_by_type" }, - "virtual_directories": { - "attr_type": "virtual_directories" + "last_modified_at": { + "attr_type": "last_modified_at" }, "additional_properties": { "attr_type": null } } }, - "VirtualDirectory": { + "TldLegalAgreement": { "type": null, "methods": { "__init__": { @@ -23305,11 +5271,19 @@ "default": null, "param_type": "positional_or_keyword" }, - "virtual_path": { - "default": "none", + "agreement_key": { + "default": null, + "param_type": "keyword_only" + }, + "title": { + "default": null, "param_type": "keyword_only" }, - "physical_path": { + "content": { + "default": null, + "param_type": "keyword_only" + }, + "url": { "default": "none", "param_type": "keyword_only" }, @@ -23405,18 +5379,24 @@ } }, "properties": { - "virtual_path": { - "attr_type": "virtual_path" + "agreement_key": { + "attr_type": "agreement_key" + }, + "title": { + "attr_type": "title" + }, + "content": { + "attr_type": "content" }, - "physical_path": { - "attr_type": "physical_path" + "url": { + "attr_type": "url" }, "additional_properties": { "attr_type": null } } }, - "VirtualNetworkProfile": { + "TldLegalAgreementCollection": { "type": null, "methods": { "__init__": { @@ -23425,11 +5405,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "id": { + "value": { "default": null, "param_type": "keyword_only" }, - "subnet": { + "next_link": { "default": "none", "param_type": "keyword_only" }, @@ -23525,24 +5505,18 @@ } }, "properties": { - "id": { - "attr_type": "id" - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null + "value": { + "attr_type": "value" }, - "subnet": { - "attr_type": "subnet" + "next_link": { + "attr_type": "next_link" }, "additional_properties": { "attr_type": null } } }, - "VnetGateway": { + "TopLevelDomain": { "type": null, "methods": { "__init__": { @@ -23555,11 +5529,7 @@ "default": "none", "param_type": "keyword_only" }, - "vnet_name": { - "default": "none", - "param_type": "keyword_only" - }, - "vpn_package_uri": { + "privacy": { "default": "none", "param_type": "keyword_only" }, @@ -23655,11 +5625,11 @@ } }, "properties": { - "vnet_name": { - "attr_type": "vnet_name" + "kind": { + "attr_type": "kind" }, - "vpn_package_uri": { - "attr_type": "vpn_package_uri" + "privacy": { + "attr_type": "privacy" }, "id": { "attr_type": null @@ -23667,18 +5637,18 @@ "name": { "attr_type": null }, - "kind": { - "attr_type": "kind" - }, "type": { "attr_type": null }, + "system_data": { + "attr_type": null + }, "additional_properties": { "attr_type": null } } }, - "VnetInfoResource": { + "TopLevelDomainAgreementOption": { "type": null, "methods": { "__init__": { @@ -23687,23 +5657,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "vnet_resource_id": { - "default": "none", - "param_type": "keyword_only" - }, - "cert_blob": { - "default": "none", - "param_type": "keyword_only" - }, - "dns_servers": { + "include_privacy": { "default": "none", "param_type": "keyword_only" }, - "is_swift": { + "for_transfer": { "default": "none", "param_type": "keyword_only" }, @@ -23799,45 +5757,18 @@ } }, "properties": { - "vnet_resource_id": { - "attr_type": "vnet_resource_id" - }, - "cert_thumbprint": { - "attr_type": null - }, - "cert_blob": { - "attr_type": "cert_blob" - }, - "routes": { - "attr_type": null - }, - "resync_required": { - "attr_type": null - }, - "dns_servers": { - "attr_type": "dns_servers" - }, - "is_swift": { - "attr_type": "is_swift" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" + "include_privacy": { + "attr_type": "include_privacy" }, - "type": { - "attr_type": null + "for_transfer": { + "attr_type": "for_transfer" }, "additional_properties": { "attr_type": null } } }, - "VnetRoute": { + "TopLevelDomainCollection": { "type": null, "methods": { "__init__": { @@ -23846,19 +5777,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "start_address": { - "default": "none", - "param_type": "keyword_only" - }, - "end_address": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, - "route_type": { + "next_link": { "default": "none", "param_type": "keyword_only" }, @@ -23954,33 +5877,18 @@ } }, "properties": { - "start_address": { - "attr_type": "start_address" - }, - "end_address": { - "attr_type": "end_address" - }, - "route_type": { - "attr_type": "route_type" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "kind": { - "attr_type": "kind" + "value": { + "attr_type": "value" }, - "type": { - "attr_type": null + "next_link": { + "attr_type": "next_link" }, "additional_properties": { "attr_type": null } } }, - "WebAppCollection": { + "TrackedResource": { "type": null, "methods": { "__init__": { @@ -23989,10 +5897,14 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { + "location": { "default": null, "param_type": "keyword_only" }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -24085,10 +5997,22 @@ } }, "properties": { - "value": { - "attr_type": "value" + "tags": { + "attr_type": "tags" }, - "next_link": { + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { "attr_type": null }, "additional_properties": { diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/code_report_typespec.json b/sdk/domainregistration/azure-mgmt-domainregistration/code_report_typespec.json new file mode 100644 index 000000000000..afb0d174d57e --- /dev/null +++ b/sdk/domainregistration/azure-mgmt-domainregistration/code_report_typespec.json @@ -0,0 +1,9980 @@ +{ + "azure.mgmt.domainregistration": { + "class_nodes": { + "DomainRegistrationClient": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "credential": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subscription_id": { + "default": null, + "param_type": "positional_or_keyword" + }, + "base_url": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "cloud_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "close": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "send_request": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "stream": { + "default": "bool", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_side_validation": { + "attr_type": false + }, + "domains": { + "attr_type": "DomainsOperations" + }, + "top_level_domains": { + "attr_type": "TopLevelDomainsOperations" + }, + "domain_registration_provider": { + "attr_type": "DomainRegistrationProviderOperations" + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.domainregistration.aio": { + "class_nodes": { + "DomainRegistrationClient": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "credential": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subscription_id": { + "default": null, + "param_type": "positional_or_keyword" + }, + "base_url": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "cloud_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "close": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "send_request": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "stream": { + "default": "bool", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_side_validation": { + "attr_type": false + }, + "domains": { + "attr_type": "DomainsOperations" + }, + "top_level_domains": { + "attr_type": "TopLevelDomainsOperations" + }, + "domain_registration_provider": { + "attr_type": "DomainRegistrationProviderOperations" + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.domainregistration.aio.operations": { + "class_nodes": { + "DomainRegistrationProviderOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_operations": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DomainsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain": { + "type": "Domain", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "check_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "identifier": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "identifier": { + "type": "NameIdentifier", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "identifier": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "identifier": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "create_or_update_ownership_identifier": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_ownership_identifier": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_ownership_identifier": { + "type": "DomainOwnershipIdentifier", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_ownership_identifier": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_ownership_identifier": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force_hard_delete_domain": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "delete_ownership_identifier": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_control_center_sso_request": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_ownership_identifier": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_ownership_identifiers": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_recommendations": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DomainRecommendationSearchParameters", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "renew": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "transfer_out": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain": { + "type": "DomainPatchResource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "update_ownership_identifier": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_ownership_identifier": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_ownership_identifier": { + "type": "DomainOwnershipIdentifier", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_ownership_identifier": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_ownership_identifier": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "TopLevelDomainsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_agreements": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "agreement_option": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "agreement_option": { + "type": "TopLevelDomainAgreementOption", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "agreement_option": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "agreement_option": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + } + }, + "function_nodes": {} + }, + "azure.mgmt.domainregistration.models": { + "class_nodes": { + "Address": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "address1": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "city": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "country": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "postal_code": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "state": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "address2": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "address1": null, + "address2": "Optional", + "city": null, + "country": null, + "postal_code": null, + "state": null + } + }, + "AzureResourceType": { + "type": "Enum", + "methods": {}, + "properties": { + "TRAFFIC_MANAGER": "TRAFFIC_MANAGER", + "WEBSITE": "WEBSITE" + } + }, + "Contact": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "email": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "name_first": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "name_last": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "phone": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "address_mailing": { + "type": "Optional[_models.Address]", + "default": null, + "param_type": "keyword_only" + }, + "fax": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "job_title": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "name_middle": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "organization": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "address_mailing": "Optional", + "email": null, + "fax": "Optional", + "job_title": "Optional", + "name_first": null, + "name_last": null, + "name_middle": "Optional", + "organization": "Optional", + "phone": null + } + }, + "CreatedByType": { + "type": "Enum", + "methods": {}, + "properties": { + "APPLICATION": "APPLICATION", + "KEY": "KEY", + "MANAGED_IDENTITY": "MANAGED_IDENTITY", + "USER": "USER" + } + }, + "CsmOperationDescription": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "is_data_action": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "display": { + "type": "Optional[_models.CsmOperationDisplay]", + "default": null, + "param_type": "keyword_only" + }, + "origin": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.CsmOperationDescriptionProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "is_data_action": "Optional", + "display": "Optional", + "origin": "Optional", + "properties": "Optional" + } + }, + "CsmOperationDescriptionProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "service_specification": { + "type": "Optional[_models.ServiceSpecification]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "service_specification": "Optional" + } + }, + "CsmOperationDisplay": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "provider": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "resource": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "operation": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "description": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provider": "Optional", + "resource": "Optional", + "operation": "Optional", + "description": "Optional" + } + }, + "CustomHostNameDnsRecordType": { + "type": "Enum", + "methods": {}, + "properties": { + "A": "A", + "C_NAME": "C_NAME" + } + }, + "DefaultErrorResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": "Optional" + } + }, + "DefaultErrorResponseError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "details": { + "type": "Optional[list[_models.DefaultErrorResponseErrorDetailsItem]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": "Optional", + "message": "Optional", + "target": "Optional", + "details": "Optional", + "innererror": "Optional" + } + }, + "DefaultErrorResponseErrorDetailsItem": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": "Optional", + "message": "Optional", + "target": "Optional" + } + }, + "Dimension": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "display_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "internal_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "to_be_exported_for_shoebox": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "display_name": "Optional", + "internal_name": "Optional", + "to_be_exported_for_shoebox": "Optional" + } + }, + "DnsType": { + "type": "Enum", + "methods": {}, + "properties": { + "AZURE_DNS": "AZURE_DNS", + "DEFAULT_DOMAIN_REGISTRAR_DNS": "DEFAULT_DOMAIN_REGISTRAR_DNS" + } + }, + "Domain": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.DomainProperties]", + "default": null, + "param_type": "keyword_only" + }, + "kind": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "kind": "Optional", + "tags": "Optional", + "location": null, + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "DomainAvailabilityCheckResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "available": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "domain_type": { + "type": "Optional[Union[str, _models.DomainType]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "available": "Optional", + "domain_type": "Optional" + } + }, + "DomainControlCenterSsoRequest": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "url": "Optional", + "post_parameter_key": "Optional", + "post_parameter_value": "Optional" + } + }, + "DomainOwnershipIdentifier": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.DomainOwnershipIdentifierProperties]", + "default": null, + "param_type": "keyword_only" + }, + "kind": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "kind": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "DomainOwnershipIdentifierProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "ownership_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "ownership_id": "Optional" + } + }, + "DomainPatchResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "kind": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.DomainPatchResourceProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "kind": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "kind": "Optional", + "type": "Optional" + } + }, + "DomainPatchResourceProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "contact_admin": { + "type": "_models.Contact", + "default": null, + "param_type": "keyword_only" + }, + "contact_billing": { + "type": "_models.Contact", + "default": null, + "param_type": "keyword_only" + }, + "contact_registrant": { + "type": "_models.Contact", + "default": null, + "param_type": "keyword_only" + }, + "contact_tech": { + "type": "_models.Contact", + "default": null, + "param_type": "keyword_only" + }, + "consent": { + "type": "_models.DomainPurchaseConsent", + "default": null, + "param_type": "keyword_only" + }, + "privacy": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "auto_renew": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "dns_type": { + "type": "Optional[Union[str, _models.DnsType]]", + "default": null, + "param_type": "keyword_only" + }, + "dns_zone_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_dns_type": { + "type": "Optional[Union[str, _models.DnsType]]", + "default": null, + "param_type": "keyword_only" + }, + "auth_code": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "contact_admin": null, + "contact_billing": null, + "contact_registrant": null, + "contact_tech": null, + "registration_status": "Optional", + "provisioning_state": "Optional", + "name_servers": "Optional", + "privacy": "Optional", + "created_time": "Optional", + "expiration_time": "Optional", + "last_renewed_time": "Optional", + "auto_renew": "Optional", + "ready_for_dns_record_management": "Optional", + "managed_host_names": "Optional", + "consent": null, + "domain_not_renewable_reasons": "Optional", + "dns_type": "Optional", + "dns_zone_id": "Optional", + "target_dns_type": "Optional", + "auth_code": "Optional" + } + }, + "DomainProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "contact_admin": { + "type": "_models.Contact", + "default": null, + "param_type": "keyword_only" + }, + "contact_billing": { + "type": "_models.Contact", + "default": null, + "param_type": "keyword_only" + }, + "contact_registrant": { + "type": "_models.Contact", + "default": null, + "param_type": "keyword_only" + }, + "contact_tech": { + "type": "_models.Contact", + "default": null, + "param_type": "keyword_only" + }, + "consent": { + "type": "_models.DomainPurchaseConsent", + "default": null, + "param_type": "keyword_only" + }, + "privacy": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "auto_renew": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "dns_type": { + "type": "Optional[Union[str, _models.DnsType]]", + "default": null, + "param_type": "keyword_only" + }, + "dns_zone_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_dns_type": { + "type": "Optional[Union[str, _models.DnsType]]", + "default": null, + "param_type": "keyword_only" + }, + "auth_code": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "contact_admin": null, + "contact_billing": null, + "contact_registrant": null, + "contact_tech": null, + "registration_status": "Optional", + "provisioning_state": "Optional", + "name_servers": "Optional", + "privacy": "Optional", + "created_time": "Optional", + "expiration_time": "Optional", + "last_renewed_time": "Optional", + "auto_renew": "Optional", + "ready_for_dns_record_management": "Optional", + "managed_host_names": "Optional", + "consent": null, + "domain_not_renewable_reasons": "Optional", + "dns_type": "Optional", + "dns_zone_id": "Optional", + "target_dns_type": "Optional", + "auth_code": "Optional" + } + }, + "DomainPurchaseConsent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "agreement_keys": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "agreed_by": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "agreed_at": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "agreement_keys": "Optional", + "agreed_by": "Optional", + "agreed_at": "Optional" + } + }, + "DomainRecommendationSearchParameters": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "keywords": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "max_domain_recommendations": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "keywords": "Optional", + "max_domain_recommendations": "Optional" + } + }, + "DomainStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "ACTIVE": "ACTIVE", + "AWAITING": "AWAITING", + "CANCELLED": "CANCELLED", + "CONFISCATED": "CONFISCATED", + "DISABLED": "DISABLED", + "EXCLUDED": "EXCLUDED", + "EXPIRED": "EXPIRED", + "FAILED": "FAILED", + "HELD": "HELD", + "JSON_CONVERTER_FAILED": "JSON_CONVERTER_FAILED", + "LOCKED": "LOCKED", + "PARKED": "PARKED", + "PENDING": "PENDING", + "RESERVED": "RESERVED", + "REVERTED": "REVERTED", + "SUSPENDED": "SUSPENDED", + "TRANSFERRED": "TRANSFERRED", + "UNKNOWN": "UNKNOWN", + "UNLOCKED": "UNLOCKED", + "UNPARKED": "UNPARKED", + "UPDATED": "UPDATED" + } + }, + "DomainType": { + "type": "Enum", + "methods": {}, + "properties": { + "REGULAR": "REGULAR", + "SOFT_DELETED": "SOFT_DELETED" + } + }, + "HostName": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "site_names": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "azure_resource_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "azure_resource_type": { + "type": "Optional[Union[str, _models.AzureResourceType]]", + "default": null, + "param_type": "keyword_only" + }, + "custom_host_name_dns_record_type": { + "type": "Optional[Union[str, _models.CustomHostNameDnsRecordType]]", + "default": null, + "param_type": "keyword_only" + }, + "host_name_type": { + "type": "Optional[Union[str, _models.HostNameType]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "site_names": "Optional", + "azure_resource_name": "Optional", + "azure_resource_type": "Optional", + "custom_host_name_dns_record_type": "Optional", + "host_name_type": "Optional" + } + }, + "HostNameType": { + "type": "Enum", + "methods": {}, + "properties": { + "MANAGED": "MANAGED", + "VERIFIED": "VERIFIED" + } + }, + "LogSpecification": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "display_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "blob_duration": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "log_filter_pattern": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "display_name": "Optional", + "blob_duration": "Optional", + "log_filter_pattern": "Optional" + } + }, + "MetricAvailability": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "time_grain": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "blob_duration": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "time_grain": "Optional", + "blob_duration": "Optional" + } + }, + "MetricSpecification": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "display_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "display_description": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "unit": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "aggregation_type": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "supports_instance_level_aggregation": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "enable_regional_mdm_account": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "source_mdm_account": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "source_mdm_namespace": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "metric_filter_pattern": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "fill_gap_with_zero": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "is_internal": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "dimensions": { + "type": "Optional[list[_models.Dimension]]", + "default": null, + "param_type": "keyword_only" + }, + "category": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "availabilities": { + "type": "Optional[list[_models.MetricAvailability]]", + "default": null, + "param_type": "keyword_only" + }, + "supported_time_grain_types": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "supported_aggregation_types": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "display_name": "Optional", + "display_description": "Optional", + "unit": "Optional", + "aggregation_type": "Optional", + "supports_instance_level_aggregation": "Optional", + "enable_regional_mdm_account": "Optional", + "source_mdm_account": "Optional", + "source_mdm_namespace": "Optional", + "metric_filter_pattern": "Optional", + "fill_gap_with_zero": "Optional", + "is_internal": "Optional", + "dimensions": "Optional", + "category": "Optional", + "availabilities": "Optional", + "supported_time_grain_types": "Optional", + "supported_aggregation_types": "Optional" + } + }, + "NameIdentifier": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional" + } + }, + "ProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED" + } + }, + "ProxyOnlyResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "kind": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "name": "Optional", + "kind": "Optional", + "type": "Optional" + } + }, + "ProxyResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "Resource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ResourceNotRenewableReason": { + "type": "Enum", + "methods": {}, + "properties": { + "EXPIRATION_NOT_IN_RENEWAL_TIME_RANGE": "EXPIRATION_NOT_IN_RENEWAL_TIME_RANGE", + "REGISTRATION_STATUS_NOT_SUPPORTED_FOR_RENEWAL": "REGISTRATION_STATUS_NOT_SUPPORTED_FOR_RENEWAL", + "SUBSCRIPTION_NOT_ACTIVE": "SUBSCRIPTION_NOT_ACTIVE" + } + }, + "ServiceSpecification": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "metric_specifications": { + "type": "Optional[list[_models.MetricSpecification]]", + "default": null, + "param_type": "keyword_only" + }, + "log_specifications": { + "type": "Optional[list[_models.LogSpecification]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "metric_specifications": "Optional", + "log_specifications": "Optional" + } + }, + "SystemData": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "created_by": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "created_by_type": { + "type": "Optional[Union[str, _models.CreatedByType]]", + "default": null, + "param_type": "keyword_only" + }, + "created_at": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "last_modified_by": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "last_modified_by_type": { + "type": "Optional[Union[str, _models.CreatedByType]]", + "default": null, + "param_type": "keyword_only" + }, + "last_modified_at": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "created_by": "Optional", + "created_by_type": "Optional", + "created_at": "Optional", + "last_modified_by": "Optional", + "last_modified_by_type": "Optional", + "last_modified_at": "Optional" + } + }, + "TldLegalAgreement": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "agreement_key": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "title": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "content": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "url": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "agreement_key": null, + "title": null, + "content": null, + "url": "Optional" + } + }, + "TopLevelDomain": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.TopLevelDomainProperties]", + "default": null, + "param_type": "keyword_only" + }, + "kind": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "kind": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "TopLevelDomainAgreementOption": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "include_privacy": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "for_transfer": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "include_privacy": "Optional", + "for_transfer": "Optional" + } + }, + "TopLevelDomainProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "privacy": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "privacy": "Optional" + } + }, + "TrackedResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": "Optional", + "location": null, + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.domainregistration.operations": { + "class_nodes": { + "DomainRegistrationProviderOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_operations": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DomainsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain": { + "type": "Domain", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "check_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "identifier": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "identifier": { + "type": "NameIdentifier", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "identifier": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "identifier": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "create_or_update_ownership_identifier": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_ownership_identifier": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_ownership_identifier": { + "type": "DomainOwnershipIdentifier", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_ownership_identifier": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_ownership_identifier": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force_hard_delete_domain": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "delete_ownership_identifier": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_control_center_sso_request": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_ownership_identifier": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_ownership_identifiers": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_recommendations": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DomainRecommendationSearchParameters", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "renew": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "transfer_out": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain": { + "type": "DomainPatchResource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "update_ownership_identifier": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_ownership_identifier": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_ownership_identifier": { + "type": "DomainOwnershipIdentifier", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_ownership_identifier": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "domain_ownership_identifier": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "TopLevelDomainsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_agreements": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "agreement_option": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "agreement_option": { + "type": "TopLevelDomainAgreementOption", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "agreement_option": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "agreement_option": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + } + }, + "function_nodes": {} + } +} \ No newline at end of file diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/check_domain_availability.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/check_domain_availability.py index 2a3081324d35..6a9738dcd4f8 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/check_domain_availability.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/check_domain_availability.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.domains.check_availability( @@ -37,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/CheckDomainAvailability.json +# x-ms-original-file: 2024-11-01/CheckDomainAvailability.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/create_app_service_domain.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/create_app_service_domain.py index 1b0faa8e7a70..66b056129542 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/create_app_service_domain.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/create_app_service_domain.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.domains.begin_create_or_update( @@ -121,6 +120,6 @@ def main(): print(response) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/CreateAppServiceDomain.json +# x-ms-original-file: 2024-11-01/CreateAppServiceDomain.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/create_app_service_domain_ownership_identifier.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/create_app_service_domain_ownership_identifier.py index bc58b0d87e03..6eceff6f9948 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/create_app_service_domain_ownership_identifier.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/create_app_service_domain_ownership_identifier.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.domains.create_or_update_ownership_identifier( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/CreateAppServiceDomainOwnershipIdentifier.json +# x-ms-original-file: 2024-11-01/CreateAppServiceDomainOwnershipIdentifier.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/delete_app_service_domain.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/delete_app_service_domain.py index a8677d90ce71..ab0691b76a3f 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/delete_app_service_domain.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/delete_app_service_domain.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) client.domains.delete( @@ -37,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/DeleteAppServiceDomain.json +# x-ms-original-file: 2024-11-01/DeleteAppServiceDomain.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/delete_app_service_domain_ownership_identifier.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/delete_app_service_domain_ownership_identifier.py index f33954761164..45895dc128a9 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/delete_app_service_domain_ownership_identifier.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/delete_app_service_domain_ownership_identifier.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) client.domains.delete_ownership_identifier( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/DeleteAppServiceDomainOwnershipIdentifier.json +# x-ms-original-file: 2024-11-01/DeleteAppServiceDomainOwnershipIdentifier.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/get_domain.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/get_domain.py index 326f047c809d..ac563bed9620 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/get_domain.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/get_domain.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.domains.get( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/GetDomain.json +# x-ms-original-file: 2024-11-01/GetDomain.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/get_domain_control_center_sso_request.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/get_domain_control_center_sso_request.py index 67bc186cdb15..14dd5312ca2f 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/get_domain_control_center_sso_request.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/get_domain_control_center_sso_request.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,15 +25,15 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.domains.get_control_center_sso_request() print(response) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/GetDomainControlCenterSsoRequest.json +# x-ms-original-file: 2024-11-01/GetDomainControlCenterSsoRequest.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/get_domain_ownership_identifier.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/get_domain_ownership_identifier.py index 1cd3a896bf1b..cc1982958abc 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/get_domain_ownership_identifier.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/get_domain_ownership_identifier.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.domains.get_ownership_identifier( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/GetDomainOwnershipIdentifier.json +# x-ms-original-file: 2024-11-01/GetDomainOwnershipIdentifier.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/get_top_level_domain.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/get_top_level_domain.py index 5530f72e0f73..1f38d73f645f 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/get_top_level_domain.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/get_top_level_domain.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.top_level_domains.get( @@ -37,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/GetTopLevelDomain.json +# x-ms-original-file: 2024-11-01/GetTopLevelDomain.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_domain_ownership_identifiers.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_domain_ownership_identifiers.py index 63e5555bf607..9e4ad047c119 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_domain_ownership_identifiers.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_domain_ownership_identifiers.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.domains.list_ownership_identifiers( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/ListDomainOwnershipIdentifiers.json +# x-ms-original-file: 2024-11-01/ListDomainOwnershipIdentifiers.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_domain_recommendations.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_domain_recommendations.py index a8d2a4db1744..e6de66ce9d43 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_domain_recommendations.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_domain_recommendations.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.domains.list_recommendations( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/ListDomainRecommendations.json +# x-ms-original-file: 2024-11-01/ListDomainRecommendations.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_domains_by_resource_group.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_domains_by_resource_group.py index c4e207c42457..0e013cf7a150 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_domains_by_resource_group.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_domains_by_resource_group.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.domains.list_by_resource_group( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/ListDomainsByResourceGroup.json +# x-ms-original-file: 2024-11-01/ListDomainsByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_domains_by_subscription.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_domains_by_subscription.py index 91019c236ab2..cb43c7966c08 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_domains_by_subscription.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_domains_by_subscription.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.domains.list() @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/ListDomainsBySubscription.json +# x-ms-original-file: 2024-11-01/ListDomainsBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_operations.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_operations.py index f5c22da023b3..8fd37b7b8ae4 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_operations.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_operations.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,7 +25,7 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), subscription_id="SUBSCRIPTION_ID", ) @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/ListOperations.json +# x-ms-original-file: 2024-11-01/ListOperations.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_top_level_domain_agreements.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_top_level_domain_agreements.py index 654faba30c02..7b174856f54a 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_top_level_domain_agreements.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_top_level_domain_agreements.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.top_level_domains.list_agreements( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/ListTopLevelDomainAgreements.json +# x-ms-original-file: 2024-11-01/ListTopLevelDomainAgreements.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_top_level_domains.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_top_level_domains.py index e4a0447ac47c..011880748fb2 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_top_level_domains.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/list_top_level_domains.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.top_level_domains.list() @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/ListTopLevelDomains.json +# x-ms-original-file: 2024-11-01/ListTopLevelDomains.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/renew_domain.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/renew_domain.py index ef2bdc9abe86..d1ca57c53b3d 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/renew_domain.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/renew_domain.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="3dddfa4f-cedf-4dc0-ba29-b6d1a69ab545", + subscription_id="SUBSCRIPTION_ID", ) client.domains.renew( @@ -37,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/RenewDomain.json +# x-ms-original-file: 2024-11-01/RenewDomain.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/transfer_out_domain.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/transfer_out_domain.py index 5f8fcd9c3ff7..d5b4c638236c 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/transfer_out_domain.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/transfer_out_domain.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.domains.transfer_out( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/TransferOutDomain.json +# x-ms-original-file: 2024-11-01/TransferOutDomain.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/update_app_service_domain.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/update_app_service_domain.py index 2b5c55ad17da..e9a670f93f0e 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/update_app_service_domain.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/update_app_service_domain.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.domains.update( @@ -119,6 +118,6 @@ def main(): print(response) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/UpdateAppServiceDomain.json +# x-ms-original-file: 2024-11-01/UpdateAppServiceDomain.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/update_app_service_domain_ownership_identifier.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/update_app_service_domain_ownership_identifier.py index 6a3246b1cfbb..3a83e0c0e83c 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/update_app_service_domain_ownership_identifier.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_samples/update_app_service_domain_ownership_identifier.py @@ -1,15 +1,14 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient """ # PREREQUISITES @@ -26,9 +25,9 @@ def main(): - client = WebSiteManagementClient( + client = DomainRegistrationClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.domains.update_ownership_identifier( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/UpdateAppServiceDomainOwnershipIdentifier.json +# x-ms-original-file: 2024-11-01/UpdateAppServiceDomainOwnershipIdentifier.json if __name__ == "__main__": main() diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/conftest.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/conftest.py index b3b7e51fa9e4..ae9208da2f94 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/conftest.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/conftest.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import os @@ -21,14 +21,14 @@ # For security, please avoid record sensitive identity information in recordings @pytest.fixture(scope="session", autouse=True) def add_sanitizers(test_proxy): - websitemanagement_subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - websitemanagement_tenant_id = os.environ.get("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000") - websitemanagement_client_id = os.environ.get("AZURE_CLIENT_ID", "00000000-0000-0000-0000-000000000000") - websitemanagement_client_secret = os.environ.get("AZURE_CLIENT_SECRET", "00000000-0000-0000-0000-000000000000") - add_general_regex_sanitizer(regex=websitemanagement_subscription_id, value="00000000-0000-0000-0000-000000000000") - add_general_regex_sanitizer(regex=websitemanagement_tenant_id, value="00000000-0000-0000-0000-000000000000") - add_general_regex_sanitizer(regex=websitemanagement_client_id, value="00000000-0000-0000-0000-000000000000") - add_general_regex_sanitizer(regex=websitemanagement_client_secret, value="00000000-0000-0000-0000-000000000000") + domainregistration_subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + domainregistration_tenant_id = os.environ.get("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000") + domainregistration_client_id = os.environ.get("AZURE_CLIENT_ID", "00000000-0000-0000-0000-000000000000") + domainregistration_client_secret = os.environ.get("AZURE_CLIENT_SECRET", "00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=domainregistration_subscription_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=domainregistration_tenant_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=domainregistration_client_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=domainregistration_client_secret, value="00000000-0000-0000-0000-000000000000") add_header_regex_sanitizer(key="Set-Cookie", value="[set-cookie;]") add_header_regex_sanitizer(key="Cookie", value="cookie;") diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_web_site_management_domain_registration_provider_operations.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_domain_registration_domain_registration_provider_operations.py similarity index 74% rename from sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_web_site_management_domain_registration_provider_operations.py rename to sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_domain_registration_domain_registration_provider_operations.py index 02df5315ab9c..5278c0a400e2 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_web_site_management_domain_registration_provider_operations.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_domain_registration_domain_registration_provider_operations.py @@ -2,11 +2,11 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy @@ -14,16 +14,14 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestWebSiteManagementDomainRegistrationProviderOperations(AzureMgmtRecordedTestCase): +class TestDomainRegistrationDomainRegistrationProviderOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(WebSiteManagementClient) + self.client = self.create_mgmt_client(DomainRegistrationClient) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_domain_registration_provider_list_operations(self, resource_group): - response = self.client.domain_registration_provider.list_operations( - api_version="2024-11-01", - ) + response = self.client.domain_registration_provider.list_operations() result = [r for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_web_site_management_domain_registration_provider_operations_async.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_domain_registration_domain_registration_provider_operations_async.py similarity index 74% rename from sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_web_site_management_domain_registration_provider_operations_async.py rename to sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_domain_registration_domain_registration_provider_operations_async.py index 940036cb0a0c..ac0131b00108 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_web_site_management_domain_registration_provider_operations_async.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_domain_registration_domain_registration_provider_operations_async.py @@ -2,11 +2,11 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.domainregistration.aio import WebSiteManagementClient +from azure.mgmt.domainregistration.aio import DomainRegistrationClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer from devtools_testutils.aio import recorded_by_proxy_async @@ -15,16 +15,14 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestWebSiteManagementDomainRegistrationProviderOperationsAsync(AzureMgmtRecordedTestCase): +class TestDomainRegistrationDomainRegistrationProviderOperationsAsync(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(WebSiteManagementClient, is_async=True) + self.client = self.create_mgmt_client(DomainRegistrationClient, is_async=True) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_domain_registration_provider_list_operations(self, resource_group): - response = self.client.domain_registration_provider.list_operations( - api_version="2024-11-01", - ) + response = self.client.domain_registration_provider.list_operations() result = [r async for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_domain_registration_domains_operations.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_domain_registration_domains_operations.py new file mode 100644 index 000000000000..e6a2f184b894 --- /dev/null +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_domain_registration_domains_operations.py @@ -0,0 +1,440 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.domainregistration import DomainRegistrationClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestDomainRegistrationDomainsOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(DomainRegistrationClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_domains_get(self, resource_group): + response = self.client.domains.get( + resource_group_name=resource_group.name, + domain_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_domains_begin_create_or_update(self, resource_group): + response = self.client.domains.begin_create_or_update( + resource_group_name=resource_group.name, + domain_name="str", + domain={ + "location": "str", + "id": "str", + "kind": "str", + "name": "str", + "properties": { + "consent": {"agreedAt": "2020-02-20 00:00:00", "agreedBy": "str", "agreementKeys": ["str"]}, + "contactAdmin": { + "email": "str", + "nameFirst": "str", + "nameLast": "str", + "phone": "str", + "addressMailing": { + "address1": "str", + "city": "str", + "country": "str", + "postalCode": "str", + "state": "str", + "address2": "str", + }, + "fax": "str", + "jobTitle": "str", + "nameMiddle": "str", + "organization": "str", + }, + "contactBilling": { + "email": "str", + "nameFirst": "str", + "nameLast": "str", + "phone": "str", + "addressMailing": { + "address1": "str", + "city": "str", + "country": "str", + "postalCode": "str", + "state": "str", + "address2": "str", + }, + "fax": "str", + "jobTitle": "str", + "nameMiddle": "str", + "organization": "str", + }, + "contactRegistrant": { + "email": "str", + "nameFirst": "str", + "nameLast": "str", + "phone": "str", + "addressMailing": { + "address1": "str", + "city": "str", + "country": "str", + "postalCode": "str", + "state": "str", + "address2": "str", + }, + "fax": "str", + "jobTitle": "str", + "nameMiddle": "str", + "organization": "str", + }, + "contactTech": { + "email": "str", + "nameFirst": "str", + "nameLast": "str", + "phone": "str", + "addressMailing": { + "address1": "str", + "city": "str", + "country": "str", + "postalCode": "str", + "state": "str", + "address2": "str", + }, + "fax": "str", + "jobTitle": "str", + "nameMiddle": "str", + "organization": "str", + }, + "authCode": "str", + "autoRenew": bool, + "createdTime": "2020-02-20 00:00:00", + "dnsType": "str", + "dnsZoneId": "str", + "domainNotRenewableReasons": ["str"], + "expirationTime": "2020-02-20 00:00:00", + "lastRenewedTime": "2020-02-20 00:00:00", + "managedHostNames": [ + { + "azureResourceName": "str", + "azureResourceType": "str", + "customHostNameDnsRecordType": "str", + "hostNameType": "str", + "name": "str", + "siteNames": ["str"], + } + ], + "nameServers": ["str"], + "privacy": bool, + "provisioningState": "str", + "readyForDnsRecordManagement": bool, + "registrationStatus": "str", + "targetDnsType": "str", + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + }, + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_domains_update(self, resource_group): + response = self.client.domains.update( + resource_group_name=resource_group.name, + domain_name="str", + domain={ + "id": "str", + "kind": "str", + "name": "str", + "properties": { + "consent": {"agreedAt": "2020-02-20 00:00:00", "agreedBy": "str", "agreementKeys": ["str"]}, + "contactAdmin": { + "email": "str", + "nameFirst": "str", + "nameLast": "str", + "phone": "str", + "addressMailing": { + "address1": "str", + "city": "str", + "country": "str", + "postalCode": "str", + "state": "str", + "address2": "str", + }, + "fax": "str", + "jobTitle": "str", + "nameMiddle": "str", + "organization": "str", + }, + "contactBilling": { + "email": "str", + "nameFirst": "str", + "nameLast": "str", + "phone": "str", + "addressMailing": { + "address1": "str", + "city": "str", + "country": "str", + "postalCode": "str", + "state": "str", + "address2": "str", + }, + "fax": "str", + "jobTitle": "str", + "nameMiddle": "str", + "organization": "str", + }, + "contactRegistrant": { + "email": "str", + "nameFirst": "str", + "nameLast": "str", + "phone": "str", + "addressMailing": { + "address1": "str", + "city": "str", + "country": "str", + "postalCode": "str", + "state": "str", + "address2": "str", + }, + "fax": "str", + "jobTitle": "str", + "nameMiddle": "str", + "organization": "str", + }, + "contactTech": { + "email": "str", + "nameFirst": "str", + "nameLast": "str", + "phone": "str", + "addressMailing": { + "address1": "str", + "city": "str", + "country": "str", + "postalCode": "str", + "state": "str", + "address2": "str", + }, + "fax": "str", + "jobTitle": "str", + "nameMiddle": "str", + "organization": "str", + }, + "authCode": "str", + "autoRenew": bool, + "createdTime": "2020-02-20 00:00:00", + "dnsType": "str", + "dnsZoneId": "str", + "domainNotRenewableReasons": ["str"], + "expirationTime": "2020-02-20 00:00:00", + "lastRenewedTime": "2020-02-20 00:00:00", + "managedHostNames": [ + { + "azureResourceName": "str", + "azureResourceType": "str", + "customHostNameDnsRecordType": "str", + "hostNameType": "str", + "name": "str", + "siteNames": ["str"], + } + ], + "nameServers": ["str"], + "privacy": bool, + "provisioningState": "str", + "readyForDnsRecordManagement": bool, + "registrationStatus": "str", + "targetDnsType": "str", + }, + "type": "str", + }, + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_domains_delete(self, resource_group): + response = self.client.domains.delete( + resource_group_name=resource_group.name, + domain_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_domains_list_by_resource_group(self, resource_group): + response = self.client.domains.list_by_resource_group( + resource_group_name=resource_group.name, + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_domains_list(self, resource_group): + response = self.client.domains.list() + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_domains_renew(self, resource_group): + response = self.client.domains.renew( + resource_group_name=resource_group.name, + domain_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_domains_transfer_out(self, resource_group): + response = self.client.domains.transfer_out( + resource_group_name=resource_group.name, + domain_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_domains_get_ownership_identifier(self, resource_group): + response = self.client.domains.get_ownership_identifier( + resource_group_name=resource_group.name, + domain_name="str", + name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_domains_create_or_update_ownership_identifier(self, resource_group): + response = self.client.domains.create_or_update_ownership_identifier( + resource_group_name=resource_group.name, + domain_name="str", + name="str", + domain_ownership_identifier={ + "id": "str", + "kind": "str", + "name": "str", + "properties": {"ownershipId": "str"}, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_domains_update_ownership_identifier(self, resource_group): + response = self.client.domains.update_ownership_identifier( + resource_group_name=resource_group.name, + domain_name="str", + name="str", + domain_ownership_identifier={ + "id": "str", + "kind": "str", + "name": "str", + "properties": {"ownershipId": "str"}, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_domains_delete_ownership_identifier(self, resource_group): + response = self.client.domains.delete_ownership_identifier( + resource_group_name=resource_group.name, + domain_name="str", + name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_domains_list_ownership_identifiers(self, resource_group): + response = self.client.domains.list_ownership_identifiers( + resource_group_name=resource_group.name, + domain_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_domains_check_availability(self, resource_group): + response = self.client.domains.check_availability( + identifier={"name": "str"}, + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_domains_get_control_center_sso_request(self, resource_group): + response = self.client.domains.get_control_center_sso_request() + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_domains_list_recommendations(self, resource_group): + response = self.client.domains.list_recommendations( + parameters={"keywords": "str", "maxDomainRecommendations": 0}, + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_web_site_management_domains_operations_async.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_domain_registration_domains_operations_async.py similarity index 66% rename from sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_web_site_management_domains_operations_async.py rename to sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_domain_registration_domains_operations_async.py index 9dd01024a00a..2ea7de615afb 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_web_site_management_domains_operations_async.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_domain_registration_domains_operations_async.py @@ -2,11 +2,11 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.domainregistration.aio import WebSiteManagementClient +from azure.mgmt.domainregistration.aio import DomainRegistrationClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer from devtools_testutils.aio import recorded_by_proxy_async @@ -15,62 +15,9 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestWebSiteManagementDomainsOperationsAsync(AzureMgmtRecordedTestCase): +class TestDomainRegistrationDomainsOperationsAsync(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(WebSiteManagementClient, is_async=True) - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_domains_check_availability(self, resource_group): - response = await self.client.domains.check_availability( - identifier={"name": "str"}, - api_version="2024-11-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_domains_list(self, resource_group): - response = self.client.domains.list( - api_version="2024-11-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_domains_get_control_center_sso_request(self, resource_group): - response = await self.client.domains.get_control_center_sso_request( - api_version="2024-11-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_domains_list_recommendations(self, resource_group): - response = self.client.domains.list_recommendations( - parameters={"keywords": "str", "maxDomainRecommendations": 0}, - api_version="2024-11-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_domains_list_by_resource_group(self, resource_group): - response = self.client.domains.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2024-11-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... + self.client = self.create_mgmt_client(DomainRegistrationClient, is_async=True) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async @@ -78,7 +25,6 @@ async def test_domains_get(self, resource_group): response = await self.client.domains.get( resource_group_name=resource_group.name, domain_name="str", - api_version="2024-11-01", ) # please add some check logic here by yourself @@ -93,8 +39,136 @@ async def test_domains_begin_create_or_update(self, resource_group): domain_name="str", domain={ "location": "str", - "authCode": "str", - "autoRenew": True, + "id": "str", + "kind": "str", + "name": "str", + "properties": { + "consent": {"agreedAt": "2020-02-20 00:00:00", "agreedBy": "str", "agreementKeys": ["str"]}, + "contactAdmin": { + "email": "str", + "nameFirst": "str", + "nameLast": "str", + "phone": "str", + "addressMailing": { + "address1": "str", + "city": "str", + "country": "str", + "postalCode": "str", + "state": "str", + "address2": "str", + }, + "fax": "str", + "jobTitle": "str", + "nameMiddle": "str", + "organization": "str", + }, + "contactBilling": { + "email": "str", + "nameFirst": "str", + "nameLast": "str", + "phone": "str", + "addressMailing": { + "address1": "str", + "city": "str", + "country": "str", + "postalCode": "str", + "state": "str", + "address2": "str", + }, + "fax": "str", + "jobTitle": "str", + "nameMiddle": "str", + "organization": "str", + }, + "contactRegistrant": { + "email": "str", + "nameFirst": "str", + "nameLast": "str", + "phone": "str", + "addressMailing": { + "address1": "str", + "city": "str", + "country": "str", + "postalCode": "str", + "state": "str", + "address2": "str", + }, + "fax": "str", + "jobTitle": "str", + "nameMiddle": "str", + "organization": "str", + }, + "contactTech": { + "email": "str", + "nameFirst": "str", + "nameLast": "str", + "phone": "str", + "addressMailing": { + "address1": "str", + "city": "str", + "country": "str", + "postalCode": "str", + "state": "str", + "address2": "str", + }, + "fax": "str", + "jobTitle": "str", + "nameMiddle": "str", + "organization": "str", + }, + "authCode": "str", + "autoRenew": bool, + "createdTime": "2020-02-20 00:00:00", + "dnsType": "str", + "dnsZoneId": "str", + "domainNotRenewableReasons": ["str"], + "expirationTime": "2020-02-20 00:00:00", + "lastRenewedTime": "2020-02-20 00:00:00", + "managedHostNames": [ + { + "azureResourceName": "str", + "azureResourceType": "str", + "customHostNameDnsRecordType": "str", + "hostNameType": "str", + "name": "str", + "siteNames": ["str"], + } + ], + "nameServers": ["str"], + "privacy": bool, + "provisioningState": "str", + "readyForDnsRecordManagement": bool, + "registrationStatus": "str", + "targetDnsType": "str", + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + }, + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_domains_update(self, resource_group): + response = await self.client.domains.update( + resource_group_name=resource_group.name, + domain_name="str", + domain={ + "id": "str", + "kind": "str", + "name": "str", + "properties": { "consent": {"agreedAt": "2020-02-20 00:00:00", "agreedBy": "str", "agreementKeys": ["str"]}, "contactAdmin": { "email": "str", @@ -168,13 +242,13 @@ async def test_domains_begin_create_or_update(self, resource_group): "nameMiddle": "str", "organization": "str", }, + "authCode": "str", + "autoRenew": bool, "createdTime": "2020-02-20 00:00:00", "dnsType": "str", "dnsZoneId": "str", "domainNotRenewableReasons": ["str"], "expirationTime": "2020-02-20 00:00:00", - "id": "str", - "kind": "str", "lastRenewedTime": "2020-02-20 00:00:00", "managedHostNames": [ { @@ -186,19 +260,16 @@ async def test_domains_begin_create_or_update(self, resource_group): "siteNames": ["str"], } ], - "name": "str", "nameServers": ["str"], "privacy": bool, "provisioningState": "str", "readyForDnsRecordManagement": bool, "registrationStatus": "str", - "tags": {"str": "str"}, "targetDnsType": "str", - "type": "str", }, - api_version="2024-11-01", - ) - ).result() # call '.result()' to poll until service return final result + "type": "str", + }, + ) # please add some check logic here by yourself # ... @@ -209,7 +280,6 @@ async def test_domains_delete(self, resource_group): response = await self.client.domains.delete( resource_group_name=resource_group.name, domain_name="str", - api_version="2024-11-01", ) # please add some check logic here by yourself @@ -217,114 +287,28 @@ async def test_domains_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_domains_update(self, resource_group): - response = await self.client.domains.update( + async def test_domains_list_by_resource_group(self, resource_group): + response = self.client.domains.list_by_resource_group( + resource_group_name=resource_group.name, + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_domains_list(self, resource_group): + response = self.client.domains.list() + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_domains_renew(self, resource_group): + response = await self.client.domains.renew( resource_group_name=resource_group.name, domain_name="str", - domain={ - "authCode": "str", - "autoRenew": True, - "consent": {"agreedAt": "2020-02-20 00:00:00", "agreedBy": "str", "agreementKeys": ["str"]}, - "contactAdmin": { - "email": "str", - "nameFirst": "str", - "nameLast": "str", - "phone": "str", - "addressMailing": { - "address1": "str", - "city": "str", - "country": "str", - "postalCode": "str", - "state": "str", - "address2": "str", - }, - "fax": "str", - "jobTitle": "str", - "nameMiddle": "str", - "organization": "str", - }, - "contactBilling": { - "email": "str", - "nameFirst": "str", - "nameLast": "str", - "phone": "str", - "addressMailing": { - "address1": "str", - "city": "str", - "country": "str", - "postalCode": "str", - "state": "str", - "address2": "str", - }, - "fax": "str", - "jobTitle": "str", - "nameMiddle": "str", - "organization": "str", - }, - "contactRegistrant": { - "email": "str", - "nameFirst": "str", - "nameLast": "str", - "phone": "str", - "addressMailing": { - "address1": "str", - "city": "str", - "country": "str", - "postalCode": "str", - "state": "str", - "address2": "str", - }, - "fax": "str", - "jobTitle": "str", - "nameMiddle": "str", - "organization": "str", - }, - "contactTech": { - "email": "str", - "nameFirst": "str", - "nameLast": "str", - "phone": "str", - "addressMailing": { - "address1": "str", - "city": "str", - "country": "str", - "postalCode": "str", - "state": "str", - "address2": "str", - }, - "fax": "str", - "jobTitle": "str", - "nameMiddle": "str", - "organization": "str", - }, - "createdTime": "2020-02-20 00:00:00", - "dnsType": "str", - "dnsZoneId": "str", - "domainNotRenewableReasons": ["str"], - "expirationTime": "2020-02-20 00:00:00", - "id": "str", - "kind": "str", - "lastRenewedTime": "2020-02-20 00:00:00", - "managedHostNames": [ - { - "azureResourceName": "str", - "azureResourceType": "str", - "customHostNameDnsRecordType": "str", - "hostNameType": "str", - "name": "str", - "siteNames": ["str"], - } - ], - "name": "str", - "nameServers": ["str"], - "privacy": bool, - "provisioningState": "str", - "readyForDnsRecordManagement": bool, - "registrationStatus": "str", - "targetDnsType": "str", - "type": "str", - }, - api_version="2024-11-01", ) # please add some check logic here by yourself @@ -332,13 +316,12 @@ async def test_domains_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_domains_list_ownership_identifiers(self, resource_group): - response = self.client.domains.list_ownership_identifiers( + async def test_domains_transfer_out(self, resource_group): + response = await self.client.domains.transfer_out( resource_group_name=resource_group.name, domain_name="str", - api_version="2024-11-01", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @@ -349,7 +332,6 @@ async def test_domains_get_ownership_identifier(self, resource_group): resource_group_name=resource_group.name, domain_name="str", name="str", - api_version="2024-11-01", ) # please add some check logic here by yourself @@ -366,23 +348,17 @@ async def test_domains_create_or_update_ownership_identifier(self, resource_grou "id": "str", "kind": "str", "name": "str", - "ownershipId": "str", + "properties": {"ownershipId": "str"}, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", }, - api_version="2024-11-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_domains_delete_ownership_identifier(self, resource_group): - response = await self.client.domains.delete_ownership_identifier( - resource_group_name=resource_group.name, - domain_name="str", - name="str", - api_version="2024-11-01", ) # please add some check logic here by yourself @@ -399,10 +375,17 @@ async def test_domains_update_ownership_identifier(self, resource_group): "id": "str", "kind": "str", "name": "str", - "ownershipId": "str", + "properties": {"ownershipId": "str"}, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", }, - api_version="2024-11-01", ) # please add some check logic here by yourself @@ -410,11 +393,11 @@ async def test_domains_update_ownership_identifier(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_domains_renew(self, resource_group): - response = await self.client.domains.renew( + async def test_domains_delete_ownership_identifier(self, resource_group): + response = await self.client.domains.delete_ownership_identifier( resource_group_name=resource_group.name, domain_name="str", - api_version="2024-11-01", + name="str", ) # please add some check logic here by yourself @@ -422,12 +405,39 @@ async def test_domains_renew(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_domains_transfer_out(self, resource_group): - response = await self.client.domains.transfer_out( + async def test_domains_list_ownership_identifiers(self, resource_group): + response = self.client.domains.list_ownership_identifiers( resource_group_name=resource_group.name, domain_name="str", - api_version="2024-11-01", ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_domains_check_availability(self, resource_group): + response = await self.client.domains.check_availability( + identifier={"name": "str"}, + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_domains_get_control_center_sso_request(self, resource_group): + response = await self.client.domains.get_control_center_sso_request() + + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_domains_list_recommendations(self, resource_group): + response = self.client.domains.list_recommendations( + parameters={"keywords": "str", "maxDomainRecommendations": 0}, + ) + result = [r async for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_web_site_management_top_level_domains_operations.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_domain_registration_top_level_domains_operations.py similarity index 78% rename from sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_web_site_management_top_level_domains_operations.py rename to sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_domain_registration_top_level_domains_operations.py index 61d7f0edf7bd..6ed00e48a9c1 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_web_site_management_top_level_domains_operations.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_domain_registration_top_level_domains_operations.py @@ -2,11 +2,11 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.domainregistration import WebSiteManagementClient +from azure.mgmt.domainregistration import DomainRegistrationClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy @@ -14,28 +14,25 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestWebSiteManagementTopLevelDomainsOperations(AzureMgmtRecordedTestCase): +class TestDomainRegistrationTopLevelDomainsOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(WebSiteManagementClient) + self.client = self.create_mgmt_client(DomainRegistrationClient) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_top_level_domains_list(self, resource_group): - response = self.client.top_level_domains.list( - api_version="2024-11-01", + def test_top_level_domains_get(self, resource_group): + response = self.client.top_level_domains.get( + name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_top_level_domains_get(self, resource_group): - response = self.client.top_level_domains.get( - name="str", - api_version="2024-11-01", - ) - + def test_top_level_domains_list(self, resource_group): + response = self.client.top_level_domains.list() + result = [r for r in response] # please add some check logic here by yourself # ... @@ -45,7 +42,6 @@ def test_top_level_domains_list_agreements(self, resource_group): response = self.client.top_level_domains.list_agreements( name="str", agreement_option={"forTransfer": bool, "includePrivacy": bool}, - api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_web_site_management_top_level_domains_operations_async.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_domain_registration_top_level_domains_operations_async.py similarity index 78% rename from sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_web_site_management_top_level_domains_operations_async.py rename to sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_domain_registration_top_level_domains_operations_async.py index 71b9b6567273..823dc0de293c 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_web_site_management_top_level_domains_operations_async.py +++ b/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_domain_registration_top_level_domains_operations_async.py @@ -2,11 +2,11 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest -from azure.mgmt.domainregistration.aio import WebSiteManagementClient +from azure.mgmt.domainregistration.aio import DomainRegistrationClient from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer from devtools_testutils.aio import recorded_by_proxy_async @@ -15,28 +15,25 @@ @pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestWebSiteManagementTopLevelDomainsOperationsAsync(AzureMgmtRecordedTestCase): +class TestDomainRegistrationTopLevelDomainsOperationsAsync(AzureMgmtRecordedTestCase): def setup_method(self, method): - self.client = self.create_mgmt_client(WebSiteManagementClient, is_async=True) + self.client = self.create_mgmt_client(DomainRegistrationClient, is_async=True) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_top_level_domains_list(self, resource_group): - response = self.client.top_level_domains.list( - api_version="2024-11-01", + async def test_top_level_domains_get(self, resource_group): + response = await self.client.top_level_domains.get( + name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_top_level_domains_get(self, resource_group): - response = await self.client.top_level_domains.get( - name="str", - api_version="2024-11-01", - ) - + async def test_top_level_domains_list(self, resource_group): + response = self.client.top_level_domains.list() + result = [r async for r in response] # please add some check logic here by yourself # ... @@ -46,7 +43,6 @@ async def test_top_level_domains_list_agreements(self, resource_group): response = self.client.top_level_domains.list_agreements( name="str", agreement_option={"forTransfer": bool, "includePrivacy": bool}, - api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_web_site_management_domains_operations.py b/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_web_site_management_domains_operations.py deleted file mode 100644 index a61d13c4756d..000000000000 --- a/sdk/domainregistration/azure-mgmt-domainregistration/generated_tests/test_web_site_management_domains_operations.py +++ /dev/null @@ -1,430 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import pytest -from azure.mgmt.domainregistration import WebSiteManagementClient - -from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy - -AZURE_LOCATION = "eastus" - - -@pytest.mark.skip("you may need to update the auto-generated test case before run it") -class TestWebSiteManagementDomainsOperations(AzureMgmtRecordedTestCase): - def setup_method(self, method): - self.client = self.create_mgmt_client(WebSiteManagementClient) - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_domains_check_availability(self, resource_group): - response = self.client.domains.check_availability( - identifier={"name": "str"}, - api_version="2024-11-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_domains_list(self, resource_group): - response = self.client.domains.list( - api_version="2024-11-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_domains_get_control_center_sso_request(self, resource_group): - response = self.client.domains.get_control_center_sso_request( - api_version="2024-11-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_domains_list_recommendations(self, resource_group): - response = self.client.domains.list_recommendations( - parameters={"keywords": "str", "maxDomainRecommendations": 0}, - api_version="2024-11-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_domains_list_by_resource_group(self, resource_group): - response = self.client.domains.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2024-11-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_domains_get(self, resource_group): - response = self.client.domains.get( - resource_group_name=resource_group.name, - domain_name="str", - api_version="2024-11-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_domains_begin_create_or_update(self, resource_group): - response = self.client.domains.begin_create_or_update( - resource_group_name=resource_group.name, - domain_name="str", - domain={ - "location": "str", - "authCode": "str", - "autoRenew": True, - "consent": {"agreedAt": "2020-02-20 00:00:00", "agreedBy": "str", "agreementKeys": ["str"]}, - "contactAdmin": { - "email": "str", - "nameFirst": "str", - "nameLast": "str", - "phone": "str", - "addressMailing": { - "address1": "str", - "city": "str", - "country": "str", - "postalCode": "str", - "state": "str", - "address2": "str", - }, - "fax": "str", - "jobTitle": "str", - "nameMiddle": "str", - "organization": "str", - }, - "contactBilling": { - "email": "str", - "nameFirst": "str", - "nameLast": "str", - "phone": "str", - "addressMailing": { - "address1": "str", - "city": "str", - "country": "str", - "postalCode": "str", - "state": "str", - "address2": "str", - }, - "fax": "str", - "jobTitle": "str", - "nameMiddle": "str", - "organization": "str", - }, - "contactRegistrant": { - "email": "str", - "nameFirst": "str", - "nameLast": "str", - "phone": "str", - "addressMailing": { - "address1": "str", - "city": "str", - "country": "str", - "postalCode": "str", - "state": "str", - "address2": "str", - }, - "fax": "str", - "jobTitle": "str", - "nameMiddle": "str", - "organization": "str", - }, - "contactTech": { - "email": "str", - "nameFirst": "str", - "nameLast": "str", - "phone": "str", - "addressMailing": { - "address1": "str", - "city": "str", - "country": "str", - "postalCode": "str", - "state": "str", - "address2": "str", - }, - "fax": "str", - "jobTitle": "str", - "nameMiddle": "str", - "organization": "str", - }, - "createdTime": "2020-02-20 00:00:00", - "dnsType": "str", - "dnsZoneId": "str", - "domainNotRenewableReasons": ["str"], - "expirationTime": "2020-02-20 00:00:00", - "id": "str", - "kind": "str", - "lastRenewedTime": "2020-02-20 00:00:00", - "managedHostNames": [ - { - "azureResourceName": "str", - "azureResourceType": "str", - "customHostNameDnsRecordType": "str", - "hostNameType": "str", - "name": "str", - "siteNames": ["str"], - } - ], - "name": "str", - "nameServers": ["str"], - "privacy": bool, - "provisioningState": "str", - "readyForDnsRecordManagement": bool, - "registrationStatus": "str", - "tags": {"str": "str"}, - "targetDnsType": "str", - "type": "str", - }, - api_version="2024-11-01", - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_domains_delete(self, resource_group): - response = self.client.domains.delete( - resource_group_name=resource_group.name, - domain_name="str", - api_version="2024-11-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_domains_update(self, resource_group): - response = self.client.domains.update( - resource_group_name=resource_group.name, - domain_name="str", - domain={ - "authCode": "str", - "autoRenew": True, - "consent": {"agreedAt": "2020-02-20 00:00:00", "agreedBy": "str", "agreementKeys": ["str"]}, - "contactAdmin": { - "email": "str", - "nameFirst": "str", - "nameLast": "str", - "phone": "str", - "addressMailing": { - "address1": "str", - "city": "str", - "country": "str", - "postalCode": "str", - "state": "str", - "address2": "str", - }, - "fax": "str", - "jobTitle": "str", - "nameMiddle": "str", - "organization": "str", - }, - "contactBilling": { - "email": "str", - "nameFirst": "str", - "nameLast": "str", - "phone": "str", - "addressMailing": { - "address1": "str", - "city": "str", - "country": "str", - "postalCode": "str", - "state": "str", - "address2": "str", - }, - "fax": "str", - "jobTitle": "str", - "nameMiddle": "str", - "organization": "str", - }, - "contactRegistrant": { - "email": "str", - "nameFirst": "str", - "nameLast": "str", - "phone": "str", - "addressMailing": { - "address1": "str", - "city": "str", - "country": "str", - "postalCode": "str", - "state": "str", - "address2": "str", - }, - "fax": "str", - "jobTitle": "str", - "nameMiddle": "str", - "organization": "str", - }, - "contactTech": { - "email": "str", - "nameFirst": "str", - "nameLast": "str", - "phone": "str", - "addressMailing": { - "address1": "str", - "city": "str", - "country": "str", - "postalCode": "str", - "state": "str", - "address2": "str", - }, - "fax": "str", - "jobTitle": "str", - "nameMiddle": "str", - "organization": "str", - }, - "createdTime": "2020-02-20 00:00:00", - "dnsType": "str", - "dnsZoneId": "str", - "domainNotRenewableReasons": ["str"], - "expirationTime": "2020-02-20 00:00:00", - "id": "str", - "kind": "str", - "lastRenewedTime": "2020-02-20 00:00:00", - "managedHostNames": [ - { - "azureResourceName": "str", - "azureResourceType": "str", - "customHostNameDnsRecordType": "str", - "hostNameType": "str", - "name": "str", - "siteNames": ["str"], - } - ], - "name": "str", - "nameServers": ["str"], - "privacy": bool, - "provisioningState": "str", - "readyForDnsRecordManagement": bool, - "registrationStatus": "str", - "targetDnsType": "str", - "type": "str", - }, - api_version="2024-11-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_domains_list_ownership_identifiers(self, resource_group): - response = self.client.domains.list_ownership_identifiers( - resource_group_name=resource_group.name, - domain_name="str", - api_version="2024-11-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_domains_get_ownership_identifier(self, resource_group): - response = self.client.domains.get_ownership_identifier( - resource_group_name=resource_group.name, - domain_name="str", - name="str", - api_version="2024-11-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_domains_create_or_update_ownership_identifier(self, resource_group): - response = self.client.domains.create_or_update_ownership_identifier( - resource_group_name=resource_group.name, - domain_name="str", - name="str", - domain_ownership_identifier={ - "id": "str", - "kind": "str", - "name": "str", - "ownershipId": "str", - "type": "str", - }, - api_version="2024-11-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_domains_delete_ownership_identifier(self, resource_group): - response = self.client.domains.delete_ownership_identifier( - resource_group_name=resource_group.name, - domain_name="str", - name="str", - api_version="2024-11-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_domains_update_ownership_identifier(self, resource_group): - response = self.client.domains.update_ownership_identifier( - resource_group_name=resource_group.name, - domain_name="str", - name="str", - domain_ownership_identifier={ - "id": "str", - "kind": "str", - "name": "str", - "ownershipId": "str", - "type": "str", - }, - api_version="2024-11-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_domains_renew(self, resource_group): - response = self.client.domains.renew( - resource_group_name=resource_group.name, - domain_name="str", - api_version="2024-11-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_domains_transfer_out(self, resource_group): - response = self.client.domains.transfer_out( - resource_group_name=resource_group.name, - domain_name="str", - api_version="2024-11-01", - ) - - # please add some check logic here by yourself - # ... diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/pyproject.toml b/sdk/domainregistration/azure-mgmt-domainregistration/pyproject.toml index 645ef70593d6..4fe4d29165dd 100644 --- a/sdk/domainregistration/azure-mgmt-domainregistration/pyproject.toml +++ b/sdk/domainregistration/azure-mgmt-domainregistration/pyproject.toml @@ -29,7 +29,7 @@ keywords = [ "azure sdk", ] dependencies = [ - "msrest>=0.7.1", + "isodate>=0.6.1", "azure-mgmt-core>=1.6.0", "typing-extensions>=4.6.0", ] diff --git a/sdk/domainregistration/azure-mgmt-domainregistration/tsp-location.yaml b/sdk/domainregistration/azure-mgmt-domainregistration/tsp-location.yaml new file mode 100644 index 000000000000..be8099976e13 --- /dev/null +++ b/sdk/domainregistration/azure-mgmt-domainregistration/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/domainregistration/DomainRegistration.Management +commit: 6539401b58d326bc975e91645102bbe09dd747c8 +repo: Azure/azure-rest-api-specs +additionalDirectories: