Skip to content

Commit

Permalink
start using 2024 api version
Browse files Browse the repository at this point in the history
  • Loading branch information
annegeorge17 committed Oct 17, 2024
1 parent 5a0f416 commit 3098c43
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interactions:
User-Agent:
- AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.12 (Linux-6.5.0-35-generic-x86_64-with-glibc2.35)
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default/disableConsole?api-version=2018-05-01
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default/disableConsole?api-version=2024-07-01
response:
body:
string: "{\n \"properties\": {\n \"disabled\": true\n }\n}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def check_result(self, resource_group_name, vm_vmss_name, vmss_instanceid=None,
connection_url = (f"{ARM_ENDPOINT}/subscriptions/{subscription_id}/resourcegroups/{resource_group_name}"
f"/providers/Microsoft.Compute/{vm_path}"
f"/providers/{RP_PROVIDER}/serialPorts/0"
f"/connect?api-version=2018-05-01")
f"/connect?api-version=2024-07-01")

from azure.cli.core._profile import Profile
token_info, _, _ = Profile().get_raw_token()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2018-05-01"
self.api_version = "2024-07-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'microsoftserialconsoleclient/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_console_status(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-05-01"
api_version = "2024-07-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -104,7 +104,7 @@ def disable_console(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-05-01"
api_version = "2024-07-01"
accept = "application/json"
content_type = "application/json"

Expand Down Expand Up @@ -164,7 +164,7 @@ def enable_console(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-05-01"
api_version = "2024-07-01"
accept = "application/json"
content_type = "application/json"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def connect(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-05-01"
api_version = "2024-07-01"
accept = "application/json"
accept_language = "en"
content_type = "application/json"
Expand Down

0 comments on commit 3098c43

Please sign in to comment.