Skip to content

[AutoPR track2_azure-mgmt-maps] changes for vault tier #5292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/maps/azure-mgmt-maps/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "0baf811c3c76c87b3c127d098519bd97141222dd",
"commit": "a231973a4fd49f699621dd74cb1b47d9d6fdcd13",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.7",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/maps/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
"autorest_command": "autorest specification/maps/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
"readme": "specification/maps/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class AzureMapsManagementClient: # pylint: disable=client-accepts-api-version-k
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-06-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-08-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

Expand Down
6 changes: 3 additions & 3 deletions sdk/maps/azure-mgmt-maps/azure/mgmt/maps/_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class AzureMapsManagementClientConfiguration(Configuration): # pylint: disable=
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-06-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-08-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(AzureMapsManagementClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-06-01")
api_version: str = kwargs.pop("api_version", "2023-08-01-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
2 changes: 1 addition & 1 deletion sdk/maps/azure-mgmt-maps/azure/mgmt/maps/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class AzureMapsManagementClient: # pylint: disable=client-accepts-api-version-k
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-06-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-08-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class AzureMapsManagementClientConfiguration(Configuration): # pylint: disable=
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-06-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-08-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(AzureMapsManagementClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-06-01")
api_version: str = kwargs.pop("api_version", "2023-08-01-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
49 changes: 47 additions & 2 deletions sdk/maps/azure-mgmt-maps/azure/mgmt/maps/models/_models_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,12 @@ class CreatorProperties(_serialization.Model):
:ivar storage_units: The storage units to be allocated. Integer values from 1 to 100,
inclusive. Required.
:vartype storage_units: int
:ivar total_storage_unit_size_in_bytes: The total allocated storage unit size in bytes for the
creator resource.
:vartype total_storage_unit_size_in_bytes: int
:ivar consumed_storage_unit_size_in_bytes: The consumed storage unit size in bytes for the
creator resource.
:vartype consumed_storage_unit_size_in_bytes: int
"""

_validation = {
Expand All @@ -373,17 +379,34 @@ class CreatorProperties(_serialization.Model):
_attribute_map = {
"provisioning_state": {"key": "provisioningState", "type": "str"},
"storage_units": {"key": "storageUnits", "type": "int"},
"total_storage_unit_size_in_bytes": {"key": "totalStorageUnitSizeInBytes", "type": "int"},
"consumed_storage_unit_size_in_bytes": {"key": "consumedStorageUnitSizeInBytes", "type": "int"},
}

def __init__(self, *, storage_units: int, **kwargs: Any) -> None:
def __init__(
self,
*,
storage_units: int,
total_storage_unit_size_in_bytes: Optional[int] = None,
consumed_storage_unit_size_in_bytes: Optional[int] = None,
**kwargs: Any
) -> None:
"""
:keyword storage_units: The storage units to be allocated. Integer values from 1 to 100,
inclusive. Required.
:paramtype storage_units: int
:keyword total_storage_unit_size_in_bytes: The total allocated storage unit size in bytes for
the creator resource.
:paramtype total_storage_unit_size_in_bytes: int
:keyword consumed_storage_unit_size_in_bytes: The consumed storage unit size in bytes for the
creator resource.
:paramtype consumed_storage_unit_size_in_bytes: int
"""
super().__init__(**kwargs)
self.provisioning_state = None
self.storage_units = storage_units
self.total_storage_unit_size_in_bytes = total_storage_unit_size_in_bytes
self.consumed_storage_unit_size_in_bytes = consumed_storage_unit_size_in_bytes


class CreatorUpdateParameters(_serialization.Model):
Expand All @@ -402,6 +425,12 @@ class CreatorUpdateParameters(_serialization.Model):
:ivar storage_units: The storage units to be allocated. Integer values from 1 to 100,
inclusive.
:vartype storage_units: int
:ivar total_storage_unit_size_in_bytes: The total allocated storage unit size in bytes for the
creator resource.
:vartype total_storage_unit_size_in_bytes: int
:ivar consumed_storage_unit_size_in_bytes: The consumed storage unit size in bytes for the
creator resource.
:vartype consumed_storage_unit_size_in_bytes: int
"""

_validation = {
Expand All @@ -413,10 +442,18 @@ class CreatorUpdateParameters(_serialization.Model):
"tags": {"key": "tags", "type": "{str}"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"storage_units": {"key": "properties.storageUnits", "type": "int"},
"total_storage_unit_size_in_bytes": {"key": "properties.totalStorageUnitSizeInBytes", "type": "int"},
"consumed_storage_unit_size_in_bytes": {"key": "properties.consumedStorageUnitSizeInBytes", "type": "int"},
}

def __init__(
self, *, tags: Optional[Dict[str, str]] = None, storage_units: Optional[int] = None, **kwargs: Any
self,
*,
tags: Optional[Dict[str, str]] = None,
storage_units: Optional[int] = None,
total_storage_unit_size_in_bytes: Optional[int] = None,
consumed_storage_unit_size_in_bytes: Optional[int] = None,
**kwargs: Any
) -> None:
"""
:keyword tags: Gets or sets a list of key value pairs that describe the resource. These tags
Expand All @@ -427,11 +464,19 @@ def __init__(
:keyword storage_units: The storage units to be allocated. Integer values from 1 to 100,
inclusive.
:paramtype storage_units: int
:keyword total_storage_unit_size_in_bytes: The total allocated storage unit size in bytes for
the creator resource.
:paramtype total_storage_unit_size_in_bytes: int
:keyword consumed_storage_unit_size_in_bytes: The consumed storage unit size in bytes for the
creator resource.
:paramtype consumed_storage_unit_size_in_bytes: int
"""
super().__init__(**kwargs)
self.tags = tags
self.provisioning_state = None
self.storage_units = storage_units
self.total_storage_unit_size_in_bytes = total_storage_unit_size_in_bytes
self.consumed_storage_unit_size_in_bytes = consumed_storage_unit_size_in_bytes


class CustomerManagedKeyEncryption(_serialization.Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def build_create_or_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-06-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-08-01-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")

Expand Down Expand Up @@ -79,7 +79,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-06-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-08-01-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")

Expand Down Expand Up @@ -115,7 +115,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-06-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-08-01-preview"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down Expand Up @@ -146,7 +146,7 @@ def build_get_request(resource_group_name: str, account_name: str, subscription_
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-06-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-08-01-preview"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down Expand Up @@ -177,7 +177,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-06-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-08-01-preview"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down Expand Up @@ -207,7 +207,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-06-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-08-01-preview"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand All @@ -233,7 +233,7 @@ def build_list_sas_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-06-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-08-01-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")

Expand Down Expand Up @@ -269,7 +269,7 @@ def build_list_keys_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-06-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-08-01-preview"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down Expand Up @@ -302,7 +302,7 @@ def build_regenerate_keys_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-06-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-08-01-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def build_list_by_account_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-06-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-08-01-preview"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down Expand Up @@ -76,7 +76,7 @@ def build_create_or_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-06-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-08-01-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")

Expand Down Expand Up @@ -113,7 +113,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-06-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-08-01-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")

Expand Down Expand Up @@ -150,7 +150,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-06-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-08-01-preview"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down Expand Up @@ -184,7 +184,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-06-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-08-01-preview"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def build_list_operations_request(**kwargs: Any) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-06-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-08-01-preview"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand All @@ -59,7 +59,7 @@ def build_list_subscription_operations_request(subscription_id: str, **kwargs: A
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-06-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-08-01-preview"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ def main():
print(response)


# x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/stable/2023-06-01/examples/AccountListSAS.json
# x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2023-08-01-preview/examples/AccountListSAS.json
if __name__ == "__main__":
main()
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ def main():
print(response)


# x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/stable/2023-06-01/examples/CreateAccount.json
# x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2023-08-01-preview/examples/CreateAccount.json
if __name__ == "__main__":
main()
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ def main():
print(response)


# x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/stable/2023-06-01/examples/CreateAccountEncryption.json
# x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2023-08-01-preview/examples/CreateAccountEncryption.json
if __name__ == "__main__":
main()
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ def main():
print(response)


# x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/stable/2023-06-01/examples/CreateAccountGen2.json
# x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2023-08-01-preview/examples/CreateAccountGen2.json
if __name__ == "__main__":
main()
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ def main():
print(response)


# x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/stable/2023-06-01/examples/CreateAccountManagedIdentity.json
# x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2023-08-01-preview/examples/CreateAccountManagedIdentity.json
if __name__ == "__main__":
main()
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ def main():
print(response)


# x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/stable/2023-06-01/examples/CreateMapsCreator.json
# x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2023-08-01-preview/examples/CreateMapsCreator.json
if __name__ == "__main__":
main()
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ def main():
)


# x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/stable/2023-06-01/examples/DeleteAccount.json
# x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2023-08-01-preview/examples/DeleteAccount.json
if __name__ == "__main__":
main()
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ def main():
)


# x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/stable/2023-06-01/examples/DeleteMapsCreator.json
# x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2023-08-01-preview/examples/DeleteMapsCreator.json
if __name__ == "__main__":
main()
Loading