From 82c373172dea8b431df6ed269548cb7f2dfce106 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 29 Mar 2021 06:54:17 +0000 Subject: [PATCH 1/5] CodeGen from PR 13698 in Azure/azure-rest-api-specs support readme.python change (#13698) --- .../azure/mgmt/support/_metadata.json | 65 +++++++++++++++++++ .../azure/mgmt/support/_version.py | 3 +- 2 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 sdk/support/azure-mgmt-support/azure/mgmt/support/_metadata.json diff --git a/sdk/support/azure-mgmt-support/azure/mgmt/support/_metadata.json b/sdk/support/azure-mgmt-support/azure/mgmt/support/_metadata.json new file mode 100644 index 000000000000..7e8b87be45d9 --- /dev/null +++ b/sdk/support/azure-mgmt-support/azure/mgmt/support/_metadata.json @@ -0,0 +1,65 @@ +{ + "chosen_version": "2020-04-01", + "total_api_version_list": ["2020-04-01"], + "client": { + "name": "MicrosoftSupport", + "filename": "_microsoft_support", + "description": "Microsoft Azure Support Resource Provider.", + "base_url": "\u0027https://management.azure.com\u0027", + "custom_base_url": null, + "azure_arm": true, + "has_lro_operations": true, + "client_side_validation": false + }, + "global_parameters": { + "sync": { + "credential": { + "signature": "credential, # type: \"TokenCredential\"", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials.TokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id, # type: str", + "description": "Azure subscription Id.", + "docstring_type": "str", + "required": true + } + }, + "async": { + "credential": { + "signature": "credential, # type: \"AsyncTokenCredential\"", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials_async.AsyncTokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id, # type: str", + "description": "Azure subscription Id.", + "docstring_type": "str", + "required": true + } + }, + "constant": { + }, + "call": "credential, subscription_id" + }, + "config": { + "credential": true, + "credential_scopes": ["https://management.azure.com/.default"], + "credential_default_policy_type": "BearerTokenCredentialPolicy", + "credential_default_policy_type_has_async_version": true, + "credential_key_header_name": null + }, + "operation_groups": { + "operations": "Operations", + "services": "ServicesOperations", + "problem_classifications": "ProblemClassificationsOperations", + "support_tickets": "SupportTicketsOperations", + "communications": "CommunicationsOperations" + }, + "operation_mixins": { + }, + "sync_imports": "None", + "async_imports": "None" +} \ No newline at end of file diff --git a/sdk/support/azure-mgmt-support/azure/mgmt/support/_version.py b/sdk/support/azure-mgmt-support/azure/mgmt/support/_version.py index a35cca02914a..48944bf3938a 100644 --- a/sdk/support/azure-mgmt-support/azure/mgmt/support/_version.py +++ b/sdk/support/azure-mgmt-support/azure/mgmt/support/_version.py @@ -6,5 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "6.0.0b1" - +VERSION = "2.0.0" From 90124491c594a4777db7c862b49ce6d7f832f10f Mon Sep 17 00:00:00 2001 From: PythonSdkPipelines Date: Mon, 29 Mar 2021 07:19:41 +0000 Subject: [PATCH 2/5] version,CHANGELOG --- sdk/support/azure-mgmt-support/CHANGELOG.md | 4 ++++ sdk/support/azure-mgmt-support/azure/mgmt/support/_version.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sdk/support/azure-mgmt-support/CHANGELOG.md b/sdk/support/azure-mgmt-support/CHANGELOG.md index 65b22404c2ee..a65efb632f3d 100644 --- a/sdk/support/azure-mgmt-support/CHANGELOG.md +++ b/sdk/support/azure-mgmt-support/CHANGELOG.md @@ -1,5 +1,9 @@ # Release History +## 6.0.0b2 (2021-03-29) + + + ## 6.0.0b1 (2020-12-02) This is beta preview version. diff --git a/sdk/support/azure-mgmt-support/azure/mgmt/support/_version.py b/sdk/support/azure-mgmt-support/azure/mgmt/support/_version.py index 48944bf3938a..2608e125b8d9 100644 --- a/sdk/support/azure-mgmt-support/azure/mgmt/support/_version.py +++ b/sdk/support/azure-mgmt-support/azure/mgmt/support/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "2.0.0" +VERSION = "6.0.0b2" From fd13286704db3a640a091b260753e40ffc7db0ee Mon Sep 17 00:00:00 2001 From: PythonSdkPipelines Date: Mon, 29 Mar 2021 07:20:06 +0000 Subject: [PATCH 3/5] test --- .../test_cli_mgmt_support.test_support.yaml | 149 ------------------ 1 file changed, 149 deletions(-) delete mode 100644 sdk/support/azure-mgmt-support/tests/recordings/test_cli_mgmt_support.test_support.yaml diff --git a/sdk/support/azure-mgmt-support/tests/recordings/test_cli_mgmt_support.test_support.yaml b/sdk/support/azure-mgmt-support/tests/recordings/test_cli_mgmt_support.test_support.yaml deleted file mode 100644 index 967a048cbeb9..000000000000 --- a/sdk/support/azure-mgmt-support/tests/recordings/test_cli_mgmt_support.test_support.yaml +++ /dev/null @@ -1,149 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-support/1.0.0 Azure-SDK-For-Python - accept-language: - - en-US - method: GET - uri: https://management.azure.com/providers/Microsoft.Support/services/06bfd9d3-516b-d5c6-5802-169c800dec89/problemClassifications/831b2fb3-4db3-3d32-af35-bbb3d3eaeba2?api-version=2020-04-01 - response: - body: - string: '{"id":"/providers/Microsoft.Support/services/06bfd9d3-516b-d5c6-5802-169c800dec89/problemClassifications/831b2fb3-4db3-3d32-af35-bbb3d3eaeba2","name":"831b2fb3-4db3-3d32-af35-bbb3d3eaeba2","type":"Microsoft.Support/problemClassifications","properties":{"displayName":"Batch"}}' - headers: - cache-control: - - no-cache - content-length: - - '276' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 01 May 2020 15:29:04 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"name": "sampleName", "type": "Microsoft.Support/communications"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '66' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-support/1.0.0 Azure-SDK-For-Python - accept-language: - - en-US - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Support/supportTickets/mySupportTicket/checkNameAvailability?api-version=2020-04-01 - response: - body: - string: '{"nameAvailable":true}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 01 May 2020 15:29:05 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: '{"name": "sampleName", "type": "Microsoft.Support/supportTickets"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '66' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-support/1.0.0 Azure-SDK-For-Python - accept-language: - - en-US - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Support/checkNameAvailability?api-version=2020-04-01 - response: - body: - string: '{"nameAvailable":true}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 01 May 2020 15:29:05 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -version: 1 From 180de8d051cfe5c3e5212cc822f6077d571abca3 Mon Sep 17 00:00:00 2001 From: Zed <601306339@qq.com> Date: Mon, 29 Mar 2021 16:06:51 +0800 Subject: [PATCH 4/5] support changelog config(wave4) --- sdk/support/azure-mgmt-support/CHANGELOG.md | 4 ++-- sdk/support/azure-mgmt-support/azure/mgmt/support/_version.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/support/azure-mgmt-support/CHANGELOG.md b/sdk/support/azure-mgmt-support/CHANGELOG.md index a65efb632f3d..1e76edc2010e 100644 --- a/sdk/support/azure-mgmt-support/CHANGELOG.md +++ b/sdk/support/azure-mgmt-support/CHANGELOG.md @@ -1,8 +1,8 @@ # Release History -## 6.0.0b2 (2021-03-29) - +## 6.0.0 (2021-03-29) +-GA release ## 6.0.0b1 (2020-12-02) diff --git a/sdk/support/azure-mgmt-support/azure/mgmt/support/_version.py b/sdk/support/azure-mgmt-support/azure/mgmt/support/_version.py index 2608e125b8d9..caf312bd2d0b 100644 --- a/sdk/support/azure-mgmt-support/azure/mgmt/support/_version.py +++ b/sdk/support/azure-mgmt-support/azure/mgmt/support/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "6.0.0b2" +VERSION = "6.0.0" From 98534f8cd2855c0f3dd1c8c4883dd7c17a1076a0 Mon Sep 17 00:00:00 2001 From: Zed <601306339@qq.com> Date: Tue, 30 Mar 2021 14:00:12 +0800 Subject: [PATCH 5/5] -GA space add --- sdk/support/azure-mgmt-support/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/support/azure-mgmt-support/CHANGELOG.md b/sdk/support/azure-mgmt-support/CHANGELOG.md index 1e76edc2010e..5b7650355666 100644 --- a/sdk/support/azure-mgmt-support/CHANGELOG.md +++ b/sdk/support/azure-mgmt-support/CHANGELOG.md @@ -2,7 +2,7 @@ ## 6.0.0 (2021-03-29) --GA release + - GA release ## 6.0.0b1 (2020-12-02)