From 53278c6325ade9d2101cdcbc62bb8df2e59db517 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 5 Jan 2022 09:45:50 +0000 Subject: [PATCH] CodeGen from PR 16715 in Azure/azure-rest-api-specs Schema resource added in REST API Spec for api-version 2021-08-01 (#16715) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Adds base for updating Microsoft.ApiManagement from version preview/2021-01-01-preview to version 2021-04-01-preview * Updates readme * Updates API version in new specs and examples * Added support for GraphQL API type (#14851) * Added support for GraphQL API type * Added missing enum value for GraphQL APIs. * add schema definition fix from 2021-01-01-preview (#14883) Co-authored-by: Alan Feng * Vanguard: Get Outbound Network Dependency (#14900) * outbound dependency * fix resource * Update backup/restore API for managed identities (#14973) * Update backup/restore API for system-assigned and user-assigned identities * Fix formatting issue * Rename user-assigned-msi-client-id with client-id * SystemData implemenation on API Management Control Plane (#14899) * system-data * fix spec * remove unreferenced file * APIM - Network Watcher Connectivity Check integration specs (#15056) * Connectivity Check API Specs * Fix * Fix errors * style fixs * Fix 202 code * HTTPConnect request parameters * Fix errors Co-authored-by: Nicolás Barrera * Parameter examples added (#14836) * platformversion (#15114) * fix update service (#15478) * HttpConnect example (#15493) * HttpConnect example * Prettifier fix Co-authored-by: Nicolás Barrera * Rename from SchemaContract to ApiSchemaContract * apimschema.json added to last apim preview version * Completing specification for Schema resource. Fixing changes in SchemaContract. * Value field added to Schema resource specification. * path fixed. Renamed from ApiSchema to Schema. Adding suppression rule to readme.md Custom word added for spellcheck * Fixing PR observations. * Added properties of difference API spec format for "SchemaDocumentProperties" (#15703) * add schema definition fix from 2021-01-01-preview * added properties for SchemaDocumentProperties * updated the fix * updated fix * [APIM]Add private endpoint connection APIs (#15115) * Add private endpoint connection apis * add readme * quick fixes * fix to PE contract * Small fixes * small fixes * small fixes * Small fixes * small fixes * small fix * small fixes * small fixes * small fixes * Update readme.md * fix error * small fix * fix format * address comments * small fixes * Change to lower case * small fixes Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> * Adds base for updating Microsoft.ApiManagement from version preview/2021-04-01-preview to version 2021-08-01 * Updates readme * Updates API version in new specs and examples * Merge main * Modifications to Schema definition to add "description" field. Updating examples of Schema. * Fixing apimanagement.json * Prettier applied in files * Fixing PR comments * fixing x-ms-long-running-operation. * x-ms-long-running-operation : true in apischema. * Removing "Resource" type from apimanagement.json * Apimschema.json updated to point to types.json for ErrorResponse. * Merging from 2021-04-01-preview to 2021-08-01 stable version. * undoing change of responseBody * Updating ErrorResponse. * Fixing definitions merge. * Changing definitions to fix output of examples. * Changes in definitions * Updating response in some examples. * Rolling back ApiSchema -> Schema Schema -> GlobalSchema * Changes to undo apimapis.json and adding prefix for Global example Schemas. * Setting x-ms-long-running-operation-options to location. Co-authored-by: Samir Solanki Co-authored-by: Alexander Zaslonov Co-authored-by: DreamlessA Co-authored-by: Alan Feng Co-authored-by: Jatin Sanghvi <20547963+JatinSanghvi@users.noreply.github.com> Co-authored-by: Nicolás Barrera Co-authored-by: Nicolás Barrera Co-authored-by: VitaliyKurokhtin Co-authored-by: Christian Palomares Co-authored-by: RupengLiu Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> --- .../azure-mgmt-apimanagement/MANIFEST.in | 1 + .../azure-mgmt-apimanagement/_meta.json | 8 + .../apimanagement/_api_management_client.py | 20 +- .../mgmt/apimanagement/models/__init__.py | 128 +- .../models/_api_management_client_enums.py | 142 +- .../mgmt/apimanagement/models/_models.py | 2131 ++++++++++++++--- .../mgmt/apimanagement/models/_models_py3.py | 2093 +++++++++++++--- .../apimanagement/models/_paged_models.py | 34 +- .../mgmt/apimanagement/operations/__init__.py | 8 + .../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 +- .../_api_management_client_operations.py | 123 + .../operations/_api_management_operations.py | 4 +- .../_api_management_service_operations.py | 4 +- ..._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 | 58 +- .../_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 +- ...twork_dependencies_endpoints_operations.py | 102 + .../_policy_description_operations.py | 4 +- .../operations/_policy_operations.py | 4 +- .../operations/_portal_revision_operations.py | 18 +- .../operations/_portal_settings_operations.py | 4 +- ..._private_endpoint_connection_operations.py | 498 ++++ .../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 +- .../operations/_schema_operations.py | 443 ++++ .../_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 +- 85 files changed, 5172 insertions(+), 945 deletions(-) create mode 100644 sdk/apimanagement/azure-mgmt-apimanagement/_meta.json create mode 100644 sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_client_operations.py create mode 100644 sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_outbound_network_dependencies_endpoints_operations.py create mode 100644 sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_private_endpoint_connection_operations.py create mode 100644 sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_schema_operations.py diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/MANIFEST.in b/sdk/apimanagement/azure-mgmt-apimanagement/MANIFEST.in index a3cb07df87658..3a9b6517412bc 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 0000000000000..2d68d05ecab13 --- /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": "925e8285703ddd461588d8f5fbf14bd97c286fab", + "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 c9b694a8842d2..8650cd6ac5b0f 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 @@ -13,6 +13,7 @@ from msrest import Serializer, Deserializer from ._configuration import ApiManagementClientConfiguration +from .operations import ApiManagementClientOperationsMixin from .operations import ApiOperations from .operations import ApiRevisionOperations from .operations import ApiReleaseOperations @@ -56,6 +57,7 @@ from .operations import NotificationRecipientUserOperations from .operations import NotificationRecipientEmailOperations from .operations import OpenIdConnectProviderOperations +from .operations import OutboundNetworkDependenciesEndpointsOperations from .operations import PolicyOperations from .operations import PolicyDescriptionOperations from .operations import PortalRevisionOperations @@ -63,6 +65,7 @@ from .operations import SignInSettingsOperations from .operations import SignUpSettingsOperations from .operations import DelegationSettingsOperations +from .operations import PrivateEndpointConnectionOperations from .operations import ProductOperations from .operations import ProductApiOperations from .operations import ProductGroupOperations @@ -72,6 +75,7 @@ from .operations import QuotaByPeriodKeysOperations from .operations import RegionOperations from .operations import ReportsOperations +from .operations import SchemaOperations from .operations import TenantSettingsOperations from .operations import ApiManagementSkusOperations from .operations import SubscriptionOperations @@ -88,7 +92,7 @@ from . import models -class ApiManagementClient(SDKClient): +class ApiManagementClient(ApiManagementClientOperationsMixin, SDKClient): """ApiManagement Client :ivar config: Configuration for client. @@ -180,6 +184,8 @@ class ApiManagementClient(SDKClient): :vartype notification_recipient_email: azure.mgmt.apimanagement.operations.NotificationRecipientEmailOperations :ivar open_id_connect_provider: OpenIdConnectProvider operations :vartype open_id_connect_provider: azure.mgmt.apimanagement.operations.OpenIdConnectProviderOperations + :ivar outbound_network_dependencies_endpoints: OutboundNetworkDependenciesEndpoints operations + :vartype outbound_network_dependencies_endpoints: azure.mgmt.apimanagement.operations.OutboundNetworkDependenciesEndpointsOperations :ivar policy: Policy operations :vartype policy: azure.mgmt.apimanagement.operations.PolicyOperations :ivar policy_description: PolicyDescription operations @@ -194,6 +200,8 @@ class ApiManagementClient(SDKClient): :vartype sign_up_settings: azure.mgmt.apimanagement.operations.SignUpSettingsOperations :ivar delegation_settings: DelegationSettings operations :vartype delegation_settings: azure.mgmt.apimanagement.operations.DelegationSettingsOperations + :ivar private_endpoint_connection: PrivateEndpointConnection operations + :vartype private_endpoint_connection: azure.mgmt.apimanagement.operations.PrivateEndpointConnectionOperations :ivar product: Product operations :vartype product: azure.mgmt.apimanagement.operations.ProductOperations :ivar product_api: ProductApi operations @@ -212,6 +220,8 @@ class ApiManagementClient(SDKClient): :vartype region: azure.mgmt.apimanagement.operations.RegionOperations :ivar reports: Reports operations :vartype reports: azure.mgmt.apimanagement.operations.ReportsOperations + :ivar schema: Schema operations + :vartype schema: azure.mgmt.apimanagement.operations.SchemaOperations :ivar tenant_settings: TenantSettings operations :vartype tenant_settings: azure.mgmt.apimanagement.operations.TenantSettingsOperations :ivar api_management_skus: ApiManagementSkus operations @@ -256,7 +266,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) @@ -346,6 +356,8 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.open_id_connect_provider = OpenIdConnectProviderOperations( self._client, self.config, self._serialize, self._deserialize) + self.outbound_network_dependencies_endpoints = OutboundNetworkDependenciesEndpointsOperations( + self._client, self.config, self._serialize, self._deserialize) self.policy = PolicyOperations( self._client, self.config, self._serialize, self._deserialize) self.policy_description = PolicyDescriptionOperations( @@ -360,6 +372,8 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.delegation_settings = DelegationSettingsOperations( self._client, self.config, self._serialize, self._deserialize) + self.private_endpoint_connection = PrivateEndpointConnectionOperations( + self._client, self.config, self._serialize, self._deserialize) self.product = ProductOperations( self._client, self.config, self._serialize, self._deserialize) self.product_api = ProductApiOperations( @@ -378,6 +392,8 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.reports = ReportsOperations( self._client, self.config, self._serialize, self._deserialize) + self.schema = SchemaOperations( + self._client, self.config, self._serialize, self._deserialize) self.tenant_settings = TenantSettingsOperations( self._client, self.config, self._serialize, self._deserialize) self.api_management_skus = ApiManagementSkusOperations( 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 da634501d33f1..6420a763f3219 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 @@ -45,6 +47,7 @@ from ._models_py3 import ApiReleaseContract from ._models_py3 import ApiRevisionContract from ._models_py3 import ApiRevisionInfoContract + from ._models_py3 import ApiSchemaContract from ._models_py3 import ApiTagResourceContractProperties from ._models_py3 import ApiUpdateContract from ._models_py3 import ApiVersionConstraint @@ -52,12 +55,14 @@ from ._models_py3 import ApiVersionSetContractDetails from ._models_py3 import ApiVersionSetEntityBase from ._models_py3 import ApiVersionSetUpdateParameters + from ._models_py3 import ArmIdWrapper from ._models_py3 import AssociationContract from ._models_py3 import AuthenticationSettingsContract from ._models_py3 import AuthorizationServerContract from ._models_py3 import AuthorizationServerContractBaseProperties from ._models_py3 import AuthorizationServerSecretsContract from ._models_py3 import AuthorizationServerUpdateContract + from ._models_py3 import AzureEntityResource from ._models_py3 import BackendAuthorizationHeaderCredentials from ._models_py3 import BackendBaseParameters from ._models_py3 import BackendContract @@ -76,6 +81,14 @@ from ._models_py3 import CertificateCreateOrUpdateParameters from ._models_py3 import CertificateInformation from ._models_py3 import ClientSecretContract + from ._models_py3 import ConnectivityCheckRequest + from ._models_py3 import ConnectivityCheckRequestDestination + from ._models_py3 import ConnectivityCheckRequestProtocolConfiguration + from ._models_py3 import ConnectivityCheckRequestProtocolConfigurationHTTPConfiguration + from ._models_py3 import ConnectivityCheckRequestSource + from ._models_py3 import ConnectivityCheckResponse + from ._models_py3 import ConnectivityHop + from ._models_py3 import ConnectivityIssue from ._models_py3 import ConnectivityStatusContract from ._models_py3 import ContentItemContract from ._models_py3 import ContentTypeContract @@ -87,6 +100,8 @@ from ._models_py3 import EmailTemplateContract from ._models_py3 import EmailTemplateParametersContractProperties from ._models_py3 import EmailTemplateUpdateParameters + from ._models_py3 import EndpointDependency + from ._models_py3 import EndpointDetail from ._models_py3 import ErrorFieldContract from ._models_py3 import ErrorResponse, ErrorResponseException from ._models_py3 import ErrorResponseBody @@ -103,6 +118,7 @@ from ._models_py3 import GroupCreateParameters from ._models_py3 import GroupUpdateParameters from ._models_py3 import HostnameConfiguration + from ._models_py3 import HTTPHeader from ._models_py3 import HttpMessageDiagnostic from ._models_py3 import IdentityProviderBaseParameters from ._models_py3 import IdentityProviderContract @@ -138,7 +154,10 @@ from ._models_py3 import OperationResultLogItemContract from ._models_py3 import OperationTagResourceContractProperties from ._models_py3 import OperationUpdateContract + from ._models_py3 import OutboundEnvironmentEndpoint + from ._models_py3 import OutboundEnvironmentEndpointList from ._models_py3 import ParameterContract + from ._models_py3 import ParameterExampleContract from ._models_py3 import PipelineDiagnosticSettings from ._models_py3 import PolicyCollection from ._models_py3 import PolicyContract @@ -151,10 +170,18 @@ from ._models_py3 import PortalSettingValidationKeyContract from ._models_py3 import PortalSigninSettings from ._models_py3 import PortalSignupSettings + from ._models_py3 import PrivateEndpoint + from ._models_py3 import PrivateEndpointConnection + from ._models_py3 import PrivateEndpointConnectionRequest + from ._models_py3 import PrivateEndpointConnectionRequestProperties + from ._models_py3 import PrivateLinkResource + from ._models_py3 import PrivateLinkResourceListResult + from ._models_py3 import PrivateLinkServiceConnectionState from ._models_py3 import ProductContract from ._models_py3 import ProductEntityBaseParameters from ._models_py3 import ProductTagResourceContractProperties from ._models_py3 import ProductUpdateParameters + from ._models_py3 import ProxyResource from ._models_py3 import QuotaCounterCollection from ._models_py3 import QuotaCounterContract from ._models_py3 import QuotaCounterValueContract @@ -167,6 +194,7 @@ from ._models_py3 import RecipientUserContract from ._models_py3 import RegionContract from ._models_py3 import RegistrationDelegationSettingsProperties + from ._models_py3 import RemotePrivateEndpointConnectionWrapper from ._models_py3 import ReportRecordContract from ._models_py3 import RepresentationContract from ._models_py3 import RequestContract @@ -186,6 +214,7 @@ from ._models_py3 import SubscriptionKeysContract from ._models_py3 import SubscriptionsDelegationSettingsProperties from ._models_py3 import SubscriptionUpdateParameters + from ._models_py3 import SystemData from ._models_py3 import TagContract from ._models_py3 import TagCreateUpdateParameters from ._models_py3 import TagDescriptionContract @@ -196,6 +225,7 @@ from ._models_py3 import TenantSettingsContract from ._models_py3 import TermsOfServiceProperties from ._models_py3 import TokenBodyParameterContract + from ._models_py3 import TrackedResource from ._models_py3 import UserContract from ._models_py3 import UserCreateParameters from ._models_py3 import UserEntityBaseParameters @@ -212,6 +242,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 +250,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 @@ -242,6 +274,7 @@ from ._models import ApiReleaseContract from ._models import ApiRevisionContract from ._models import ApiRevisionInfoContract + from ._models import ApiSchemaContract from ._models import ApiTagResourceContractProperties from ._models import ApiUpdateContract from ._models import ApiVersionConstraint @@ -249,12 +282,14 @@ from ._models import ApiVersionSetContractDetails from ._models import ApiVersionSetEntityBase from ._models import ApiVersionSetUpdateParameters + from ._models import ArmIdWrapper from ._models import AssociationContract from ._models import AuthenticationSettingsContract from ._models import AuthorizationServerContract from ._models import AuthorizationServerContractBaseProperties from ._models import AuthorizationServerSecretsContract from ._models import AuthorizationServerUpdateContract + from ._models import AzureEntityResource from ._models import BackendAuthorizationHeaderCredentials from ._models import BackendBaseParameters from ._models import BackendContract @@ -273,6 +308,14 @@ from ._models import CertificateCreateOrUpdateParameters from ._models import CertificateInformation from ._models import ClientSecretContract + from ._models import ConnectivityCheckRequest + from ._models import ConnectivityCheckRequestDestination + from ._models import ConnectivityCheckRequestProtocolConfiguration + from ._models import ConnectivityCheckRequestProtocolConfigurationHTTPConfiguration + from ._models import ConnectivityCheckRequestSource + from ._models import ConnectivityCheckResponse + from ._models import ConnectivityHop + from ._models import ConnectivityIssue from ._models import ConnectivityStatusContract from ._models import ContentItemContract from ._models import ContentTypeContract @@ -284,6 +327,8 @@ from ._models import EmailTemplateContract from ._models import EmailTemplateParametersContractProperties from ._models import EmailTemplateUpdateParameters + from ._models import EndpointDependency + from ._models import EndpointDetail from ._models import ErrorFieldContract from ._models import ErrorResponse, ErrorResponseException from ._models import ErrorResponseBody @@ -300,6 +345,7 @@ from ._models import GroupCreateParameters from ._models import GroupUpdateParameters from ._models import HostnameConfiguration + from ._models import HTTPHeader from ._models import HttpMessageDiagnostic from ._models import IdentityProviderBaseParameters from ._models import IdentityProviderContract @@ -335,7 +381,10 @@ from ._models import OperationResultLogItemContract from ._models import OperationTagResourceContractProperties from ._models import OperationUpdateContract + from ._models import OutboundEnvironmentEndpoint + from ._models import OutboundEnvironmentEndpointList from ._models import ParameterContract + from ._models import ParameterExampleContract from ._models import PipelineDiagnosticSettings from ._models import PolicyCollection from ._models import PolicyContract @@ -348,10 +397,18 @@ from ._models import PortalSettingValidationKeyContract from ._models import PortalSigninSettings from ._models import PortalSignupSettings + from ._models import PrivateEndpoint + from ._models import PrivateEndpointConnection + from ._models import PrivateEndpointConnectionRequest + from ._models import PrivateEndpointConnectionRequestProperties + from ._models import PrivateLinkResource + from ._models import PrivateLinkResourceListResult + from ._models import PrivateLinkServiceConnectionState from ._models import ProductContract from ._models import ProductEntityBaseParameters from ._models import ProductTagResourceContractProperties from ._models import ProductUpdateParameters + from ._models import ProxyResource from ._models import QuotaCounterCollection from ._models import QuotaCounterContract from ._models import QuotaCounterValueContract @@ -364,6 +421,7 @@ from ._models import RecipientUserContract from ._models import RegionContract from ._models import RegistrationDelegationSettingsProperties + from ._models import RemotePrivateEndpointConnectionWrapper from ._models import ReportRecordContract from ._models import RepresentationContract from ._models import RequestContract @@ -383,6 +441,7 @@ from ._models import SubscriptionKeysContract from ._models import SubscriptionsDelegationSettingsProperties from ._models import SubscriptionUpdateParameters + from ._models import SystemData from ._models import TagContract from ._models import TagCreateUpdateParameters from ._models import TagDescriptionContract @@ -393,6 +452,7 @@ from ._models import TenantSettingsContract from ._models import TermsOfServiceProperties from ._models import TokenBodyParameterContract + from ._models import TrackedResource from ._models import UserContract from ._models import UserCreateParameters from ._models import UserEntityBaseParameters @@ -409,6 +469,7 @@ from ._paged_models import ApiManagementSkuPaged from ._paged_models import ApiReleaseContractPaged from ._paged_models import ApiRevisionContractPaged +from ._paged_models import ApiSchemaContractPaged from ._paged_models import ApiVersionSetContractPaged from ._paged_models import AuthorizationServerContractPaged from ._paged_models import BackendContractPaged @@ -434,6 +495,7 @@ from ._paged_models import OperationContractPaged from ._paged_models import OperationPaged from ._paged_models import PortalRevisionContractPaged +from ._paged_models import PrivateEndpointConnectionPaged from ._paged_models import ProductContractPaged from ._paged_models import RegionContractPaged from ._paged_models import ReportRecordContractPaged @@ -472,8 +534,15 @@ SkuType, ResourceSkuCapacityScaleType, HostnameType, + CertificateSource, + CertificateStatus, + PlatformVersion, + AccessType, + PublicNetworkAccess, VirtualNetworkType, + PrivateEndpointServiceConnectionStatus, ApimIdentityType, + CreatedByType, NameAvailabilityReason, ProvisioningState, KeyType, @@ -485,11 +554,20 @@ LoggerType, ConnectivityStatusType, PortalRevisionStatus, + PrivateEndpointConnectionProvisioningState, SubscriptionState, + SchemaType, ApiManagementSkuCapacityScaleType, ApiManagementSkuRestrictionsType, ApiManagementSkuRestrictionsReasonCode, AsyncOperationStatus, + Origin, + Severity, + IssueType, + ConnectionStatus, + PreferredIPVersion, + ConnectivityCheckProtocol, + Method, AccessIdName, NotificationName, PolicyExportFormat, @@ -504,6 +582,7 @@ 'AccessInformationSecretsContract', 'AccessInformationUpdateParameters', 'AdditionalLocation', + 'ApiContactInformation', 'ApiContract', 'ApiContractProperties', 'ApiCreateOrUpdateParameter', @@ -511,6 +590,7 @@ 'ApiEntityBaseContract', 'ApiExportResult', 'ApiExportResultValue', + 'ApiLicenseInformation', 'ApiManagementServiceApplyNetworkConfigurationParameters', 'ApiManagementServiceBackupRestoreParameters', 'ApiManagementServiceBaseProperties', @@ -534,6 +614,7 @@ 'ApiReleaseContract', 'ApiRevisionContract', 'ApiRevisionInfoContract', + 'ApiSchemaContract', 'ApiTagResourceContractProperties', 'ApiUpdateContract', 'ApiVersionConstraint', @@ -541,12 +622,14 @@ 'ApiVersionSetContractDetails', 'ApiVersionSetEntityBase', 'ApiVersionSetUpdateParameters', + 'ArmIdWrapper', 'AssociationContract', 'AuthenticationSettingsContract', 'AuthorizationServerContract', 'AuthorizationServerContractBaseProperties', 'AuthorizationServerSecretsContract', 'AuthorizationServerUpdateContract', + 'AzureEntityResource', 'BackendAuthorizationHeaderCredentials', 'BackendBaseParameters', 'BackendContract', @@ -565,6 +648,14 @@ 'CertificateCreateOrUpdateParameters', 'CertificateInformation', 'ClientSecretContract', + 'ConnectivityCheckRequest', + 'ConnectivityCheckRequestDestination', + 'ConnectivityCheckRequestProtocolConfiguration', + 'ConnectivityCheckRequestProtocolConfigurationHTTPConfiguration', + 'ConnectivityCheckRequestSource', + 'ConnectivityCheckResponse', + 'ConnectivityHop', + 'ConnectivityIssue', 'ConnectivityStatusContract', 'ContentItemContract', 'ContentTypeContract', @@ -576,6 +667,8 @@ 'EmailTemplateContract', 'EmailTemplateParametersContractProperties', 'EmailTemplateUpdateParameters', + 'EndpointDependency', + 'EndpointDetail', 'ErrorFieldContract', 'ErrorResponse', 'ErrorResponseException', 'ErrorResponseBody', @@ -592,6 +685,7 @@ 'GroupCreateParameters', 'GroupUpdateParameters', 'HostnameConfiguration', + 'HTTPHeader', 'HttpMessageDiagnostic', 'IdentityProviderBaseParameters', 'IdentityProviderContract', @@ -627,7 +721,10 @@ 'OperationResultLogItemContract', 'OperationTagResourceContractProperties', 'OperationUpdateContract', + 'OutboundEnvironmentEndpoint', + 'OutboundEnvironmentEndpointList', 'ParameterContract', + 'ParameterExampleContract', 'PipelineDiagnosticSettings', 'PolicyCollection', 'PolicyContract', @@ -640,10 +737,18 @@ 'PortalSettingValidationKeyContract', 'PortalSigninSettings', 'PortalSignupSettings', + 'PrivateEndpoint', + 'PrivateEndpointConnection', + 'PrivateEndpointConnectionRequest', + 'PrivateEndpointConnectionRequestProperties', + 'PrivateLinkResource', + 'PrivateLinkResourceListResult', + 'PrivateLinkServiceConnectionState', 'ProductContract', 'ProductEntityBaseParameters', 'ProductTagResourceContractProperties', 'ProductUpdateParameters', + 'ProxyResource', 'QuotaCounterCollection', 'QuotaCounterContract', 'QuotaCounterValueContract', @@ -656,6 +761,7 @@ 'RecipientUserContract', 'RegionContract', 'RegistrationDelegationSettingsProperties', + 'RemotePrivateEndpointConnectionWrapper', 'ReportRecordContract', 'RepresentationContract', 'RequestContract', @@ -675,6 +781,7 @@ 'SubscriptionKeysContract', 'SubscriptionsDelegationSettingsProperties', 'SubscriptionUpdateParameters', + 'SystemData', 'TagContract', 'TagCreateUpdateParameters', 'TagDescriptionContract', @@ -685,6 +792,7 @@ 'TenantSettingsContract', 'TermsOfServiceProperties', 'TokenBodyParameterContract', + 'TrackedResource', 'UserContract', 'UserCreateParameters', 'UserEntityBaseParameters', @@ -702,7 +810,7 @@ 'OperationContractPaged', 'TagContractPaged', 'ProductContractPaged', - 'SchemaContractPaged', + 'ApiSchemaContractPaged', 'DiagnosticContractPaged', 'IssueContractPaged', 'IssueCommentContractPaged', @@ -731,10 +839,12 @@ 'NotificationContractPaged', 'OpenidConnectProviderContractPaged', 'PortalRevisionContractPaged', + 'PrivateEndpointConnectionPaged', 'SubscriptionContractPaged', 'RegionContractPaged', 'ReportRecordContractPaged', 'RequestReportRecordContractPaged', + 'SchemaContractPaged', 'TenantSettingsContractPaged', 'ApiManagementSkuPaged', 'AccessInformationContractPaged', @@ -763,8 +873,15 @@ 'SkuType', 'ResourceSkuCapacityScaleType', 'HostnameType', + 'CertificateSource', + 'CertificateStatus', + 'PlatformVersion', + 'AccessType', + 'PublicNetworkAccess', 'VirtualNetworkType', + 'PrivateEndpointServiceConnectionStatus', 'ApimIdentityType', + 'CreatedByType', 'NameAvailabilityReason', 'ProvisioningState', 'KeyType', @@ -776,11 +893,20 @@ 'LoggerType', 'ConnectivityStatusType', 'PortalRevisionStatus', + 'PrivateEndpointConnectionProvisioningState', 'SubscriptionState', + 'SchemaType', 'ApiManagementSkuCapacityScaleType', 'ApiManagementSkuRestrictionsType', 'ApiManagementSkuRestrictionsReasonCode', 'AsyncOperationStatus', + 'Origin', + 'Severity', + 'IssueType', + 'ConnectionStatus', + 'PreferredIPVersion', + 'ConnectivityCheckProtocol', + 'Method', 'AccessIdName', 'NotificationName', 'PolicyExportFormat', 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 e6902c836c28c..b1727683d84d4 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,42 @@ 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 PlatformVersion(str, Enum): + + undetermined = "undetermined" #: Platform version cannot be determined, as compute platform is not deployed. + stv1 = "stv1" #: Platform running the service on Single Tenant V1 platform. + stv2 = "stv2" #: Platform running the service on Single Tenant V2 platform. + mtv1 = "mtv1" #: Platform running the service on Multi Tenant V1 platform. + + +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 PublicNetworkAccess(str, Enum): + + enabled = "Enabled" + disabled = "Disabled" + + class VirtualNetworkType(str, Enum): none = "None" #: The service is not part of any Virtual Network. @@ -195,6 +238,13 @@ class VirtualNetworkType(str, Enum): internal = "Internal" #: The service is part of Virtual Network and it is only accessible from within the virtual network. +class PrivateEndpointServiceConnectionStatus(str, Enum): + + pending = "Pending" + approved = "Approved" + rejected = "Rejected" + + class ApimIdentityType(str, Enum): system_assigned = "SystemAssigned" @@ -203,6 +253,14 @@ class ApimIdentityType(str, Enum): none = "None" +class CreatedByType(str, Enum): + + user = "User" + application = "Application" + managed_identity = "ManagedIdentity" + key = "Key" + + class NameAvailabilityReason(str, Enum): valid = "Valid" @@ -274,10 +332,18 @@ 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 PrivateEndpointConnectionProvisioningState(str, Enum): + + succeeded = "Succeeded" + creating = "Creating" + deleting = "Deleting" + failed = "Failed" class SubscriptionState(str, Enum): @@ -290,6 +356,12 @@ class SubscriptionState(str, Enum): cancelled = "cancelled" +class SchemaType(str, Enum): + + xml = "xml" #: Xml schema type. + json = "json" #: Json schema type. + + class ApiManagementSkuCapacityScaleType(str, Enum): automatic = "Automatic" @@ -317,6 +389,58 @@ class AsyncOperationStatus(str, Enum): failed = "Failed" +class Origin(str, Enum): + + local = "Local" + inbound = "Inbound" + outbound = "Outbound" + + +class Severity(str, Enum): + + error = "Error" + warning = "Warning" + + +class IssueType(str, Enum): + + unknown = "Unknown" + agent_stopped = "AgentStopped" + guest_firewall = "GuestFirewall" + dns_resolution = "DnsResolution" + socket_bind = "SocketBind" + network_security_rule = "NetworkSecurityRule" + user_defined_route = "UserDefinedRoute" + port_throttled = "PortThrottled" + platform = "Platform" + + +class ConnectionStatus(str, Enum): + + unknown = "Unknown" + connected = "Connected" + disconnected = "Disconnected" + degraded = "Degraded" + + +class PreferredIPVersion(str, Enum): + + ipv4 = "IPv4" + + +class ConnectivityCheckProtocol(str, Enum): + + tcp = "TCP" + http = "HTTP" + https = "HTTPS" + + +class Method(str, Enum): + + get = "GET" + post = "POST" + + class AccessIdName(str, Enum): access = "access" 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 9e47cec024bbd..ad5571b83f44c 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 @@ -14,16 +14,21 @@ class Resource(Model): - """The Resource definition. + """Resource. + + Common fields that are returned in the response for all Azure Resource + Manager resources. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -52,11 +57,13 @@ class AccessInformationContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param access_information_contract_id: Access Information type ('access' or 'gitAccess') @@ -197,6 +204,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: @@ -208,6 +219,10 @@ class AdditionalLocation(Model): deployed in multiple locations. This can be used to disable the gateway in this additional location. Default value: False . :type disable_gateway: bool + :ivar platform_version: Compute Platform Version running the service. + Possible values include: 'undetermined', 'stv1', 'stv2', 'mtv1' + :vartype platform_version: str or + ~azure.mgmt.apimanagement.models.PlatformVersion """ _validation = { @@ -216,6 +231,7 @@ class AdditionalLocation(Model): 'public_ip_addresses': {'readonly': True}, 'private_ip_addresses': {'readonly': True}, 'gateway_regional_url': {'readonly': True}, + 'platform_version': {'readonly': True}, } _attribute_map = { @@ -224,9 +240,11 @@ 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'}, + 'platform_version': {'key': 'platformVersion', 'type': 'str'}, } def __init__(self, **kwargs): @@ -236,24 +254,54 @@ 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) + self.platform_version = None + + +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. All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param description: Description of the API. May include HTML formatting tags. @@ -266,21 +314,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 +337,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 +394,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 +419,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 +447,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 +470,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 +500,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 +519,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 +543,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 +566,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 +617,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 +657,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 +680,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 +710,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 +749,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 +778,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 +818,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 +841,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 +857,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 +902,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 +998,18 @@ 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 public_network_access: Whether or not public endpoint access is + allowed for this API Management service. Value is optional but if passed + in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are + the exclusive access method. Default value is 'Enabled'. Possible values + include: 'Enabled', 'Disabled' + :type public_network_access: str or + ~azure.mgmt.apimanagement.models.PublicNetworkAccess :param virtual_network_configuration: Virtual network configuration of the API Management service. :type virtual_network_configuration: @@ -938,6 +1085,15 @@ class ApiManagementServiceBaseProperties(Model): soft-deleted. If this flag is specified and set to True all other properties will be ignored. Default value: False . :type restore: bool + :param private_endpoint_connections: List of Private Endpoint Connections + of this service. + :type private_endpoint_connections: + list[~azure.mgmt.apimanagement.models.RemotePrivateEndpointConnectionWrapper] + :ivar platform_version: Compute Platform Version running the service in + this location. Possible values include: 'undetermined', 'stv1', 'stv2', + 'mtv1' + :vartype platform_version: str or + ~azure.mgmt.apimanagement.models.PlatformVersion """ _validation = { @@ -953,6 +1109,7 @@ class ApiManagementServiceBaseProperties(Model): 'developer_portal_url': {'readonly': True}, 'public_ip_addresses': {'readonly': True}, 'private_ip_addresses': {'readonly': True}, + 'platform_version': {'readonly': True}, } _attribute_map = { @@ -969,6 +1126,8 @@ 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'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, 'virtual_network_configuration': {'key': 'virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'}, 'additional_locations': {'key': 'additionalLocations', 'type': '[AdditionalLocation]'}, 'custom_properties': {'key': 'customProperties', 'type': '{str}'}, @@ -978,6 +1137,8 @@ class ApiManagementServiceBaseProperties(Model): 'virtual_network_type': {'key': 'virtualNetworkType', 'type': 'str'}, 'api_version_constraint': {'key': 'apiVersionConstraint', 'type': 'ApiVersionConstraint'}, 'restore': {'key': 'restore', 'type': 'bool'}, + 'private_endpoint_connections': {'key': 'privateEndpointConnections', 'type': '[RemotePrivateEndpointConnectionWrapper]'}, + 'platform_version': {'key': 'platformVersion', 'type': 'str'}, } def __init__(self, **kwargs): @@ -995,6 +1156,8 @@ 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.public_network_access = kwargs.get('public_network_access', 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) @@ -1004,6 +1167,8 @@ def __init__(self, **kwargs): self.virtual_network_type = kwargs.get('virtual_network_type', "None") self.api_version_constraint = kwargs.get('api_version_constraint', None) self.restore = kwargs.get('restore', False) + self.private_endpoint_connections = kwargs.get('private_endpoint_connections', None) + self.platform_version = None class ApiManagementServiceCheckNameAvailabilityParameters(Model): @@ -1257,6 +1422,18 @@ 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 public_network_access: Whether or not public endpoint access is + allowed for this API Management service. Value is optional but if passed + in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are + the exclusive access method. Default value is 'Enabled'. Possible values + include: 'Enabled', 'Disabled' + :type public_network_access: str or + ~azure.mgmt.apimanagement.models.PublicNetworkAccess :param virtual_network_configuration: Virtual network configuration of the API Management service. :type virtual_network_configuration: @@ -1332,6 +1509,15 @@ class ApiManagementServiceResource(ApimResource): soft-deleted. If this flag is specified and set to True all other properties will be ignored. Default value: False . :type restore: bool + :param private_endpoint_connections: List of Private Endpoint Connections + of this service. + :type private_endpoint_connections: + list[~azure.mgmt.apimanagement.models.RemotePrivateEndpointConnectionWrapper] + :ivar platform_version: Compute Platform Version running the service in + this location. Possible values include: 'undetermined', 'stv1', 'stv2', + 'mtv1' + :vartype platform_version: str or + ~azure.mgmt.apimanagement.models.PlatformVersion :param publisher_email: Required. Publisher email. :type publisher_email: str :param publisher_name: Required. Publisher name. @@ -1342,6 +1528,9 @@ class ApiManagementServiceResource(ApimResource): :param identity: Managed service identity of the Api Management service. :type identity: ~azure.mgmt.apimanagement.models.ApiManagementServiceIdentity + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: ~azure.mgmt.apimanagement.models.SystemData :param location: Required. Resource location. :type location: str :ivar etag: ETag of the resource. @@ -1367,9 +1556,11 @@ class ApiManagementServiceResource(ApimResource): 'developer_portal_url': {'readonly': True}, 'public_ip_addresses': {'readonly': True}, 'private_ip_addresses': {'readonly': True}, + 'platform_version': {'readonly': True}, 'publisher_email': {'required': True, 'max_length': 100}, 'publisher_name': {'required': True, 'max_length': 100}, 'sku': {'required': True}, + 'system_data': {'readonly': True}, 'location': {'required': True}, 'etag': {'readonly': True}, } @@ -1392,6 +1583,8 @@ 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'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, 'virtual_network_configuration': {'key': 'properties.virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'}, 'additional_locations': {'key': 'properties.additionalLocations', 'type': '[AdditionalLocation]'}, 'custom_properties': {'key': 'properties.customProperties', 'type': '{str}'}, @@ -1401,10 +1594,13 @@ class ApiManagementServiceResource(ApimResource): 'virtual_network_type': {'key': 'properties.virtualNetworkType', 'type': 'str'}, 'api_version_constraint': {'key': 'properties.apiVersionConstraint', 'type': 'ApiVersionConstraint'}, 'restore': {'key': 'properties.restore', 'type': 'bool'}, + 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[RemotePrivateEndpointConnectionWrapper]'}, + 'platform_version': {'key': 'properties.platformVersion', 'type': 'str'}, 'publisher_email': {'key': 'properties.publisherEmail', 'type': 'str'}, 'publisher_name': {'key': 'properties.publisherName', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'ApiManagementServiceSkuProperties'}, 'identity': {'key': 'identity', 'type': 'ApiManagementServiceIdentity'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'location': {'key': 'location', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, 'zones': {'key': 'zones', 'type': '[str]'}, @@ -1425,6 +1621,8 @@ 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.public_network_access = kwargs.get('public_network_access', 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) @@ -1434,10 +1632,13 @@ def __init__(self, **kwargs): self.virtual_network_type = kwargs.get('virtual_network_type', "None") self.api_version_constraint = kwargs.get('api_version_constraint', None) self.restore = kwargs.get('restore', False) + self.private_endpoint_connections = kwargs.get('private_endpoint_connections', None) + self.platform_version = None self.publisher_email = kwargs.get('publisher_email', None) self.publisher_name = kwargs.get('publisher_name', None) self.sku = kwargs.get('sku', None) self.identity = kwargs.get('identity', None) + self.system_data = None self.location = kwargs.get('location', None) self.etag = None self.zones = kwargs.get('zones', None) @@ -1531,6 +1732,18 @@ 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 public_network_access: Whether or not public endpoint access is + allowed for this API Management service. Value is optional but if passed + in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are + the exclusive access method. Default value is 'Enabled'. Possible values + include: 'Enabled', 'Disabled' + :type public_network_access: str or + ~azure.mgmt.apimanagement.models.PublicNetworkAccess :param virtual_network_configuration: Virtual network configuration of the API Management service. :type virtual_network_configuration: @@ -1606,6 +1819,15 @@ class ApiManagementServiceUpdateParameters(ApimResource): soft-deleted. If this flag is specified and set to True all other properties will be ignored. Default value: False . :type restore: bool + :param private_endpoint_connections: List of Private Endpoint Connections + of this service. + :type private_endpoint_connections: + list[~azure.mgmt.apimanagement.models.RemotePrivateEndpointConnectionWrapper] + :ivar platform_version: Compute Platform Version running the service in + this location. Possible values include: 'undetermined', 'stv1', 'stv2', + 'mtv1' + :vartype platform_version: str or + ~azure.mgmt.apimanagement.models.PlatformVersion :param publisher_email: Publisher email. :type publisher_email: str :param publisher_name: Publisher name. @@ -1618,6 +1840,9 @@ class ApiManagementServiceUpdateParameters(ApimResource): ~azure.mgmt.apimanagement.models.ApiManagementServiceIdentity :ivar etag: ETag of the resource. :vartype etag: str + :param zones: A list of availability zones denoting where the resource + needs to come from. + :type zones: list[str] """ _validation = { @@ -1636,6 +1861,7 @@ class ApiManagementServiceUpdateParameters(ApimResource): 'developer_portal_url': {'readonly': True}, 'public_ip_addresses': {'readonly': True}, 'private_ip_addresses': {'readonly': True}, + 'platform_version': {'readonly': True}, 'publisher_email': {'max_length': 100}, 'publisher_name': {'max_length': 100}, 'etag': {'readonly': True}, @@ -1659,6 +1885,8 @@ 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'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, 'virtual_network_configuration': {'key': 'properties.virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'}, 'additional_locations': {'key': 'properties.additionalLocations', 'type': '[AdditionalLocation]'}, 'custom_properties': {'key': 'properties.customProperties', 'type': '{str}'}, @@ -1668,11 +1896,14 @@ class ApiManagementServiceUpdateParameters(ApimResource): 'virtual_network_type': {'key': 'properties.virtualNetworkType', 'type': 'str'}, 'api_version_constraint': {'key': 'properties.apiVersionConstraint', 'type': 'ApiVersionConstraint'}, 'restore': {'key': 'properties.restore', 'type': 'bool'}, + 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[RemotePrivateEndpointConnectionWrapper]'}, + 'platform_version': {'key': 'properties.platformVersion', 'type': 'str'}, 'publisher_email': {'key': 'properties.publisherEmail', 'type': 'str'}, 'publisher_name': {'key': 'properties.publisherName', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'ApiManagementServiceSkuProperties'}, 'identity': {'key': 'identity', 'type': 'ApiManagementServiceIdentity'}, 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, } def __init__(self, **kwargs): @@ -1690,6 +1921,8 @@ 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.public_network_access = kwargs.get('public_network_access', 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) @@ -1699,11 +1932,14 @@ def __init__(self, **kwargs): self.virtual_network_type = kwargs.get('virtual_network_type', "None") self.api_version_constraint = kwargs.get('api_version_constraint', None) self.restore = kwargs.get('restore', False) + self.private_endpoint_connections = kwargs.get('private_endpoint_connections', None) + self.platform_version = None self.publisher_email = kwargs.get('publisher_email', None) self.publisher_name = kwargs.get('publisher_name', None) self.sku = kwargs.get('sku', None) self.identity = kwargs.get('identity', None) self.etag = None + self.zones = kwargs.get('zones', None) class ApiManagementSku(Model): @@ -2043,11 +2279,13 @@ class ApiReleaseContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param api_id: Identifier of the API the release belongs to. :type api_id: str @@ -2185,6 +2423,66 @@ def __init__(self, **kwargs): self.api_version_set = kwargs.get('api_version_set', None) +class ApiSchemaContract(Resource): + """API Schema Contract details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :param content_type: Required. 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 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 v1 schemas + only, null otherwise. + :type definitions: object + :param components: Types definitions. Used for Swagger/OpenAPI v2/v3 + schemas only, null otherwise. + :type components: object + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'content_type': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + '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'}, + 'components': {'key': 'properties.document.components', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(ApiSchemaContract, self).__init__(**kwargs) + self.content_type = kwargs.get('content_type', None) + self.value = kwargs.get('value', None) + self.definitions = kwargs.get('definitions', None) + self.components = kwargs.get('components', None) + + class ApiTagResourceContractProperties(ApiEntityBaseContract): """API contract properties for the Tag Resources. @@ -2202,21 +2500,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 +2523,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 +2571,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 +2607,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 +2630,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 +2676,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 +2699,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,18 +2726,20 @@ 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. All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param description: Description of API Version Set. :type description: str @@ -2506,7 +2831,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 +2862,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 @@ -2579,17 +2904,42 @@ def __init__(self, **kwargs): self.versioning_scheme = kwargs.get('versioning_scheme', None) +class ArmIdWrapper(Model): + """A wrapper for an ARM resource id. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: + :vartype id: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ArmIdWrapper, self).__init__(**kwargs) + self.id = None + + class AssociationContract(Resource): """Association entity details. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param provisioning_state: Provisioning state. Possible values include: 'created' @@ -2645,11 +2995,13 @@ class AuthorizationServerContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param description: Description of the authorization server. Can contain HTML formatting tags. @@ -2877,11 +3229,13 @@ class AuthorizationServerUpdateContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param description: Description of the authorization server. Can contain HTML formatting tags. @@ -2996,6 +3350,46 @@ def __init__(self, **kwargs): self.client_secret = kwargs.get('client_secret', None) +class AzureEntityResource(Resource): + """Entity Resource. + + The resource model definition for an Azure Resource Manager resource with + an etag. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :ivar etag: Resource Etag. + :vartype etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureEntityResource, self).__init__(**kwargs) + self.etag = None + + class BackendAuthorizationHeaderCredentials(Model): """Authorization header information. @@ -3031,7 +3425,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 @@ -3080,18 +3474,20 @@ class BackendContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param title: Backend Title. :type title: str :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 @@ -3243,11 +3639,13 @@ class BackendReconnectContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param after: Duration in ISO8601 format after which reconnect will be initiated. Minimum duration of the Reconnect is PT2M. @@ -3351,7 +3749,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 @@ -3430,11 +3828,13 @@ class CacheContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param description: Cache description :type description: str @@ -3559,11 +3959,13 @@ class CertificateContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param subject: Required. Subject attribute of the certificate. :type subject: str @@ -3690,124 +4092,423 @@ class CloudError(Model): } -class ConnectivityStatusContract(Model): - """Details about connectivity to a resource. +class ConnectivityCheckRequest(Model): + """A request to perform the connectivity check operation on a API Management + service. All required parameters must be populated in order to send to Azure. - :param name: Required. The hostname of the resource which the service - depends on. This can be the database, storage or any other azure resource - on which the service depends upon. - :type name: str - :param status: Required. Resource Connectivity Status Type identifier. - Possible values include: 'initializing', 'success', 'failure' - :type status: str or - ~azure.mgmt.apimanagement.models.ConnectivityStatusType - :param error: Error details of the connectivity to the resource. - :type error: str - :param last_updated: Required. The date when the resource connectivity - status was last updated. This status should be updated every 15 minutes. - If this status has not been updated, then it means that the service has - lost network connectivity to the resource, from inside the Virtual - Network.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` - as specified by the ISO 8601 standard. - :type last_updated: datetime - :param last_status_change: Required. The date when the resource - connectivity status last Changed from success to failure or vice-versa. - The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as - specified by the ISO 8601 standard. - :type last_status_change: datetime - :param resource_type: Required. Resource Type. - :type resource_type: str - :param is_optional: Required. Whether this is optional. - :type is_optional: bool + :param source: Required. Definitions about the connectivity check origin. + :type source: + ~azure.mgmt.apimanagement.models.ConnectivityCheckRequestSource + :param destination: Required. The connectivity check operation + destination. + :type destination: + ~azure.mgmt.apimanagement.models.ConnectivityCheckRequestDestination + :param preferred_ip_version: The IP version to be used. Only IPv4 is + supported for now. Possible values include: 'IPv4' + :type preferred_ip_version: str or + ~azure.mgmt.apimanagement.models.PreferredIPVersion + :param protocol: The request's protocol. Specific protocol configuration + can be available based on this selection. The specified destination + address must be coherent with this value. Possible values include: 'TCP', + 'HTTP', 'HTTPS' + :type protocol: str or + ~azure.mgmt.apimanagement.models.ConnectivityCheckProtocol + :param protocol_configuration: Protocol-specific configuration. + :type protocol_configuration: + ~azure.mgmt.apimanagement.models.ConnectivityCheckRequestProtocolConfiguration """ _validation = { - 'name': {'required': True, 'min_length': 1}, - 'status': {'required': True}, - 'last_updated': {'required': True}, - 'last_status_change': {'required': True}, - 'resource_type': {'required': True}, - 'is_optional': {'required': True}, + 'source': {'required': True}, + 'destination': {'required': True}, } _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'str'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'last_status_change': {'key': 'lastStatusChange', 'type': 'iso-8601'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'is_optional': {'key': 'isOptional', 'type': 'bool'}, + 'source': {'key': 'source', 'type': 'ConnectivityCheckRequestSource'}, + 'destination': {'key': 'destination', 'type': 'ConnectivityCheckRequestDestination'}, + 'preferred_ip_version': {'key': 'preferredIPVersion', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'protocol_configuration': {'key': 'protocolConfiguration', 'type': 'ConnectivityCheckRequestProtocolConfiguration'}, } def __init__(self, **kwargs): - super(ConnectivityStatusContract, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.status = kwargs.get('status', None) - self.error = kwargs.get('error', None) - self.last_updated = kwargs.get('last_updated', None) - self.last_status_change = kwargs.get('last_status_change', None) - self.resource_type = kwargs.get('resource_type', None) - self.is_optional = kwargs.get('is_optional', None) + super(ConnectivityCheckRequest, self).__init__(**kwargs) + self.source = kwargs.get('source', None) + self.destination = kwargs.get('destination', None) + self.preferred_ip_version = kwargs.get('preferred_ip_version', None) + self.protocol = kwargs.get('protocol', None) + self.protocol_configuration = kwargs.get('protocol_configuration', None) -class ContentItemContract(Resource): - """Content type contract details. +class ConnectivityCheckRequestDestination(Model): + """The connectivity check operation destination. - Variables are only populated by the server, and will be ignored when - sending a request. + All required parameters must be populated in order to send to Azure. - :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 properties: Properties of the content item. - :type properties: dict[str, object] + :param address: Required. Destination address. Can either be an IP address + or a FQDN. + :type address: str + :param port: Required. Destination port. + :type port: long """ _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, + 'address': {'required': True}, + 'port': {'required': True}, } _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'}, + 'address': {'key': 'address', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'long'}, } def __init__(self, **kwargs): - super(ContentItemContract, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) + super(ConnectivityCheckRequestDestination, self).__init__(**kwargs) + self.address = kwargs.get('address', None) + self.port = kwargs.get('port', None) -class ContentTypeContract(Resource): - """Content type contract details. +class ConnectivityCheckRequestProtocolConfiguration(Model): + """Protocol-specific configuration. - Variables are only populated by the server, and will be ignored when - sending a request. + :param http_configuration: Configuration for HTTP or HTTPS requests. + :type http_configuration: + ~azure.mgmt.apimanagement.models.ConnectivityCheckRequestProtocolConfigurationHTTPConfiguration + """ - :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 content_type_contract_id: Content type identifier - :type content_type_contract_id: str - :param content_type_contract_name: Content type name. Must be 1 to 250 - characters long. - :type content_type_contract_name: str - :param description: Content type description. - :type description: str - :param schema: Content type schema. - :type schema: object + _attribute_map = { + 'http_configuration': {'key': 'HTTPConfiguration', 'type': 'ConnectivityCheckRequestProtocolConfigurationHTTPConfiguration'}, + } + + def __init__(self, **kwargs): + super(ConnectivityCheckRequestProtocolConfiguration, self).__init__(**kwargs) + self.http_configuration = kwargs.get('http_configuration', None) + + +class ConnectivityCheckRequestProtocolConfigurationHTTPConfiguration(Model): + """Configuration for HTTP or HTTPS requests. + + :param method: The HTTP method to be used. Possible values include: 'GET', + 'POST' + :type method: str or ~azure.mgmt.apimanagement.models.Method + :param valid_status_codes: List of HTTP status codes considered valid for + the request response. + :type valid_status_codes: list[long] + :param headers: List of headers to be included in the request. + :type headers: list[~azure.mgmt.apimanagement.models.HTTPHeader] + """ + + _attribute_map = { + 'method': {'key': 'method', 'type': 'str'}, + 'valid_status_codes': {'key': 'validStatusCodes', 'type': '[long]'}, + 'headers': {'key': 'headers', 'type': '[HTTPHeader]'}, + } + + def __init__(self, **kwargs): + super(ConnectivityCheckRequestProtocolConfigurationHTTPConfiguration, self).__init__(**kwargs) + self.method = kwargs.get('method', None) + self.valid_status_codes = kwargs.get('valid_status_codes', None) + self.headers = kwargs.get('headers', None) + + +class ConnectivityCheckRequestSource(Model): + """Definitions about the connectivity check origin. + + All required parameters must be populated in order to send to Azure. + + :param region: Required. The API Management service region from where to + start the connectivity check operation. + :type region: str + :param instance: The particular VMSS instance from which to fire the + request. + :type instance: long + """ + + _validation = { + 'region': {'required': True}, + } + + _attribute_map = { + 'region': {'key': 'region', 'type': 'str'}, + 'instance': {'key': 'instance', 'type': 'long'}, + } + + def __init__(self, **kwargs): + super(ConnectivityCheckRequestSource, self).__init__(**kwargs) + self.region = kwargs.get('region', None) + self.instance = kwargs.get('instance', None) + + +class ConnectivityCheckResponse(Model): + """Information on the connectivity status. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar hops: List of hops between the source and the destination. + :vartype hops: list[~azure.mgmt.apimanagement.models.ConnectivityHop] + :ivar connection_status: The connection status. Possible values include: + 'Unknown', 'Connected', 'Disconnected', 'Degraded' + :vartype connection_status: str or + ~azure.mgmt.apimanagement.models.ConnectionStatus + :ivar avg_latency_in_ms: Average latency in milliseconds. + :vartype avg_latency_in_ms: long + :ivar min_latency_in_ms: Minimum latency in milliseconds. + :vartype min_latency_in_ms: long + :ivar max_latency_in_ms: Maximum latency in milliseconds. + :vartype max_latency_in_ms: long + :ivar probes_sent: Total number of probes sent. + :vartype probes_sent: long + :ivar probes_failed: Number of failed probes. + :vartype probes_failed: long + """ + + _validation = { + 'hops': {'readonly': True}, + 'connection_status': {'readonly': True}, + 'avg_latency_in_ms': {'readonly': True}, + 'min_latency_in_ms': {'readonly': True}, + 'max_latency_in_ms': {'readonly': True}, + 'probes_sent': {'readonly': True}, + 'probes_failed': {'readonly': True}, + } + + _attribute_map = { + 'hops': {'key': 'hops', 'type': '[ConnectivityHop]'}, + 'connection_status': {'key': 'connectionStatus', 'type': 'str'}, + 'avg_latency_in_ms': {'key': 'avgLatencyInMs', 'type': 'long'}, + 'min_latency_in_ms': {'key': 'minLatencyInMs', 'type': 'long'}, + 'max_latency_in_ms': {'key': 'maxLatencyInMs', 'type': 'long'}, + 'probes_sent': {'key': 'probesSent', 'type': 'long'}, + 'probes_failed': {'key': 'probesFailed', 'type': 'long'}, + } + + def __init__(self, **kwargs): + super(ConnectivityCheckResponse, self).__init__(**kwargs) + self.hops = None + self.connection_status = None + self.avg_latency_in_ms = None + self.min_latency_in_ms = None + self.max_latency_in_ms = None + self.probes_sent = None + self.probes_failed = None + + +class ConnectivityHop(Model): + """Information about a hop between the source and the destination. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar type: The type of the hop. + :vartype type: str + :ivar id: The ID of the hop. + :vartype id: str + :ivar address: The IP address of the hop. + :vartype address: str + :ivar resource_id: The ID of the resource corresponding to this hop. + :vartype resource_id: str + :ivar next_hop_ids: List of next hop identifiers. + :vartype next_hop_ids: list[str] + :ivar issues: List of issues. + :vartype issues: list[~azure.mgmt.apimanagement.models.ConnectivityIssue] + """ + + _validation = { + 'type': {'readonly': True}, + 'id': {'readonly': True}, + 'address': {'readonly': True}, + 'resource_id': {'readonly': True}, + 'next_hop_ids': {'readonly': True}, + 'issues': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'address': {'key': 'address', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'next_hop_ids': {'key': 'nextHopIds', 'type': '[str]'}, + 'issues': {'key': 'issues', 'type': '[ConnectivityIssue]'}, + } + + def __init__(self, **kwargs): + super(ConnectivityHop, self).__init__(**kwargs) + self.type = None + self.id = None + self.address = None + self.resource_id = None + self.next_hop_ids = None + self.issues = None + + +class ConnectivityIssue(Model): + """Information about an issue encountered in the process of checking for + connectivity. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar origin: The origin of the issue. Possible values include: 'Local', + 'Inbound', 'Outbound' + :vartype origin: str or ~azure.mgmt.apimanagement.models.Origin + :ivar severity: The severity of the issue. Possible values include: + 'Error', 'Warning' + :vartype severity: str or ~azure.mgmt.apimanagement.models.Severity + :ivar type: The type of issue. Possible values include: 'Unknown', + 'AgentStopped', 'GuestFirewall', 'DnsResolution', 'SocketBind', + 'NetworkSecurityRule', 'UserDefinedRoute', 'PortThrottled', 'Platform' + :vartype type: str or ~azure.mgmt.apimanagement.models.IssueType + :ivar context: Provides additional context on the issue. + :vartype context: list[dict[str, str]] + """ + + _validation = { + 'origin': {'readonly': True}, + 'severity': {'readonly': True}, + 'type': {'readonly': True}, + 'context': {'readonly': True}, + } + + _attribute_map = { + 'origin': {'key': 'origin', 'type': 'str'}, + 'severity': {'key': 'severity', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'context': {'key': 'context', 'type': '[{str}]'}, + } + + def __init__(self, **kwargs): + super(ConnectivityIssue, self).__init__(**kwargs) + self.origin = None + self.severity = None + self.type = None + self.context = None + + +class ConnectivityStatusContract(Model): + """Details about connectivity to a resource. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The hostname of the resource which the service + depends on. This can be the database, storage or any other azure resource + on which the service depends upon. + :type name: str + :param status: Required. Resource Connectivity Status Type identifier. + Possible values include: 'initializing', 'success', 'failure' + :type status: str or + ~azure.mgmt.apimanagement.models.ConnectivityStatusType + :param error: Error details of the connectivity to the resource. + :type error: str + :param last_updated: Required. The date when the resource connectivity + status was last updated. This status should be updated every 15 minutes. + If this status has not been updated, then it means that the service has + lost network connectivity to the resource, from inside the Virtual + Network.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` + as specified by the ISO 8601 standard. + :type last_updated: datetime + :param last_status_change: Required. The date when the resource + connectivity status last Changed from success to failure or vice-versa. + The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as + specified by the ISO 8601 standard. + :type last_status_change: datetime + :param resource_type: Required. Resource Type. + :type resource_type: str + :param is_optional: Required. Whether this is optional. + :type is_optional: bool + """ + + _validation = { + 'name': {'required': True, 'min_length': 1}, + 'status': {'required': True}, + 'last_updated': {'required': True}, + 'last_status_change': {'required': True}, + 'resource_type': {'required': True}, + 'is_optional': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'str'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'last_status_change': {'key': 'lastStatusChange', 'type': 'iso-8601'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'is_optional': {'key': 'isOptional', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(ConnectivityStatusContract, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.status = kwargs.get('status', None) + self.error = kwargs.get('error', None) + self.last_updated = kwargs.get('last_updated', None) + self.last_status_change = kwargs.get('last_status_change', None) + self.resource_type = kwargs.get('resource_type', None) + self.is_optional = kwargs.get('is_optional', None) + + +class ContentItemContract(Resource): + """Content type contract details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :param properties: Properties of the content item. + :type properties: dict[str, object] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__(self, **kwargs): + super(ContentItemContract, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class ContentTypeContract(Resource): + """Content type contract details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :param content_type_contract_id: Content type identifier + :type content_type_contract_id: str + :param content_type_contract_name: Content type name. Must be 1 to 250 + characters long. + :type content_type_contract_name: str + :param description: Content type description. + :type description: str + :param schema: Content type schema. + :type schema: object :param version: Content type version. :type version: str """ @@ -3881,16 +4582,18 @@ 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. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param service_id: Fully-qualified API Management Service Resource ID :type service_id: str @@ -3902,7 +4605,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 """ @@ -3967,11 +4670,13 @@ class DiagnosticContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param always_log: Specifies for what type of messages sampling settings should not apply. Possible values include: 'allErrors' @@ -4047,11 +4752,13 @@ class EmailTemplateContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param subject: Required. Subject of the Template. :type subject: str @@ -4063,7 +4770,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: @@ -4169,6 +4876,48 @@ def __init__(self, **kwargs): self.parameters = kwargs.get('parameters', None) +class EndpointDependency(Model): + """A domain name that a service is reached at. + + :param domain_name: The domain name of the dependency. + :type domain_name: str + :param endpoint_details: The Ports used when connecting to DomainName. + :type endpoint_details: + list[~azure.mgmt.apimanagement.models.EndpointDetail] + """ + + _attribute_map = { + 'domain_name': {'key': 'domainName', 'type': 'str'}, + 'endpoint_details': {'key': 'endpointDetails', 'type': '[EndpointDetail]'}, + } + + def __init__(self, **kwargs): + super(EndpointDependency, self).__init__(**kwargs) + self.domain_name = kwargs.get('domain_name', None) + self.endpoint_details = kwargs.get('endpoint_details', None) + + +class EndpointDetail(Model): + """Current TCP connectivity information from the Api Management Service to a + single endpoint. + + :param port: The port an endpoint is connected to. + :type port: int + :param region: The region of the dependency. + :type region: str + """ + + _attribute_map = { + 'port': {'key': 'port', 'type': 'int'}, + 'region': {'key': 'region', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(EndpointDetail, self).__init__(**kwargs) + self.port = kwargs.get('port', None) + self.region = kwargs.get('region', None) + + class ErrorFieldContract(Model): """Error Field contract. @@ -4263,11 +5012,13 @@ class GatewayCertificateAuthorityContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param is_trusted: Determines whether certificate authority is trusted. :type is_trusted: bool @@ -4297,11 +5048,13 @@ class GatewayContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param location_data: Gateway location. :type location_data: @@ -4337,11 +5090,13 @@ class GatewayHostnameConfigurationContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param hostname: Hostname value. Supports valid domain name, partial or full wildcard @@ -4502,11 +5257,13 @@ class GroupContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param display_name: Required. Group name. :type display_name: str @@ -4715,6 +5472,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 +5497,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 +5512,35 @@ 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 HTTPHeader(Model): + """HTTP header and it's value. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Header name. + :type name: str + :param value: Required. Header value. + :type value: str + """ + + _validation = { + 'name': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(HTTPHeader, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.value = kwargs.get('value', None) class HttpMessageDiagnostic(Model): @@ -4839,11 +5635,13 @@ class IdentityProviderContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param identity_provider_contract_type: Identity Provider Type identifier. Possible values include: 'facebook', 'google', 'microsoft', 'twitter', @@ -4934,11 +5732,13 @@ class IdentityProviderCreateContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param identity_provider_create_contract_type: Identity Provider Type identifier. Possible values include: 'facebook', 'google', 'microsoft', @@ -5104,11 +5904,13 @@ class IssueAttachmentContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param title: Required. Filename by which the binary data will be saved. :type title: str @@ -5153,11 +5955,13 @@ class IssueCommentContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param text: Required. Comment text. :type text: str @@ -5200,11 +6004,13 @@ class IssueContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param created_date: Date and time when the issue was created. :type created_date: datetime @@ -5322,7 +6128,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 +6151,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 @@ -5403,11 +6209,13 @@ class LoggerContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param logger_type: Required. Logger type. Possible values include: 'azureEventHub', 'applicationInsights', 'azureMonitor' @@ -5492,11 +6300,13 @@ class NamedValueContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param tags: Optional tags that when provided can be used to filter the NamedValue list. @@ -5554,11 +6364,13 @@ class NamedValueCreateContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param tags: Optional tags that when provided can be used to filter the NamedValue list. @@ -5755,11 +6567,13 @@ class NotificationContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param title: Required. Title of the Notification. :type title: str @@ -5842,11 +6656,13 @@ class OpenidConnectProviderContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param display_name: Required. User-friendly OpenID Connect Provider name. :type display_name: str @@ -5958,18 +6774,20 @@ 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. All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param template_parameters: Collection of URL template parameters. :type template_parameters: @@ -6060,7 +6878,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 +6915,22 @@ 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: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :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 +6955,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 +7019,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 +7070,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: @@ -6292,6 +7124,61 @@ def __init__(self, **kwargs): self.url_template = kwargs.get('url_template', None) +class OutboundEnvironmentEndpoint(Model): + """Endpoints accessed for a common purpose that the Api Management Service + requires outbound network access to. + + :param category: The type of service accessed by the Api Management + Service, e.g., Azure Storage, Azure SQL Database, and Azure Active + Directory. + :type category: str + :param endpoints: The endpoints that the Api Management Service reaches + the service at. + :type endpoints: list[~azure.mgmt.apimanagement.models.EndpointDependency] + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'str'}, + 'endpoints': {'key': 'endpoints', 'type': '[EndpointDependency]'}, + } + + def __init__(self, **kwargs): + super(OutboundEnvironmentEndpoint, self).__init__(**kwargs) + self.category = kwargs.get('category', None) + self.endpoints = kwargs.get('endpoints', None) + + +class OutboundEnvironmentEndpointList(Model): + """Collection of Outbound Environment Endpoints. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. Collection of resources. + :type value: + list[~azure.mgmt.apimanagement.models.OutboundEnvironmentEndpoint] + :ivar next_link: Link to next page of resources. + :vartype next_link: str + """ + + _validation = { + 'value': {'required': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[OutboundEnvironmentEndpoint]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OutboundEnvironmentEndpointList, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = None + + class ParameterContract(Model): """Operation parameters details. @@ -6309,6 +7196,13 @@ 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 + :param examples: Exampled defined for the parameter. + :type examples: dict[str, + ~azure.mgmt.apimanagement.models.ParameterExampleContract] """ _validation = { @@ -6323,6 +7217,9 @@ 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'}, + 'examples': {'key': 'examples', 'type': '{ParameterExampleContract}'}, } def __init__(self, **kwargs): @@ -6333,6 +7230,37 @@ 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) + self.examples = kwargs.get('examples', None) + + +class ParameterExampleContract(Model): + """Parameter example. + + :param summary: Short description for the example + :type summary: str + :param description: Long description for the example + :type description: str + :param value: Example value. May be a primitive value, or an object. + :type value: object + :param external_value: A URL that points to the literal example + :type external_value: str + """ + + _attribute_map = { + 'summary': {'key': 'summary', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'}, + 'external_value': {'key': 'externalValue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ParameterExampleContract, self).__init__(**kwargs) + self.summary = kwargs.get('summary', None) + self.description = kwargs.get('description', None) + self.value = kwargs.get('value', None) + self.external_value = kwargs.get('external_value', None) class PipelineDiagnosticSettings(Model): @@ -6387,11 +7315,13 @@ class PolicyContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param value: Required. Contents of the Policy as defined by the format. :type value: str @@ -6448,11 +7378,13 @@ class PolicyDescriptionContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :ivar description: Policy description. :vartype description: str @@ -6488,11 +7420,13 @@ class PortalDelegationSettings(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param url: A delegation Url. :type url: str @@ -6532,28 +7466,30 @@ 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. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param description: Portal revision description. :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 @@ -6618,11 +7554,13 @@ class PortalSettingsContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param url: A delegation Url. :type url: str @@ -6661,103 +7599,315 @@ class PortalSettingsContract(Resource): } def __init__(self, **kwargs): - super(PortalSettingsContract, self).__init__(**kwargs) - self.url = kwargs.get('url', None) - self.validation_key = kwargs.get('validation_key', None) - self.subscriptions = kwargs.get('subscriptions', None) - self.user_registration = kwargs.get('user_registration', None) + super(PortalSettingsContract, self).__init__(**kwargs) + self.url = kwargs.get('url', None) + self.validation_key = kwargs.get('validation_key', None) + self.subscriptions = kwargs.get('subscriptions', None) + self.user_registration = kwargs.get('user_registration', None) + self.enabled = kwargs.get('enabled', None) + self.terms_of_service = kwargs.get('terms_of_service', None) + + +class PortalSettingValidationKeyContract(Model): + """Client or app secret used in IdentityProviders, Aad, OpenID or OAuth. + + :param validation_key: This is secret value of the validation key in + portal settings. + :type validation_key: str + """ + + _attribute_map = { + 'validation_key': {'key': 'validationKey', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PortalSettingValidationKeyContract, self).__init__(**kwargs) + self.validation_key = kwargs.get('validation_key', None) + + +class PortalSigninSettings(Resource): + """Sign-In settings for the Developer Portal. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :param enabled: Redirect Anonymous users to the Sign-In page. + :type enabled: bool + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(PortalSigninSettings, self).__init__(**kwargs) + self.enabled = kwargs.get('enabled', None) + + +class PortalSignupSettings(Resource): + """Sign-Up settings for a developer portal. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :param enabled: Allow users to sign up on a developer portal. + :type enabled: bool + :param terms_of_service: Terms of service contract properties. + :type terms_of_service: + ~azure.mgmt.apimanagement.models.TermsOfServiceProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, + 'terms_of_service': {'key': 'properties.termsOfService', 'type': 'TermsOfServiceProperties'}, + } + + def __init__(self, **kwargs): + super(PortalSignupSettings, self).__init__(**kwargs) self.enabled = kwargs.get('enabled', None) self.terms_of_service = kwargs.get('terms_of_service', None) -class PortalSettingValidationKeyContract(Model): - """Client or app secret used in IdentityProviders, Aad, OpenID or OAuth. +class PrivateEndpoint(Model): + """The Private Endpoint resource. - :param validation_key: This is secret value of the validation key in - portal settings. - :type validation_key: str + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The ARM identifier for Private Endpoint + :vartype id: str """ + _validation = { + 'id': {'readonly': True}, + } + _attribute_map = { - 'validation_key': {'key': 'validationKey', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, } def __init__(self, **kwargs): - super(PortalSettingValidationKeyContract, self).__init__(**kwargs) - self.validation_key = kwargs.get('validation_key', None) + super(PrivateEndpoint, self).__init__(**kwargs) + self.id = None -class PortalSigninSettings(Resource): - """Sign-In settings for the Developer Portal. +class PrivateEndpointConnection(Resource): + """The Private Endpoint Connection resource. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str - :param enabled: Redirect Anonymous users to the Sign-In page. - :type enabled: bool + :param private_endpoint: The resource of private end point. + :type private_endpoint: ~azure.mgmt.apimanagement.models.PrivateEndpoint + :param private_link_service_connection_state: Required. A collection of + information about the state of the connection between service consumer and + provider. + :type private_link_service_connection_state: + ~azure.mgmt.apimanagement.models.PrivateLinkServiceConnectionState + :param provisioning_state: The provisioning state of the private endpoint + connection resource. Possible values include: 'Succeeded', 'Creating', + 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.apimanagement.models.PrivateEndpointConnectionProvisioningState """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'private_link_service_connection_state': {'required': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, + 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'PrivateEndpoint'}, + 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } def __init__(self, **kwargs): - super(PortalSigninSettings, self).__init__(**kwargs) - self.enabled = kwargs.get('enabled', None) + super(PrivateEndpointConnection, self).__init__(**kwargs) + self.private_endpoint = kwargs.get('private_endpoint', None) + self.private_link_service_connection_state = kwargs.get('private_link_service_connection_state', None) + self.provisioning_state = kwargs.get('provisioning_state', None) -class PortalSignupSettings(Resource): - """Sign-Up settings for a developer portal. +class PrivateEndpointConnectionRequest(Model): + """A request to approve or reject a private endpoint connection. + + :param id: Private Endpoint Connection Resource Id. + :type id: str + :param properties: The connection state of the private endpoint + connection. + :type properties: + ~azure.mgmt.apimanagement.models.PrivateEndpointConnectionRequestProperties + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'PrivateEndpointConnectionRequestProperties'}, + } + + def __init__(self, **kwargs): + super(PrivateEndpointConnectionRequest, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.properties = kwargs.get('properties', None) + + +class PrivateEndpointConnectionRequestProperties(Model): + """The connection state of the private endpoint connection. + + :param private_link_service_connection_state: A collection of information + about the state of the connection between service consumer and provider. + :type private_link_service_connection_state: + ~azure.mgmt.apimanagement.models.PrivateLinkServiceConnectionState + """ + + _attribute_map = { + 'private_link_service_connection_state': {'key': 'privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, + } + + def __init__(self, **kwargs): + super(PrivateEndpointConnectionRequestProperties, self).__init__(**kwargs) + self.private_link_service_connection_state = kwargs.get('private_link_service_connection_state', None) + + +class PrivateLinkResource(Resource): + """A private link resource. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str - :param enabled: Allow users to sign up on a developer portal. - :type enabled: bool - :param terms_of_service: Terms of service contract properties. - :type terms_of_service: - ~azure.mgmt.apimanagement.models.TermsOfServiceProperties + :ivar group_id: The private link resource group id. + :vartype group_id: str + :ivar required_members: The private link resource required member names. + :vartype required_members: list[str] + :param required_zone_names: The private link resource Private link DNS + zone name. + :type required_zone_names: list[str] """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'group_id': {'readonly': True}, + 'required_members': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, - 'terms_of_service': {'key': 'properties.termsOfService', 'type': 'TermsOfServiceProperties'}, + 'group_id': {'key': 'properties.groupId', 'type': 'str'}, + 'required_members': {'key': 'properties.requiredMembers', 'type': '[str]'}, + 'required_zone_names': {'key': 'properties.requiredZoneNames', 'type': '[str]'}, } def __init__(self, **kwargs): - super(PortalSignupSettings, self).__init__(**kwargs) - self.enabled = kwargs.get('enabled', None) - self.terms_of_service = kwargs.get('terms_of_service', None) + super(PrivateLinkResource, self).__init__(**kwargs) + self.group_id = None + self.required_members = None + self.required_zone_names = kwargs.get('required_zone_names', None) + + +class PrivateLinkResourceListResult(Model): + """A list of private link resources. + + :param value: Array of private link resources + :type value: list[~azure.mgmt.apimanagement.models.PrivateLinkResource] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PrivateLinkResource]'}, + } + + def __init__(self, **kwargs): + super(PrivateLinkResourceListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + + +class PrivateLinkServiceConnectionState(Model): + """A collection of information about the state of the connection between + service consumer and provider. + + :param status: Indicates whether the connection has been + Approved/Rejected/Removed by the owner of the service. Possible values + include: 'Pending', 'Approved', 'Rejected' + :type status: str or + ~azure.mgmt.apimanagement.models.PrivateEndpointServiceConnectionStatus + :param description: The reason for approval/rejection of the connection. + :type description: str + :param actions_required: A message indicating if changes on the service + provider require any updates on the consumer. + :type actions_required: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrivateLinkServiceConnectionState, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.description = kwargs.get('description', None) + self.actions_required = kwargs.get('actions_required', None) class ProductContract(Resource): @@ -6768,11 +7918,13 @@ class ProductContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param description: Product description. May include HTML formatting tags. :type description: str @@ -7028,6 +8180,41 @@ def __init__(self, **kwargs): self.display_name = kwargs.get('display_name', None) +class ProxyResource(Resource): + """Proxy Resource. + + The resource model definition for a Azure Resource Manager proxy resource. + It will not have tags and a location. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ProxyResource, self).__init__(**kwargs) + + class QuotaCounterCollection(Model): """Paged Quota Counter list representation. @@ -7190,11 +8377,13 @@ class RecipientEmailContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param email: User Email subscribed to notification. :type email: str @@ -7268,11 +8457,13 @@ class RecipientUserContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param user_id: API Management UserId subscribed to notification. :type user_id: str @@ -7343,6 +8534,61 @@ def __init__(self, **kwargs): self.enabled = kwargs.get('enabled', None) +class RemotePrivateEndpointConnectionWrapper(Model): + """Remote Private Endpoint Connection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Private Endpoint connection resource id + :type id: str + :param name: Private Endpoint Connection Name + :type name: str + :param type: Private Endpoint Connection Resource Type + :type type: str + :param private_endpoint: The resource of private end point. + :type private_endpoint: ~azure.mgmt.apimanagement.models.ArmIdWrapper + :param private_link_service_connection_state: Required. A collection of + information about the state of the connection between service consumer and + provider. + :type private_link_service_connection_state: + ~azure.mgmt.apimanagement.models.PrivateLinkServiceConnectionState + :ivar provisioning_state: The provisioning state of the private endpoint + connection resource. + :vartype provisioning_state: str + :ivar group_ids: All the Group ids. + :vartype group_ids: list[str] + """ + + _validation = { + 'private_link_service_connection_state': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'group_ids': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'ArmIdWrapper'}, + 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'group_ids': {'key': 'properties.groupIds', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(RemotePrivateEndpointConnectionWrapper, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.type = kwargs.get('type', None) + self.private_endpoint = kwargs.get('private_endpoint', None) + self.private_link_service_connection_state = kwargs.get('private_link_service_connection_state', None) + self.provisioning_state = None + self.group_ids = None + + class ReportRecordContract(Model): """Report data. @@ -7492,8 +8738,6 @@ class RepresentationContract(Model): :param content_type: Required. Specifies a registered or custom content type for this representation, e.g. application/xml. :type content_type: str - :param sample: An example of the representation. - :type sample: str :param schema_id: Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'. @@ -7507,6 +8751,9 @@ class RepresentationContract(Model): 'multipart/form-data'.. :type form_parameters: list[~azure.mgmt.apimanagement.models.ParameterContract] + :param examples: Exampled defined for the representation. + :type examples: dict[str, + ~azure.mgmt.apimanagement.models.ParameterExampleContract] """ _validation = { @@ -7515,19 +8762,19 @@ class RepresentationContract(Model): _attribute_map = { 'content_type': {'key': 'contentType', 'type': 'str'}, - 'sample': {'key': 'sample', 'type': 'str'}, 'schema_id': {'key': 'schemaId', 'type': 'str'}, 'type_name': {'key': 'typeName', 'type': 'str'}, 'form_parameters': {'key': 'formParameters', 'type': '[ParameterContract]'}, + 'examples': {'key': 'examples', 'type': '{ParameterExampleContract}'}, } def __init__(self, **kwargs): super(RepresentationContract, self).__init__(**kwargs) self.content_type = kwargs.get('content_type', None) - self.sample = kwargs.get('sample', None) self.schema_id = kwargs.get('schema_id', None) self.type_name = kwargs.get('type_name', None) self.form_parameters = kwargs.get('form_parameters', None) + self.examples = kwargs.get('examples', None) class RequestContract(Model): @@ -7888,49 +9135,49 @@ class SchemaContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str - :param content_type: Required. 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 value: Json escaped string defining the document representing the - Schema. Used for schemas other than Swagger/OpenAPI. + :param schema_type: Required. Schema Type. Immutable. Possible values + include: 'Xml', 'Json' + :type schema_type: str or ~azure.mgmt.apimanagement.models.SchemaType + :param description: Free-form schema entity description. + :type description: str + :param value: Json-encoded string for non json-based schema. :type value: str - :param definitions: Types definitions. Used for Swagger/OpenAPI schemas - only, null otherwise. - :type definitions: object + :param document: Schema document object for json-based schema formats(e.g. + json schema). + :type document: object """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'content_type': {'required': True}, + 'schema_type': {'required': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, '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'}, + 'schema_type': {'key': 'properties.schemaType', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'value': {'key': 'properties.value', 'type': 'str'}, + 'document': {'key': 'properties\\.document', 'type': 'object'}, } def __init__(self, **kwargs): super(SchemaContract, self).__init__(**kwargs) - self.content_type = kwargs.get('content_type', None) + self.schema_type = kwargs.get('schema_type', None) + self.description = kwargs.get('description', None) self.value = kwargs.get('value', None) - self.definitions = kwargs.get('definitions', None) + self.document = kwargs.get('document', None) class SubscriptionContract(Resource): @@ -7941,11 +9188,13 @@ class SubscriptionContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param owner_id: The user resource identifier of the subscription owner. The value is a valid relative URL in the format of /users/{userId} where @@ -8245,6 +9494,47 @@ def __init__(self, **kwargs): self.allow_tracing = kwargs.get('allow_tracing', None) +class SystemData(Model): + """Metadata pertaining to creation and last modification of the resource. + + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. + Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + :type created_by_type: str or + ~azure.mgmt.apimanagement.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the + resource. Possible values include: 'User', 'Application', + 'ManagedIdentity', 'Key' + :type last_modified_by_type: str or + ~azure.mgmt.apimanagement.models.CreatedByType + :param last_modified_at: The timestamp of resource last modification (UTC) + :type last_modified_at: datetime + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(SystemData, self).__init__(**kwargs) + self.created_by = kwargs.get('created_by', None) + self.created_by_type = kwargs.get('created_by_type', None) + self.created_at = kwargs.get('created_at', None) + self.last_modified_by = kwargs.get('last_modified_by', None) + self.last_modified_by_type = kwargs.get('last_modified_by_type', None) + self.last_modified_at = kwargs.get('last_modified_at', None) + + class TagContract(Resource): """Tag Contract details. @@ -8253,11 +9543,13 @@ class TagContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param display_name: Required. Tag name. :type display_name: str @@ -8310,11 +9602,13 @@ class TagDescriptionContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param description: Description of the Tag. :type description: str @@ -8396,7 +9690,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. @@ -8450,9 +9744,20 @@ def __init__(self, **kwargs): self.name = kwargs.get('name', None) -class TenantConfigurationSyncStateContract(Model): - """Tenant Configuration Synchronization State. +class TenantConfigurationSyncStateContract(Resource): + """Result of Tenant Configuration Sync State. + + Variables are only populated by the server, and will be ignored when + sending a request. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str :param branch: The name of Git branch. :type branch: str :param commit_id: The latest commit Id. @@ -8474,16 +9779,29 @@ 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 """ + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + _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'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + '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 +9813,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): @@ -8503,11 +9822,13 @@ class TenantSettingsContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param settings: Tenant settings :type settings: dict[str, str] @@ -8582,17 +9903,65 @@ def __init__(self, **kwargs): self.value = kwargs.get('value', None) +class TrackedResource(Resource): + """Tracked Resource. + + The resource model definition for an Azure Resource Manager tracked top + level resource which has 'tags' and a 'location'. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TrackedResource, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + self.location = kwargs.get('location', None) + + class UserContract(Resource): """User details. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param state: Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any 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 8b3fd08f44902..a732e809e3890 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 @@ -14,16 +14,21 @@ class Resource(Model): - """The Resource definition. + """Resource. + + Common fields that are returned in the response for all Azure Resource + Manager resources. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -52,11 +57,13 @@ class AccessInformationContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param access_information_contract_id: Access Information type ('access' or 'gitAccess') @@ -197,6 +204,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: @@ -208,6 +219,10 @@ class AdditionalLocation(Model): deployed in multiple locations. This can be used to disable the gateway in this additional location. Default value: False . :type disable_gateway: bool + :ivar platform_version: Compute Platform Version running the service. + Possible values include: 'undetermined', 'stv1', 'stv2', 'mtv1' + :vartype platform_version: str or + ~azure.mgmt.apimanagement.models.PlatformVersion """ _validation = { @@ -216,6 +231,7 @@ class AdditionalLocation(Model): 'public_ip_addresses': {'readonly': True}, 'private_ip_addresses': {'readonly': True}, 'gateway_regional_url': {'readonly': True}, + 'platform_version': {'readonly': True}, } _attribute_map = { @@ -224,36 +240,68 @@ 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'}, + 'platform_version': {'key': 'platformVersion', 'type': 'str'}, } - 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 + self.platform_version = None + + +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. All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param description: Description of the API. May include HTML formatting tags. @@ -266,21 +314,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 +337,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 +394,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 +419,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 +447,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 +470,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 +500,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 +519,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 +543,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 +566,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 +617,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 +657,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 +680,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 +710,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 +749,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 +764,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 +778,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 +818,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 +841,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 +857,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 +902,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 +998,18 @@ 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 public_network_access: Whether or not public endpoint access is + allowed for this API Management service. Value is optional but if passed + in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are + the exclusive access method. Default value is 'Enabled'. Possible values + include: 'Enabled', 'Disabled' + :type public_network_access: str or + ~azure.mgmt.apimanagement.models.PublicNetworkAccess :param virtual_network_configuration: Virtual network configuration of the API Management service. :type virtual_network_configuration: @@ -938,6 +1085,15 @@ class ApiManagementServiceBaseProperties(Model): soft-deleted. If this flag is specified and set to True all other properties will be ignored. Default value: False . :type restore: bool + :param private_endpoint_connections: List of Private Endpoint Connections + of this service. + :type private_endpoint_connections: + list[~azure.mgmt.apimanagement.models.RemotePrivateEndpointConnectionWrapper] + :ivar platform_version: Compute Platform Version running the service in + this location. Possible values include: 'undetermined', 'stv1', 'stv2', + 'mtv1' + :vartype platform_version: str or + ~azure.mgmt.apimanagement.models.PlatformVersion """ _validation = { @@ -953,6 +1109,7 @@ class ApiManagementServiceBaseProperties(Model): 'developer_portal_url': {'readonly': True}, 'public_ip_addresses': {'readonly': True}, 'private_ip_addresses': {'readonly': True}, + 'platform_version': {'readonly': True}, } _attribute_map = { @@ -969,6 +1126,8 @@ 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'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, 'virtual_network_configuration': {'key': 'virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'}, 'additional_locations': {'key': 'additionalLocations', 'type': '[AdditionalLocation]'}, 'custom_properties': {'key': 'customProperties', 'type': '{str}'}, @@ -978,9 +1137,11 @@ class ApiManagementServiceBaseProperties(Model): 'virtual_network_type': {'key': 'virtualNetworkType', 'type': 'str'}, 'api_version_constraint': {'key': 'apiVersionConstraint', 'type': 'ApiVersionConstraint'}, 'restore': {'key': 'restore', 'type': 'bool'}, + 'private_endpoint_connections': {'key': 'privateEndpointConnections', 'type': '[RemotePrivateEndpointConnectionWrapper]'}, + 'platform_version': {'key': 'platformVersion', 'type': 'str'}, } - 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, public_network_access=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, private_endpoint_connections=None, **kwargs) -> None: super(ApiManagementServiceBaseProperties, self).__init__(**kwargs) self.notification_sender_email = notification_sender_email self.provisioning_state = None @@ -995,6 +1156,8 @@ 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.public_network_access = public_network_access self.virtual_network_configuration = virtual_network_configuration self.additional_locations = additional_locations self.custom_properties = custom_properties @@ -1004,6 +1167,8 @@ def __init__(self, *, notification_sender_email: str=None, hostname_configuratio self.virtual_network_type = virtual_network_type self.api_version_constraint = api_version_constraint self.restore = restore + self.private_endpoint_connections = private_endpoint_connections + self.platform_version = None class ApiManagementServiceCheckNameAvailabilityParameters(Model): @@ -1257,6 +1422,18 @@ 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 public_network_access: Whether or not public endpoint access is + allowed for this API Management service. Value is optional but if passed + in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are + the exclusive access method. Default value is 'Enabled'. Possible values + include: 'Enabled', 'Disabled' + :type public_network_access: str or + ~azure.mgmt.apimanagement.models.PublicNetworkAccess :param virtual_network_configuration: Virtual network configuration of the API Management service. :type virtual_network_configuration: @@ -1332,6 +1509,15 @@ class ApiManagementServiceResource(ApimResource): soft-deleted. If this flag is specified and set to True all other properties will be ignored. Default value: False . :type restore: bool + :param private_endpoint_connections: List of Private Endpoint Connections + of this service. + :type private_endpoint_connections: + list[~azure.mgmt.apimanagement.models.RemotePrivateEndpointConnectionWrapper] + :ivar platform_version: Compute Platform Version running the service in + this location. Possible values include: 'undetermined', 'stv1', 'stv2', + 'mtv1' + :vartype platform_version: str or + ~azure.mgmt.apimanagement.models.PlatformVersion :param publisher_email: Required. Publisher email. :type publisher_email: str :param publisher_name: Required. Publisher name. @@ -1342,6 +1528,9 @@ class ApiManagementServiceResource(ApimResource): :param identity: Managed service identity of the Api Management service. :type identity: ~azure.mgmt.apimanagement.models.ApiManagementServiceIdentity + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: ~azure.mgmt.apimanagement.models.SystemData :param location: Required. Resource location. :type location: str :ivar etag: ETag of the resource. @@ -1367,9 +1556,11 @@ class ApiManagementServiceResource(ApimResource): 'developer_portal_url': {'readonly': True}, 'public_ip_addresses': {'readonly': True}, 'private_ip_addresses': {'readonly': True}, + 'platform_version': {'readonly': True}, 'publisher_email': {'required': True, 'max_length': 100}, 'publisher_name': {'required': True, 'max_length': 100}, 'sku': {'required': True}, + 'system_data': {'readonly': True}, 'location': {'required': True}, 'etag': {'readonly': True}, } @@ -1392,6 +1583,8 @@ 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'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, 'virtual_network_configuration': {'key': 'properties.virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'}, 'additional_locations': {'key': 'properties.additionalLocations', 'type': '[AdditionalLocation]'}, 'custom_properties': {'key': 'properties.customProperties', 'type': '{str}'}, @@ -1401,16 +1594,19 @@ class ApiManagementServiceResource(ApimResource): 'virtual_network_type': {'key': 'properties.virtualNetworkType', 'type': 'str'}, 'api_version_constraint': {'key': 'properties.apiVersionConstraint', 'type': 'ApiVersionConstraint'}, 'restore': {'key': 'properties.restore', 'type': 'bool'}, + 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[RemotePrivateEndpointConnectionWrapper]'}, + 'platform_version': {'key': 'properties.platformVersion', 'type': 'str'}, 'publisher_email': {'key': 'properties.publisherEmail', 'type': 'str'}, 'publisher_name': {'key': 'properties.publisherName', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'ApiManagementServiceSkuProperties'}, 'identity': {'key': 'identity', 'type': 'ApiManagementServiceIdentity'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'location': {'key': 'location', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, '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, public_network_access=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, private_endpoint_connections=None, 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 +1621,8 @@ 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.public_network_access = public_network_access self.virtual_network_configuration = virtual_network_configuration self.additional_locations = additional_locations self.custom_properties = custom_properties @@ -1434,10 +1632,13 @@ def __init__(self, *, publisher_email: str, publisher_name: str, sku, location: self.virtual_network_type = virtual_network_type self.api_version_constraint = api_version_constraint self.restore = restore + self.private_endpoint_connections = private_endpoint_connections + self.platform_version = None self.publisher_email = publisher_email self.publisher_name = publisher_name self.sku = sku self.identity = identity + self.system_data = None self.location = location self.etag = None self.zones = zones @@ -1531,6 +1732,18 @@ 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 public_network_access: Whether or not public endpoint access is + allowed for this API Management service. Value is optional but if passed + in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are + the exclusive access method. Default value is 'Enabled'. Possible values + include: 'Enabled', 'Disabled' + :type public_network_access: str or + ~azure.mgmt.apimanagement.models.PublicNetworkAccess :param virtual_network_configuration: Virtual network configuration of the API Management service. :type virtual_network_configuration: @@ -1606,6 +1819,15 @@ class ApiManagementServiceUpdateParameters(ApimResource): soft-deleted. If this flag is specified and set to True all other properties will be ignored. Default value: False . :type restore: bool + :param private_endpoint_connections: List of Private Endpoint Connections + of this service. + :type private_endpoint_connections: + list[~azure.mgmt.apimanagement.models.RemotePrivateEndpointConnectionWrapper] + :ivar platform_version: Compute Platform Version running the service in + this location. Possible values include: 'undetermined', 'stv1', 'stv2', + 'mtv1' + :vartype platform_version: str or + ~azure.mgmt.apimanagement.models.PlatformVersion :param publisher_email: Publisher email. :type publisher_email: str :param publisher_name: Publisher name. @@ -1618,6 +1840,9 @@ class ApiManagementServiceUpdateParameters(ApimResource): ~azure.mgmt.apimanagement.models.ApiManagementServiceIdentity :ivar etag: ETag of the resource. :vartype etag: str + :param zones: A list of availability zones denoting where the resource + needs to come from. + :type zones: list[str] """ _validation = { @@ -1636,6 +1861,7 @@ class ApiManagementServiceUpdateParameters(ApimResource): 'developer_portal_url': {'readonly': True}, 'public_ip_addresses': {'readonly': True}, 'private_ip_addresses': {'readonly': True}, + 'platform_version': {'readonly': True}, 'publisher_email': {'max_length': 100}, 'publisher_name': {'max_length': 100}, 'etag': {'readonly': True}, @@ -1659,6 +1885,8 @@ 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'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, 'virtual_network_configuration': {'key': 'properties.virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'}, 'additional_locations': {'key': 'properties.additionalLocations', 'type': '[AdditionalLocation]'}, 'custom_properties': {'key': 'properties.customProperties', 'type': '{str}'}, @@ -1668,14 +1896,17 @@ class ApiManagementServiceUpdateParameters(ApimResource): 'virtual_network_type': {'key': 'properties.virtualNetworkType', 'type': 'str'}, 'api_version_constraint': {'key': 'properties.apiVersionConstraint', 'type': 'ApiVersionConstraint'}, 'restore': {'key': 'properties.restore', 'type': 'bool'}, + 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[RemotePrivateEndpointConnectionWrapper]'}, + 'platform_version': {'key': 'properties.platformVersion', 'type': 'str'}, 'publisher_email': {'key': 'properties.publisherEmail', 'type': 'str'}, 'publisher_name': {'key': 'properties.publisherName', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'ApiManagementServiceSkuProperties'}, 'identity': {'key': 'identity', 'type': 'ApiManagementServiceIdentity'}, 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', '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, public_network_access=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, private_endpoint_connections=None, publisher_email: str=None, publisher_name: str=None, sku=None, identity=None, zones=None, **kwargs) -> None: super(ApiManagementServiceUpdateParameters, self).__init__(tags=tags, **kwargs) self.notification_sender_email = notification_sender_email self.provisioning_state = None @@ -1690,6 +1921,8 @@ 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.public_network_access = public_network_access self.virtual_network_configuration = virtual_network_configuration self.additional_locations = additional_locations self.custom_properties = custom_properties @@ -1699,11 +1932,14 @@ def __init__(self, *, tags=None, notification_sender_email: str=None, hostname_c self.virtual_network_type = virtual_network_type self.api_version_constraint = api_version_constraint self.restore = restore + self.private_endpoint_connections = private_endpoint_connections + self.platform_version = None self.publisher_email = publisher_email self.publisher_name = publisher_name self.sku = sku self.identity = identity self.etag = None + self.zones = zones class ApiManagementSku(Model): @@ -2043,11 +2279,13 @@ class ApiReleaseContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param api_id: Identifier of the API the release belongs to. :type api_id: str @@ -2185,6 +2423,66 @@ def __init__(self, *, source_api_id: str=None, api_version_name: str=None, api_r self.api_version_set = api_version_set +class ApiSchemaContract(Resource): + """API Schema Contract details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :param content_type: Required. 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 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 v1 schemas + only, null otherwise. + :type definitions: object + :param components: Types definitions. Used for Swagger/OpenAPI v2/v3 + schemas only, null otherwise. + :type components: object + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'content_type': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + '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'}, + 'components': {'key': 'properties.document.components', 'type': 'object'}, + } + + def __init__(self, *, content_type: str, value: str=None, definitions=None, components=None, **kwargs) -> None: + super(ApiSchemaContract, self).__init__(**kwargs) + self.content_type = content_type + self.value = value + self.definitions = definitions + self.components = components + + class ApiTagResourceContractProperties(ApiEntityBaseContract): """API contract properties for the Tag Resources. @@ -2202,21 +2500,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 +2523,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 +2571,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 +2607,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 +2630,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 +2676,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 +2699,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,18 +2726,20 @@ 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. All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param description: Description of API Version Set. :type description: str @@ -2506,7 +2831,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 +2862,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 @@ -2579,17 +2904,42 @@ def __init__(self, *, description: str=None, version_query_name: str=None, versi self.versioning_scheme = versioning_scheme +class ArmIdWrapper(Model): + """A wrapper for an ARM resource id. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: + :vartype id: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ArmIdWrapper, self).__init__(**kwargs) + self.id = None + + class AssociationContract(Resource): """Association entity details. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param provisioning_state: Provisioning state. Possible values include: 'created' @@ -2645,11 +2995,13 @@ class AuthorizationServerContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param description: Description of the authorization server. Can contain HTML formatting tags. @@ -2877,11 +3229,13 @@ class AuthorizationServerUpdateContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param description: Description of the authorization server. Can contain HTML formatting tags. @@ -2996,6 +3350,46 @@ def __init__(self, *, description: str=None, authorization_methods=None, client_ self.client_secret = client_secret +class AzureEntityResource(Resource): + """Entity Resource. + + The resource model definition for an Azure Resource Manager resource with + an etag. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :ivar etag: Resource Etag. + :vartype etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(AzureEntityResource, self).__init__(**kwargs) + self.etag = None + + class BackendAuthorizationHeaderCredentials(Model): """Authorization header information. @@ -3031,7 +3425,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 @@ -3080,18 +3474,20 @@ class BackendContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param title: Backend Title. :type title: str :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 @@ -3243,11 +3639,13 @@ class BackendReconnectContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param after: Duration in ISO8601 format after which reconnect will be initiated. Minimum duration of the Reconnect is PT2M. @@ -3351,7 +3749,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 @@ -3430,11 +3828,13 @@ class CacheContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param description: Cache description :type description: str @@ -3559,11 +3959,13 @@ class CertificateContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param subject: Required. Subject attribute of the certificate. :type subject: str @@ -3690,114 +4092,413 @@ class CloudError(Model): } -class ConnectivityStatusContract(Model): - """Details about connectivity to a resource. +class ConnectivityCheckRequest(Model): + """A request to perform the connectivity check operation on a API Management + service. All required parameters must be populated in order to send to Azure. - :param name: Required. The hostname of the resource which the service - depends on. This can be the database, storage or any other azure resource - on which the service depends upon. - :type name: str - :param status: Required. Resource Connectivity Status Type identifier. - Possible values include: 'initializing', 'success', 'failure' - :type status: str or - ~azure.mgmt.apimanagement.models.ConnectivityStatusType - :param error: Error details of the connectivity to the resource. - :type error: str - :param last_updated: Required. The date when the resource connectivity - status was last updated. This status should be updated every 15 minutes. - If this status has not been updated, then it means that the service has - lost network connectivity to the resource, from inside the Virtual - Network.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` - as specified by the ISO 8601 standard. - :type last_updated: datetime - :param last_status_change: Required. The date when the resource - connectivity status last Changed from success to failure or vice-versa. - The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as - specified by the ISO 8601 standard. - :type last_status_change: datetime - :param resource_type: Required. Resource Type. - :type resource_type: str - :param is_optional: Required. Whether this is optional. - :type is_optional: bool + :param source: Required. Definitions about the connectivity check origin. + :type source: + ~azure.mgmt.apimanagement.models.ConnectivityCheckRequestSource + :param destination: Required. The connectivity check operation + destination. + :type destination: + ~azure.mgmt.apimanagement.models.ConnectivityCheckRequestDestination + :param preferred_ip_version: The IP version to be used. Only IPv4 is + supported for now. Possible values include: 'IPv4' + :type preferred_ip_version: str or + ~azure.mgmt.apimanagement.models.PreferredIPVersion + :param protocol: The request's protocol. Specific protocol configuration + can be available based on this selection. The specified destination + address must be coherent with this value. Possible values include: 'TCP', + 'HTTP', 'HTTPS' + :type protocol: str or + ~azure.mgmt.apimanagement.models.ConnectivityCheckProtocol + :param protocol_configuration: Protocol-specific configuration. + :type protocol_configuration: + ~azure.mgmt.apimanagement.models.ConnectivityCheckRequestProtocolConfiguration + """ + + _validation = { + 'source': {'required': True}, + 'destination': {'required': True}, + } + + _attribute_map = { + 'source': {'key': 'source', 'type': 'ConnectivityCheckRequestSource'}, + 'destination': {'key': 'destination', 'type': 'ConnectivityCheckRequestDestination'}, + 'preferred_ip_version': {'key': 'preferredIPVersion', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'protocol_configuration': {'key': 'protocolConfiguration', 'type': 'ConnectivityCheckRequestProtocolConfiguration'}, + } + + def __init__(self, *, source, destination, preferred_ip_version=None, protocol=None, protocol_configuration=None, **kwargs) -> None: + super(ConnectivityCheckRequest, self).__init__(**kwargs) + self.source = source + self.destination = destination + self.preferred_ip_version = preferred_ip_version + self.protocol = protocol + self.protocol_configuration = protocol_configuration + + +class ConnectivityCheckRequestDestination(Model): + """The connectivity check operation destination. + + All required parameters must be populated in order to send to Azure. + + :param address: Required. Destination address. Can either be an IP address + or a FQDN. + :type address: str + :param port: Required. Destination port. + :type port: long """ _validation = { - 'name': {'required': True, 'min_length': 1}, - 'status': {'required': True}, - 'last_updated': {'required': True}, - 'last_status_change': {'required': True}, - 'resource_type': {'required': True}, - 'is_optional': {'required': True}, + 'address': {'required': True}, + 'port': {'required': True}, } _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'str'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'last_status_change': {'key': 'lastStatusChange', 'type': 'iso-8601'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'is_optional': {'key': 'isOptional', 'type': 'bool'}, + 'address': {'key': 'address', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'long'}, } - def __init__(self, *, name: str, status, last_updated, last_status_change, resource_type: str, is_optional: bool, error: str=None, **kwargs) -> None: - super(ConnectivityStatusContract, self).__init__(**kwargs) - self.name = name - self.status = status - self.error = error - self.last_updated = last_updated - self.last_status_change = last_status_change - self.resource_type = resource_type - self.is_optional = is_optional - + def __init__(self, *, address: str, port: int, **kwargs) -> None: + super(ConnectivityCheckRequestDestination, self).__init__(**kwargs) + self.address = address + self.port = port -class ContentItemContract(Resource): - """Content type contract details. - Variables are only populated by the server, and will be ignored when - sending a request. +class ConnectivityCheckRequestProtocolConfiguration(Model): + """Protocol-specific configuration. - :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 properties: Properties of the content item. - :type properties: dict[str, object] + :param http_configuration: Configuration for HTTP or HTTPS requests. + :type http_configuration: + ~azure.mgmt.apimanagement.models.ConnectivityCheckRequestProtocolConfigurationHTTPConfiguration """ - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, + _attribute_map = { + 'http_configuration': {'key': 'HTTPConfiguration', 'type': 'ConnectivityCheckRequestProtocolConfigurationHTTPConfiguration'}, } + def __init__(self, *, http_configuration=None, **kwargs) -> None: + super(ConnectivityCheckRequestProtocolConfiguration, self).__init__(**kwargs) + self.http_configuration = http_configuration + + +class ConnectivityCheckRequestProtocolConfigurationHTTPConfiguration(Model): + """Configuration for HTTP or HTTPS requests. + + :param method: The HTTP method to be used. Possible values include: 'GET', + 'POST' + :type method: str or ~azure.mgmt.apimanagement.models.Method + :param valid_status_codes: List of HTTP status codes considered valid for + the request response. + :type valid_status_codes: list[long] + :param headers: List of headers to be included in the request. + :type headers: list[~azure.mgmt.apimanagement.models.HTTPHeader] + """ + _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'}, + 'method': {'key': 'method', 'type': 'str'}, + 'valid_status_codes': {'key': 'validStatusCodes', 'type': '[long]'}, + 'headers': {'key': 'headers', 'type': '[HTTPHeader]'}, } - def __init__(self, *, properties=None, **kwargs) -> None: - super(ContentItemContract, self).__init__(**kwargs) - self.properties = properties + def __init__(self, *, method=None, valid_status_codes=None, headers=None, **kwargs) -> None: + super(ConnectivityCheckRequestProtocolConfigurationHTTPConfiguration, self).__init__(**kwargs) + self.method = method + self.valid_status_codes = valid_status_codes + self.headers = headers -class ContentTypeContract(Resource): - """Content type contract details. +class ConnectivityCheckRequestSource(Model): + """Definitions about the connectivity check origin. - Variables are only populated by the server, and will be ignored when - sending a request. + All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :param region: Required. The API Management service region from where to + start the connectivity check operation. + :type region: str + :param instance: The particular VMSS instance from which to fire the + request. + :type instance: long + """ + + _validation = { + 'region': {'required': True}, + } + + _attribute_map = { + 'region': {'key': 'region', 'type': 'str'}, + 'instance': {'key': 'instance', 'type': 'long'}, + } + + def __init__(self, *, region: str, instance: int=None, **kwargs) -> None: + super(ConnectivityCheckRequestSource, self).__init__(**kwargs) + self.region = region + self.instance = instance + + +class ConnectivityCheckResponse(Model): + """Information on the connectivity status. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar hops: List of hops between the source and the destination. + :vartype hops: list[~azure.mgmt.apimanagement.models.ConnectivityHop] + :ivar connection_status: The connection status. Possible values include: + 'Unknown', 'Connected', 'Disconnected', 'Degraded' + :vartype connection_status: str or + ~azure.mgmt.apimanagement.models.ConnectionStatus + :ivar avg_latency_in_ms: Average latency in milliseconds. + :vartype avg_latency_in_ms: long + :ivar min_latency_in_ms: Minimum latency in milliseconds. + :vartype min_latency_in_ms: long + :ivar max_latency_in_ms: Maximum latency in milliseconds. + :vartype max_latency_in_ms: long + :ivar probes_sent: Total number of probes sent. + :vartype probes_sent: long + :ivar probes_failed: Number of failed probes. + :vartype probes_failed: long + """ + + _validation = { + 'hops': {'readonly': True}, + 'connection_status': {'readonly': True}, + 'avg_latency_in_ms': {'readonly': True}, + 'min_latency_in_ms': {'readonly': True}, + 'max_latency_in_ms': {'readonly': True}, + 'probes_sent': {'readonly': True}, + 'probes_failed': {'readonly': True}, + } + + _attribute_map = { + 'hops': {'key': 'hops', 'type': '[ConnectivityHop]'}, + 'connection_status': {'key': 'connectionStatus', 'type': 'str'}, + 'avg_latency_in_ms': {'key': 'avgLatencyInMs', 'type': 'long'}, + 'min_latency_in_ms': {'key': 'minLatencyInMs', 'type': 'long'}, + 'max_latency_in_ms': {'key': 'maxLatencyInMs', 'type': 'long'}, + 'probes_sent': {'key': 'probesSent', 'type': 'long'}, + 'probes_failed': {'key': 'probesFailed', 'type': 'long'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectivityCheckResponse, self).__init__(**kwargs) + self.hops = None + self.connection_status = None + self.avg_latency_in_ms = None + self.min_latency_in_ms = None + self.max_latency_in_ms = None + self.probes_sent = None + self.probes_failed = None + + +class ConnectivityHop(Model): + """Information about a hop between the source and the destination. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar type: The type of the hop. + :vartype type: str + :ivar id: The ID of the hop. :vartype id: str - :ivar name: Resource name. + :ivar address: The IP address of the hop. + :vartype address: str + :ivar resource_id: The ID of the resource corresponding to this hop. + :vartype resource_id: str + :ivar next_hop_ids: List of next hop identifiers. + :vartype next_hop_ids: list[str] + :ivar issues: List of issues. + :vartype issues: list[~azure.mgmt.apimanagement.models.ConnectivityIssue] + """ + + _validation = { + 'type': {'readonly': True}, + 'id': {'readonly': True}, + 'address': {'readonly': True}, + 'resource_id': {'readonly': True}, + 'next_hop_ids': {'readonly': True}, + 'issues': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'address': {'key': 'address', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'next_hop_ids': {'key': 'nextHopIds', 'type': '[str]'}, + 'issues': {'key': 'issues', 'type': '[ConnectivityIssue]'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectivityHop, self).__init__(**kwargs) + self.type = None + self.id = None + self.address = None + self.resource_id = None + self.next_hop_ids = None + self.issues = None + + +class ConnectivityIssue(Model): + """Information about an issue encountered in the process of checking for + connectivity. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar origin: The origin of the issue. Possible values include: 'Local', + 'Inbound', 'Outbound' + :vartype origin: str or ~azure.mgmt.apimanagement.models.Origin + :ivar severity: The severity of the issue. Possible values include: + 'Error', 'Warning' + :vartype severity: str or ~azure.mgmt.apimanagement.models.Severity + :ivar type: The type of issue. Possible values include: 'Unknown', + 'AgentStopped', 'GuestFirewall', 'DnsResolution', 'SocketBind', + 'NetworkSecurityRule', 'UserDefinedRoute', 'PortThrottled', 'Platform' + :vartype type: str or ~azure.mgmt.apimanagement.models.IssueType + :ivar context: Provides additional context on the issue. + :vartype context: list[dict[str, str]] + """ + + _validation = { + 'origin': {'readonly': True}, + 'severity': {'readonly': True}, + 'type': {'readonly': True}, + 'context': {'readonly': True}, + } + + _attribute_map = { + 'origin': {'key': 'origin', 'type': 'str'}, + 'severity': {'key': 'severity', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'context': {'key': 'context', 'type': '[{str}]'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectivityIssue, self).__init__(**kwargs) + self.origin = None + self.severity = None + self.type = None + self.context = None + + +class ConnectivityStatusContract(Model): + """Details about connectivity to a resource. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The hostname of the resource which the service + depends on. This can be the database, storage or any other azure resource + on which the service depends upon. + :type name: str + :param status: Required. Resource Connectivity Status Type identifier. + Possible values include: 'initializing', 'success', 'failure' + :type status: str or + ~azure.mgmt.apimanagement.models.ConnectivityStatusType + :param error: Error details of the connectivity to the resource. + :type error: str + :param last_updated: Required. The date when the resource connectivity + status was last updated. This status should be updated every 15 minutes. + If this status has not been updated, then it means that the service has + lost network connectivity to the resource, from inside the Virtual + Network.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` + as specified by the ISO 8601 standard. + :type last_updated: datetime + :param last_status_change: Required. The date when the resource + connectivity status last Changed from success to failure or vice-versa. + The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as + specified by the ISO 8601 standard. + :type last_status_change: datetime + :param resource_type: Required. Resource Type. + :type resource_type: str + :param is_optional: Required. Whether this is optional. + :type is_optional: bool + """ + + _validation = { + 'name': {'required': True, 'min_length': 1}, + 'status': {'required': True}, + 'last_updated': {'required': True}, + 'last_status_change': {'required': True}, + 'resource_type': {'required': True}, + 'is_optional': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'str'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'last_status_change': {'key': 'lastStatusChange', 'type': 'iso-8601'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'is_optional': {'key': 'isOptional', 'type': 'bool'}, + } + + def __init__(self, *, name: str, status, last_updated, last_status_change, resource_type: str, is_optional: bool, error: str=None, **kwargs) -> None: + super(ConnectivityStatusContract, self).__init__(**kwargs) + self.name = name + self.status = status + self.error = error + self.last_updated = last_updated + self.last_status_change = last_status_change + self.resource_type = resource_type + self.is_optional = is_optional + + +class ContentItemContract(Resource): + """Content type contract details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :param properties: Properties of the content item. + :type properties: dict[str, object] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(ContentItemContract, self).__init__(**kwargs) + self.properties = properties + + +class ContentTypeContract(Resource): + """Content type contract details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param content_type_contract_id: Content type identifier :type content_type_contract_id: str @@ -3881,16 +4582,18 @@ 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. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param service_id: Fully-qualified API Management Service Resource ID :type service_id: str @@ -3902,7 +4605,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 """ @@ -3967,11 +4670,13 @@ class DiagnosticContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param always_log: Specifies for what type of messages sampling settings should not apply. Possible values include: 'allErrors' @@ -4047,11 +4752,13 @@ class EmailTemplateContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param subject: Required. Subject of the Template. :type subject: str @@ -4063,7 +4770,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: @@ -4169,6 +4876,48 @@ def __init__(self, *, subject: str=None, title: str=None, description: str=None, self.parameters = parameters +class EndpointDependency(Model): + """A domain name that a service is reached at. + + :param domain_name: The domain name of the dependency. + :type domain_name: str + :param endpoint_details: The Ports used when connecting to DomainName. + :type endpoint_details: + list[~azure.mgmt.apimanagement.models.EndpointDetail] + """ + + _attribute_map = { + 'domain_name': {'key': 'domainName', 'type': 'str'}, + 'endpoint_details': {'key': 'endpointDetails', 'type': '[EndpointDetail]'}, + } + + def __init__(self, *, domain_name: str=None, endpoint_details=None, **kwargs) -> None: + super(EndpointDependency, self).__init__(**kwargs) + self.domain_name = domain_name + self.endpoint_details = endpoint_details + + +class EndpointDetail(Model): + """Current TCP connectivity information from the Api Management Service to a + single endpoint. + + :param port: The port an endpoint is connected to. + :type port: int + :param region: The region of the dependency. + :type region: str + """ + + _attribute_map = { + 'port': {'key': 'port', 'type': 'int'}, + 'region': {'key': 'region', 'type': 'str'}, + } + + def __init__(self, *, port: int=None, region: str=None, **kwargs) -> None: + super(EndpointDetail, self).__init__(**kwargs) + self.port = port + self.region = region + + class ErrorFieldContract(Model): """Error Field contract. @@ -4263,11 +5012,13 @@ class GatewayCertificateAuthorityContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param is_trusted: Determines whether certificate authority is trusted. :type is_trusted: bool @@ -4297,11 +5048,13 @@ class GatewayContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param location_data: Gateway location. :type location_data: @@ -4337,11 +5090,13 @@ class GatewayHostnameConfigurationContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param hostname: Hostname value. Supports valid domain name, partial or full wildcard @@ -4502,11 +5257,13 @@ class GroupContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param display_name: Required. Group name. :type display_name: str @@ -4715,6 +5472,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 +5497,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 +5512,35 @@ 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 HTTPHeader(Model): + """HTTP header and it's value. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Header name. + :type name: str + :param value: Required. Header value. + :type value: str + """ + + _validation = { + 'name': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, name: str, value: str, **kwargs) -> None: + super(HTTPHeader, self).__init__(**kwargs) + self.name = name + self.value = value class HttpMessageDiagnostic(Model): @@ -4839,11 +5635,13 @@ class IdentityProviderContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param identity_provider_contract_type: Identity Provider Type identifier. Possible values include: 'facebook', 'google', 'microsoft', 'twitter', @@ -4934,11 +5732,13 @@ class IdentityProviderCreateContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param identity_provider_create_contract_type: Identity Provider Type identifier. Possible values include: 'facebook', 'google', 'microsoft', @@ -5104,11 +5904,13 @@ class IssueAttachmentContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param title: Required. Filename by which the binary data will be saved. :type title: str @@ -5153,11 +5955,13 @@ class IssueCommentContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param text: Required. Comment text. :type text: str @@ -5200,11 +6004,13 @@ class IssueContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param created_date: Date and time when the issue was created. :type created_date: datetime @@ -5322,7 +6128,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 +6151,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 @@ -5403,11 +6209,13 @@ class LoggerContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param logger_type: Required. Logger type. Possible values include: 'azureEventHub', 'applicationInsights', 'azureMonitor' @@ -5492,11 +6300,13 @@ class NamedValueContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param tags: Optional tags that when provided can be used to filter the NamedValue list. @@ -5554,11 +6364,13 @@ class NamedValueCreateContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param tags: Optional tags that when provided can be used to filter the NamedValue list. @@ -5755,11 +6567,13 @@ class NotificationContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param title: Required. Title of the Notification. :type title: str @@ -5842,11 +6656,13 @@ class OpenidConnectProviderContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param display_name: Required. User-friendly OpenID Connect Provider name. :type display_name: str @@ -5958,18 +6774,20 @@ 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. All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param template_parameters: Collection of URL template parameters. :type template_parameters: @@ -6060,7 +6878,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 +6915,22 @@ 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: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :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 +6955,28 @@ class OperationResultContract(Model): """ _validation = { - 'action_log': {'readonly': True}, - } + '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 +7019,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 +7070,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: @@ -6292,6 +7124,61 @@ def __init__(self, *, template_parameters=None, description: str=None, request=N self.url_template = url_template +class OutboundEnvironmentEndpoint(Model): + """Endpoints accessed for a common purpose that the Api Management Service + requires outbound network access to. + + :param category: The type of service accessed by the Api Management + Service, e.g., Azure Storage, Azure SQL Database, and Azure Active + Directory. + :type category: str + :param endpoints: The endpoints that the Api Management Service reaches + the service at. + :type endpoints: list[~azure.mgmt.apimanagement.models.EndpointDependency] + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'str'}, + 'endpoints': {'key': 'endpoints', 'type': '[EndpointDependency]'}, + } + + def __init__(self, *, category: str=None, endpoints=None, **kwargs) -> None: + super(OutboundEnvironmentEndpoint, self).__init__(**kwargs) + self.category = category + self.endpoints = endpoints + + +class OutboundEnvironmentEndpointList(Model): + """Collection of Outbound Environment Endpoints. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. Collection of resources. + :type value: + list[~azure.mgmt.apimanagement.models.OutboundEnvironmentEndpoint] + :ivar next_link: Link to next page of resources. + :vartype next_link: str + """ + + _validation = { + 'value': {'required': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[OutboundEnvironmentEndpoint]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, value, **kwargs) -> None: + super(OutboundEnvironmentEndpointList, self).__init__(**kwargs) + self.value = value + self.next_link = None + + class ParameterContract(Model): """Operation parameters details. @@ -6309,6 +7196,13 @@ 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 + :param examples: Exampled defined for the parameter. + :type examples: dict[str, + ~azure.mgmt.apimanagement.models.ParameterExampleContract] """ _validation = { @@ -6323,9 +7217,12 @@ 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'}, + 'examples': {'key': 'examples', 'type': '{ParameterExampleContract}'}, } - 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, examples=None, **kwargs) -> None: super(ParameterContract, self).__init__(**kwargs) self.name = name self.description = description @@ -6333,6 +7230,37 @@ 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 + self.examples = examples + + +class ParameterExampleContract(Model): + """Parameter example. + + :param summary: Short description for the example + :type summary: str + :param description: Long description for the example + :type description: str + :param value: Example value. May be a primitive value, or an object. + :type value: object + :param external_value: A URL that points to the literal example + :type external_value: str + """ + + _attribute_map = { + 'summary': {'key': 'summary', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'}, + 'external_value': {'key': 'externalValue', 'type': 'str'}, + } + + def __init__(self, *, summary: str=None, description: str=None, value=None, external_value: str=None, **kwargs) -> None: + super(ParameterExampleContract, self).__init__(**kwargs) + self.summary = summary + self.description = description + self.value = value + self.external_value = external_value class PipelineDiagnosticSettings(Model): @@ -6387,11 +7315,13 @@ class PolicyContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param value: Required. Contents of the Policy as defined by the format. :type value: str @@ -6448,11 +7378,13 @@ class PolicyDescriptionContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :ivar description: Policy description. :vartype description: str @@ -6488,11 +7420,13 @@ class PortalDelegationSettings(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param url: A delegation Url. :type url: str @@ -6532,28 +7466,30 @@ 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. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param description: Portal revision description. :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 @@ -6618,11 +7554,13 @@ class PortalSettingsContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param url: A delegation Url. :type url: str @@ -6693,11 +7631,13 @@ class PortalSigninSettings(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param enabled: Redirect Anonymous users to the Sign-In page. :type enabled: bool @@ -6727,11 +7667,13 @@ class PortalSignupSettings(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param enabled: Allow users to sign up on a developer portal. :type enabled: bool @@ -6760,6 +7702,214 @@ def __init__(self, *, enabled: bool=None, terms_of_service=None, **kwargs) -> No self.terms_of_service = terms_of_service +class PrivateEndpoint(Model): + """The Private Endpoint resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The ARM identifier for Private Endpoint + :vartype id: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(PrivateEndpoint, self).__init__(**kwargs) + self.id = None + + +class PrivateEndpointConnection(Resource): + """The Private Endpoint Connection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :param private_endpoint: The resource of private end point. + :type private_endpoint: ~azure.mgmt.apimanagement.models.PrivateEndpoint + :param private_link_service_connection_state: Required. A collection of + information about the state of the connection between service consumer and + provider. + :type private_link_service_connection_state: + ~azure.mgmt.apimanagement.models.PrivateLinkServiceConnectionState + :param provisioning_state: The provisioning state of the private endpoint + connection resource. Possible values include: 'Succeeded', 'Creating', + 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.apimanagement.models.PrivateEndpointConnectionProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'private_link_service_connection_state': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'PrivateEndpoint'}, + 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, *, private_link_service_connection_state, private_endpoint=None, provisioning_state=None, **kwargs) -> None: + super(PrivateEndpointConnection, self).__init__(**kwargs) + self.private_endpoint = private_endpoint + self.private_link_service_connection_state = private_link_service_connection_state + self.provisioning_state = provisioning_state + + +class PrivateEndpointConnectionRequest(Model): + """A request to approve or reject a private endpoint connection. + + :param id: Private Endpoint Connection Resource Id. + :type id: str + :param properties: The connection state of the private endpoint + connection. + :type properties: + ~azure.mgmt.apimanagement.models.PrivateEndpointConnectionRequestProperties + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'PrivateEndpointConnectionRequestProperties'}, + } + + def __init__(self, *, id: str=None, properties=None, **kwargs) -> None: + super(PrivateEndpointConnectionRequest, self).__init__(**kwargs) + self.id = id + self.properties = properties + + +class PrivateEndpointConnectionRequestProperties(Model): + """The connection state of the private endpoint connection. + + :param private_link_service_connection_state: A collection of information + about the state of the connection between service consumer and provider. + :type private_link_service_connection_state: + ~azure.mgmt.apimanagement.models.PrivateLinkServiceConnectionState + """ + + _attribute_map = { + 'private_link_service_connection_state': {'key': 'privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, + } + + def __init__(self, *, private_link_service_connection_state=None, **kwargs) -> None: + super(PrivateEndpointConnectionRequestProperties, self).__init__(**kwargs) + self.private_link_service_connection_state = private_link_service_connection_state + + +class PrivateLinkResource(Resource): + """A private link resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :ivar group_id: The private link resource group id. + :vartype group_id: str + :ivar required_members: The private link resource required member names. + :vartype required_members: list[str] + :param required_zone_names: The private link resource Private link DNS + zone name. + :type required_zone_names: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'group_id': {'readonly': True}, + 'required_members': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'group_id': {'key': 'properties.groupId', 'type': 'str'}, + 'required_members': {'key': 'properties.requiredMembers', 'type': '[str]'}, + 'required_zone_names': {'key': 'properties.requiredZoneNames', 'type': '[str]'}, + } + + def __init__(self, *, required_zone_names=None, **kwargs) -> None: + super(PrivateLinkResource, self).__init__(**kwargs) + self.group_id = None + self.required_members = None + self.required_zone_names = required_zone_names + + +class PrivateLinkResourceListResult(Model): + """A list of private link resources. + + :param value: Array of private link resources + :type value: list[~azure.mgmt.apimanagement.models.PrivateLinkResource] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PrivateLinkResource]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(PrivateLinkResourceListResult, self).__init__(**kwargs) + self.value = value + + +class PrivateLinkServiceConnectionState(Model): + """A collection of information about the state of the connection between + service consumer and provider. + + :param status: Indicates whether the connection has been + Approved/Rejected/Removed by the owner of the service. Possible values + include: 'Pending', 'Approved', 'Rejected' + :type status: str or + ~azure.mgmt.apimanagement.models.PrivateEndpointServiceConnectionStatus + :param description: The reason for approval/rejection of the connection. + :type description: str + :param actions_required: A message indicating if changes on the service + provider require any updates on the consumer. + :type actions_required: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, + } + + def __init__(self, *, status=None, description: str=None, actions_required: str=None, **kwargs) -> None: + super(PrivateLinkServiceConnectionState, self).__init__(**kwargs) + self.status = status + self.description = description + self.actions_required = actions_required + + class ProductContract(Resource): """Product details. @@ -6768,11 +7918,13 @@ class ProductContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param description: Product description. May include HTML formatting tags. :type description: str @@ -7028,6 +8180,41 @@ def __init__(self, *, description: str=None, terms: str=None, subscription_requi self.display_name = display_name +class ProxyResource(Resource): + """Proxy Resource. + + The resource model definition for a Azure Resource Manager proxy resource. + It will not have tags and a location. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ProxyResource, self).__init__(**kwargs) + + class QuotaCounterCollection(Model): """Paged Quota Counter list representation. @@ -7190,11 +8377,13 @@ class RecipientEmailContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param email: User Email subscribed to notification. :type email: str @@ -7268,11 +8457,13 @@ class RecipientUserContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param user_id: API Management UserId subscribed to notification. :type user_id: str @@ -7343,6 +8534,61 @@ def __init__(self, *, enabled: bool=None, **kwargs) -> None: self.enabled = enabled +class RemotePrivateEndpointConnectionWrapper(Model): + """Remote Private Endpoint Connection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Private Endpoint connection resource id + :type id: str + :param name: Private Endpoint Connection Name + :type name: str + :param type: Private Endpoint Connection Resource Type + :type type: str + :param private_endpoint: The resource of private end point. + :type private_endpoint: ~azure.mgmt.apimanagement.models.ArmIdWrapper + :param private_link_service_connection_state: Required. A collection of + information about the state of the connection between service consumer and + provider. + :type private_link_service_connection_state: + ~azure.mgmt.apimanagement.models.PrivateLinkServiceConnectionState + :ivar provisioning_state: The provisioning state of the private endpoint + connection resource. + :vartype provisioning_state: str + :ivar group_ids: All the Group ids. + :vartype group_ids: list[str] + """ + + _validation = { + 'private_link_service_connection_state': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'group_ids': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'ArmIdWrapper'}, + 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'group_ids': {'key': 'properties.groupIds', 'type': '[str]'}, + } + + def __init__(self, *, private_link_service_connection_state, id: str=None, name: str=None, type: str=None, private_endpoint=None, **kwargs) -> None: + super(RemotePrivateEndpointConnectionWrapper, self).__init__(**kwargs) + self.id = id + self.name = name + self.type = type + self.private_endpoint = private_endpoint + self.private_link_service_connection_state = private_link_service_connection_state + self.provisioning_state = None + self.group_ids = None + + class ReportRecordContract(Model): """Report data. @@ -7492,8 +8738,6 @@ class RepresentationContract(Model): :param content_type: Required. Specifies a registered or custom content type for this representation, e.g. application/xml. :type content_type: str - :param sample: An example of the representation. - :type sample: str :param schema_id: Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'. @@ -7507,6 +8751,9 @@ class RepresentationContract(Model): 'multipart/form-data'.. :type form_parameters: list[~azure.mgmt.apimanagement.models.ParameterContract] + :param examples: Exampled defined for the representation. + :type examples: dict[str, + ~azure.mgmt.apimanagement.models.ParameterExampleContract] """ _validation = { @@ -7515,19 +8762,19 @@ class RepresentationContract(Model): _attribute_map = { 'content_type': {'key': 'contentType', 'type': 'str'}, - 'sample': {'key': 'sample', 'type': 'str'}, 'schema_id': {'key': 'schemaId', 'type': 'str'}, 'type_name': {'key': 'typeName', 'type': 'str'}, 'form_parameters': {'key': 'formParameters', 'type': '[ParameterContract]'}, + 'examples': {'key': 'examples', 'type': '{ParameterExampleContract}'}, } - def __init__(self, *, content_type: str, sample: str=None, schema_id: str=None, type_name: str=None, form_parameters=None, **kwargs) -> None: + def __init__(self, *, content_type: str, schema_id: str=None, type_name: str=None, form_parameters=None, examples=None, **kwargs) -> None: super(RepresentationContract, self).__init__(**kwargs) self.content_type = content_type - self.sample = sample self.schema_id = schema_id self.type_name = type_name self.form_parameters = form_parameters + self.examples = examples class RequestContract(Model): @@ -7888,49 +9135,49 @@ class SchemaContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str - :param content_type: Required. 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 value: Json escaped string defining the document representing the - Schema. Used for schemas other than Swagger/OpenAPI. + :param schema_type: Required. Schema Type. Immutable. Possible values + include: 'Xml', 'Json' + :type schema_type: str or ~azure.mgmt.apimanagement.models.SchemaType + :param description: Free-form schema entity description. + :type description: str + :param value: Json-encoded string for non json-based schema. :type value: str - :param definitions: Types definitions. Used for Swagger/OpenAPI schemas - only, null otherwise. - :type definitions: object + :param document: Schema document object for json-based schema formats(e.g. + json schema). + :type document: object """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'content_type': {'required': True}, + 'schema_type': {'required': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, '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'}, + 'schema_type': {'key': 'properties.schemaType', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'value': {'key': 'properties.value', 'type': 'str'}, + 'document': {'key': 'properties\\.document', 'type': 'object'}, } - def __init__(self, *, content_type: str, value: str=None, definitions=None, **kwargs) -> None: + def __init__(self, *, schema_type, description: str=None, value: str=None, document=None, **kwargs) -> None: super(SchemaContract, self).__init__(**kwargs) - self.content_type = content_type + self.schema_type = schema_type + self.description = description self.value = value - self.definitions = definitions + self.document = document class SubscriptionContract(Resource): @@ -7941,11 +9188,13 @@ class SubscriptionContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param owner_id: The user resource identifier of the subscription owner. The value is a valid relative URL in the format of /users/{userId} where @@ -8245,6 +9494,47 @@ def __init__(self, *, owner_id: str=None, scope: str=None, expiration_date=None, self.allow_tracing = allow_tracing +class SystemData(Model): + """Metadata pertaining to creation and last modification of the resource. + + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. + Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + :type created_by_type: str or + ~azure.mgmt.apimanagement.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the + resource. Possible values include: 'User', 'Application', + 'ManagedIdentity', 'Key' + :type last_modified_by_type: str or + ~azure.mgmt.apimanagement.models.CreatedByType + :param last_modified_at: The timestamp of resource last modification (UTC) + :type last_modified_at: datetime + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__(self, *, created_by: str=None, created_by_type=None, created_at=None, last_modified_by: str=None, last_modified_by_type=None, last_modified_at=None, **kwargs) -> None: + super(SystemData, self).__init__(**kwargs) + self.created_by = created_by + self.created_by_type = created_by_type + self.created_at = created_at + self.last_modified_by = last_modified_by + self.last_modified_by_type = last_modified_by_type + self.last_modified_at = last_modified_at + + class TagContract(Resource): """Tag Contract details. @@ -8253,11 +9543,13 @@ class TagContract(Resource): All required parameters must be populated in order to send to Azure. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param display_name: Required. Tag name. :type display_name: str @@ -8310,11 +9602,13 @@ class TagDescriptionContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param description: Description of the Tag. :type description: str @@ -8396,7 +9690,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. @@ -8450,9 +9744,20 @@ def __init__(self, *, id: str=None, name: str=None, **kwargs) -> None: self.name = name -class TenantConfigurationSyncStateContract(Model): - """Tenant Configuration Synchronization State. +class TenantConfigurationSyncStateContract(Resource): + """Result of Tenant Configuration Sync State. + + Variables are only populated by the server, and will be ignored when + sending a request. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str :param branch: The name of Git branch. :type branch: str :param commit_id: The latest commit Id. @@ -8474,19 +9779,32 @@ 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 """ + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + _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'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + '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 +9813,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): @@ -8503,11 +9822,13 @@ class TenantSettingsContract(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param settings: Tenant settings :type settings: dict[str, str] @@ -8582,17 +9903,65 @@ def __init__(self, *, name: str, value: str, **kwargs) -> None: self.value = value +class TrackedResource(Resource): + """Tracked Resource. + + The resource model definition for an Azure Resource Manager tracked top + level resource which has 'tags' and a 'location'. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__(self, *, location: str, tags=None, **kwargs) -> None: + super(TrackedResource, self).__init__(**kwargs) + self.tags = tags + self.location = location + + class UserContract(Resource): """User details. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the resource :vartype name: str - :ivar type: Resource type for API Management resource. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param state: Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_paged_models.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_paged_models.py index c194622ada12e..69b75c4f16575 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_paged_models.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_paged_models.py @@ -103,19 +103,19 @@ class ProductContractPaged(Paged): def __init__(self, *args, **kwargs): super(ProductContractPaged, self).__init__(*args, **kwargs) -class SchemaContractPaged(Paged): +class ApiSchemaContractPaged(Paged): """ - A paging container for iterating over a list of :class:`SchemaContract ` object + A paging container for iterating over a list of :class:`ApiSchemaContract ` object """ _attribute_map = { 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[SchemaContract]'} + 'current_page': {'key': 'value', 'type': '[ApiSchemaContract]'} } def __init__(self, *args, **kwargs): - super(SchemaContractPaged, self).__init__(*args, **kwargs) + super(ApiSchemaContractPaged, self).__init__(*args, **kwargs) class DiagnosticContractPaged(Paged): """ A paging container for iterating over a list of :class:`DiagnosticContract ` object @@ -480,6 +480,19 @@ class PortalRevisionContractPaged(Paged): def __init__(self, *args, **kwargs): super(PortalRevisionContractPaged, self).__init__(*args, **kwargs) +class PrivateEndpointConnectionPaged(Paged): + """ + A paging container for iterating over a list of :class:`PrivateEndpointConnection ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PrivateEndpointConnection]'} + } + + def __init__(self, *args, **kwargs): + + super(PrivateEndpointConnectionPaged, self).__init__(*args, **kwargs) class SubscriptionContractPaged(Paged): """ A paging container for iterating over a list of :class:`SubscriptionContract ` object @@ -532,6 +545,19 @@ class RequestReportRecordContractPaged(Paged): def __init__(self, *args, **kwargs): super(RequestReportRecordContractPaged, self).__init__(*args, **kwargs) +class SchemaContractPaged(Paged): + """ + A paging container for iterating over a list of :class:`SchemaContract ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[SchemaContract]'} + } + + def __init__(self, *args, **kwargs): + + super(SchemaContractPaged, self).__init__(*args, **kwargs) class TenantSettingsContractPaged(Paged): """ A paging container for iterating over a list of :class:`TenantSettingsContract ` object diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/__init__.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/__init__.py index f1985f5799308..5238c77dbc744 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/__init__.py +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/__init__.py @@ -52,6 +52,7 @@ from ._notification_recipient_user_operations import NotificationRecipientUserOperations from ._notification_recipient_email_operations import NotificationRecipientEmailOperations from ._open_id_connect_provider_operations import OpenIdConnectProviderOperations +from ._outbound_network_dependencies_endpoints_operations import OutboundNetworkDependenciesEndpointsOperations from ._policy_operations import PolicyOperations from ._policy_description_operations import PolicyDescriptionOperations from ._portal_revision_operations import PortalRevisionOperations @@ -59,6 +60,7 @@ from ._sign_in_settings_operations import SignInSettingsOperations from ._sign_up_settings_operations import SignUpSettingsOperations from ._delegation_settings_operations import DelegationSettingsOperations +from ._private_endpoint_connection_operations import PrivateEndpointConnectionOperations from ._product_operations import ProductOperations from ._product_api_operations import ProductApiOperations from ._product_group_operations import ProductGroupOperations @@ -68,6 +70,7 @@ from ._quota_by_period_keys_operations import QuotaByPeriodKeysOperations from ._region_operations import RegionOperations from ._reports_operations import ReportsOperations +from ._schema_operations import SchemaOperations from ._tenant_settings_operations import TenantSettingsOperations from ._api_management_skus_operations import ApiManagementSkusOperations from ._subscription_operations import SubscriptionOperations @@ -81,6 +84,7 @@ from ._user_identities_operations import UserIdentitiesOperations from ._user_confirmation_password_operations import UserConfirmationPasswordOperations from ._api_export_operations import ApiExportOperations +from ._api_management_client_operations import ApiManagementClientOperationsMixin __all__ = [ 'ApiOperations', @@ -126,6 +130,7 @@ 'NotificationRecipientUserOperations', 'NotificationRecipientEmailOperations', 'OpenIdConnectProviderOperations', + 'OutboundNetworkDependenciesEndpointsOperations', 'PolicyOperations', 'PolicyDescriptionOperations', 'PortalRevisionOperations', @@ -133,6 +138,7 @@ 'SignInSettingsOperations', 'SignUpSettingsOperations', 'DelegationSettingsOperations', + 'PrivateEndpointConnectionOperations', 'ProductOperations', 'ProductApiOperations', 'ProductGroupOperations', @@ -142,6 +148,7 @@ 'QuotaByPeriodKeysOperations', 'RegionOperations', 'ReportsOperations', + 'SchemaOperations', 'TenantSettingsOperations', 'ApiManagementSkusOperations', 'SubscriptionOperations', @@ -155,4 +162,5 @@ 'UserIdentitiesOperations', 'UserConfirmationPasswordOperations', 'ApiExportOperations', + 'ApiManagementClientOperationsMixin', ] 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 484c7c5188390..3d7765f6fb395 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 6073e442fd4b0..ed6717da9b212 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 2a17934491a6c..a828f5eb7036e 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 17fef37b0ffb5..18ace5ba4275d 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 fb31a2533803f..965e60d5e68fc 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_client_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_client_operations.py new file mode 100644 index 0000000000000..7fa829370cc03 --- /dev/null +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_api_management_client_operations.py @@ -0,0 +1,123 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling +from .. import models +import uuid + + +class ApiManagementClientOperationsMixin(object): + + + def _perform_connectivity_check_async_initial( + self, resource_group_name, service_name, connectivity_check_request_params, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.perform_connectivity_check_async.metadata['url'] + path_format_arguments = { + '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') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(connectivity_check_request_params, 'ConnectivityCheckRequest') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ConnectivityCheckResponse', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def perform_connectivity_check_async( + self, resource_group_name, service_name, connectivity_check_request_params, custom_headers=None, raw=False, polling=True, **operation_config): + """Performs a connectivity check between the API Management service and a + given destination, and returns metrics for the connection, as well as + errors encountered while trying to establish it. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_name: The name of the API Management service. + :type service_name: str + :param connectivity_check_request_params: Connectivity Check request + parameters. + :type connectivity_check_request_params: + ~azure.mgmt.apimanagement.models.ConnectivityCheckRequest + :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 + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ConnectivityCheckResponse or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.apimanagement.models.ConnectivityCheckResponse] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.apimanagement.models.ConnectivityCheckResponse]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._perform_connectivity_check_async_initial( + resource_group_name=resource_group_name, + service_name=service_name, + connectivity_check_request_params=connectivity_check_request_params, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ConnectivityCheckResponse', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + perform_connectivity_check_async.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/connectivityCheck'} 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 654a7af170841..804de32c090e6 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 1394054653b81..a88137c9871d7 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 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 e852e82ada065..58ff1bf8cdd53 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 84dac42746cdb..3b63951321a7e 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 32ae01a0f9dd6..768c14379a5d8 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 689cf454e5006..b665a1c4bd79d 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 3e696a2d6b044..edd26d1f44ad0 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 063060d41c2f5..43d69a1d269fa 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 30058b81e8b5c..5f6324a509967 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 9544131f140db..16374c25ade78 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 09dfba4207e03..4f2e7ff7662c3 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 01dd0363cea58..5a8ec13217820 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 @@ -67,9 +67,9 @@ def list_by_api( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: An iterator like instance of SchemaContract + :return: An iterator like instance of ApiSchemaContract :rtype: - ~azure.mgmt.apimanagement.models.SchemaContractPaged[~azure.mgmt.apimanagement.models.SchemaContract] + ~azure.mgmt.apimanagement.models.ApiSchemaContractPaged[~azure.mgmt.apimanagement.models.ApiSchemaContract] :raises: :class:`ErrorResponseException` """ @@ -127,7 +127,7 @@ def internal_paging(next_link=None): header_dict = None if raw: header_dict = {} - deserialized = models.SchemaContractPaged(internal_paging, self._deserialize.dependencies, header_dict) + deserialized = models.ApiSchemaContractPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_api.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas'} @@ -145,8 +145,8 @@ def get_entity_tag( API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. :type api_id: str - :param schema_id: Schema identifier within an API. Must be unique in - the current API Management service instance. + :param schema_id: Schema id identifier. Must be unique in the current + API Management service instance. :type schema_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -164,7 +164,7 @@ def get_entity_tag( '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])?$'), 'apiId': self._serialize.url("api_id", api_id, 'str', max_length=256, min_length=1, pattern=r'^[^*#&+:<>?]+$'), - 'schemaId': self._serialize.url("schema_id", schema_id, 'str', max_length=80, min_length=1, pattern=r'^[^*#&+:<>?]+$'), + 'schemaId': self._serialize.url("schema_id", schema_id, 'str', max_length=80, min_length=1), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -209,16 +209,16 @@ def get( API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. :type api_id: str - :param schema_id: Schema identifier within an API. Must be unique in - the current API Management service instance. + :param schema_id: Schema id identifier. Must be unique in the current + API Management service instance. :type schema_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: SchemaContract or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.apimanagement.models.SchemaContract or + :return: ApiSchemaContract or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.apimanagement.models.ApiSchemaContract or ~msrest.pipeline.ClientRawResponse :raises: :class:`ErrorResponseException` @@ -229,7 +229,7 @@ def get( '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])?$'), 'apiId': self._serialize.url("api_id", api_id, 'str', max_length=256, min_length=1, pattern=r'^[^*#&+:<>?]+$'), - 'schemaId': self._serialize.url("schema_id", schema_id, 'str', max_length=80, min_length=1, pattern=r'^[^*#&+:<>?]+$'), + 'schemaId': self._serialize.url("schema_id", schema_id, 'str', max_length=80, min_length=1), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -258,7 +258,7 @@ def get( header_dict = {} deserialized = None if response.status_code == 200: - deserialized = self._deserialize('SchemaContract', response) + deserialized = self._deserialize('ApiSchemaContract', response) header_dict = { 'ETag': 'str', } @@ -280,7 +280,7 @@ def _create_or_update_initial( '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])?$'), 'apiId': self._serialize.url("api_id", api_id, 'str', max_length=256, min_length=1, pattern=r'^[^*#&+:<>?]+$'), - 'schemaId': self._serialize.url("schema_id", schema_id, 'str', max_length=80, min_length=1, pattern=r'^[^*#&+:<>?]+$'), + 'schemaId': self._serialize.url("schema_id", schema_id, 'str', max_length=80, min_length=1), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -303,7 +303,7 @@ def _create_or_update_initial( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - body_content = self._serialize.body(parameters, 'SchemaContract') + body_content = self._serialize.body(parameters, 'ApiSchemaContract') # Construct and send request request = self._client.put(url, query_parameters, header_parameters, body_content) @@ -316,12 +316,12 @@ def _create_or_update_initial( header_dict = {} if response.status_code == 200: - deserialized = self._deserialize('SchemaContract', response) + deserialized = self._deserialize('ApiSchemaContract', response) header_dict = { 'ETag': 'str', } if response.status_code == 201: - deserialized = self._deserialize('SchemaContract', response) + deserialized = self._deserialize('ApiSchemaContract', response) header_dict = { 'ETag': 'str', } @@ -345,11 +345,11 @@ def create_or_update( API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. :type api_id: str - :param schema_id: Schema identifier within an API. Must be unique in - the current API Management service instance. + :param schema_id: Schema id identifier. 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 + :type parameters: ~azure.mgmt.apimanagement.models.ApiSchemaContract :param if_match: ETag of the Entity. Not required when creating an entity, but required when updating an entity. :type if_match: str @@ -358,12 +358,12 @@ def create_or_update( direct response alongside the deserialized response :param polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns SchemaContract or - ClientRawResponse if raw==True + :return: An instance of LROPoller that returns ApiSchemaContract or + ClientRawResponse if raw==True :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.apimanagement.models.SchemaContract] + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.apimanagement.models.ApiSchemaContract] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.apimanagement.models.SchemaContract]] + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.apimanagement.models.ApiSchemaContract]] :raises: :class:`ErrorResponseException` """ @@ -383,7 +383,7 @@ def get_long_running_output(response): header_dict = { 'ETag': 'str', } - deserialized = self._deserialize('SchemaContract', response) + deserialized = self._deserialize('ApiSchemaContract', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -413,8 +413,8 @@ def delete( API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. :type api_id: str - :param schema_id: Schema identifier within an API. Must be unique in - the current API Management service instance. + :param schema_id: Schema id identifier. Must be unique in the current + API Management service instance. :type schema_id: str :param if_match: ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should @@ -439,7 +439,7 @@ def delete( '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])?$'), 'apiId': self._serialize.url("api_id", api_id, 'str', max_length=256, min_length=1, pattern=r'^[^*#&+:<>?]+$'), - 'schemaId': self._serialize.url("schema_id", schema_id, 'str', max_length=80, min_length=1, pattern=r'^[^*#&+:<>?]+$'), + 'schemaId': self._serialize.url("schema_id", schema_id, 'str', max_length=80, min_length=1), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } url = self._client.format_url(url, **path_format_arguments) 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 ccd8614fe162a..39a286da9fdb8 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 27b9717960b16..9ad171e093591 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 f72171f1f572e..e98453611dabb 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 a56f05d2032b7..d812dc38124d8 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 312e37dcd9c23..d22ad87db5201 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 181addc789b71..cdd18902a2f48 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 3602938c54794..b688248a60407 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 ded5b9d7f41e2..338be223b79be 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 e8df6d040bdf8..c049baaf9d85e 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 1cf2643f13497..16684b52c7224 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 715f2c365f42f..475cf1a1b7e38 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 eb3526b561b58..ac1c93646786d 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 f20ac07f04052..7e2708613d85a 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 9a18fe606d437..5750c2aee632e 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 5a9b8075e3c4b..1479d821a0752 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 b2788c8535cff..03a6f74b8cfee 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 db5f9e397b988..75f61e4d13e45 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 fc20c8176fed6..9777e1fc01a7e 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 d42f1d5ddbb71..f101db65c8226 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 8167321e7a723..5541d3c8d8a20 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 52e4a0c8be45e..ef177d98699f3 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 ba61bdd00f709..ac4c325240091 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 acafd47d2b4cf..a3c5d83ed0689 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 8bab4b3e8e91f..c149fbe691ad8 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 f6a28356a5074..f95851da654a7 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 9246d8139a207..6678c663741cf 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 39b332f40e107..b5d80c9d7dbe3 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 55ae73491e506..2dfecf078ce50 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/_outbound_network_dependencies_endpoints_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_outbound_network_dependencies_endpoints_operations.py new file mode 100644 index 0000000000000..04d32669771e3 --- /dev/null +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_outbound_network_dependencies_endpoints_operations.py @@ -0,0 +1,102 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class OutboundNetworkDependenciesEndpointsOperations(object): + """OutboundNetworkDependenciesEndpointsOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :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: "2021-04-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + 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): + """Gets the network endpoints of all outbound dependencies of a + ApiManagement service. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_name: The name of the API Management service. + :type service_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: OutboundEnvironmentEndpointList or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.apimanagement.models.OutboundEnvironmentEndpointList or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.list_by_service.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])?$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('OutboundEnvironmentEndpointList', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list_by_service.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/outboundNetworkDependenciesEndpoints'} 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 be328f1fd3825..7bcd765010ce5 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 7ee53832f1b26..ab59a4525f019 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 624b3d82ed023..c73116de83059 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 f73ee8ea016b2..878be5b7c4950 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/_private_endpoint_connection_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_private_endpoint_connection_operations.py new file mode 100644 index 0000000000000..c76e64dd8b631 --- /dev/null +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_private_endpoint_connection_operations.py @@ -0,0 +1,498 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class PrivateEndpointConnectionOperations(object): + """PrivateEndpointConnectionOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :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: "2021-04-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + 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): + """Lists all private endpoint connections of the API Management service + instance. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_name: The name of the API Management service. + :type service_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of PrivateEndpointConnection + :rtype: + ~azure.mgmt.apimanagement.models.PrivateEndpointConnectionPaged[~azure.mgmt.apimanagement.models.PrivateEndpointConnection] + :raises: + :class:`ErrorResponseException` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_service.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])?$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.PrivateEndpointConnectionPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_by_service.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections'} + + def get_by_name( + self, resource_group_name, service_name, private_endpoint_connection_name, custom_headers=None, raw=False, **operation_config): + """Gets the details of the Private Endpoint Connection specified by its + identifier. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_name: The name of the API Management service. + :type service_name: str + :param private_endpoint_connection_name: Name of the private endpoint + connection. + :type private_endpoint_connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PrivateEndpointConnection or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.apimanagement.models.PrivateEndpointConnection or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.get_by_name.metadata['url'] + path_format_arguments = { + '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])?$'), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('PrivateEndpointConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_by_name.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}'} + + + def _create_or_update_initial( + self, resource_group_name, service_name, private_endpoint_connection_name, id=None, properties=None, custom_headers=None, raw=False, **operation_config): + private_endpoint_connection_request = models.PrivateEndpointConnectionRequest(id=id, properties=properties) + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + '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])?$'), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(private_endpoint_connection_request, 'PrivateEndpointConnectionRequest') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PrivateEndpointConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, service_name, private_endpoint_connection_name, id=None, properties=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates a new Private Endpoint Connection or updates an existing one. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_name: The name of the API Management service. + :type service_name: str + :param private_endpoint_connection_name: Name of the private endpoint + connection. + :type private_endpoint_connection_name: str + :param id: Private Endpoint Connection Resource Id. + :type id: str + :param properties: The connection state of the private endpoint + connection. + :type properties: + ~azure.mgmt.apimanagement.models.PrivateEndpointConnectionRequestProperties + :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 + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + PrivateEndpointConnection or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.apimanagement.models.PrivateEndpointConnection] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.apimanagement.models.PrivateEndpointConnection]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + service_name=service_name, + private_endpoint_connection_name=private_endpoint_connection_name, + id=id, + properties=properties, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('PrivateEndpointConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}'} + + + def _delete_initial( + self, resource_group_name, service_name, private_endpoint_connection_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + '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])?$'), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.ErrorResponseException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, service_name, private_endpoint_connection_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified Private Endpoint Connection. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_name: The name of the API Management service. + :type service_name: str + :param private_endpoint_connection_name: Name of the private endpoint + connection. + :type private_endpoint_connection_name: str + :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 + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + service_name=service_name, + private_endpoint_connection_name=private_endpoint_connection_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}'} + + def list_private_link_resources( + self, resource_group_name, service_name, custom_headers=None, raw=False, **operation_config): + """Description for Gets the private link resources. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_name: The name of the API Management service. + :type service_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PrivateLinkResourceListResult or ClientRawResponse if + raw=true + :rtype: ~azure.mgmt.apimanagement.models.PrivateLinkResourceListResult + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.list_private_link_resources.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + '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) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('PrivateLinkResourceListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list_private_link_resources.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources'} + + def get_private_link_resource( + self, resource_group_name, service_name, private_link_sub_resource_name, custom_headers=None, raw=False, **operation_config): + """Description for Gets the private link resources. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_name: The name of the API Management service. + :type service_name: str + :param private_link_sub_resource_name: Name of the private link + resource. + :type private_link_sub_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PrivateLinkResource or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.apimanagement.models.PrivateLinkResource or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.get_private_link_resource.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + '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])?$'), + 'privateLinkSubResourceName': self._serialize.url("private_link_sub_resource_name", private_link_sub_resource_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('PrivateLinkResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_private_link_resource.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources/{privateLinkSubResourceName}'} 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 52ed43c69a016..f284ef409aa20 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 cab564c74c628..ba015e0e6e82c 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 a30204f2011cd..4ea05b1bcd8b9 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 4b1510e7fcd5b..5886f7f6be8f4 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 fbd744a8f8acd..2c9a3085578bf 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 acbd778190fee..2f107fab08f1b 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 932c48cbd4d39..f1159b221c0e6 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 90f415fa7a967..0f335b1cc2d5d 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 615b9fd780caa..1698348af82bd 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/_schema_operations.py b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_schema_operations.py new file mode 100644 index 0000000000000..b8bd9bd339d6e --- /dev/null +++ b/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_schema_operations.py @@ -0,0 +1,443 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class SchemaOperations(object): + """SchemaOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :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: "2021-04-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + 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 schemas registered with service instance. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_name: The name of the API Management service. + :type service_name: str + :param filter: | Field | Usage | Supported + operators | Supported functions + |
|-------------|-------------|-------------|-------------|
| + name | filter | ge, le, eq, ne, gt, lt | substringof, contains, + startswith, endswith |
+ :type filter: str + :param top: Number of records to return. + :type top: int + :param skip: Number of records to skip. + :type skip: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of SchemaContract + :rtype: + ~azure.mgmt.apimanagement.models.SchemaContractPaged[~azure.mgmt.apimanagement.models.SchemaContract] + :raises: + :class:`ErrorResponseException` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_service.metadata['url'] + path_format_arguments = { + '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') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1) + if skip is not None: + query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=0) + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.SchemaContractPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_by_service.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas'} + + def get_entity_tag( + self, resource_group_name, service_name, schema_id, custom_headers=None, raw=False, **operation_config): + """Gets the entity state (Etag) version of the Schema specified by its + identifier. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_name: The name of the API Management service. + :type service_name: str + :param schema_id: Schema id identifier. Must be unique in the current + API Management service instance. + :type schema_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.get_entity_tag.metadata['url'] + path_format_arguments = { + '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])?$'), + 'schemaId': self._serialize.url("schema_id", schema_id, 'str', max_length=80, min_length=1), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.head(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + client_raw_response.add_headers({ + 'ETag': 'str', + }) + return client_raw_response + get_entity_tag.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}'} + + def get( + self, resource_group_name, service_name, schema_id, custom_headers=None, raw=False, **operation_config): + """Gets the details of the Schema specified by its identifier. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_name: The name of the API Management service. + :type service_name: str + :param schema_id: Schema id identifier. Must be unique in the current + API Management service instance. + :type schema_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: SchemaContract or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.apimanagement.models.SchemaContract or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + '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])?$'), + 'schemaId': self._serialize.url("schema_id", schema_id, 'str', max_length=80, min_length=1), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + header_dict = {} + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('SchemaContract', response) + header_dict = { + 'ETag': 'str', + } + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + client_raw_response.add_headers(header_dict) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}'} + + + def _create_or_update_initial( + self, resource_group_name, service_name, schema_id, parameters, if_match=None, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + '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])?$'), + 'schemaId': self._serialize.url("schema_id", schema_id, 'str', max_length=80, min_length=1), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if if_match is not None: + header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str') + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'SchemaContract') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + header_dict = {} + + if response.status_code == 200: + deserialized = self._deserialize('SchemaContract', response) + header_dict = { + 'ETag': 'str', + } + if response.status_code == 201: + deserialized = self._deserialize('SchemaContract', response) + header_dict = { + 'ETag': 'str', + } + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + client_raw_response.add_headers(header_dict) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, service_name, schema_id, parameters, if_match=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates new or updates existing specified Schema of the API Management + service instance. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_name: The name of the API Management service. + :type service_name: str + :param schema_id: Schema id identifier. Must be unique in the current + API Management service instance. + :type schema_id: str + :param parameters: Create or update parameters. + :type parameters: ~azure.mgmt.apimanagement.models.SchemaContract + :param if_match: ETag of the Entity. Not required when creating an + entity, but required when updating an entity. + :type if_match: str + :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 + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns SchemaContract or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.apimanagement.models.SchemaContract] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.apimanagement.models.SchemaContract]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + service_name=service_name, + schema_id=schema_id, + parameters=parameters, + if_match=if_match, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + header_dict = { + 'ETag': 'str', + } + deserialized = self._deserialize('SchemaContract', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + client_raw_response.add_headers(header_dict) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}'} + + def delete( + self, resource_group_name, service_name, schema_id, if_match, custom_headers=None, raw=False, **operation_config): + """Deletes specific Schema. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_name: The name of the API Management service. + :type service_name: str + :param schema_id: Schema id identifier. Must be unique in the current + API Management service instance. + :type schema_id: str + :param if_match: ETag of the Entity. ETag should match the current + entity state from the header response of the GET request or it should + be * for unconditional update. + :type if_match: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + '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])?$'), + 'schemaId': self._serialize.url("schema_id", schema_id, 'str', max_length=80, min_length=1), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str') + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 204]: + raise models.ErrorResponseException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}'} 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 e5ba1d63c9119..21f1ad755d62c 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 7d4309518cc29..9c834b97fd7d3 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 ee46d43369458..b57f664bc13d4 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 9356159a3ed8a..3b4e87ccd2b6a 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 815bdb80f6d2c..57793649740dd 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 7783e8d982f58..5e17d5a1241b9 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 168ef7602cf9c..444e4878d9c3e 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 9303eeb76d864..4c72b1dfad409 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 3b5c3957dd0c5..97edf11e5fa4d 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 496769e3153d5..36bddfda7c201 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 2702c96fbf95c..197e6a37f4821 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 fc6fc1fa09350..b5e7ee6b310ef 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 056876578ab88..ebbe15a823d00 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 9889b9024c6b9..9584c440be2df 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