Skip to content

Commit

Permalink
CodeGen from PR 13550 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge c0c5fcdc64b8e53f9ac5e154ac2e4dc28e35b7f4 into 726a387
  • Loading branch information
SDKAuto committed Mar 24, 2021
1 parent 8f691b2 commit 1905118
Show file tree
Hide file tree
Showing 98 changed files with 26,580 additions and 68 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------
from .v2018_02_01.models import *
from .v2021_01_01.models import *
from .v2021_02_01.models import *
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": true
"client_side_validation": false
},
"global_parameters": {
"sync": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.storage_accounts = StorageAccountsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.storage_accounts = StorageAccountsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": true
"client_side_validation": false
},
"global_parameters": {
"sync": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.storage_accounts = StorageAccountsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.storage_accounts = StorageAccountsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": true
"client_side_validation": false
},
"global_parameters": {
"sync": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.storage_accounts = StorageAccountsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.storage_accounts = StorageAccountsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@

from ._storage_management_enums import (
AccessTier,
AccountSasParametersSignedPermission,
AccountSasParametersSignedResourceTypes,
AccountSasParametersSignedServices,
AccountStatus,
HttpProtocol,
KeyPermission,
Kind,
Permissions,
PermissionsAutoGenerated,
ProvisioningState,
Reason,
ResourceTypes,
Services,
SignedResource,
SkuName,
SkuTier,
Expand Down Expand Up @@ -98,16 +98,16 @@
'UsageListResult',
'UsageName',
'AccessTier',
'AccountSasParametersSignedPermission',
'AccountSasParametersSignedResourceTypes',
'AccountSasParametersSignedServices',
'AccountStatus',
'HttpProtocol',
'KeyPermission',
'Kind',
'Permissions',
'PermissionsAutoGenerated',
'ProvisioningState',
'Reason',
'ResourceTypes',
'Services',
'SignedResource',
'SkuName',
'SkuTier',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@ class AccountSasParameters(msrest.serialization.Model):
:param services: Required. The signed services accessible with the account SAS. Possible values
include: Blob (b), Queue (q), Table (t), File (f). Possible values include: "b", "q", "t", "f".
:type services: str or ~azure.mgmt.storage.v2016_12_01.models.Services
:type services: str or
~azure.mgmt.storage.v2016_12_01.models.AccountSasParametersSignedServices
:param resource_types: Required. The signed resource types that are accessible with the account
SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs;
Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files.
Possible values include: "s", "c", "o".
:type resource_types: str or ~azure.mgmt.storage.v2016_12_01.models.ResourceTypes
:type resource_types: str or
~azure.mgmt.storage.v2016_12_01.models.AccountSasParametersSignedResourceTypes
:param permissions: Required. The signed permissions for the account SAS. Possible values
include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process
(p). Possible values include: "r", "d", "w", "l", "a", "c", "u", "p".
:type permissions: str or ~azure.mgmt.storage.v2016_12_01.models.Permissions
:type permissions: str or
~azure.mgmt.storage.v2016_12_01.models.AccountSasParametersSignedPermission
:param ip_address_or_range: An IP address or a range of IP addresses from which to accept
requests.
:type ip_address_or_range: str
Expand Down Expand Up @@ -395,7 +398,7 @@ class ServiceSasParameters(msrest.serialization.Model):
:param permissions: The signed permissions for the service SAS. Possible values include: Read
(r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible
values include: "r", "d", "w", "l", "a", "c", "u", "p".
:type permissions: str or ~azure.mgmt.storage.v2016_12_01.models.PermissionsAutoGenerated
:type permissions: str or ~azure.mgmt.storage.v2016_12_01.models.Permissions
:param ip_address_or_range: An IP address or a range of IP addresses from which to accept
requests.
:type ip_address_or_range: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,19 @@ class AccountSasParameters(msrest.serialization.Model):
:param services: Required. The signed services accessible with the account SAS. Possible values
include: Blob (b), Queue (q), Table (t), File (f). Possible values include: "b", "q", "t", "f".
:type services: str or ~azure.mgmt.storage.v2016_12_01.models.Services
:type services: str or
~azure.mgmt.storage.v2016_12_01.models.AccountSasParametersSignedServices
:param resource_types: Required. The signed resource types that are accessible with the account
SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs;
Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files.
Possible values include: "s", "c", "o".
:type resource_types: str or ~azure.mgmt.storage.v2016_12_01.models.ResourceTypes
:type resource_types: str or
~azure.mgmt.storage.v2016_12_01.models.AccountSasParametersSignedResourceTypes
:param permissions: Required. The signed permissions for the account SAS. Possible values
include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process
(p). Possible values include: "r", "d", "w", "l", "a", "c", "u", "p".
:type permissions: str or ~azure.mgmt.storage.v2016_12_01.models.Permissions
:type permissions: str or
~azure.mgmt.storage.v2016_12_01.models.AccountSasParametersSignedPermission
:param ip_address_or_range: An IP address or a range of IP addresses from which to accept
requests.
:type ip_address_or_range: str
Expand Down Expand Up @@ -67,9 +70,9 @@ class AccountSasParameters(msrest.serialization.Model):
def __init__(
self,
*,
services: Union[str, "Services"],
resource_types: Union[str, "ResourceTypes"],
permissions: Union[str, "Permissions"],
services: Union[str, "AccountSasParametersSignedServices"],
resource_types: Union[str, "AccountSasParametersSignedResourceTypes"],
permissions: Union[str, "AccountSasParametersSignedPermission"],
shared_access_expiry_time: datetime.datetime,
ip_address_or_range: Optional[str] = None,
protocols: Optional[Union[str, "HttpProtocol"]] = None,
Expand Down Expand Up @@ -422,7 +425,7 @@ class ServiceSasParameters(msrest.serialization.Model):
:param permissions: The signed permissions for the service SAS. Possible values include: Read
(r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible
values include: "r", "d", "w", "l", "a", "c", "u", "p".
:type permissions: str or ~azure.mgmt.storage.v2016_12_01.models.PermissionsAutoGenerated
:type permissions: str or ~azure.mgmt.storage.v2016_12_01.models.Permissions
:param ip_address_or_range: An IP address or a range of IP addresses from which to accept
requests.
:type ip_address_or_range: str
Expand Down Expand Up @@ -491,7 +494,7 @@ def __init__(
*,
canonicalized_resource: str,
resource: Union[str, "SignedResource"],
permissions: Optional[Union[str, "PermissionsAutoGenerated"]] = None,
permissions: Optional[Union[str, "Permissions"]] = None,
ip_address_or_range: Optional[str] = None,
protocols: Optional[Union[str, "HttpProtocol"]] = None,
shared_access_start_time: Optional[datetime.datetime] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,40 @@ class AccessTier(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
HOT = "Hot"
COOL = "Cool"

class AccountSasParametersSignedPermission(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The signed permissions for the account SAS. Possible values include: Read (r), Write (w),
Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p).
"""

R = "r"
D = "d"
W = "w"
L = "l"
A = "a"
C = "c"
U = "u"
P = "p"

class AccountSasParametersSignedResourceTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The signed resource types that are accessible with the account SAS. Service (s): Access to
service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to
object-level APIs for blobs, queue messages, table entities, and files.
"""

S = "s"
C = "c"
O = "o"

class AccountSasParametersSignedServices(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The signed services accessible with the account SAS. Possible values include: Blob (b), Queue
(q), Table (t), File (f).
"""

B = "b"
Q = "q"
T = "t"
F = "f"

class AccountStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Gets the status indicating whether the primary location of the storage account is available or
unavailable.
Expand Down Expand Up @@ -63,20 +97,6 @@ class Kind(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
BLOB_STORAGE = "BlobStorage"

class Permissions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The signed permissions for the account SAS. Possible values include: Read (r), Write (w),
Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p).
"""

R = "r"
D = "d"
W = "w"
L = "l"
A = "a"
C = "c"
U = "u"
P = "p"

class PermissionsAutoGenerated(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The signed permissions for the service SAS. Possible values include: Read (r), Write (w),
Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p).
"""
Expand Down Expand Up @@ -106,26 +126,6 @@ class Reason(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ACCOUNT_NAME_INVALID = "AccountNameInvalid"
ALREADY_EXISTS = "AlreadyExists"

class ResourceTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The signed resource types that are accessible with the account SAS. Service (s): Access to
service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to
object-level APIs for blobs, queue messages, table entities, and files.
"""

S = "s"
C = "c"
O = "o"

class Services(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The signed services accessible with the account SAS. Possible values include: Blob (b), Queue
(q), Table (t), File (f).
"""

B = "b"
Q = "q"
T = "t"
F = "f"

class SignedResource(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The signed services accessible with the service SAS. Possible values include: Blob (b),
Container (c), File (f), Share (s).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": true
"client_side_validation": false
},
"global_parameters": {
"sync": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.operations = Operations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.operations = Operations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": true
"client_side_validation": false
},
"global_parameters": {
"sync": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.operations = Operations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.operations = Operations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": true
"client_side_validation": false
},
"global_parameters": {
"sync": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.operations = Operations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.operations = Operations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": true
"client_side_validation": false
},
"global_parameters": {
"sync": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.operations = Operations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.operations = Operations(
Expand Down
Loading

0 comments on commit 1905118

Please sign in to comment.