From 93b8f93366a587618d935298c2a6072c8d0e2d01 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 25 Jun 2021 12:50:22 +0000 Subject: [PATCH] CodeGen from PR 14973 in Azure/azure-rest-api-specs Merge 60f60dfd0bd384f7aa595db25454b3f160dc1174 into e38dbf049a960b26d7472884bd7e4ef8949bdb09 --- .../azure-mgmt-apimanagement/MANIFEST.in | 1 + .../azure-mgmt-apimanagement/_meta.json | 8 + .../apimanagement/_api_management_client.py | 2 +- .../mgmt/apimanagement/models/__init__.py | 12 + .../models/_api_management_client_enums.py | 47 +- .../mgmt/apimanagement/models/_models.py | 410 +++++++++++----- .../mgmt/apimanagement/models/_models_py3.py | 446 +++++++++++++----- .../operations/_api_diagnostic_operations.py | 4 +- .../operations/_api_export_operations.py | 4 +- .../_api_issue_attachment_operations.py | 4 +- .../_api_issue_comment_operations.py | 4 +- .../operations/_api_issue_operations.py | 4 +- .../operations/_api_management_operations.py | 4 +- .../_api_management_service_operations.py | 16 +- ..._api_management_service_skus_operations.py | 4 +- .../_api_management_skus_operations.py | 4 +- .../operations/_api_operation_operations.py | 4 +- .../_api_operation_policy_operations.py | 4 +- .../operations/_api_operations.py | 4 +- .../operations/_api_policy_operations.py | 4 +- .../operations/_api_product_operations.py | 4 +- .../operations/_api_release_operations.py | 4 +- .../operations/_api_revision_operations.py | 4 +- .../operations/_api_schema_operations.py | 27 +- .../_api_tag_description_operations.py | 4 +- .../operations/_api_version_set_operations.py | 4 +- .../_authorization_server_operations.py | 4 +- .../operations/_backend_operations.py | 4 +- .../operations/_cache_operations.py | 4 +- .../operations/_certificate_operations.py | 4 +- .../operations/_content_item_operations.py | 18 +- .../operations/_content_type_operations.py | 20 +- .../_delegation_settings_operations.py | 4 +- .../_deleted_services_operations.py | 4 +- .../operations/_diagnostic_operations.py | 4 +- .../operations/_email_template_operations.py | 4 +- .../operations/_gateway_api_operations.py | 4 +- ...ateway_certificate_authority_operations.py | 4 +- ...teway_hostname_configuration_operations.py | 4 +- .../operations/_gateway_operations.py | 4 +- .../operations/_group_operations.py | 4 +- .../operations/_group_user_operations.py | 4 +- .../_identity_provider_operations.py | 4 +- .../operations/_issue_operations.py | 4 +- .../operations/_logger_operations.py | 4 +- .../operations/_named_value_operations.py | 4 +- .../operations/_network_status_operations.py | 4 +- .../operations/_notification_operations.py | 4 +- ...notification_recipient_email_operations.py | 4 +- ..._notification_recipient_user_operations.py | 4 +- .../_open_id_connect_provider_operations.py | 4 +- .../operations/_operation_operations.py | 4 +- .../_policy_description_operations.py | 4 +- .../operations/_policy_operations.py | 4 +- .../operations/_portal_revision_operations.py | 18 +- .../operations/_portal_settings_operations.py | 4 +- .../operations/_product_api_operations.py | 4 +- .../operations/_product_group_operations.py | 4 +- .../operations/_product_operations.py | 4 +- .../operations/_product_policy_operations.py | 4 +- .../_product_subscriptions_operations.py | 4 +- .../_quota_by_counter_keys_operations.py | 4 +- .../_quota_by_period_keys_operations.py | 4 +- .../operations/_region_operations.py | 4 +- .../operations/_reports_operations.py | 4 +- .../_sign_in_settings_operations.py | 4 +- .../_sign_up_settings_operations.py | 4 +- .../operations/_subscription_operations.py | 4 +- .../operations/_tag_operations.py | 4 +- .../operations/_tag_resource_operations.py | 4 +- .../_tenant_access_git_operations.py | 4 +- .../operations/_tenant_access_operations.py | 4 +- .../_tenant_configuration_operations.py | 4 +- .../operations/_tenant_settings_operations.py | 4 +- .../_user_confirmation_password_operations.py | 4 +- .../operations/_user_group_operations.py | 4 +- .../operations/_user_identities_operations.py | 4 +- .../operations/_user_operations.py | 4 +- .../_user_subscription_operations.py | 4 +- 79 files changed, 881 insertions(+), 412 deletions(-) create mode 100644 sdk/apimanagement/azure-mgmt-apimanagement/_meta.json diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/MANIFEST.in b/sdk/apimanagement/azure-mgmt-apimanagement/MANIFEST.in index a3cb07df8765..3a9b6517412b 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/MANIFEST.in +++ b/sdk/apimanagement/azure-mgmt-apimanagement/MANIFEST.in @@ -1,3 +1,4 @@ +include _meta.json recursive-include tests *.py *.yaml include *.md include azure/__init__.py diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/_meta.json b/sdk/apimanagement/azure-mgmt-apimanagement/_meta.json new file mode 100644 index 000000000000..5d6eb3176991 --- /dev/null +++ b/sdk/apimanagement/azure-mgmt-apimanagement/_meta.json @@ -0,0 +1,8 @@ +{ + "autorest": "V2", + "use": "@microsoft.azure/autorest.python@~4.0.71", + "commit": "8b7d5a9a8486c0ee788f58ecd5281d2c0ab49795", + "repository_url": "https://github.com/Azure/azure-rest-api-specs", + "autorest_command": "autorest specification/apimanagement/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --use=@microsoft.azure/autorest.python@~4.0.71 --version=V2", + "readme": "specification/apimanagement/resource-manager/readme.md" +} \ No newline at end of file diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/_api_management_client.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/_api_management_client.py index c9b694a8842d..bbb363bc83c3 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/_api_management_client.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/_api_management_client.py @@ -256,7 +256,7 @@ def __init__( super(ApiManagementClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2020-12-01' + self.api_version = '2021-04-01-preview' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/__init__.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/__init__.py index da634501d33f..80631999090d 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/__init__.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/__init__.py @@ -15,6 +15,7 @@ from ._models_py3 import AccessInformationSecretsContract from ._models_py3 import AccessInformationUpdateParameters from ._models_py3 import AdditionalLocation + from ._models_py3 import ApiContactInformation from ._models_py3 import ApiContract from ._models_py3 import ApiContractProperties from ._models_py3 import ApiCreateOrUpdateParameter @@ -22,6 +23,7 @@ from ._models_py3 import ApiEntityBaseContract from ._models_py3 import ApiExportResult from ._models_py3 import ApiExportResultValue + from ._models_py3 import ApiLicenseInformation from ._models_py3 import ApiManagementServiceApplyNetworkConfigurationParameters from ._models_py3 import ApiManagementServiceBackupRestoreParameters from ._models_py3 import ApiManagementServiceBaseProperties @@ -212,6 +214,7 @@ from ._models import AccessInformationSecretsContract from ._models import AccessInformationUpdateParameters from ._models import AdditionalLocation + from ._models import ApiContactInformation from ._models import ApiContract from ._models import ApiContractProperties from ._models import ApiCreateOrUpdateParameter @@ -219,6 +222,7 @@ from ._models import ApiEntityBaseContract from ._models import ApiExportResult from ._models import ApiExportResultValue + from ._models import ApiLicenseInformation from ._models import ApiManagementServiceApplyNetworkConfigurationParameters from ._models import ApiManagementServiceBackupRestoreParameters from ._models import ApiManagementServiceBaseProperties @@ -472,6 +476,9 @@ SkuType, ResourceSkuCapacityScaleType, HostnameType, + CertificateSource, + CertificateStatus, + AccessType, VirtualNetworkType, ApimIdentityType, NameAvailabilityReason, @@ -504,6 +511,7 @@ 'AccessInformationSecretsContract', 'AccessInformationUpdateParameters', 'AdditionalLocation', + 'ApiContactInformation', 'ApiContract', 'ApiContractProperties', 'ApiCreateOrUpdateParameter', @@ -511,6 +519,7 @@ 'ApiEntityBaseContract', 'ApiExportResult', 'ApiExportResultValue', + 'ApiLicenseInformation', 'ApiManagementServiceApplyNetworkConfigurationParameters', 'ApiManagementServiceBackupRestoreParameters', 'ApiManagementServiceBaseProperties', @@ -763,6 +772,9 @@ 'SkuType', 'ResourceSkuCapacityScaleType', 'HostnameType', + 'CertificateSource', + 'CertificateStatus', + 'AccessType', 'VirtualNetworkType', 'ApimIdentityType', 'NameAvailabilityReason', diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_api_management_client_enums.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_api_management_client_enums.py index e6902c836c28..18712713b72d 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_api_management_client_enums.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_api_management_client_enums.py @@ -14,10 +14,10 @@ class ExportResultFormat(str, Enum): - swagger = "swagger-link-json" #: The Api Definition is exported in OpenApi Specification 2.0 format to the Storage Blob. - wsdl = "wsdl-link+xml" #: The Api Definition is exported in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` - wadl = "wadl-link-json" #: Export the Api Definition in WADL Schema to Storage Blob. - open_api = "openapi-link" #: Export the Api Definition in OpenApi Specification 3.0 to Storage Blob. + swagger = "swagger-link-json" #: The API Definition is exported in OpenAPI Specification 2.0 format to the Storage Blob. + wsdl = "wsdl-link+xml" #: The API Definition is exported in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` + wadl = "wadl-link-json" #: Export the API Definition in WADL Schema to Storage Blob. + open_api = "openapi-link" #: Export the API Definition in OpenAPI Specification 3.0 to Storage Blob. class ProductState(str, Enum): @@ -36,6 +36,8 @@ class Protocol(str, Enum): http = "http" https = "https" + ws = "ws" + wss = "wss" class ContentFormat(str, Enum): @@ -50,18 +52,23 @@ class ContentFormat(str, Enum): openapijson = "openapi+json" #: The contents are inline and Content Type is a OpenAPI 3.0 JSON Document. openapi_link = "openapi-link" #: The OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address. openapijson_link = "openapi+json-link" #: The OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address. + graphql_link = "graphql-link" #: The GraphQL API endpoint hosted on a publicly accessible internet address. class SoapApiType(str, Enum): soap_to_rest = "http" #: Imports a SOAP API having a RESTful front end. - soap_pass_through = "soap" #: Imports the Soap API having a SOAP front end. + soap_pass_through = "soap" #: Imports the SOAP API having a SOAP front end. + web_socket = "websocket" #: Imports the API having a Websocket front end. + graph_ql = "graphql" #: Imports the API having a GraphQL front end. class ApiType(str, Enum): http = "http" soap = "soap" + websocket = "websocket" + graphql = "graphql" class State(str, Enum): @@ -188,6 +195,28 @@ class HostnameType(str, Enum): developer_portal = "DeveloperPortal" +class CertificateSource(str, Enum): + + managed = "Managed" + key_vault = "KeyVault" + custom = "Custom" + built_in = "BuiltIn" + + +class CertificateStatus(str, Enum): + + completed = "Completed" + failed = "Failed" + in_progress = "InProgress" + + +class AccessType(str, Enum): + + access_key = "AccessKey" #: Use access key. + system_assigned_managed_identity = "SystemAssignedManagedIdentity" #: Use system assigned managed identity. + user_assigned_managed_identity = "UserAssignedManagedIdentity" #: Use user assigned managed identity. + + class VirtualNetworkType(str, Enum): none = "None" #: The service is not part of any Virtual Network. @@ -274,10 +303,10 @@ class ConnectivityStatusType(str, Enum): class PortalRevisionStatus(str, Enum): - pending = "pending" #: Portal revision publishing is pending - publishing = "publishing" #: Portal revision is publishing - completed = "completed" #: Portal revision publishing completed - failed = "failed" #: Portal revision publishing failed + pending = "pending" #: Portal's revision has been queued. + publishing = "publishing" #: Portal's revision is being published. + completed = "completed" #: Portal's revision publishing completed. + failed = "failed" #: Portal's revision publishing failed. class SubscriptionState(str, Enum): diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_models.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_models.py index 9e47cec024bb..34fb9271fad3 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_models.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_models.py @@ -197,6 +197,10 @@ class AdditionalLocation(Model): Network in a particular additional location. Available only for Basic, Standard, Premium and Isolated SKU. :vartype private_ip_addresses: list[str] + :param public_ip_address_id: Public Standard SKU IP V4 based IP address to + be associated with Virtual Network deployed service in the location. + Supported only for Premium SKU being deployed in Virtual Network. + :type public_ip_address_id: str :param virtual_network_configuration: Virtual network configuration for the location. :type virtual_network_configuration: @@ -224,6 +228,7 @@ class AdditionalLocation(Model): 'zones': {'key': 'zones', 'type': '[str]'}, 'public_ip_addresses': {'key': 'publicIPAddresses', 'type': '[str]'}, 'private_ip_addresses': {'key': 'privateIPAddresses', 'type': '[str]'}, + 'public_ip_address_id': {'key': 'publicIpAddressId', 'type': 'str'}, 'virtual_network_configuration': {'key': 'virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'}, 'gateway_regional_url': {'key': 'gatewayRegionalUrl', 'type': 'str'}, 'disable_gateway': {'key': 'disableGateway', 'type': 'bool'}, @@ -236,13 +241,40 @@ def __init__(self, **kwargs): self.zones = kwargs.get('zones', None) self.public_ip_addresses = None self.private_ip_addresses = None + self.public_ip_address_id = kwargs.get('public_ip_address_id', None) self.virtual_network_configuration = kwargs.get('virtual_network_configuration', None) self.gateway_regional_url = None self.disable_gateway = kwargs.get('disable_gateway', False) +class ApiContactInformation(Model): + """API contact information. + + :param name: The identifying name of the contact person/organization + :type name: str + :param url: The URL pointing to the contact information. MUST be in the + format of a URL + :type url: str + :param email: The email address of the contact person/organization. MUST + be in the format of an email address + :type email: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'email': {'key': 'email', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApiContactInformation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.url = kwargs.get('url', None) + self.email = kwargs.get('email', None) + + class ApiContract(Resource): - """Api details. + """API details. Variables are only populated by the server, and will be ignored when sending a request. @@ -266,21 +298,22 @@ class ApiContract(Resource): available. :type subscription_key_parameter_names: ~azure.mgmt.apimanagement.models.SubscriptionKeyParameterNamesContract - :param api_type: Type of API. Possible values include: 'http', 'soap' + :param api_type: Type of API. Possible values include: 'http', 'soap', + 'websocket', 'graphql' :type api_type: str or ~azure.mgmt.apimanagement.models.ApiType - :param api_revision: Describes the Revision of the Api. If no value is + :param api_revision: Describes the revision of the API. If no value is provided, default revision 1 is created :type api_revision: str - :param api_version: Indicates the Version identifier of the API if the API + :param api_version: Indicates the version identifier of the API if the API is versioned :type api_version: str :param is_current: Indicates if API revision is current api revision. :type is_current: bool :ivar is_online: Indicates if API revision is accessible via the gateway. :vartype is_online: bool - :param api_revision_description: Description of the Api Revision. + :param api_revision_description: Description of the API Revision. :type api_revision_description: str - :param api_version_description: Description of the Api Version. + :param api_version_description: Description of the API Version. :type api_version_description: str :param api_version_set_id: A resource identifier for the related ApiVersionSet. @@ -288,6 +321,13 @@ class ApiContract(Resource): :param subscription_required: Specifies whether an API or Product subscription is required for accessing the API. :type subscription_required: bool + :param terms_of_service_url: A URL to the Terms of Service for the API. + MUST be in the format of a URL. + :type terms_of_service_url: str + :param contact: Contact information for the API. + :type contact: ~azure.mgmt.apimanagement.models.ApiContactInformation + :param license: License information for the API. + :type license: ~azure.mgmt.apimanagement.models.ApiLicenseInformation :param source_api_id: API identifier of the source API. :type source_api_id: str :param display_name: API name. Must be 1 to 300 characters long. @@ -338,11 +378,14 @@ class ApiContract(Resource): 'api_version_description': {'key': 'properties.apiVersionDescription', 'type': 'str'}, 'api_version_set_id': {'key': 'properties.apiVersionSetId', 'type': 'str'}, 'subscription_required': {'key': 'properties.subscriptionRequired', 'type': 'bool'}, + 'terms_of_service_url': {'key': 'properties.termsOfServiceUrl', 'type': 'str'}, + 'contact': {'key': 'properties.contact', 'type': 'ApiContactInformation'}, + 'license': {'key': 'properties.license', 'type': 'ApiLicenseInformation'}, 'source_api_id': {'key': 'properties.sourceApiId', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'service_url': {'key': 'properties.serviceUrl', 'type': 'str'}, 'path': {'key': 'properties.path', 'type': 'str'}, - 'protocols': {'key': 'properties.protocols', 'type': '[Protocol]'}, + 'protocols': {'key': 'properties.protocols', 'type': '[str]'}, 'api_version_set': {'key': 'properties.apiVersionSet', 'type': 'ApiVersionSetContractDetails'}, } @@ -360,6 +403,9 @@ def __init__(self, **kwargs): self.api_version_description = kwargs.get('api_version_description', None) self.api_version_set_id = kwargs.get('api_version_set_id', None) self.subscription_required = kwargs.get('subscription_required', None) + self.terms_of_service_url = kwargs.get('terms_of_service_url', None) + self.contact = kwargs.get('contact', None) + self.license = kwargs.get('license', None) self.source_api_id = kwargs.get('source_api_id', None) self.display_name = kwargs.get('display_name', None) self.service_url = kwargs.get('service_url', None) @@ -385,21 +431,22 @@ class ApiEntityBaseContract(Model): available. :type subscription_key_parameter_names: ~azure.mgmt.apimanagement.models.SubscriptionKeyParameterNamesContract - :param api_type: Type of API. Possible values include: 'http', 'soap' + :param api_type: Type of API. Possible values include: 'http', 'soap', + 'websocket', 'graphql' :type api_type: str or ~azure.mgmt.apimanagement.models.ApiType - :param api_revision: Describes the Revision of the Api. If no value is + :param api_revision: Describes the revision of the API. If no value is provided, default revision 1 is created :type api_revision: str - :param api_version: Indicates the Version identifier of the API if the API + :param api_version: Indicates the version identifier of the API if the API is versioned :type api_version: str :param is_current: Indicates if API revision is current api revision. :type is_current: bool :ivar is_online: Indicates if API revision is accessible via the gateway. :vartype is_online: bool - :param api_revision_description: Description of the Api Revision. + :param api_revision_description: Description of the API Revision. :type api_revision_description: str - :param api_version_description: Description of the Api Version. + :param api_version_description: Description of the API Version. :type api_version_description: str :param api_version_set_id: A resource identifier for the related ApiVersionSet. @@ -407,6 +454,13 @@ class ApiEntityBaseContract(Model): :param subscription_required: Specifies whether an API or Product subscription is required for accessing the API. :type subscription_required: bool + :param terms_of_service_url: A URL to the Terms of Service for the API. + MUST be in the format of a URL. + :type terms_of_service_url: str + :param contact: Contact information for the API. + :type contact: ~azure.mgmt.apimanagement.models.ApiContactInformation + :param license: License information for the API. + :type license: ~azure.mgmt.apimanagement.models.ApiLicenseInformation """ _validation = { @@ -430,6 +484,9 @@ class ApiEntityBaseContract(Model): 'api_version_description': {'key': 'apiVersionDescription', 'type': 'str'}, 'api_version_set_id': {'key': 'apiVersionSetId', 'type': 'str'}, 'subscription_required': {'key': 'subscriptionRequired', 'type': 'bool'}, + 'terms_of_service_url': {'key': 'termsOfServiceUrl', 'type': 'str'}, + 'contact': {'key': 'contact', 'type': 'ApiContactInformation'}, + 'license': {'key': 'license', 'type': 'ApiLicenseInformation'}, } def __init__(self, **kwargs): @@ -446,10 +503,13 @@ def __init__(self, **kwargs): self.api_version_description = kwargs.get('api_version_description', None) self.api_version_set_id = kwargs.get('api_version_set_id', None) self.subscription_required = kwargs.get('subscription_required', None) + self.terms_of_service_url = kwargs.get('terms_of_service_url', None) + self.contact = kwargs.get('contact', None) + self.license = kwargs.get('license', None) class ApiContractProperties(ApiEntityBaseContract): - """Api Entity Properties. + """API Entity Properties. Variables are only populated by the server, and will be ignored when sending a request. @@ -467,21 +527,22 @@ class ApiContractProperties(ApiEntityBaseContract): available. :type subscription_key_parameter_names: ~azure.mgmt.apimanagement.models.SubscriptionKeyParameterNamesContract - :param api_type: Type of API. Possible values include: 'http', 'soap' + :param api_type: Type of API. Possible values include: 'http', 'soap', + 'websocket', 'graphql' :type api_type: str or ~azure.mgmt.apimanagement.models.ApiType - :param api_revision: Describes the Revision of the Api. If no value is + :param api_revision: Describes the revision of the API. If no value is provided, default revision 1 is created :type api_revision: str - :param api_version: Indicates the Version identifier of the API if the API + :param api_version: Indicates the version identifier of the API if the API is versioned :type api_version: str :param is_current: Indicates if API revision is current api revision. :type is_current: bool :ivar is_online: Indicates if API revision is accessible via the gateway. :vartype is_online: bool - :param api_revision_description: Description of the Api Revision. + :param api_revision_description: Description of the API Revision. :type api_revision_description: str - :param api_version_description: Description of the Api Version. + :param api_version_description: Description of the API Version. :type api_version_description: str :param api_version_set_id: A resource identifier for the related ApiVersionSet. @@ -489,6 +550,13 @@ class ApiContractProperties(ApiEntityBaseContract): :param subscription_required: Specifies whether an API or Product subscription is required for accessing the API. :type subscription_required: bool + :param terms_of_service_url: A URL to the Terms of Service for the API. + MUST be in the format of a URL. + :type terms_of_service_url: str + :param contact: Contact information for the API. + :type contact: ~azure.mgmt.apimanagement.models.ApiContactInformation + :param license: License information for the API. + :type license: ~azure.mgmt.apimanagement.models.ApiLicenseInformation :param source_api_id: API identifier of the source API. :type source_api_id: str :param display_name: API name. Must be 1 to 300 characters long. @@ -533,11 +601,14 @@ class ApiContractProperties(ApiEntityBaseContract): 'api_version_description': {'key': 'apiVersionDescription', 'type': 'str'}, 'api_version_set_id': {'key': 'apiVersionSetId', 'type': 'str'}, 'subscription_required': {'key': 'subscriptionRequired', 'type': 'bool'}, + 'terms_of_service_url': {'key': 'termsOfServiceUrl', 'type': 'str'}, + 'contact': {'key': 'contact', 'type': 'ApiContactInformation'}, + 'license': {'key': 'license', 'type': 'ApiLicenseInformation'}, 'source_api_id': {'key': 'sourceApiId', 'type': 'str'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'service_url': {'key': 'serviceUrl', 'type': 'str'}, 'path': {'key': 'path', 'type': 'str'}, - 'protocols': {'key': 'protocols', 'type': '[Protocol]'}, + 'protocols': {'key': 'protocols', 'type': '[str]'}, 'api_version_set': {'key': 'apiVersionSet', 'type': 'ApiVersionSetContractDetails'}, } @@ -570,21 +641,22 @@ class ApiCreateOrUpdateParameter(Model): available. :type subscription_key_parameter_names: ~azure.mgmt.apimanagement.models.SubscriptionKeyParameterNamesContract - :param api_type: Type of API. Possible values include: 'http', 'soap' + :param api_type: Type of API. Possible values include: 'http', 'soap', + 'websocket', 'graphql' :type api_type: str or ~azure.mgmt.apimanagement.models.ApiType - :param api_revision: Describes the Revision of the Api. If no value is + :param api_revision: Describes the revision of the API. If no value is provided, default revision 1 is created :type api_revision: str - :param api_version: Indicates the Version identifier of the API if the API + :param api_version: Indicates the version identifier of the API if the API is versioned :type api_version: str :param is_current: Indicates if API revision is current api revision. :type is_current: bool :ivar is_online: Indicates if API revision is accessible via the gateway. :vartype is_online: bool - :param api_revision_description: Description of the Api Revision. + :param api_revision_description: Description of the API Revision. :type api_revision_description: str - :param api_version_description: Description of the Api Version. + :param api_version_description: Description of the API Version. :type api_version_description: str :param api_version_set_id: A resource identifier for the related ApiVersionSet. @@ -592,6 +664,13 @@ class ApiCreateOrUpdateParameter(Model): :param subscription_required: Specifies whether an API or Product subscription is required for accessing the API. :type subscription_required: bool + :param terms_of_service_url: A URL to the Terms of Service for the API. + MUST be in the format of a URL. + :type terms_of_service_url: str + :param contact: Contact information for the API. + :type contact: ~azure.mgmt.apimanagement.models.ApiContactInformation + :param license: License information for the API. + :type license: ~azure.mgmt.apimanagement.models.ApiLicenseInformation :param source_api_id: API identifier of the source API. :type source_api_id: str :param display_name: API name. Must be 1 to 300 characters long. @@ -615,16 +694,18 @@ class ApiCreateOrUpdateParameter(Model): :param format: Format of the Content in which the API is getting imported. Possible values include: 'wadl-xml', 'wadl-link-json', 'swagger-json', 'swagger-link-json', 'wsdl', 'wsdl-link', 'openapi', 'openapi+json', - 'openapi-link', 'openapi+json-link' + 'openapi-link', 'openapi+json-link', 'graphql-link' :type format: str or ~azure.mgmt.apimanagement.models.ContentFormat :param wsdl_selector: Criteria to limit import of WSDL to a subset of the document. :type wsdl_selector: ~azure.mgmt.apimanagement.models.ApiCreateOrUpdatePropertiesWsdlSelector - :param soap_api_type: Type of Api to create. - * `http` creates a SOAP to REST API - * `soap` creates a SOAP pass-through API. Possible values include: - 'SoapToRest', 'SoapPassThrough' + :param soap_api_type: Type of API to create. + * `http` creates a REST API + * `soap` creates a SOAP pass-through API + * `websocket` creates websocket API + * `graphql` creates GraphQL API. Possible values include: 'SoapToRest', + 'SoapPassThrough', 'WebSocket', 'GraphQL' :type soap_api_type: str or ~azure.mgmt.apimanagement.models.SoapApiType """ @@ -652,11 +733,14 @@ class ApiCreateOrUpdateParameter(Model): 'api_version_description': {'key': 'properties.apiVersionDescription', 'type': 'str'}, 'api_version_set_id': {'key': 'properties.apiVersionSetId', 'type': 'str'}, 'subscription_required': {'key': 'properties.subscriptionRequired', 'type': 'bool'}, + 'terms_of_service_url': {'key': 'properties.termsOfServiceUrl', 'type': 'str'}, + 'contact': {'key': 'properties.contact', 'type': 'ApiContactInformation'}, + 'license': {'key': 'properties.license', 'type': 'ApiLicenseInformation'}, 'source_api_id': {'key': 'properties.sourceApiId', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'service_url': {'key': 'properties.serviceUrl', 'type': 'str'}, 'path': {'key': 'properties.path', 'type': 'str'}, - 'protocols': {'key': 'properties.protocols', 'type': '[Protocol]'}, + 'protocols': {'key': 'properties.protocols', 'type': '[str]'}, 'api_version_set': {'key': 'properties.apiVersionSet', 'type': 'ApiVersionSetContractDetails'}, 'value': {'key': 'properties.value', 'type': 'str'}, 'format': {'key': 'properties.format', 'type': 'str'}, @@ -678,6 +762,9 @@ def __init__(self, **kwargs): self.api_version_description = kwargs.get('api_version_description', None) self.api_version_set_id = kwargs.get('api_version_set_id', None) self.subscription_required = kwargs.get('subscription_required', None) + self.terms_of_service_url = kwargs.get('terms_of_service_url', None) + self.contact = kwargs.get('contact', None) + self.license = kwargs.get('license', None) self.source_api_id = kwargs.get('source_api_id', None) self.display_name = kwargs.get('display_name', None) self.service_url = kwargs.get('service_url', None) @@ -715,12 +802,12 @@ class ApiExportResult(Model): :param id: ResourceId of the API which was exported. :type id: str - :param export_result_format: Format in which the Api Details are exported + :param export_result_format: Format in which the API Details are exported to the Storage Blob with Sas Key valid for 5 minutes. Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'OpenApi' :type export_result_format: str or ~azure.mgmt.apimanagement.models.ExportResultFormat - :param value: The object defining the schema of the exported Api Detail + :param value: The object defining the schema of the exported API Detail :type value: ~azure.mgmt.apimanagement.models.ApiExportResultValue """ @@ -738,7 +825,7 @@ def __init__(self, **kwargs): class ApiExportResultValue(Model): - """The object defining the schema of the exported Api Detail. + """The object defining the schema of the exported API Detail. :param link: Link to the Storage Blob containing the result of the export operation. The Blob Uri is only valid for 5 minutes. @@ -754,6 +841,27 @@ def __init__(self, **kwargs): self.link = kwargs.get('link', None) +class ApiLicenseInformation(Model): + """API license information. + + :param name: The license name used for the API + :type name: str + :param url: A URL to the license used for the API. MUST be in the format + of a URL + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApiLicenseInformation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.url = kwargs.get('url', None) + + class ApiManagementServiceApplyNetworkConfigurationParameters(Model): """Parameter supplied to the Apply Network configuration operation. @@ -778,39 +886,50 @@ class ApiManagementServiceBackupRestoreParameters(Model): All required parameters must be populated in order to send to Azure. - :param storage_account: Required. Azure Cloud Storage account (used to - place/retrieve the backup) name. + :param storage_account: Required. The name of the Azure storage account + (used to place/retrieve the backup). :type storage_account: str - :param access_key: Required. Azure Cloud Storage account (used to - place/retrieve the backup) access key. - :type access_key: str - :param container_name: Required. Azure Cloud Storage blob container name - used to place/retrieve the backup. + :param container_name: Required. The name of the blob container (used to + place/retrieve the backup). :type container_name: str - :param backup_name: Required. The name of the backup file to create. + :param backup_name: Required. The name of the backup file to + create/retrieve. :type backup_name: str + :param access_type: The type of access to be used for the storage account. + Possible values include: 'AccessKey', 'SystemAssignedManagedIdentity', + 'UserAssignedManagedIdentity'. Default value: "AccessKey" . + :type access_type: str or ~azure.mgmt.apimanagement.models.AccessType + :param access_key: Storage account access key. Required only if + `accessType` is set to `AccessKey`. + :type access_key: str + :param client_id: The Client ID of user assigned managed identity. + Required only if `accessType` is set to `UserAssignedManagedIdentity`. + :type client_id: str """ _validation = { 'storage_account': {'required': True}, - 'access_key': {'required': True}, 'container_name': {'required': True}, 'backup_name': {'required': True}, } _attribute_map = { 'storage_account': {'key': 'storageAccount', 'type': 'str'}, - 'access_key': {'key': 'accessKey', 'type': 'str'}, 'container_name': {'key': 'containerName', 'type': 'str'}, 'backup_name': {'key': 'backupName', 'type': 'str'}, + 'access_type': {'key': 'accessType', 'type': 'str'}, + 'access_key': {'key': 'accessKey', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, } def __init__(self, **kwargs): super(ApiManagementServiceBackupRestoreParameters, self).__init__(**kwargs) self.storage_account = kwargs.get('storage_account', None) - self.access_key = kwargs.get('access_key', None) self.container_name = kwargs.get('container_name', None) self.backup_name = kwargs.get('backup_name', None) + self.access_type = kwargs.get('access_type', "AccessKey") + self.access_key = kwargs.get('access_key', None) + self.client_id = kwargs.get('client_id', None) class ApiManagementServiceBaseProperties(Model): @@ -863,6 +982,11 @@ class ApiManagementServiceBaseProperties(Model): Internal Virtual Network. Available only for Basic, Standard, Premium and Isolated SKU. :vartype private_ip_addresses: list[str] + :param public_ip_address_id: Public Standard SKU IP V4 based IP address to + be associated with Virtual Network deployed service in the region. + Supported only for Developer and Premium SKU being deployed in Virtual + Network. + :type public_ip_address_id: str :param virtual_network_configuration: Virtual network configuration of the API Management service. :type virtual_network_configuration: @@ -969,6 +1093,7 @@ class ApiManagementServiceBaseProperties(Model): 'hostname_configurations': {'key': 'hostnameConfigurations', 'type': '[HostnameConfiguration]'}, 'public_ip_addresses': {'key': 'publicIPAddresses', 'type': '[str]'}, 'private_ip_addresses': {'key': 'privateIPAddresses', 'type': '[str]'}, + 'public_ip_address_id': {'key': 'publicIpAddressId', 'type': 'str'}, 'virtual_network_configuration': {'key': 'virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'}, 'additional_locations': {'key': 'additionalLocations', 'type': '[AdditionalLocation]'}, 'custom_properties': {'key': 'customProperties', 'type': '{str}'}, @@ -995,6 +1120,7 @@ def __init__(self, **kwargs): self.hostname_configurations = kwargs.get('hostname_configurations', None) self.public_ip_addresses = None self.private_ip_addresses = None + self.public_ip_address_id = kwargs.get('public_ip_address_id', None) self.virtual_network_configuration = kwargs.get('virtual_network_configuration', None) self.additional_locations = kwargs.get('additional_locations', None) self.custom_properties = kwargs.get('custom_properties', None) @@ -1257,6 +1383,11 @@ class ApiManagementServiceResource(ApimResource): Internal Virtual Network. Available only for Basic, Standard, Premium and Isolated SKU. :vartype private_ip_addresses: list[str] + :param public_ip_address_id: Public Standard SKU IP V4 based IP address to + be associated with Virtual Network deployed service in the region. + Supported only for Developer and Premium SKU being deployed in Virtual + Network. + :type public_ip_address_id: str :param virtual_network_configuration: Virtual network configuration of the API Management service. :type virtual_network_configuration: @@ -1392,6 +1523,7 @@ class ApiManagementServiceResource(ApimResource): 'hostname_configurations': {'key': 'properties.hostnameConfigurations', 'type': '[HostnameConfiguration]'}, 'public_ip_addresses': {'key': 'properties.publicIPAddresses', 'type': '[str]'}, 'private_ip_addresses': {'key': 'properties.privateIPAddresses', 'type': '[str]'}, + 'public_ip_address_id': {'key': 'properties.publicIpAddressId', 'type': 'str'}, 'virtual_network_configuration': {'key': 'properties.virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'}, 'additional_locations': {'key': 'properties.additionalLocations', 'type': '[AdditionalLocation]'}, 'custom_properties': {'key': 'properties.customProperties', 'type': '{str}'}, @@ -1425,6 +1557,7 @@ def __init__(self, **kwargs): self.hostname_configurations = kwargs.get('hostname_configurations', None) self.public_ip_addresses = None self.private_ip_addresses = None + self.public_ip_address_id = kwargs.get('public_ip_address_id', None) self.virtual_network_configuration = kwargs.get('virtual_network_configuration', None) self.additional_locations = kwargs.get('additional_locations', None) self.custom_properties = kwargs.get('custom_properties', None) @@ -1531,6 +1664,11 @@ class ApiManagementServiceUpdateParameters(ApimResource): Internal Virtual Network. Available only for Basic, Standard, Premium and Isolated SKU. :vartype private_ip_addresses: list[str] + :param public_ip_address_id: Public Standard SKU IP V4 based IP address to + be associated with Virtual Network deployed service in the region. + Supported only for Developer and Premium SKU being deployed in Virtual + Network. + :type public_ip_address_id: str :param virtual_network_configuration: Virtual network configuration of the API Management service. :type virtual_network_configuration: @@ -1659,6 +1797,7 @@ class ApiManagementServiceUpdateParameters(ApimResource): 'hostname_configurations': {'key': 'properties.hostnameConfigurations', 'type': '[HostnameConfiguration]'}, 'public_ip_addresses': {'key': 'properties.publicIPAddresses', 'type': '[str]'}, 'private_ip_addresses': {'key': 'properties.privateIPAddresses', 'type': '[str]'}, + 'public_ip_address_id': {'key': 'properties.publicIpAddressId', 'type': 'str'}, 'virtual_network_configuration': {'key': 'properties.virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'}, 'additional_locations': {'key': 'properties.additionalLocations', 'type': '[AdditionalLocation]'}, 'custom_properties': {'key': 'properties.customProperties', 'type': '{str}'}, @@ -1690,6 +1829,7 @@ def __init__(self, **kwargs): self.hostname_configurations = kwargs.get('hostname_configurations', None) self.public_ip_addresses = None self.private_ip_addresses = None + self.public_ip_address_id = kwargs.get('public_ip_address_id', None) self.virtual_network_configuration = kwargs.get('virtual_network_configuration', None) self.additional_locations = kwargs.get('additional_locations', None) self.custom_properties = kwargs.get('custom_properties', None) @@ -2202,21 +2342,22 @@ class ApiTagResourceContractProperties(ApiEntityBaseContract): available. :type subscription_key_parameter_names: ~azure.mgmt.apimanagement.models.SubscriptionKeyParameterNamesContract - :param api_type: Type of API. Possible values include: 'http', 'soap' + :param api_type: Type of API. Possible values include: 'http', 'soap', + 'websocket', 'graphql' :type api_type: str or ~azure.mgmt.apimanagement.models.ApiType - :param api_revision: Describes the Revision of the Api. If no value is + :param api_revision: Describes the revision of the API. If no value is provided, default revision 1 is created :type api_revision: str - :param api_version: Indicates the Version identifier of the API if the API + :param api_version: Indicates the version identifier of the API if the API is versioned :type api_version: str :param is_current: Indicates if API revision is current api revision. :type is_current: bool :ivar is_online: Indicates if API revision is accessible via the gateway. :vartype is_online: bool - :param api_revision_description: Description of the Api Revision. + :param api_revision_description: Description of the API Revision. :type api_revision_description: str - :param api_version_description: Description of the Api Version. + :param api_version_description: Description of the API Version. :type api_version_description: str :param api_version_set_id: A resource identifier for the related ApiVersionSet. @@ -2224,6 +2365,13 @@ class ApiTagResourceContractProperties(ApiEntityBaseContract): :param subscription_required: Specifies whether an API or Product subscription is required for accessing the API. :type subscription_required: bool + :param terms_of_service_url: A URL to the Terms of Service for the API. + MUST be in the format of a URL. + :type terms_of_service_url: str + :param contact: Contact information for the API. + :type contact: ~azure.mgmt.apimanagement.models.ApiContactInformation + :param license: License information for the API. + :type license: ~azure.mgmt.apimanagement.models.ApiLicenseInformation :param id: API identifier in the form /apis/{apiId}. :type id: str :param name: API name. @@ -2265,11 +2413,14 @@ class ApiTagResourceContractProperties(ApiEntityBaseContract): 'api_version_description': {'key': 'apiVersionDescription', 'type': 'str'}, 'api_version_set_id': {'key': 'apiVersionSetId', 'type': 'str'}, 'subscription_required': {'key': 'subscriptionRequired', 'type': 'bool'}, + 'terms_of_service_url': {'key': 'termsOfServiceUrl', 'type': 'str'}, + 'contact': {'key': 'contact', 'type': 'ApiContactInformation'}, + 'license': {'key': 'license', 'type': 'ApiLicenseInformation'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'service_url': {'key': 'serviceUrl', 'type': 'str'}, 'path': {'key': 'path', 'type': 'str'}, - 'protocols': {'key': 'protocols', 'type': '[Protocol]'}, + 'protocols': {'key': 'protocols', 'type': '[str]'}, } def __init__(self, **kwargs): @@ -2298,21 +2449,22 @@ class ApiUpdateContract(Model): available. :type subscription_key_parameter_names: ~azure.mgmt.apimanagement.models.SubscriptionKeyParameterNamesContract - :param api_type: Type of API. Possible values include: 'http', 'soap' + :param api_type: Type of API. Possible values include: 'http', 'soap', + 'websocket', 'graphql' :type api_type: str or ~azure.mgmt.apimanagement.models.ApiType - :param api_revision: Describes the Revision of the Api. If no value is + :param api_revision: Describes the revision of the API. If no value is provided, default revision 1 is created :type api_revision: str - :param api_version: Indicates the Version identifier of the API if the API + :param api_version: Indicates the version identifier of the API if the API is versioned :type api_version: str :param is_current: Indicates if API revision is current api revision. :type is_current: bool :ivar is_online: Indicates if API revision is accessible via the gateway. :vartype is_online: bool - :param api_revision_description: Description of the Api Revision. + :param api_revision_description: Description of the API Revision. :type api_revision_description: str - :param api_version_description: Description of the Api Version. + :param api_version_description: Description of the API Version. :type api_version_description: str :param api_version_set_id: A resource identifier for the related ApiVersionSet. @@ -2320,6 +2472,13 @@ class ApiUpdateContract(Model): :param subscription_required: Specifies whether an API or Product subscription is required for accessing the API. :type subscription_required: bool + :param terms_of_service_url: A URL to the Terms of Service for the API. + MUST be in the format of a URL. + :type terms_of_service_url: str + :param contact: Contact information for the API. + :type contact: ~azure.mgmt.apimanagement.models.ApiContactInformation + :param license: License information for the API. + :type license: ~azure.mgmt.apimanagement.models.ApiLicenseInformation :param display_name: API name. :type display_name: str :param service_url: Absolute URL of the backend service implementing this @@ -2359,10 +2518,13 @@ class ApiUpdateContract(Model): 'api_version_description': {'key': 'properties.apiVersionDescription', 'type': 'str'}, 'api_version_set_id': {'key': 'properties.apiVersionSetId', 'type': 'str'}, 'subscription_required': {'key': 'properties.subscriptionRequired', 'type': 'bool'}, + 'terms_of_service_url': {'key': 'properties.termsOfServiceUrl', 'type': 'str'}, + 'contact': {'key': 'properties.contact', 'type': 'ApiContactInformation'}, + 'license': {'key': 'properties.license', 'type': 'ApiLicenseInformation'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'service_url': {'key': 'properties.serviceUrl', 'type': 'str'}, 'path': {'key': 'properties.path', 'type': 'str'}, - 'protocols': {'key': 'properties.protocols', 'type': '[Protocol]'}, + 'protocols': {'key': 'properties.protocols', 'type': '[str]'}, } def __init__(self, **kwargs): @@ -2379,6 +2541,9 @@ def __init__(self, **kwargs): self.api_version_description = kwargs.get('api_version_description', None) self.api_version_set_id = kwargs.get('api_version_set_id', None) self.subscription_required = kwargs.get('subscription_required', None) + self.terms_of_service_url = kwargs.get('terms_of_service_url', None) + self.contact = kwargs.get('contact', None) + self.license = kwargs.get('license', None) self.display_name = kwargs.get('display_name', None) self.service_url = kwargs.get('service_url', None) self.path = kwargs.get('path', None) @@ -2403,7 +2568,7 @@ def __init__(self, **kwargs): class ApiVersionSetContract(Resource): - """Api Version Set Contract details. + """API Version Set Contract details. Variables are only populated by the server, and will be ignored when sending a request. @@ -2506,7 +2671,7 @@ def __init__(self, **kwargs): class ApiVersionSetEntityBase(Model): - """Api Version set base parameters. + """API Version set base parameters. :param description: Description of API Version Set. :type description: str @@ -2537,7 +2702,7 @@ def __init__(self, **kwargs): class ApiVersionSetUpdateParameters(Model): - """Parameters to update or create an Api Version Set Contract. + """Parameters to update or create an API Version Set Contract. :param description: Description of API Version Set. :type description: str @@ -3031,7 +3196,7 @@ class BackendBaseParameters(Model): :param description: Backend Description. :type description: str :param resource_id: Management Uri of the Resource in External System. - This url can be the Arm Resource Id of Logic Apps, Function Apps or Api + This url can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. :type resource_id: str :param properties: Backend Properties contract @@ -3091,7 +3256,7 @@ class BackendContract(Resource): :param description: Backend Description. :type description: str :param resource_id: Management Uri of the Resource in External System. - This url can be the Arm Resource Id of Logic Apps, Function Apps or Api + This url can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. :type resource_id: str :param properties: Backend Properties contract @@ -3351,7 +3516,7 @@ class BackendUpdateParameters(Model): :param description: Backend Description. :type description: str :param resource_id: Management Uri of the Resource in External System. - This url can be the Arm Resource Id of Logic Apps, Function Apps or Api + This url can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. :type resource_id: str :param properties: Backend Properties contract @@ -3881,7 +4046,7 @@ def __init__(self, **kwargs): class DeletedServiceContract(Resource): - """Deleted Api Management Service information. + """Deleted API Management Service information. Variables are only populated by the server, and will be ignored when sending a request. @@ -3902,7 +4067,7 @@ class DeletedServiceContract(Resource): date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. :type deletion_date: datetime - :ivar location: Api Management Service Master Location. + :ivar location: API Management Service Master Location. :vartype location: str """ @@ -4063,7 +4228,7 @@ class EmailTemplateContract(Resource): :param description: Description of the Email Template. :type description: str :ivar is_default: Whether the template is the default template provided by - Api Management or has been edited. + API Management or has been edited. :vartype is_default: bool :param parameters: Email Template Parameter values. :type parameters: @@ -4715,6 +4880,14 @@ class HostnameConfiguration(Model): :type negotiate_client_certificate: bool :param certificate: Certificate information. :type certificate: ~azure.mgmt.apimanagement.models.CertificateInformation + :param certificate_source: Certificate Source. Possible values include: + 'Managed', 'KeyVault', 'Custom', 'BuiltIn' + :type certificate_source: str or + ~azure.mgmt.apimanagement.models.CertificateSource + :param certificate_status: Certificate Status. Possible values include: + 'Completed', 'Failed', 'InProgress' + :type certificate_status: str or + ~azure.mgmt.apimanagement.models.CertificateStatus """ _validation = { @@ -4732,6 +4905,8 @@ class HostnameConfiguration(Model): 'default_ssl_binding': {'key': 'defaultSslBinding', 'type': 'bool'}, 'negotiate_client_certificate': {'key': 'negotiateClientCertificate', 'type': 'bool'}, 'certificate': {'key': 'certificate', 'type': 'CertificateInformation'}, + 'certificate_source': {'key': 'certificateSource', 'type': 'str'}, + 'certificate_status': {'key': 'certificateStatus', 'type': 'str'}, } def __init__(self, **kwargs): @@ -4745,6 +4920,8 @@ def __init__(self, **kwargs): self.default_ssl_binding = kwargs.get('default_ssl_binding', False) self.negotiate_client_certificate = kwargs.get('negotiate_client_certificate', False) self.certificate = kwargs.get('certificate', None) + self.certificate_source = kwargs.get('certificate_source', None) + self.certificate_status = kwargs.get('certificate_status', None) class HttpMessageDiagnostic(Model): @@ -5322,7 +5499,7 @@ class KeyVaultContractCreateProperties(Model): """Create keyVault contract details. :param secret_identifier: Key vault secret identifier for fetching secret. - Providing a versioned secret will prevent auto-refresh. This requires Api + Providing a versioned secret will prevent auto-refresh. This requires API Management service to be configured with aka.ms/apimmsi :type secret_identifier: str :param identity_client_id: SystemAssignedIdentity or UserAssignedIdentity @@ -5345,7 +5522,7 @@ class KeyVaultContractProperties(KeyVaultContractCreateProperties): """KeyVault contract details. :param secret_identifier: Key vault secret identifier for fetching secret. - Providing a versioned secret will prevent auto-refresh. This requires Api + Providing a versioned secret will prevent auto-refresh. This requires API Management service to be configured with aka.ms/apimmsi :type secret_identifier: str :param identity_client_id: SystemAssignedIdentity or UserAssignedIdentity @@ -5958,7 +6135,7 @@ def __init__(self, **kwargs): class OperationContract(Resource): - """Api Operation details. + """API Operation details. Variables are only populated by the server, and will be ignored when sending a request. @@ -6060,7 +6237,7 @@ def __init__(self, **kwargs): class OperationEntityBaseContract(Model): - """Api Operation Entity Base Contract details. + """API Operation Entity Base Contract details. :param template_parameters: Collection of URL template parameters. :type template_parameters: @@ -6097,14 +6274,20 @@ def __init__(self, **kwargs): self.policies = kwargs.get('policies', None) -class OperationResultContract(Model): - """Operation Result. +class OperationResultContract(Resource): + """Long Running Git Operation Results. Variables are only populated by the server, and will be ignored when sending a request. - :param id: Operation result identifier. - :type id: str + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type for API Management resource. + :vartype type: str + :param operation_result_contract_id: Operation result identifier. + :type operation_result_contract_id: str :param status: Status of an async operation. Possible values include: 'Started', 'InProgress', 'Succeeded', 'Failed' :type status: str or ~azure.mgmt.apimanagement.models.AsyncOperationStatus @@ -6129,22 +6312,28 @@ class OperationResultContract(Model): """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, 'action_log': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'AsyncOperationStatus'}, - 'started': {'key': 'started', 'type': 'iso-8601'}, - 'updated': {'key': 'updated', 'type': 'iso-8601'}, - 'result_info': {'key': 'resultInfo', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'ErrorResponseBody'}, - 'action_log': {'key': 'actionLog', 'type': '[OperationResultLogItemContract]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'operation_result_contract_id': {'key': 'properties.id', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'AsyncOperationStatus'}, + 'started': {'key': 'properties.started', 'type': 'iso-8601'}, + 'updated': {'key': 'properties.updated', 'type': 'iso-8601'}, + 'result_info': {'key': 'properties.resultInfo', 'type': 'str'}, + 'error': {'key': 'properties.error', 'type': 'ErrorResponseBody'}, + 'action_log': {'key': 'properties.actionLog', 'type': '[OperationResultLogItemContract]'}, } def __init__(self, **kwargs): super(OperationResultContract, self).__init__(**kwargs) - self.id = kwargs.get('id', None) + self.operation_result_contract_id = kwargs.get('operation_result_contract_id', None) self.status = kwargs.get('status', None) self.started = kwargs.get('started', None) self.updated = kwargs.get('updated', None) @@ -6187,11 +6376,11 @@ class OperationTagResourceContractProperties(Model): :type id: str :ivar name: Operation name. :vartype name: str - :ivar api_name: Api Name. + :ivar api_name: API Name. :vartype api_name: str - :ivar api_revision: Api Revision. + :ivar api_revision: API Revision. :vartype api_revision: str - :ivar api_version: Api Version. + :ivar api_version: API Version. :vartype api_version: str :ivar description: Operation Description. :vartype description: str @@ -6238,7 +6427,7 @@ def __init__(self, **kwargs): class OperationUpdateContract(Model): - """Api Operation Update Contract details. + """API Operation Update Contract details. :param template_parameters: Collection of URL template parameters. :type template_parameters: @@ -6309,6 +6498,10 @@ class ParameterContract(Model): :type required: bool :param values: Parameter values. :type values: list[str] + :param schema_id: Schema identifier. + :type schema_id: str + :param type_name: Type name defined by the schema. + :type type_name: str """ _validation = { @@ -6323,6 +6516,8 @@ class ParameterContract(Model): 'default_value': {'key': 'defaultValue', 'type': 'str'}, 'required': {'key': 'required', 'type': 'bool'}, 'values': {'key': 'values', 'type': '[str]'}, + 'schema_id': {'key': 'schemaId', 'type': 'str'}, + 'type_name': {'key': 'typeName', 'type': 'str'}, } def __init__(self, **kwargs): @@ -6333,6 +6528,8 @@ def __init__(self, **kwargs): self.default_value = kwargs.get('default_value', None) self.required = kwargs.get('required', None) self.values = kwargs.get('values', None) + self.schema_id = kwargs.get('schema_id', None) + self.type_name = kwargs.get('type_name', None) class PipelineDiagnosticSettings(Model): @@ -6532,7 +6729,7 @@ def __init__(self, **kwargs): class PortalRevisionContract(Resource): - """Portal revisions contract details. + """Portal Revision's contract details. Variables are only populated by the server, and will be ignored when sending a request. @@ -6547,13 +6744,13 @@ class PortalRevisionContract(Resource): :type description: str :ivar status_details: Portal revision publishing status details. :vartype status_details: str - :ivar status: Portal revision publishing status. Possible values include: + :ivar status: Status of the portal's revision. Possible values include: 'pending', 'publishing', 'completed', 'failed' :vartype status: str or ~azure.mgmt.apimanagement.models.PortalRevisionStatus - :param is_current: Indicates if the Portal Revision is public. + :param is_current: Indicates if the portal's revision is public. :type is_current: bool - :ivar created_date_time: Portal revision creation date and time. + :ivar created_date_time: Portal's revision creation date and time. :vartype created_date_time: datetime :ivar updated_date_time: Last updated date and time. :vartype updated_date_time: datetime @@ -7902,12 +8099,8 @@ class SchemaContract(Resource): `OpenApi` Schema use `application/vnd.oai.openapi.components+json`
- `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`. :type content_type: str - :param value: Json escaped string defining the document representing the - Schema. Used for schemas other than Swagger/OpenAPI. - :type value: str - :param definitions: Types definitions. Used for Swagger/OpenAPI schemas - only, null otherwise. - :type definitions: object + :param document: Create or update Properties of the Schema Document. + :type document: object """ _validation = { @@ -7922,15 +8115,13 @@ class SchemaContract(Resource): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'content_type': {'key': 'properties.contentType', 'type': 'str'}, - 'value': {'key': 'properties.document.value', 'type': 'str'}, - 'definitions': {'key': 'properties.document.definitions', 'type': 'object'}, + 'document': {'key': 'properties\\.document', 'type': 'object'}, } def __init__(self, **kwargs): super(SchemaContract, self).__init__(**kwargs) self.content_type = kwargs.get('content_type', None) - self.value = kwargs.get('value', None) - self.definitions = kwargs.get('definitions', None) + self.document = kwargs.get('document', None) class SubscriptionContract(Resource): @@ -8396,7 +8587,7 @@ class TagResourceContract(Model): :param tag: Required. Tag associated with the resource. :type tag: ~azure.mgmt.apimanagement.models.TagTagResourceContractProperties - :param api: Api associated with the tag. + :param api: API associated with the tag. :type api: ~azure.mgmt.apimanagement.models.ApiTagResourceContractProperties :param operation: Operation associated with the tag. @@ -8451,7 +8642,7 @@ def __init__(self, **kwargs): class TenantConfigurationSyncStateContract(Model): - """Tenant Configuration Synchronization State. + """Result of Tenant Configuration Sync State. :param branch: The name of Git branch. :type branch: str @@ -8474,16 +8665,20 @@ class TenantConfigurationSyncStateContract(Model): change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. :type configuration_change_date: datetime + :param last_operation_id: Most recent tenant configuration operation + identifier + :type last_operation_id: str """ _attribute_map = { - 'branch': {'key': 'branch', 'type': 'str'}, - 'commit_id': {'key': 'commitId', 'type': 'str'}, - 'is_export': {'key': 'isExport', 'type': 'bool'}, - 'is_synced': {'key': 'isSynced', 'type': 'bool'}, - 'is_git_enabled': {'key': 'isGitEnabled', 'type': 'bool'}, - 'sync_date': {'key': 'syncDate', 'type': 'iso-8601'}, - 'configuration_change_date': {'key': 'configurationChangeDate', 'type': 'iso-8601'}, + 'branch': {'key': 'properties.branch', 'type': 'str'}, + 'commit_id': {'key': 'properties.commitId', 'type': 'str'}, + 'is_export': {'key': 'properties.isExport', 'type': 'bool'}, + 'is_synced': {'key': 'properties.isSynced', 'type': 'bool'}, + 'is_git_enabled': {'key': 'properties.isGitEnabled', 'type': 'bool'}, + 'sync_date': {'key': 'properties.syncDate', 'type': 'iso-8601'}, + 'configuration_change_date': {'key': 'properties.configurationChangeDate', 'type': 'iso-8601'}, + 'last_operation_id': {'key': 'properties.lastOperationId', 'type': 'str'}, } def __init__(self, **kwargs): @@ -8495,6 +8690,7 @@ def __init__(self, **kwargs): self.is_git_enabled = kwargs.get('is_git_enabled', None) self.sync_date = kwargs.get('sync_date', None) self.configuration_change_date = kwargs.get('configuration_change_date', None) + self.last_operation_id = kwargs.get('last_operation_id', None) class TenantSettingsContract(Resource): diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_models_py3.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_models_py3.py index 8b3fd08f4490..247e6bd26e4a 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_models_py3.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_models_py3.py @@ -197,6 +197,10 @@ class AdditionalLocation(Model): Network in a particular additional location. Available only for Basic, Standard, Premium and Isolated SKU. :vartype private_ip_addresses: list[str] + :param public_ip_address_id: Public Standard SKU IP V4 based IP address to + be associated with Virtual Network deployed service in the location. + Supported only for Premium SKU being deployed in Virtual Network. + :type public_ip_address_id: str :param virtual_network_configuration: Virtual network configuration for the location. :type virtual_network_configuration: @@ -224,25 +228,53 @@ class AdditionalLocation(Model): 'zones': {'key': 'zones', 'type': '[str]'}, 'public_ip_addresses': {'key': 'publicIPAddresses', 'type': '[str]'}, 'private_ip_addresses': {'key': 'privateIPAddresses', 'type': '[str]'}, + 'public_ip_address_id': {'key': 'publicIpAddressId', 'type': 'str'}, 'virtual_network_configuration': {'key': 'virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'}, 'gateway_regional_url': {'key': 'gatewayRegionalUrl', 'type': 'str'}, 'disable_gateway': {'key': 'disableGateway', 'type': 'bool'}, } - def __init__(self, *, location: str, sku, zones=None, virtual_network_configuration=None, disable_gateway: bool=False, **kwargs) -> None: + def __init__(self, *, location: str, sku, zones=None, public_ip_address_id: str=None, virtual_network_configuration=None, disable_gateway: bool=False, **kwargs) -> None: super(AdditionalLocation, self).__init__(**kwargs) self.location = location self.sku = sku self.zones = zones self.public_ip_addresses = None self.private_ip_addresses = None + self.public_ip_address_id = public_ip_address_id self.virtual_network_configuration = virtual_network_configuration self.gateway_regional_url = None self.disable_gateway = disable_gateway +class ApiContactInformation(Model): + """API contact information. + + :param name: The identifying name of the contact person/organization + :type name: str + :param url: The URL pointing to the contact information. MUST be in the + format of a URL + :type url: str + :param email: The email address of the contact person/organization. MUST + be in the format of an email address + :type email: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'email': {'key': 'email', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, url: str=None, email: str=None, **kwargs) -> None: + super(ApiContactInformation, self).__init__(**kwargs) + self.name = name + self.url = url + self.email = email + + class ApiContract(Resource): - """Api details. + """API details. Variables are only populated by the server, and will be ignored when sending a request. @@ -266,21 +298,22 @@ class ApiContract(Resource): available. :type subscription_key_parameter_names: ~azure.mgmt.apimanagement.models.SubscriptionKeyParameterNamesContract - :param api_type: Type of API. Possible values include: 'http', 'soap' + :param api_type: Type of API. Possible values include: 'http', 'soap', + 'websocket', 'graphql' :type api_type: str or ~azure.mgmt.apimanagement.models.ApiType - :param api_revision: Describes the Revision of the Api. If no value is + :param api_revision: Describes the revision of the API. If no value is provided, default revision 1 is created :type api_revision: str - :param api_version: Indicates the Version identifier of the API if the API + :param api_version: Indicates the version identifier of the API if the API is versioned :type api_version: str :param is_current: Indicates if API revision is current api revision. :type is_current: bool :ivar is_online: Indicates if API revision is accessible via the gateway. :vartype is_online: bool - :param api_revision_description: Description of the Api Revision. + :param api_revision_description: Description of the API Revision. :type api_revision_description: str - :param api_version_description: Description of the Api Version. + :param api_version_description: Description of the API Version. :type api_version_description: str :param api_version_set_id: A resource identifier for the related ApiVersionSet. @@ -288,6 +321,13 @@ class ApiContract(Resource): :param subscription_required: Specifies whether an API or Product subscription is required for accessing the API. :type subscription_required: bool + :param terms_of_service_url: A URL to the Terms of Service for the API. + MUST be in the format of a URL. + :type terms_of_service_url: str + :param contact: Contact information for the API. + :type contact: ~azure.mgmt.apimanagement.models.ApiContactInformation + :param license: License information for the API. + :type license: ~azure.mgmt.apimanagement.models.ApiLicenseInformation :param source_api_id: API identifier of the source API. :type source_api_id: str :param display_name: API name. Must be 1 to 300 characters long. @@ -338,15 +378,18 @@ class ApiContract(Resource): 'api_version_description': {'key': 'properties.apiVersionDescription', 'type': 'str'}, 'api_version_set_id': {'key': 'properties.apiVersionSetId', 'type': 'str'}, 'subscription_required': {'key': 'properties.subscriptionRequired', 'type': 'bool'}, + 'terms_of_service_url': {'key': 'properties.termsOfServiceUrl', 'type': 'str'}, + 'contact': {'key': 'properties.contact', 'type': 'ApiContactInformation'}, + 'license': {'key': 'properties.license', 'type': 'ApiLicenseInformation'}, 'source_api_id': {'key': 'properties.sourceApiId', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'service_url': {'key': 'properties.serviceUrl', 'type': 'str'}, 'path': {'key': 'properties.path', 'type': 'str'}, - 'protocols': {'key': 'properties.protocols', 'type': '[Protocol]'}, + 'protocols': {'key': 'properties.protocols', 'type': '[str]'}, 'api_version_set': {'key': 'properties.apiVersionSet', 'type': 'ApiVersionSetContractDetails'}, } - def __init__(self, *, path: str, description: str=None, authentication_settings=None, subscription_key_parameter_names=None, api_type=None, api_revision: str=None, api_version: str=None, is_current: bool=None, api_revision_description: str=None, api_version_description: str=None, api_version_set_id: str=None, subscription_required: bool=None, source_api_id: str=None, display_name: str=None, service_url: str=None, protocols=None, api_version_set=None, **kwargs) -> None: + def __init__(self, *, path: str, description: str=None, authentication_settings=None, subscription_key_parameter_names=None, api_type=None, api_revision: str=None, api_version: str=None, is_current: bool=None, api_revision_description: str=None, api_version_description: str=None, api_version_set_id: str=None, subscription_required: bool=None, terms_of_service_url: str=None, contact=None, license=None, source_api_id: str=None, display_name: str=None, service_url: str=None, protocols=None, api_version_set=None, **kwargs) -> None: super(ApiContract, self).__init__(**kwargs) self.description = description self.authentication_settings = authentication_settings @@ -360,6 +403,9 @@ def __init__(self, *, path: str, description: str=None, authentication_settings= self.api_version_description = api_version_description self.api_version_set_id = api_version_set_id self.subscription_required = subscription_required + self.terms_of_service_url = terms_of_service_url + self.contact = contact + self.license = license self.source_api_id = source_api_id self.display_name = display_name self.service_url = service_url @@ -385,21 +431,22 @@ class ApiEntityBaseContract(Model): available. :type subscription_key_parameter_names: ~azure.mgmt.apimanagement.models.SubscriptionKeyParameterNamesContract - :param api_type: Type of API. Possible values include: 'http', 'soap' + :param api_type: Type of API. Possible values include: 'http', 'soap', + 'websocket', 'graphql' :type api_type: str or ~azure.mgmt.apimanagement.models.ApiType - :param api_revision: Describes the Revision of the Api. If no value is + :param api_revision: Describes the revision of the API. If no value is provided, default revision 1 is created :type api_revision: str - :param api_version: Indicates the Version identifier of the API if the API + :param api_version: Indicates the version identifier of the API if the API is versioned :type api_version: str :param is_current: Indicates if API revision is current api revision. :type is_current: bool :ivar is_online: Indicates if API revision is accessible via the gateway. :vartype is_online: bool - :param api_revision_description: Description of the Api Revision. + :param api_revision_description: Description of the API Revision. :type api_revision_description: str - :param api_version_description: Description of the Api Version. + :param api_version_description: Description of the API Version. :type api_version_description: str :param api_version_set_id: A resource identifier for the related ApiVersionSet. @@ -407,6 +454,13 @@ class ApiEntityBaseContract(Model): :param subscription_required: Specifies whether an API or Product subscription is required for accessing the API. :type subscription_required: bool + :param terms_of_service_url: A URL to the Terms of Service for the API. + MUST be in the format of a URL. + :type terms_of_service_url: str + :param contact: Contact information for the API. + :type contact: ~azure.mgmt.apimanagement.models.ApiContactInformation + :param license: License information for the API. + :type license: ~azure.mgmt.apimanagement.models.ApiLicenseInformation """ _validation = { @@ -430,9 +484,12 @@ class ApiEntityBaseContract(Model): 'api_version_description': {'key': 'apiVersionDescription', 'type': 'str'}, 'api_version_set_id': {'key': 'apiVersionSetId', 'type': 'str'}, 'subscription_required': {'key': 'subscriptionRequired', 'type': 'bool'}, + 'terms_of_service_url': {'key': 'termsOfServiceUrl', 'type': 'str'}, + 'contact': {'key': 'contact', 'type': 'ApiContactInformation'}, + 'license': {'key': 'license', 'type': 'ApiLicenseInformation'}, } - def __init__(self, *, description: str=None, authentication_settings=None, subscription_key_parameter_names=None, api_type=None, api_revision: str=None, api_version: str=None, is_current: bool=None, api_revision_description: str=None, api_version_description: str=None, api_version_set_id: str=None, subscription_required: bool=None, **kwargs) -> None: + def __init__(self, *, description: str=None, authentication_settings=None, subscription_key_parameter_names=None, api_type=None, api_revision: str=None, api_version: str=None, is_current: bool=None, api_revision_description: str=None, api_version_description: str=None, api_version_set_id: str=None, subscription_required: bool=None, terms_of_service_url: str=None, contact=None, license=None, **kwargs) -> None: super(ApiEntityBaseContract, self).__init__(**kwargs) self.description = description self.authentication_settings = authentication_settings @@ -446,10 +503,13 @@ def __init__(self, *, description: str=None, authentication_settings=None, subsc self.api_version_description = api_version_description self.api_version_set_id = api_version_set_id self.subscription_required = subscription_required + self.terms_of_service_url = terms_of_service_url + self.contact = contact + self.license = license class ApiContractProperties(ApiEntityBaseContract): - """Api Entity Properties. + """API Entity Properties. Variables are only populated by the server, and will be ignored when sending a request. @@ -467,21 +527,22 @@ class ApiContractProperties(ApiEntityBaseContract): available. :type subscription_key_parameter_names: ~azure.mgmt.apimanagement.models.SubscriptionKeyParameterNamesContract - :param api_type: Type of API. Possible values include: 'http', 'soap' + :param api_type: Type of API. Possible values include: 'http', 'soap', + 'websocket', 'graphql' :type api_type: str or ~azure.mgmt.apimanagement.models.ApiType - :param api_revision: Describes the Revision of the Api. If no value is + :param api_revision: Describes the revision of the API. If no value is provided, default revision 1 is created :type api_revision: str - :param api_version: Indicates the Version identifier of the API if the API + :param api_version: Indicates the version identifier of the API if the API is versioned :type api_version: str :param is_current: Indicates if API revision is current api revision. :type is_current: bool :ivar is_online: Indicates if API revision is accessible via the gateway. :vartype is_online: bool - :param api_revision_description: Description of the Api Revision. + :param api_revision_description: Description of the API Revision. :type api_revision_description: str - :param api_version_description: Description of the Api Version. + :param api_version_description: Description of the API Version. :type api_version_description: str :param api_version_set_id: A resource identifier for the related ApiVersionSet. @@ -489,6 +550,13 @@ class ApiContractProperties(ApiEntityBaseContract): :param subscription_required: Specifies whether an API or Product subscription is required for accessing the API. :type subscription_required: bool + :param terms_of_service_url: A URL to the Terms of Service for the API. + MUST be in the format of a URL. + :type terms_of_service_url: str + :param contact: Contact information for the API. + :type contact: ~azure.mgmt.apimanagement.models.ApiContactInformation + :param license: License information for the API. + :type license: ~azure.mgmt.apimanagement.models.ApiLicenseInformation :param source_api_id: API identifier of the source API. :type source_api_id: str :param display_name: API name. Must be 1 to 300 characters long. @@ -533,16 +601,19 @@ class ApiContractProperties(ApiEntityBaseContract): 'api_version_description': {'key': 'apiVersionDescription', 'type': 'str'}, 'api_version_set_id': {'key': 'apiVersionSetId', 'type': 'str'}, 'subscription_required': {'key': 'subscriptionRequired', 'type': 'bool'}, + 'terms_of_service_url': {'key': 'termsOfServiceUrl', 'type': 'str'}, + 'contact': {'key': 'contact', 'type': 'ApiContactInformation'}, + 'license': {'key': 'license', 'type': 'ApiLicenseInformation'}, 'source_api_id': {'key': 'sourceApiId', 'type': 'str'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'service_url': {'key': 'serviceUrl', 'type': 'str'}, 'path': {'key': 'path', 'type': 'str'}, - 'protocols': {'key': 'protocols', 'type': '[Protocol]'}, + 'protocols': {'key': 'protocols', 'type': '[str]'}, 'api_version_set': {'key': 'apiVersionSet', 'type': 'ApiVersionSetContractDetails'}, } - def __init__(self, *, path: str, description: str=None, authentication_settings=None, subscription_key_parameter_names=None, api_type=None, api_revision: str=None, api_version: str=None, is_current: bool=None, api_revision_description: str=None, api_version_description: str=None, api_version_set_id: str=None, subscription_required: bool=None, source_api_id: str=None, display_name: str=None, service_url: str=None, protocols=None, api_version_set=None, **kwargs) -> None: - super(ApiContractProperties, self).__init__(description=description, authentication_settings=authentication_settings, subscription_key_parameter_names=subscription_key_parameter_names, api_type=api_type, api_revision=api_revision, api_version=api_version, is_current=is_current, api_revision_description=api_revision_description, api_version_description=api_version_description, api_version_set_id=api_version_set_id, subscription_required=subscription_required, **kwargs) + def __init__(self, *, path: str, description: str=None, authentication_settings=None, subscription_key_parameter_names=None, api_type=None, api_revision: str=None, api_version: str=None, is_current: bool=None, api_revision_description: str=None, api_version_description: str=None, api_version_set_id: str=None, subscription_required: bool=None, terms_of_service_url: str=None, contact=None, license=None, source_api_id: str=None, display_name: str=None, service_url: str=None, protocols=None, api_version_set=None, **kwargs) -> None: + super(ApiContractProperties, self).__init__(description=description, authentication_settings=authentication_settings, subscription_key_parameter_names=subscription_key_parameter_names, api_type=api_type, api_revision=api_revision, api_version=api_version, is_current=is_current, api_revision_description=api_revision_description, api_version_description=api_version_description, api_version_set_id=api_version_set_id, subscription_required=subscription_required, terms_of_service_url=terms_of_service_url, contact=contact, license=license, **kwargs) self.source_api_id = source_api_id self.display_name = display_name self.service_url = service_url @@ -570,21 +641,22 @@ class ApiCreateOrUpdateParameter(Model): available. :type subscription_key_parameter_names: ~azure.mgmt.apimanagement.models.SubscriptionKeyParameterNamesContract - :param api_type: Type of API. Possible values include: 'http', 'soap' + :param api_type: Type of API. Possible values include: 'http', 'soap', + 'websocket', 'graphql' :type api_type: str or ~azure.mgmt.apimanagement.models.ApiType - :param api_revision: Describes the Revision of the Api. If no value is + :param api_revision: Describes the revision of the API. If no value is provided, default revision 1 is created :type api_revision: str - :param api_version: Indicates the Version identifier of the API if the API + :param api_version: Indicates the version identifier of the API if the API is versioned :type api_version: str :param is_current: Indicates if API revision is current api revision. :type is_current: bool :ivar is_online: Indicates if API revision is accessible via the gateway. :vartype is_online: bool - :param api_revision_description: Description of the Api Revision. + :param api_revision_description: Description of the API Revision. :type api_revision_description: str - :param api_version_description: Description of the Api Version. + :param api_version_description: Description of the API Version. :type api_version_description: str :param api_version_set_id: A resource identifier for the related ApiVersionSet. @@ -592,6 +664,13 @@ class ApiCreateOrUpdateParameter(Model): :param subscription_required: Specifies whether an API or Product subscription is required for accessing the API. :type subscription_required: bool + :param terms_of_service_url: A URL to the Terms of Service for the API. + MUST be in the format of a URL. + :type terms_of_service_url: str + :param contact: Contact information for the API. + :type contact: ~azure.mgmt.apimanagement.models.ApiContactInformation + :param license: License information for the API. + :type license: ~azure.mgmt.apimanagement.models.ApiLicenseInformation :param source_api_id: API identifier of the source API. :type source_api_id: str :param display_name: API name. Must be 1 to 300 characters long. @@ -615,16 +694,18 @@ class ApiCreateOrUpdateParameter(Model): :param format: Format of the Content in which the API is getting imported. Possible values include: 'wadl-xml', 'wadl-link-json', 'swagger-json', 'swagger-link-json', 'wsdl', 'wsdl-link', 'openapi', 'openapi+json', - 'openapi-link', 'openapi+json-link' + 'openapi-link', 'openapi+json-link', 'graphql-link' :type format: str or ~azure.mgmt.apimanagement.models.ContentFormat :param wsdl_selector: Criteria to limit import of WSDL to a subset of the document. :type wsdl_selector: ~azure.mgmt.apimanagement.models.ApiCreateOrUpdatePropertiesWsdlSelector - :param soap_api_type: Type of Api to create. - * `http` creates a SOAP to REST API - * `soap` creates a SOAP pass-through API. Possible values include: - 'SoapToRest', 'SoapPassThrough' + :param soap_api_type: Type of API to create. + * `http` creates a REST API + * `soap` creates a SOAP pass-through API + * `websocket` creates websocket API + * `graphql` creates GraphQL API. Possible values include: 'SoapToRest', + 'SoapPassThrough', 'WebSocket', 'GraphQL' :type soap_api_type: str or ~azure.mgmt.apimanagement.models.SoapApiType """ @@ -652,11 +733,14 @@ class ApiCreateOrUpdateParameter(Model): 'api_version_description': {'key': 'properties.apiVersionDescription', 'type': 'str'}, 'api_version_set_id': {'key': 'properties.apiVersionSetId', 'type': 'str'}, 'subscription_required': {'key': 'properties.subscriptionRequired', 'type': 'bool'}, + 'terms_of_service_url': {'key': 'properties.termsOfServiceUrl', 'type': 'str'}, + 'contact': {'key': 'properties.contact', 'type': 'ApiContactInformation'}, + 'license': {'key': 'properties.license', 'type': 'ApiLicenseInformation'}, 'source_api_id': {'key': 'properties.sourceApiId', 'type': 'str'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'service_url': {'key': 'properties.serviceUrl', 'type': 'str'}, 'path': {'key': 'properties.path', 'type': 'str'}, - 'protocols': {'key': 'properties.protocols', 'type': '[Protocol]'}, + 'protocols': {'key': 'properties.protocols', 'type': '[str]'}, 'api_version_set': {'key': 'properties.apiVersionSet', 'type': 'ApiVersionSetContractDetails'}, 'value': {'key': 'properties.value', 'type': 'str'}, 'format': {'key': 'properties.format', 'type': 'str'}, @@ -664,7 +748,7 @@ class ApiCreateOrUpdateParameter(Model): 'soap_api_type': {'key': 'properties.apiType', 'type': 'str'}, } - def __init__(self, *, path: str, description: str=None, authentication_settings=None, subscription_key_parameter_names=None, api_type=None, api_revision: str=None, api_version: str=None, is_current: bool=None, api_revision_description: str=None, api_version_description: str=None, api_version_set_id: str=None, subscription_required: bool=None, source_api_id: str=None, display_name: str=None, service_url: str=None, protocols=None, api_version_set=None, value: str=None, format=None, wsdl_selector=None, soap_api_type=None, **kwargs) -> None: + def __init__(self, *, path: str, description: str=None, authentication_settings=None, subscription_key_parameter_names=None, api_type=None, api_revision: str=None, api_version: str=None, is_current: bool=None, api_revision_description: str=None, api_version_description: str=None, api_version_set_id: str=None, subscription_required: bool=None, terms_of_service_url: str=None, contact=None, license=None, source_api_id: str=None, display_name: str=None, service_url: str=None, protocols=None, api_version_set=None, value: str=None, format=None, wsdl_selector=None, soap_api_type=None, **kwargs) -> None: super(ApiCreateOrUpdateParameter, self).__init__(**kwargs) self.description = description self.authentication_settings = authentication_settings @@ -678,6 +762,9 @@ def __init__(self, *, path: str, description: str=None, authentication_settings= self.api_version_description = api_version_description self.api_version_set_id = api_version_set_id self.subscription_required = subscription_required + self.terms_of_service_url = terms_of_service_url + self.contact = contact + self.license = license self.source_api_id = source_api_id self.display_name = display_name self.service_url = service_url @@ -715,12 +802,12 @@ class ApiExportResult(Model): :param id: ResourceId of the API which was exported. :type id: str - :param export_result_format: Format in which the Api Details are exported + :param export_result_format: Format in which the API Details are exported to the Storage Blob with Sas Key valid for 5 minutes. Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'OpenApi' :type export_result_format: str or ~azure.mgmt.apimanagement.models.ExportResultFormat - :param value: The object defining the schema of the exported Api Detail + :param value: The object defining the schema of the exported API Detail :type value: ~azure.mgmt.apimanagement.models.ApiExportResultValue """ @@ -738,7 +825,7 @@ def __init__(self, *, id: str=None, export_result_format=None, value=None, **kwa class ApiExportResultValue(Model): - """The object defining the schema of the exported Api Detail. + """The object defining the schema of the exported API Detail. :param link: Link to the Storage Blob containing the result of the export operation. The Blob Uri is only valid for 5 minutes. @@ -754,6 +841,27 @@ def __init__(self, *, link: str=None, **kwargs) -> None: self.link = link +class ApiLicenseInformation(Model): + """API license information. + + :param name: The license name used for the API + :type name: str + :param url: A URL to the license used for the API. MUST be in the format + of a URL + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, url: str=None, **kwargs) -> None: + super(ApiLicenseInformation, self).__init__(**kwargs) + self.name = name + self.url = url + + class ApiManagementServiceApplyNetworkConfigurationParameters(Model): """Parameter supplied to the Apply Network configuration operation. @@ -778,39 +886,50 @@ class ApiManagementServiceBackupRestoreParameters(Model): All required parameters must be populated in order to send to Azure. - :param storage_account: Required. Azure Cloud Storage account (used to - place/retrieve the backup) name. + :param storage_account: Required. The name of the Azure storage account + (used to place/retrieve the backup). :type storage_account: str - :param access_key: Required. Azure Cloud Storage account (used to - place/retrieve the backup) access key. - :type access_key: str - :param container_name: Required. Azure Cloud Storage blob container name - used to place/retrieve the backup. + :param container_name: Required. The name of the blob container (used to + place/retrieve the backup). :type container_name: str - :param backup_name: Required. The name of the backup file to create. + :param backup_name: Required. The name of the backup file to + create/retrieve. :type backup_name: str + :param access_type: The type of access to be used for the storage account. + Possible values include: 'AccessKey', 'SystemAssignedManagedIdentity', + 'UserAssignedManagedIdentity'. Default value: "AccessKey" . + :type access_type: str or ~azure.mgmt.apimanagement.models.AccessType + :param access_key: Storage account access key. Required only if + `accessType` is set to `AccessKey`. + :type access_key: str + :param client_id: The Client ID of user assigned managed identity. + Required only if `accessType` is set to `UserAssignedManagedIdentity`. + :type client_id: str """ _validation = { 'storage_account': {'required': True}, - 'access_key': {'required': True}, 'container_name': {'required': True}, 'backup_name': {'required': True}, } _attribute_map = { 'storage_account': {'key': 'storageAccount', 'type': 'str'}, - 'access_key': {'key': 'accessKey', 'type': 'str'}, 'container_name': {'key': 'containerName', 'type': 'str'}, 'backup_name': {'key': 'backupName', 'type': 'str'}, + 'access_type': {'key': 'accessType', 'type': 'str'}, + 'access_key': {'key': 'accessKey', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, } - def __init__(self, *, storage_account: str, access_key: str, container_name: str, backup_name: str, **kwargs) -> None: + def __init__(self, *, storage_account: str, container_name: str, backup_name: str, access_type="AccessKey", access_key: str=None, client_id: str=None, **kwargs) -> None: super(ApiManagementServiceBackupRestoreParameters, self).__init__(**kwargs) self.storage_account = storage_account - self.access_key = access_key self.container_name = container_name self.backup_name = backup_name + self.access_type = access_type + self.access_key = access_key + self.client_id = client_id class ApiManagementServiceBaseProperties(Model): @@ -863,6 +982,11 @@ class ApiManagementServiceBaseProperties(Model): Internal Virtual Network. Available only for Basic, Standard, Premium and Isolated SKU. :vartype private_ip_addresses: list[str] + :param public_ip_address_id: Public Standard SKU IP V4 based IP address to + be associated with Virtual Network deployed service in the region. + Supported only for Developer and Premium SKU being deployed in Virtual + Network. + :type public_ip_address_id: str :param virtual_network_configuration: Virtual network configuration of the API Management service. :type virtual_network_configuration: @@ -969,6 +1093,7 @@ class ApiManagementServiceBaseProperties(Model): 'hostname_configurations': {'key': 'hostnameConfigurations', 'type': '[HostnameConfiguration]'}, 'public_ip_addresses': {'key': 'publicIPAddresses', 'type': '[str]'}, 'private_ip_addresses': {'key': 'privateIPAddresses', 'type': '[str]'}, + 'public_ip_address_id': {'key': 'publicIpAddressId', 'type': 'str'}, 'virtual_network_configuration': {'key': 'virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'}, 'additional_locations': {'key': 'additionalLocations', 'type': '[AdditionalLocation]'}, 'custom_properties': {'key': 'customProperties', 'type': '{str}'}, @@ -980,7 +1105,7 @@ class ApiManagementServiceBaseProperties(Model): 'restore': {'key': 'restore', 'type': 'bool'}, } - def __init__(self, *, notification_sender_email: str=None, hostname_configurations=None, virtual_network_configuration=None, additional_locations=None, custom_properties=None, certificates=None, enable_client_certificate: bool=False, disable_gateway: bool=False, virtual_network_type="None", api_version_constraint=None, restore: bool=False, **kwargs) -> None: + def __init__(self, *, notification_sender_email: str=None, hostname_configurations=None, public_ip_address_id: str=None, virtual_network_configuration=None, additional_locations=None, custom_properties=None, certificates=None, enable_client_certificate: bool=False, disable_gateway: bool=False, virtual_network_type="None", api_version_constraint=None, restore: bool=False, **kwargs) -> None: super(ApiManagementServiceBaseProperties, self).__init__(**kwargs) self.notification_sender_email = notification_sender_email self.provisioning_state = None @@ -995,6 +1120,7 @@ def __init__(self, *, notification_sender_email: str=None, hostname_configuratio self.hostname_configurations = hostname_configurations self.public_ip_addresses = None self.private_ip_addresses = None + self.public_ip_address_id = public_ip_address_id self.virtual_network_configuration = virtual_network_configuration self.additional_locations = additional_locations self.custom_properties = custom_properties @@ -1257,6 +1383,11 @@ class ApiManagementServiceResource(ApimResource): Internal Virtual Network. Available only for Basic, Standard, Premium and Isolated SKU. :vartype private_ip_addresses: list[str] + :param public_ip_address_id: Public Standard SKU IP V4 based IP address to + be associated with Virtual Network deployed service in the region. + Supported only for Developer and Premium SKU being deployed in Virtual + Network. + :type public_ip_address_id: str :param virtual_network_configuration: Virtual network configuration of the API Management service. :type virtual_network_configuration: @@ -1392,6 +1523,7 @@ class ApiManagementServiceResource(ApimResource): 'hostname_configurations': {'key': 'properties.hostnameConfigurations', 'type': '[HostnameConfiguration]'}, 'public_ip_addresses': {'key': 'properties.publicIPAddresses', 'type': '[str]'}, 'private_ip_addresses': {'key': 'properties.privateIPAddresses', 'type': '[str]'}, + 'public_ip_address_id': {'key': 'properties.publicIpAddressId', 'type': 'str'}, 'virtual_network_configuration': {'key': 'properties.virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'}, 'additional_locations': {'key': 'properties.additionalLocations', 'type': '[AdditionalLocation]'}, 'custom_properties': {'key': 'properties.customProperties', 'type': '{str}'}, @@ -1410,7 +1542,7 @@ class ApiManagementServiceResource(ApimResource): 'zones': {'key': 'zones', 'type': '[str]'}, } - def __init__(self, *, publisher_email: str, publisher_name: str, sku, location: str, tags=None, notification_sender_email: str=None, hostname_configurations=None, virtual_network_configuration=None, additional_locations=None, custom_properties=None, certificates=None, enable_client_certificate: bool=False, disable_gateway: bool=False, virtual_network_type="None", api_version_constraint=None, restore: bool=False, identity=None, zones=None, **kwargs) -> None: + def __init__(self, *, publisher_email: str, publisher_name: str, sku, location: str, tags=None, notification_sender_email: str=None, hostname_configurations=None, public_ip_address_id: str=None, virtual_network_configuration=None, additional_locations=None, custom_properties=None, certificates=None, enable_client_certificate: bool=False, disable_gateway: bool=False, virtual_network_type="None", api_version_constraint=None, restore: bool=False, identity=None, zones=None, **kwargs) -> None: super(ApiManagementServiceResource, self).__init__(tags=tags, **kwargs) self.notification_sender_email = notification_sender_email self.provisioning_state = None @@ -1425,6 +1557,7 @@ def __init__(self, *, publisher_email: str, publisher_name: str, sku, location: self.hostname_configurations = hostname_configurations self.public_ip_addresses = None self.private_ip_addresses = None + self.public_ip_address_id = public_ip_address_id self.virtual_network_configuration = virtual_network_configuration self.additional_locations = additional_locations self.custom_properties = custom_properties @@ -1531,6 +1664,11 @@ class ApiManagementServiceUpdateParameters(ApimResource): Internal Virtual Network. Available only for Basic, Standard, Premium and Isolated SKU. :vartype private_ip_addresses: list[str] + :param public_ip_address_id: Public Standard SKU IP V4 based IP address to + be associated with Virtual Network deployed service in the region. + Supported only for Developer and Premium SKU being deployed in Virtual + Network. + :type public_ip_address_id: str :param virtual_network_configuration: Virtual network configuration of the API Management service. :type virtual_network_configuration: @@ -1659,6 +1797,7 @@ class ApiManagementServiceUpdateParameters(ApimResource): 'hostname_configurations': {'key': 'properties.hostnameConfigurations', 'type': '[HostnameConfiguration]'}, 'public_ip_addresses': {'key': 'properties.publicIPAddresses', 'type': '[str]'}, 'private_ip_addresses': {'key': 'properties.privateIPAddresses', 'type': '[str]'}, + 'public_ip_address_id': {'key': 'properties.publicIpAddressId', 'type': 'str'}, 'virtual_network_configuration': {'key': 'properties.virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'}, 'additional_locations': {'key': 'properties.additionalLocations', 'type': '[AdditionalLocation]'}, 'custom_properties': {'key': 'properties.customProperties', 'type': '{str}'}, @@ -1675,7 +1814,7 @@ class ApiManagementServiceUpdateParameters(ApimResource): 'etag': {'key': 'etag', 'type': 'str'}, } - def __init__(self, *, tags=None, notification_sender_email: str=None, hostname_configurations=None, virtual_network_configuration=None, additional_locations=None, custom_properties=None, certificates=None, enable_client_certificate: bool=False, disable_gateway: bool=False, virtual_network_type="None", api_version_constraint=None, restore: bool=False, publisher_email: str=None, publisher_name: str=None, sku=None, identity=None, **kwargs) -> None: + def __init__(self, *, tags=None, notification_sender_email: str=None, hostname_configurations=None, public_ip_address_id: str=None, virtual_network_configuration=None, additional_locations=None, custom_properties=None, certificates=None, enable_client_certificate: bool=False, disable_gateway: bool=False, virtual_network_type="None", api_version_constraint=None, restore: bool=False, publisher_email: str=None, publisher_name: str=None, sku=None, identity=None, **kwargs) -> None: super(ApiManagementServiceUpdateParameters, self).__init__(tags=tags, **kwargs) self.notification_sender_email = notification_sender_email self.provisioning_state = None @@ -1690,6 +1829,7 @@ def __init__(self, *, tags=None, notification_sender_email: str=None, hostname_c self.hostname_configurations = hostname_configurations self.public_ip_addresses = None self.private_ip_addresses = None + self.public_ip_address_id = public_ip_address_id self.virtual_network_configuration = virtual_network_configuration self.additional_locations = additional_locations self.custom_properties = custom_properties @@ -2202,21 +2342,22 @@ class ApiTagResourceContractProperties(ApiEntityBaseContract): available. :type subscription_key_parameter_names: ~azure.mgmt.apimanagement.models.SubscriptionKeyParameterNamesContract - :param api_type: Type of API. Possible values include: 'http', 'soap' + :param api_type: Type of API. Possible values include: 'http', 'soap', + 'websocket', 'graphql' :type api_type: str or ~azure.mgmt.apimanagement.models.ApiType - :param api_revision: Describes the Revision of the Api. If no value is + :param api_revision: Describes the revision of the API. If no value is provided, default revision 1 is created :type api_revision: str - :param api_version: Indicates the Version identifier of the API if the API + :param api_version: Indicates the version identifier of the API if the API is versioned :type api_version: str :param is_current: Indicates if API revision is current api revision. :type is_current: bool :ivar is_online: Indicates if API revision is accessible via the gateway. :vartype is_online: bool - :param api_revision_description: Description of the Api Revision. + :param api_revision_description: Description of the API Revision. :type api_revision_description: str - :param api_version_description: Description of the Api Version. + :param api_version_description: Description of the API Version. :type api_version_description: str :param api_version_set_id: A resource identifier for the related ApiVersionSet. @@ -2224,6 +2365,13 @@ class ApiTagResourceContractProperties(ApiEntityBaseContract): :param subscription_required: Specifies whether an API or Product subscription is required for accessing the API. :type subscription_required: bool + :param terms_of_service_url: A URL to the Terms of Service for the API. + MUST be in the format of a URL. + :type terms_of_service_url: str + :param contact: Contact information for the API. + :type contact: ~azure.mgmt.apimanagement.models.ApiContactInformation + :param license: License information for the API. + :type license: ~azure.mgmt.apimanagement.models.ApiLicenseInformation :param id: API identifier in the form /apis/{apiId}. :type id: str :param name: API name. @@ -2265,15 +2413,18 @@ class ApiTagResourceContractProperties(ApiEntityBaseContract): 'api_version_description': {'key': 'apiVersionDescription', 'type': 'str'}, 'api_version_set_id': {'key': 'apiVersionSetId', 'type': 'str'}, 'subscription_required': {'key': 'subscriptionRequired', 'type': 'bool'}, + 'terms_of_service_url': {'key': 'termsOfServiceUrl', 'type': 'str'}, + 'contact': {'key': 'contact', 'type': 'ApiContactInformation'}, + 'license': {'key': 'license', 'type': 'ApiLicenseInformation'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'service_url': {'key': 'serviceUrl', 'type': 'str'}, 'path': {'key': 'path', 'type': 'str'}, - 'protocols': {'key': 'protocols', 'type': '[Protocol]'}, + 'protocols': {'key': 'protocols', 'type': '[str]'}, } - def __init__(self, *, description: str=None, authentication_settings=None, subscription_key_parameter_names=None, api_type=None, api_revision: str=None, api_version: str=None, is_current: bool=None, api_revision_description: str=None, api_version_description: str=None, api_version_set_id: str=None, subscription_required: bool=None, id: str=None, name: str=None, service_url: str=None, path: str=None, protocols=None, **kwargs) -> None: - super(ApiTagResourceContractProperties, self).__init__(description=description, authentication_settings=authentication_settings, subscription_key_parameter_names=subscription_key_parameter_names, api_type=api_type, api_revision=api_revision, api_version=api_version, is_current=is_current, api_revision_description=api_revision_description, api_version_description=api_version_description, api_version_set_id=api_version_set_id, subscription_required=subscription_required, **kwargs) + def __init__(self, *, description: str=None, authentication_settings=None, subscription_key_parameter_names=None, api_type=None, api_revision: str=None, api_version: str=None, is_current: bool=None, api_revision_description: str=None, api_version_description: str=None, api_version_set_id: str=None, subscription_required: bool=None, terms_of_service_url: str=None, contact=None, license=None, id: str=None, name: str=None, service_url: str=None, path: str=None, protocols=None, **kwargs) -> None: + super(ApiTagResourceContractProperties, self).__init__(description=description, authentication_settings=authentication_settings, subscription_key_parameter_names=subscription_key_parameter_names, api_type=api_type, api_revision=api_revision, api_version=api_version, is_current=is_current, api_revision_description=api_revision_description, api_version_description=api_version_description, api_version_set_id=api_version_set_id, subscription_required=subscription_required, terms_of_service_url=terms_of_service_url, contact=contact, license=license, **kwargs) self.id = id self.name = name self.service_url = service_url @@ -2298,21 +2449,22 @@ class ApiUpdateContract(Model): available. :type subscription_key_parameter_names: ~azure.mgmt.apimanagement.models.SubscriptionKeyParameterNamesContract - :param api_type: Type of API. Possible values include: 'http', 'soap' + :param api_type: Type of API. Possible values include: 'http', 'soap', + 'websocket', 'graphql' :type api_type: str or ~azure.mgmt.apimanagement.models.ApiType - :param api_revision: Describes the Revision of the Api. If no value is + :param api_revision: Describes the revision of the API. If no value is provided, default revision 1 is created :type api_revision: str - :param api_version: Indicates the Version identifier of the API if the API + :param api_version: Indicates the version identifier of the API if the API is versioned :type api_version: str :param is_current: Indicates if API revision is current api revision. :type is_current: bool :ivar is_online: Indicates if API revision is accessible via the gateway. :vartype is_online: bool - :param api_revision_description: Description of the Api Revision. + :param api_revision_description: Description of the API Revision. :type api_revision_description: str - :param api_version_description: Description of the Api Version. + :param api_version_description: Description of the API Version. :type api_version_description: str :param api_version_set_id: A resource identifier for the related ApiVersionSet. @@ -2320,6 +2472,13 @@ class ApiUpdateContract(Model): :param subscription_required: Specifies whether an API or Product subscription is required for accessing the API. :type subscription_required: bool + :param terms_of_service_url: A URL to the Terms of Service for the API. + MUST be in the format of a URL. + :type terms_of_service_url: str + :param contact: Contact information for the API. + :type contact: ~azure.mgmt.apimanagement.models.ApiContactInformation + :param license: License information for the API. + :type license: ~azure.mgmt.apimanagement.models.ApiLicenseInformation :param display_name: API name. :type display_name: str :param service_url: Absolute URL of the backend service implementing this @@ -2359,13 +2518,16 @@ class ApiUpdateContract(Model): 'api_version_description': {'key': 'properties.apiVersionDescription', 'type': 'str'}, 'api_version_set_id': {'key': 'properties.apiVersionSetId', 'type': 'str'}, 'subscription_required': {'key': 'properties.subscriptionRequired', 'type': 'bool'}, + 'terms_of_service_url': {'key': 'properties.termsOfServiceUrl', 'type': 'str'}, + 'contact': {'key': 'properties.contact', 'type': 'ApiContactInformation'}, + 'license': {'key': 'properties.license', 'type': 'ApiLicenseInformation'}, 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'service_url': {'key': 'properties.serviceUrl', 'type': 'str'}, 'path': {'key': 'properties.path', 'type': 'str'}, - 'protocols': {'key': 'properties.protocols', 'type': '[Protocol]'}, + 'protocols': {'key': 'properties.protocols', 'type': '[str]'}, } - def __init__(self, *, description: str=None, authentication_settings=None, subscription_key_parameter_names=None, api_type=None, api_revision: str=None, api_version: str=None, is_current: bool=None, api_revision_description: str=None, api_version_description: str=None, api_version_set_id: str=None, subscription_required: bool=None, display_name: str=None, service_url: str=None, path: str=None, protocols=None, **kwargs) -> None: + def __init__(self, *, description: str=None, authentication_settings=None, subscription_key_parameter_names=None, api_type=None, api_revision: str=None, api_version: str=None, is_current: bool=None, api_revision_description: str=None, api_version_description: str=None, api_version_set_id: str=None, subscription_required: bool=None, terms_of_service_url: str=None, contact=None, license=None, display_name: str=None, service_url: str=None, path: str=None, protocols=None, **kwargs) -> None: super(ApiUpdateContract, self).__init__(**kwargs) self.description = description self.authentication_settings = authentication_settings @@ -2379,6 +2541,9 @@ def __init__(self, *, description: str=None, authentication_settings=None, subsc self.api_version_description = api_version_description self.api_version_set_id = api_version_set_id self.subscription_required = subscription_required + self.terms_of_service_url = terms_of_service_url + self.contact = contact + self.license = license self.display_name = display_name self.service_url = service_url self.path = path @@ -2403,7 +2568,7 @@ def __init__(self, *, min_api_version: str=None, **kwargs) -> None: class ApiVersionSetContract(Resource): - """Api Version Set Contract details. + """API Version Set Contract details. Variables are only populated by the server, and will be ignored when sending a request. @@ -2506,7 +2671,7 @@ def __init__(self, *, id: str=None, name: str=None, description: str=None, versi class ApiVersionSetEntityBase(Model): - """Api Version set base parameters. + """API Version set base parameters. :param description: Description of API Version Set. :type description: str @@ -2537,7 +2702,7 @@ def __init__(self, *, description: str=None, version_query_name: str=None, versi class ApiVersionSetUpdateParameters(Model): - """Parameters to update or create an Api Version Set Contract. + """Parameters to update or create an API Version Set Contract. :param description: Description of API Version Set. :type description: str @@ -3031,7 +3196,7 @@ class BackendBaseParameters(Model): :param description: Backend Description. :type description: str :param resource_id: Management Uri of the Resource in External System. - This url can be the Arm Resource Id of Logic Apps, Function Apps or Api + This url can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. :type resource_id: str :param properties: Backend Properties contract @@ -3091,7 +3256,7 @@ class BackendContract(Resource): :param description: Backend Description. :type description: str :param resource_id: Management Uri of the Resource in External System. - This url can be the Arm Resource Id of Logic Apps, Function Apps or Api + This url can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. :type resource_id: str :param properties: Backend Properties contract @@ -3351,7 +3516,7 @@ class BackendUpdateParameters(Model): :param description: Backend Description. :type description: str :param resource_id: Management Uri of the Resource in External System. - This url can be the Arm Resource Id of Logic Apps, Function Apps or Api + This url can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. :type resource_id: str :param properties: Backend Properties contract @@ -3881,7 +4046,7 @@ def __init__(self, *, value: str=None, mode=None, **kwargs) -> None: class DeletedServiceContract(Resource): - """Deleted Api Management Service information. + """Deleted API Management Service information. Variables are only populated by the server, and will be ignored when sending a request. @@ -3902,7 +4067,7 @@ class DeletedServiceContract(Resource): date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. :type deletion_date: datetime - :ivar location: Api Management Service Master Location. + :ivar location: API Management Service Master Location. :vartype location: str """ @@ -4063,7 +4228,7 @@ class EmailTemplateContract(Resource): :param description: Description of the Email Template. :type description: str :ivar is_default: Whether the template is the default template provided by - Api Management or has been edited. + API Management or has been edited. :vartype is_default: bool :param parameters: Email Template Parameter values. :type parameters: @@ -4715,6 +4880,14 @@ class HostnameConfiguration(Model): :type negotiate_client_certificate: bool :param certificate: Certificate information. :type certificate: ~azure.mgmt.apimanagement.models.CertificateInformation + :param certificate_source: Certificate Source. Possible values include: + 'Managed', 'KeyVault', 'Custom', 'BuiltIn' + :type certificate_source: str or + ~azure.mgmt.apimanagement.models.CertificateSource + :param certificate_status: Certificate Status. Possible values include: + 'Completed', 'Failed', 'InProgress' + :type certificate_status: str or + ~azure.mgmt.apimanagement.models.CertificateStatus """ _validation = { @@ -4732,9 +4905,11 @@ class HostnameConfiguration(Model): 'default_ssl_binding': {'key': 'defaultSslBinding', 'type': 'bool'}, 'negotiate_client_certificate': {'key': 'negotiateClientCertificate', 'type': 'bool'}, 'certificate': {'key': 'certificate', 'type': 'CertificateInformation'}, + 'certificate_source': {'key': 'certificateSource', 'type': 'str'}, + 'certificate_status': {'key': 'certificateStatus', 'type': 'str'}, } - def __init__(self, *, type, host_name: str, key_vault_id: str=None, identity_client_id: str=None, encoded_certificate: str=None, certificate_password: str=None, default_ssl_binding: bool=False, negotiate_client_certificate: bool=False, certificate=None, **kwargs) -> None: + def __init__(self, *, type, host_name: str, key_vault_id: str=None, identity_client_id: str=None, encoded_certificate: str=None, certificate_password: str=None, default_ssl_binding: bool=False, negotiate_client_certificate: bool=False, certificate=None, certificate_source=None, certificate_status=None, **kwargs) -> None: super(HostnameConfiguration, self).__init__(**kwargs) self.type = type self.host_name = host_name @@ -4745,6 +4920,8 @@ def __init__(self, *, type, host_name: str, key_vault_id: str=None, identity_cli self.default_ssl_binding = default_ssl_binding self.negotiate_client_certificate = negotiate_client_certificate self.certificate = certificate + self.certificate_source = certificate_source + self.certificate_status = certificate_status class HttpMessageDiagnostic(Model): @@ -5322,7 +5499,7 @@ class KeyVaultContractCreateProperties(Model): """Create keyVault contract details. :param secret_identifier: Key vault secret identifier for fetching secret. - Providing a versioned secret will prevent auto-refresh. This requires Api + Providing a versioned secret will prevent auto-refresh. This requires API Management service to be configured with aka.ms/apimmsi :type secret_identifier: str :param identity_client_id: SystemAssignedIdentity or UserAssignedIdentity @@ -5345,7 +5522,7 @@ class KeyVaultContractProperties(KeyVaultContractCreateProperties): """KeyVault contract details. :param secret_identifier: Key vault secret identifier for fetching secret. - Providing a versioned secret will prevent auto-refresh. This requires Api + Providing a versioned secret will prevent auto-refresh. This requires API Management service to be configured with aka.ms/apimmsi :type secret_identifier: str :param identity_client_id: SystemAssignedIdentity or UserAssignedIdentity @@ -5958,7 +6135,7 @@ def __init__(self, *, name: str=None, display=None, origin: str=None, properties class OperationContract(Resource): - """Api Operation details. + """API Operation details. Variables are only populated by the server, and will be ignored when sending a request. @@ -6060,7 +6237,7 @@ def __init__(self, *, provider: str=None, operation: str=None, resource: str=Non class OperationEntityBaseContract(Model): - """Api Operation Entity Base Contract details. + """API Operation Entity Base Contract details. :param template_parameters: Collection of URL template parameters. :type template_parameters: @@ -6097,14 +6274,20 @@ def __init__(self, *, template_parameters=None, description: str=None, request=N self.policies = policies -class OperationResultContract(Model): - """Operation Result. +class OperationResultContract(Resource): + """Long Running Git Operation Results. Variables are only populated by the server, and will be ignored when sending a request. - :param id: Operation result identifier. - :type id: str + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type for API Management resource. + :vartype type: str + :param operation_result_contract_id: Operation result identifier. + :type operation_result_contract_id: str :param status: Status of an async operation. Possible values include: 'Started', 'InProgress', 'Succeeded', 'Failed' :type status: str or ~azure.mgmt.apimanagement.models.AsyncOperationStatus @@ -6129,22 +6312,28 @@ class OperationResultContract(Model): """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, 'action_log': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'AsyncOperationStatus'}, - 'started': {'key': 'started', 'type': 'iso-8601'}, - 'updated': {'key': 'updated', 'type': 'iso-8601'}, - 'result_info': {'key': 'resultInfo', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'ErrorResponseBody'}, - 'action_log': {'key': 'actionLog', 'type': '[OperationResultLogItemContract]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'operation_result_contract_id': {'key': 'properties.id', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'AsyncOperationStatus'}, + 'started': {'key': 'properties.started', 'type': 'iso-8601'}, + 'updated': {'key': 'properties.updated', 'type': 'iso-8601'}, + 'result_info': {'key': 'properties.resultInfo', 'type': 'str'}, + 'error': {'key': 'properties.error', 'type': 'ErrorResponseBody'}, + 'action_log': {'key': 'properties.actionLog', 'type': '[OperationResultLogItemContract]'}, } - def __init__(self, *, id: str=None, status=None, started=None, updated=None, result_info: str=None, error=None, **kwargs) -> None: + def __init__(self, *, operation_result_contract_id: str=None, status=None, started=None, updated=None, result_info: str=None, error=None, **kwargs) -> None: super(OperationResultContract, self).__init__(**kwargs) - self.id = id + self.operation_result_contract_id = operation_result_contract_id self.status = status self.started = started self.updated = updated @@ -6187,11 +6376,11 @@ class OperationTagResourceContractProperties(Model): :type id: str :ivar name: Operation name. :vartype name: str - :ivar api_name: Api Name. + :ivar api_name: API Name. :vartype api_name: str - :ivar api_revision: Api Revision. + :ivar api_revision: API Revision. :vartype api_revision: str - :ivar api_version: Api Version. + :ivar api_version: API Version. :vartype api_version: str :ivar description: Operation Description. :vartype description: str @@ -6238,7 +6427,7 @@ def __init__(self, *, id: str=None, **kwargs) -> None: class OperationUpdateContract(Model): - """Api Operation Update Contract details. + """API Operation Update Contract details. :param template_parameters: Collection of URL template parameters. :type template_parameters: @@ -6309,6 +6498,10 @@ class ParameterContract(Model): :type required: bool :param values: Parameter values. :type values: list[str] + :param schema_id: Schema identifier. + :type schema_id: str + :param type_name: Type name defined by the schema. + :type type_name: str """ _validation = { @@ -6323,9 +6516,11 @@ class ParameterContract(Model): 'default_value': {'key': 'defaultValue', 'type': 'str'}, 'required': {'key': 'required', 'type': 'bool'}, 'values': {'key': 'values', 'type': '[str]'}, + 'schema_id': {'key': 'schemaId', 'type': 'str'}, + 'type_name': {'key': 'typeName', 'type': 'str'}, } - def __init__(self, *, name: str, type: str, description: str=None, default_value: str=None, required: bool=None, values=None, **kwargs) -> None: + def __init__(self, *, name: str, type: str, description: str=None, default_value: str=None, required: bool=None, values=None, schema_id: str=None, type_name: str=None, **kwargs) -> None: super(ParameterContract, self).__init__(**kwargs) self.name = name self.description = description @@ -6333,6 +6528,8 @@ def __init__(self, *, name: str, type: str, description: str=None, default_value self.default_value = default_value self.required = required self.values = values + self.schema_id = schema_id + self.type_name = type_name class PipelineDiagnosticSettings(Model): @@ -6532,7 +6729,7 @@ def __init__(self, *, url: str=None, validation_key: str=None, subscriptions=Non class PortalRevisionContract(Resource): - """Portal revisions contract details. + """Portal Revision's contract details. Variables are only populated by the server, and will be ignored when sending a request. @@ -6547,13 +6744,13 @@ class PortalRevisionContract(Resource): :type description: str :ivar status_details: Portal revision publishing status details. :vartype status_details: str - :ivar status: Portal revision publishing status. Possible values include: + :ivar status: Status of the portal's revision. Possible values include: 'pending', 'publishing', 'completed', 'failed' :vartype status: str or ~azure.mgmt.apimanagement.models.PortalRevisionStatus - :param is_current: Indicates if the Portal Revision is public. + :param is_current: Indicates if the portal's revision is public. :type is_current: bool - :ivar created_date_time: Portal revision creation date and time. + :ivar created_date_time: Portal's revision creation date and time. :vartype created_date_time: datetime :ivar updated_date_time: Last updated date and time. :vartype updated_date_time: datetime @@ -7902,12 +8099,8 @@ class SchemaContract(Resource): `OpenApi` Schema use `application/vnd.oai.openapi.components+json`
- `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`. :type content_type: str - :param value: Json escaped string defining the document representing the - Schema. Used for schemas other than Swagger/OpenAPI. - :type value: str - :param definitions: Types definitions. Used for Swagger/OpenAPI schemas - only, null otherwise. - :type definitions: object + :param document: Create or update Properties of the Schema Document. + :type document: object """ _validation = { @@ -7922,15 +8115,13 @@ class SchemaContract(Resource): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'content_type': {'key': 'properties.contentType', 'type': 'str'}, - 'value': {'key': 'properties.document.value', 'type': 'str'}, - 'definitions': {'key': 'properties.document.definitions', 'type': 'object'}, + 'document': {'key': 'properties\\.document', 'type': 'object'}, } - def __init__(self, *, content_type: str, value: str=None, definitions=None, **kwargs) -> None: + def __init__(self, *, content_type: str, document=None, **kwargs) -> None: super(SchemaContract, self).__init__(**kwargs) self.content_type = content_type - self.value = value - self.definitions = definitions + self.document = document class SubscriptionContract(Resource): @@ -8396,7 +8587,7 @@ class TagResourceContract(Model): :param tag: Required. Tag associated with the resource. :type tag: ~azure.mgmt.apimanagement.models.TagTagResourceContractProperties - :param api: Api associated with the tag. + :param api: API associated with the tag. :type api: ~azure.mgmt.apimanagement.models.ApiTagResourceContractProperties :param operation: Operation associated with the tag. @@ -8451,7 +8642,7 @@ def __init__(self, *, id: str=None, name: str=None, **kwargs) -> None: class TenantConfigurationSyncStateContract(Model): - """Tenant Configuration Synchronization State. + """Result of Tenant Configuration Sync State. :param branch: The name of Git branch. :type branch: str @@ -8474,19 +8665,23 @@ class TenantConfigurationSyncStateContract(Model): change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. :type configuration_change_date: datetime + :param last_operation_id: Most recent tenant configuration operation + identifier + :type last_operation_id: str """ _attribute_map = { - 'branch': {'key': 'branch', 'type': 'str'}, - 'commit_id': {'key': 'commitId', 'type': 'str'}, - 'is_export': {'key': 'isExport', 'type': 'bool'}, - 'is_synced': {'key': 'isSynced', 'type': 'bool'}, - 'is_git_enabled': {'key': 'isGitEnabled', 'type': 'bool'}, - 'sync_date': {'key': 'syncDate', 'type': 'iso-8601'}, - 'configuration_change_date': {'key': 'configurationChangeDate', 'type': 'iso-8601'}, + 'branch': {'key': 'properties.branch', 'type': 'str'}, + 'commit_id': {'key': 'properties.commitId', 'type': 'str'}, + 'is_export': {'key': 'properties.isExport', 'type': 'bool'}, + 'is_synced': {'key': 'properties.isSynced', 'type': 'bool'}, + 'is_git_enabled': {'key': 'properties.isGitEnabled', 'type': 'bool'}, + 'sync_date': {'key': 'properties.syncDate', 'type': 'iso-8601'}, + 'configuration_change_date': {'key': 'properties.configurationChangeDate', 'type': 'iso-8601'}, + 'last_operation_id': {'key': 'properties.lastOperationId', 'type': 'str'}, } - def __init__(self, *, branch: str=None, commit_id: str=None, is_export: bool=None, is_synced: bool=None, is_git_enabled: bool=None, sync_date=None, configuration_change_date=None, **kwargs) -> None: + def __init__(self, *, branch: str=None, commit_id: str=None, is_export: bool=None, is_synced: bool=None, is_git_enabled: bool=None, sync_date=None, configuration_change_date=None, last_operation_id: str=None, **kwargs) -> None: super(TenantConfigurationSyncStateContract, self).__init__(**kwargs) self.branch = branch self.commit_id = commit_id @@ -8495,6 +8690,7 @@ def __init__(self, *, branch: str=None, commit_id: str=None, is_export: bool=Non self.is_git_enabled = is_git_enabled self.sync_date = sync_date self.configuration_change_date = configuration_change_date + self.last_operation_id = last_operation_id class TenantSettingsContract(Resource): diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_diagnostic_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_diagnostic_operations.py index 484c7c518839..3d7765f6fb39 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_diagnostic_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_diagnostic_operations.py @@ -24,7 +24,7 @@ class ApiDiagnosticOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_export_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_export_operations.py index 6073e442fd4b..ed6717da9b21 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_export_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_export_operations.py @@ -25,7 +25,7 @@ class ApiExportOperations(object): :param serializer: An object model serializer. :param deserializer: An object model deserializer. :ivar export: Query parameter required to export the API details. Constant value: "true". - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -36,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._serialize = serializer self._deserialize = deserializer self.export = "true" - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_issue_attachment_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_issue_attachment_operations.py index 2a17934491a6..a828f5eb7036 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_issue_attachment_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_issue_attachment_operations.py @@ -24,7 +24,7 @@ class ApiIssueAttachmentOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_issue_comment_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_issue_comment_operations.py index 17fef37b0ffb..18ace5ba4275 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_issue_comment_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_issue_comment_operations.py @@ -24,7 +24,7 @@ class ApiIssueCommentOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_issue_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_issue_operations.py index fb31a2533803..965e60d5e68f 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_issue_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_issue_operations.py @@ -24,7 +24,7 @@ class ApiIssueOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_operations.py index 654a7af17084..804de32c090e 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_operations.py @@ -24,7 +24,7 @@ class ApiManagementOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_service_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_service_operations.py index 1394054653b8..b3eca1442c92 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_service_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_service_operations.py @@ -26,7 +26,7 @@ class ApiManagementServiceOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -36,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config @@ -46,9 +46,9 @@ def _restore_initial( # Construct URL url = self.restore.metadata['url'] path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'serviceName': self._serialize.url("service_name", service_name, 'str', max_length=50, min_length=1, pattern=r'^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + 'serviceName': self._serialize.url("service_name", service_name, 'str', max_length=50, min_length=1, pattern=r'^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$') } url = self._client.format_url(url, **path_format_arguments) @@ -98,8 +98,8 @@ def restore( :type resource_group_name: str :param service_name: The name of the API Management service. :type service_name: str - :param parameters: Parameters supplied to the Restore API Management - service from backup operation. + :param parameters: Parameters supplied to the + ApiManagementService_Restore operation. :type parameters: ~azure.mgmt.apimanagement.models.ApiManagementServiceBackupRestoreParameters :param dict custom_headers: headers that will be added to the request @@ -150,9 +150,9 @@ def _backup_initial( # Construct URL url = self.backup.metadata['url'] path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'serviceName': self._serialize.url("service_name", service_name, 'str', max_length=50, min_length=1, pattern=r'^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + 'serviceName': self._serialize.url("service_name", service_name, 'str', max_length=50, min_length=1, pattern=r'^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$') } url = self._client.format_url(url, **path_format_arguments) diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_service_skus_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_service_skus_operations.py index e852e82ada06..58ff1bf8cdd5 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_service_skus_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_service_skus_operations.py @@ -24,7 +24,7 @@ class ApiManagementServiceSkusOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_skus_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_skus_operations.py index 84dac42746cd..3b63951321a7 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_skus_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_skus_operations.py @@ -24,7 +24,7 @@ class ApiManagementSkusOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_operation_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_operation_operations.py index 32ae01a0f9dd..768c14379a5d 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_operation_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_operation_operations.py @@ -24,7 +24,7 @@ class ApiOperationOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_operation_policy_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_operation_policy_operations.py index 689cf454e500..b665a1c4bd79 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_operation_policy_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_operation_policy_operations.py @@ -24,7 +24,7 @@ class ApiOperationPolicyOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". :ivar policy_id: The identifier of the Policy. Constant value: "policy". """ @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.policy_id = "policy" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_operations.py index 3e696a2d6b04..edd26d1f44ad 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_operations.py @@ -26,7 +26,7 @@ class ApiOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -36,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_policy_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_policy_operations.py index 063060d41c2f..43d69a1d269f 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_policy_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_policy_operations.py @@ -24,7 +24,7 @@ class ApiPolicyOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". :ivar policy_id: The identifier of the Policy. Constant value: "policy". """ @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.policy_id = "policy" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_product_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_product_operations.py index 30058b81e8b5..5f6324a50996 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_product_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_product_operations.py @@ -24,7 +24,7 @@ class ApiProductOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_release_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_release_operations.py index 9544131f140d..16374c25ade7 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_release_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_release_operations.py @@ -24,7 +24,7 @@ class ApiReleaseOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_revision_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_revision_operations.py index 09dfba4207e0..4f2e7ff7662c 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_revision_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_revision_operations.py @@ -24,7 +24,7 @@ class ApiRevisionOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_schema_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_schema_operations.py index 01dd0363cea5..a143560ba25b 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_schema_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_schema_operations.py @@ -26,7 +26,7 @@ class ApiSchemaOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -36,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config @@ -273,7 +273,9 @@ def get( def _create_or_update_initial( - self, resource_group_name, service_name, api_id, schema_id, parameters, if_match=None, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, service_name, api_id, schema_id, content_type, if_match=None, document=None, custom_headers=None, raw=False, **operation_config): + parameters = models.SchemaContract(content_type=content_type, document=document) + # Construct URL url = self.create_or_update.metadata['url'] path_format_arguments = { @@ -334,7 +336,7 @@ def _create_or_update_initial( return deserialized def create_or_update( - self, resource_group_name, service_name, api_id, schema_id, parameters, if_match=None, custom_headers=None, raw=False, polling=True, **operation_config): + self, resource_group_name, service_name, api_id, schema_id, content_type, if_match=None, document=None, custom_headers=None, raw=False, polling=True, **operation_config): """Creates or updates schema configuration for the API. :param resource_group_name: The name of the resource group. @@ -348,11 +350,21 @@ def create_or_update( :param schema_id: Schema identifier within an API. Must be unique in the current API Management service instance. :type schema_id: str - :param parameters: The schema contents to apply. - :type parameters: ~azure.mgmt.apimanagement.models.SchemaContract + :param content_type: Must be a valid a media type used in a + Content-Type header as defined in the RFC 2616. Media type of the + schema document (e.g. application/json, application/xml).
- + `Swagger` Schema use + `application/vnd.ms-azure-apim.swagger.definitions+json`
- + `WSDL` Schema use `application/vnd.ms-azure-apim.xsd+xml`
- + `OpenApi` Schema use `application/vnd.oai.openapi.components+json` +
- `WADL Schema` use + `application/vnd.ms-azure-apim.wadl.grammars+xml`. + :type content_type: str :param if_match: ETag of the Entity. Not required when creating an entity, but required when updating an entity. :type if_match: str + :param document: Create or update Properties of the Schema Document. + :type document: object :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the direct response alongside the deserialized response @@ -372,8 +384,9 @@ def create_or_update( service_name=service_name, api_id=api_id, schema_id=schema_id, - parameters=parameters, + content_type=content_type, if_match=if_match, + document=document, custom_headers=custom_headers, raw=True, **operation_config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_tag_description_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_tag_description_operations.py index ccd8614fe162..39a286da9fdb 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_tag_description_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_tag_description_operations.py @@ -24,7 +24,7 @@ class ApiTagDescriptionOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_version_set_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_version_set_operations.py index 27b9717960b1..9ad171e09359 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_version_set_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_version_set_operations.py @@ -24,7 +24,7 @@ class ApiVersionSetOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_authorization_server_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_authorization_server_operations.py index f72171f1f572..e98453611dab 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_authorization_server_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_authorization_server_operations.py @@ -24,7 +24,7 @@ class AuthorizationServerOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_backend_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_backend_operations.py index a56f05d2032b..d812dc38124d 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_backend_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_backend_operations.py @@ -24,7 +24,7 @@ class BackendOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_cache_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_cache_operations.py index 312e37dcd9c2..d22ad87db520 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_cache_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_cache_operations.py @@ -24,7 +24,7 @@ class CacheOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_certificate_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_certificate_operations.py index 181addc789b7..cdd18902a2f4 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_certificate_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_certificate_operations.py @@ -24,7 +24,7 @@ class CertificateOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_content_item_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_content_item_operations.py index 3602938c5479..b688248a6040 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_content_item_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_content_item_operations.py @@ -24,7 +24,7 @@ class ContentItemOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,13 +34,14 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config def list_by_service( self, resource_group_name, service_name, content_type_id, custom_headers=None, raw=False, **operation_config): - """Returns list of content items. + """Lists developer portal's content items specified by the provided + content type. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -114,7 +115,8 @@ def internal_paging(next_link=None): def get_entity_tag( self, resource_group_name, service_name, content_type_id, content_item_id, custom_headers=None, raw=False, **operation_config): - """Returns content item metadata. + """Returns the entity state (ETag) version of the developer portal's + content item specified by its identifier. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -175,7 +177,8 @@ def get_entity_tag( def get( self, resource_group_name, service_name, content_type_id, content_item_id, custom_headers=None, raw=False, **operation_config): - """Returns content item details. + """Returns the developer portal's content item specified by its + identifier. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -246,7 +249,8 @@ def get( def create_or_update( self, resource_group_name, service_name, content_type_id, content_item_id, if_match=None, custom_headers=None, raw=False, **operation_config): - """Creates new content item. + """Creates a new developer portal's content item specified by the provided + content type. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -327,7 +331,7 @@ def create_or_update( def delete( self, resource_group_name, service_name, content_type_id, content_item_id, if_match, custom_headers=None, raw=False, **operation_config): - """Removes specified content item. + """Removes the specified developer portal's content item. :param resource_group_name: The name of the resource group. :type resource_group_name: str diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_content_type_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_content_type_operations.py index ded5b9d7f41e..338be223b79b 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_content_type_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_content_type_operations.py @@ -24,7 +24,7 @@ class ContentTypeOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,13 +34,14 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config def list_by_service( self, resource_group_name, service_name, custom_headers=None, raw=False, **operation_config): - """Returns list of content types. + """Lists the developer portal's content types. Content types describe + content items' properties, validation rules, and constraints. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -111,7 +112,8 @@ def internal_paging(next_link=None): def get( self, resource_group_name, service_name, content_type_id, custom_headers=None, raw=False, **operation_config): - """Gets API Management content type details. + """Gets the details of the developer portal's content type. Content types + describe content items' properties, validation rules, and constraints. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -179,7 +181,10 @@ def get( def create_or_update( self, resource_group_name, service_name, content_type_id, if_match=None, custom_headers=None, raw=False, **operation_config): - """Creates or updates an Content Type. + """Creates or updates the developer portal's content type. Content types + describe content items' properties, validation rules, and constraints. + Custom content types' identifiers need to start with the `c-` prefix. + Built-in content types can't be modified. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -257,7 +262,10 @@ def create_or_update( def delete( self, resource_group_name, service_name, content_type_id, if_match, custom_headers=None, raw=False, **operation_config): - """Removes specified content type. + """Removes the specified developer portal's content type. Content types + describe content items' properties, validation rules, and constraints. + Built-in content types (with identifiers starting with the `c-` prefix) + can't be removed. :param resource_group_name: The name of the resource group. :type resource_group_name: str diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_delegation_settings_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_delegation_settings_operations.py index e8df6d040bdf..c049baaf9d85 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_delegation_settings_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_delegation_settings_operations.py @@ -24,7 +24,7 @@ class DelegationSettingsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_deleted_services_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_deleted_services_operations.py index 1cf2643f1349..16684b52c722 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_deleted_services_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_deleted_services_operations.py @@ -26,7 +26,7 @@ class DeletedServicesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -36,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_diagnostic_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_diagnostic_operations.py index 715f2c365f42..475cf1a1b7e3 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_diagnostic_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_diagnostic_operations.py @@ -24,7 +24,7 @@ class DiagnosticOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_email_template_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_email_template_operations.py index eb3526b561b5..ac1c93646786 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_email_template_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_email_template_operations.py @@ -24,7 +24,7 @@ class EmailTemplateOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_gateway_api_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_gateway_api_operations.py index f20ac07f0405..7e2708613d85 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_gateway_api_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_gateway_api_operations.py @@ -24,7 +24,7 @@ class GatewayApiOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_gateway_certificate_authority_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_gateway_certificate_authority_operations.py index 9a18fe606d43..5750c2aee632 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_gateway_certificate_authority_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_gateway_certificate_authority_operations.py @@ -24,7 +24,7 @@ class GatewayCertificateAuthorityOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_gateway_hostname_configuration_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_gateway_hostname_configuration_operations.py index 5a9b8075e3c4..1479d821a075 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_gateway_hostname_configuration_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_gateway_hostname_configuration_operations.py @@ -24,7 +24,7 @@ class GatewayHostnameConfigurationOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_gateway_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_gateway_operations.py index b2788c8535cf..03a6f74b8cfe 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_gateway_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_gateway_operations.py @@ -24,7 +24,7 @@ class GatewayOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_group_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_group_operations.py index db5f9e397b98..75f61e4d13e4 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_group_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_group_operations.py @@ -24,7 +24,7 @@ class GroupOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_group_user_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_group_user_operations.py index fc20c8176fed..9777e1fc01a7 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_group_user_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_group_user_operations.py @@ -24,7 +24,7 @@ class GroupUserOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_identity_provider_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_identity_provider_operations.py index d42f1d5ddbb7..f101db65c822 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_identity_provider_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_identity_provider_operations.py @@ -24,7 +24,7 @@ class IdentityProviderOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_issue_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_issue_operations.py index 8167321e7a72..5541d3c8d8a2 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_issue_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_issue_operations.py @@ -24,7 +24,7 @@ class IssueOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_logger_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_logger_operations.py index 52e4a0c8be45..ef177d98699f 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_logger_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_logger_operations.py @@ -24,7 +24,7 @@ class LoggerOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_named_value_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_named_value_operations.py index ba61bdd00f70..ac4c32524009 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_named_value_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_named_value_operations.py @@ -26,7 +26,7 @@ class NamedValueOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -36,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_network_status_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_network_status_operations.py index acafd47d2b4c..a3c5d83ed068 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_network_status_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_network_status_operations.py @@ -24,7 +24,7 @@ class NetworkStatusOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_notification_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_notification_operations.py index 8bab4b3e8e91..c149fbe691ad 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_notification_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_notification_operations.py @@ -24,7 +24,7 @@ class NotificationOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_notification_recipient_email_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_notification_recipient_email_operations.py index f6a28356a507..f95851da654a 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_notification_recipient_email_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_notification_recipient_email_operations.py @@ -24,7 +24,7 @@ class NotificationRecipientEmailOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_notification_recipient_user_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_notification_recipient_user_operations.py index 9246d8139a20..6678c663741c 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_notification_recipient_user_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_notification_recipient_user_operations.py @@ -24,7 +24,7 @@ class NotificationRecipientUserOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_open_id_connect_provider_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_open_id_connect_provider_operations.py index 39b332f40e10..b5d80c9d7dbe 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_open_id_connect_provider_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_open_id_connect_provider_operations.py @@ -24,7 +24,7 @@ class OpenIdConnectProviderOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_operation_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_operation_operations.py index 55ae73491e50..2dfecf078ce5 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_operation_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_operation_operations.py @@ -24,7 +24,7 @@ class OperationOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_policy_description_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_policy_description_operations.py index be328f1fd382..7bcd765010ce 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_policy_description_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_policy_description_operations.py @@ -24,7 +24,7 @@ class PolicyDescriptionOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_policy_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_policy_operations.py index 7ee53832f1b2..ab59a4525f01 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_policy_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_policy_operations.py @@ -24,7 +24,7 @@ class PolicyOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". :ivar policy_id: The identifier of the Policy. Constant value: "policy". """ @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.policy_id = "policy" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_portal_revision_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_portal_revision_operations.py index 624b3d82ed02..c73116de8305 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_portal_revision_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_portal_revision_operations.py @@ -26,7 +26,7 @@ class PortalRevisionOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -36,13 +36,13 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config def list_by_service( self, resource_group_name, service_name, filter=None, top=None, skip=None, custom_headers=None, raw=False, **operation_config): - """Lists a collection of developer portal revision entities. + """Lists developer portal's revisions. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -132,7 +132,7 @@ def internal_paging(next_link=None): def get_entity_tag( self, resource_group_name, service_name, portal_revision_id, custom_headers=None, raw=False, **operation_config): - """Gets developer portal revision specified by its identifier. + """Gets the developer portal revision specified by its identifier. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -191,7 +191,7 @@ def get_entity_tag( def get( self, resource_group_name, service_name, portal_revision_id, custom_headers=None, raw=False, **operation_config): - """Gets developer portal revision specified by its identifier. + """Gets the developer portal's revision specified by its identifier. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -316,7 +316,9 @@ def _create_or_update_initial( def create_or_update( self, resource_group_name, service_name, portal_revision_id, description=None, is_current=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Creates a new developer portal revision. + """Creates a new developer portal's revision by running the portal's + publishing. The `isCurrent` property indicates if the revision is + publicly accessible. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -327,7 +329,7 @@ def create_or_update( :type portal_revision_id: str :param description: Portal revision description. :type description: str - :param is_current: Indicates if the Portal Revision is public. + :param is_current: Indicates if the portal's revision is public. :type is_current: bool :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the @@ -451,7 +453,7 @@ def update( :type if_match: str :param description: Portal revision description. :type description: str - :param is_current: Indicates if the Portal Revision is public. + :param is_current: Indicates if the portal's revision is public. :type is_current: bool :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_portal_settings_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_portal_settings_operations.py index f73ee8ea016b..878be5b7c495 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_portal_settings_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_portal_settings_operations.py @@ -24,7 +24,7 @@ class PortalSettingsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_api_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_api_operations.py index 52ed43c69a01..f284ef409aa2 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_api_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_api_operations.py @@ -24,7 +24,7 @@ class ProductApiOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_group_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_group_operations.py index cab564c74c62..ba015e0e6e82 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_group_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_group_operations.py @@ -24,7 +24,7 @@ class ProductGroupOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_operations.py index a30204f2011c..4ea05b1bcd8b 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_operations.py @@ -24,7 +24,7 @@ class ProductOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_policy_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_policy_operations.py index 4b1510e7fcd5..5886f7f6be8f 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_policy_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_policy_operations.py @@ -24,7 +24,7 @@ class ProductPolicyOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". :ivar policy_id: The identifier of the Policy. Constant value: "policy". """ @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.policy_id = "policy" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_subscriptions_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_subscriptions_operations.py index fbd744a8f8ac..2c9a3085578b 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_subscriptions_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_subscriptions_operations.py @@ -24,7 +24,7 @@ class ProductSubscriptionsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_quota_by_counter_keys_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_quota_by_counter_keys_operations.py index acbd778190fe..2f107fab08f1 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_quota_by_counter_keys_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_quota_by_counter_keys_operations.py @@ -24,7 +24,7 @@ class QuotaByCounterKeysOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_quota_by_period_keys_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_quota_by_period_keys_operations.py index 932c48cbd4d3..f1159b221c0e 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_quota_by_period_keys_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_quota_by_period_keys_operations.py @@ -24,7 +24,7 @@ class QuotaByPeriodKeysOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_region_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_region_operations.py index 90f415fa7a96..0f335b1cc2d5 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_region_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_region_operations.py @@ -24,7 +24,7 @@ class RegionOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_reports_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_reports_operations.py index 615b9fd780ca..1698348af82b 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_reports_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_reports_operations.py @@ -24,7 +24,7 @@ class ReportsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_sign_in_settings_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_sign_in_settings_operations.py index e5ba1d63c911..21f1ad755d62 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_sign_in_settings_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_sign_in_settings_operations.py @@ -24,7 +24,7 @@ class SignInSettingsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_sign_up_settings_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_sign_up_settings_operations.py index 7d4309518cc2..9c834b97fd7d 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_sign_up_settings_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_sign_up_settings_operations.py @@ -24,7 +24,7 @@ class SignUpSettingsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_subscription_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_subscription_operations.py index ee46d4336945..b57f664bc13d 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_subscription_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_subscription_operations.py @@ -24,7 +24,7 @@ class SubscriptionOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tag_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tag_operations.py index 9356159a3ed8..3b4e87ccd2b6 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tag_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tag_operations.py @@ -24,7 +24,7 @@ class TagOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tag_resource_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tag_resource_operations.py index 815bdb80f6d2..57793649740d 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tag_resource_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tag_resource_operations.py @@ -24,7 +24,7 @@ class TagResourceOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tenant_access_git_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tenant_access_git_operations.py index 7783e8d982f5..5e17d5a1241b 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tenant_access_git_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tenant_access_git_operations.py @@ -24,7 +24,7 @@ class TenantAccessGitOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tenant_access_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tenant_access_operations.py index 168ef7602cf9..444e4878d9c3 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tenant_access_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tenant_access_operations.py @@ -24,7 +24,7 @@ class TenantAccessOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tenant_configuration_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tenant_configuration_operations.py index 9303eeb76d86..4c72b1dfad40 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tenant_configuration_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tenant_configuration_operations.py @@ -26,7 +26,7 @@ class TenantConfigurationOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". :ivar configuration_name: The identifier of the Git Configuration Operation. Constant value: "configuration". """ @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.configuration_name = "configuration" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tenant_settings_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tenant_settings_operations.py index 3b5c3957dd0c..97edf11e5fa4 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tenant_settings_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_tenant_settings_operations.py @@ -24,7 +24,7 @@ class TenantSettingsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". :ivar settings_type: The identifier of the settings. Constant value: "public". """ @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.settings_type = "public" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_confirmation_password_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_confirmation_password_operations.py index 496769e3153d..36bddfda7c20 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_confirmation_password_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_confirmation_password_operations.py @@ -24,7 +24,7 @@ class UserConfirmationPasswordOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_group_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_group_operations.py index 2702c96fbf95..197e6a37f482 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_group_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_group_operations.py @@ -24,7 +24,7 @@ class UserGroupOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_identities_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_identities_operations.py index fc6fc1fa0935..b5e7ee6b310e 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_identities_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_identities_operations.py @@ -24,7 +24,7 @@ class UserIdentitiesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_operations.py index 056876578ab8..ebbe15a823d0 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_operations.py @@ -24,7 +24,7 @@ class UserOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_subscription_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_subscription_operations.py index 9889b9024c6b..9584c440be2d 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_subscription_operations.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_user_subscription_operations.py @@ -24,7 +24,7 @@ class UserSubscriptionOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-12-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-04-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-12-01" + self.api_version = "2021-04-01-preview" self.config = config