Skip to content

Commit

Permalink
[AutoPR storage/resource-manager] [Storage] Set the SignedResource as…
Browse files Browse the repository at this point in the history
… optional in ListServiceSAS (#2967)

* Generated from 7882bc39a752f3adf4c47186c926094ab65cedc9

[Storage] Set the SignedResource as optional in ListServiceSAS

* Generated from b36d0991a7cc9a7185fc6b7d7ef6919f63435234

[Storage] Fix a format issue.
  • Loading branch information
AutorestCI authored Jul 31, 2018
1 parent 0684ed4 commit b80d986
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class Restriction(Model):
location. This would be different locations where the SKU is restricted.
:vartype values: list[str]
:param reason_code: The reason for the restriction. As of now this can be
QuotaId or NotAvailableForSubscription. Quota Id is set when the SKU
"QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU
has requiredQuotas parameter as the subscription does not belong to that
quota. The NotAvailableForSubscription is related to capacity at DC.
quota. The "NotAvailableForSubscription" is related to capacity at DC.
Possible values include: 'QuotaId', 'NotAvailableForSubscription'
:type reason_code: str or
~azure.mgmt.storage.v2017_06_01.models.ReasonCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class Restriction(Model):
location. This would be different locations where the SKU is restricted.
:vartype values: list[str]
:param reason_code: The reason for the restriction. As of now this can be
QuotaId or NotAvailableForSubscription. Quota Id is set when the SKU
"QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU
has requiredQuotas parameter as the subscription does not belong to that
quota. The NotAvailableForSubscription is related to capacity at DC.
quota. The "NotAvailableForSubscription" is related to capacity at DC.
Possible values include: 'QuotaId', 'NotAvailableForSubscription'
:type reason_code: str or
~azure.mgmt.storage.v2017_06_01.models.ReasonCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class Restriction(Model):
location. This would be different locations where the SKU is restricted.
:vartype values: list[str]
:param reason_code: The reason for the restriction. As of now this can be
QuotaId or NotAvailableForSubscription. Quota Id is set when the SKU
"QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU
has requiredQuotas parameter as the subscription does not belong to that
quota. The NotAvailableForSubscription is related to capacity at DC.
quota. The "NotAvailableForSubscription" is related to capacity at DC.
Possible values include: 'QuotaId', 'NotAvailableForSubscription'
:type reason_code: str or
~azure.mgmt.storage.v2017_10_01.models.ReasonCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class Restriction(Model):
location. This would be different locations where the SKU is restricted.
:vartype values: list[str]
:param reason_code: The reason for the restriction. As of now this can be
QuotaId or NotAvailableForSubscription. Quota Id is set when the SKU
"QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU
has requiredQuotas parameter as the subscription does not belong to that
quota. The NotAvailableForSubscription is related to capacity at DC.
quota. The "NotAvailableForSubscription" is related to capacity at DC.
Possible values include: 'QuotaId', 'NotAvailableForSubscription'
:type reason_code: str or
~azure.mgmt.storage.v2017_10_01.models.ReasonCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,20 @@ class OperationDisplay(Model):
:type resource: str
:param operation: Type of operation: get, read, delete, etc.
:type operation: str
:param description: Description of the operation.
:type description: str
"""

_attribute_map = {
'provider': {'key': 'provider', 'type': 'str'},
'resource': {'key': 'resource', 'type': 'str'},
'operation': {'key': 'operation', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
}

def __init__(self, **kwargs):
super(OperationDisplay, self).__init__(**kwargs)
self.provider = kwargs.get('provider', None)
self.resource = kwargs.get('resource', None)
self.operation = kwargs.get('operation', None)
self.description = kwargs.get('description', None)
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,20 @@ class OperationDisplay(Model):
:type resource: str
:param operation: Type of operation: get, read, delete, etc.
:type operation: str
:param description: Description of the operation.
:type description: str
"""

_attribute_map = {
'provider': {'key': 'provider', 'type': 'str'},
'resource': {'key': 'resource', 'type': 'str'},
'operation': {'key': 'operation', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
}

def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, **kwargs) -> None:
def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None:
super(OperationDisplay, self).__init__(**kwargs)
self.provider = provider
self.resource = resource
self.operation = operation
self.description = description
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class Restriction(Model):
location. This would be different locations where the SKU is restricted.
:vartype values: list[str]
:param reason_code: The reason for the restriction. As of now this can be
QuotaId or NotAvailableForSubscription. Quota Id is set when the SKU
"QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU
has requiredQuotas parameter as the subscription does not belong to that
quota. The NotAvailableForSubscription is related to capacity at DC.
quota. The "NotAvailableForSubscription" is related to capacity at DC.
Possible values include: 'QuotaId', 'NotAvailableForSubscription'
:type reason_code: str or
~azure.mgmt.storage.v2018_02_01.models.ReasonCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class Restriction(Model):
location. This would be different locations where the SKU is restricted.
:vartype values: list[str]
:param reason_code: The reason for the restriction. As of now this can be
QuotaId or NotAvailableForSubscription. Quota Id is set when the SKU
"QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU
has requiredQuotas parameter as the subscription does not belong to that
quota. The NotAvailableForSubscription is related to capacity at DC.
quota. The "NotAvailableForSubscription" is related to capacity at DC.
Possible values include: 'QuotaId', 'NotAvailableForSubscription'
:type reason_code: str or
~azure.mgmt.storage.v2018_02_01.models.ReasonCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class ServiceSasParameters(Model):
:param canonicalized_resource: Required. The canonical path to the signed
resource.
:type canonicalized_resource: str
:param resource: Required. The signed services accessible with the service
SAS. Possible values include: Blob (b), Container (c), File (f), Share
(s). Possible values include: 'b', 'c', 'f', 's'
:param resource: The signed services accessible with the service SAS.
Possible values include: Blob (b), Container (c), File (f), Share (s).
Possible values include: 'b', 'c', 'f', 's'
:type resource: str or
~azure.mgmt.storage.v2018_02_01.models.SignedResource
:param permissions: The signed permissions for the service SAS. Possible
Expand Down Expand Up @@ -74,7 +74,6 @@ class ServiceSasParameters(Model):

_validation = {
'canonicalized_resource': {'required': True},
'resource': {'required': True},
'identifier': {'max_length': 64},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class ServiceSasParameters(Model):
:param canonicalized_resource: Required. The canonical path to the signed
resource.
:type canonicalized_resource: str
:param resource: Required. The signed services accessible with the service
SAS. Possible values include: Blob (b), Container (c), File (f), Share
(s). Possible values include: 'b', 'c', 'f', 's'
:param resource: The signed services accessible with the service SAS.
Possible values include: Blob (b), Container (c), File (f), Share (s).
Possible values include: 'b', 'c', 'f', 's'
:type resource: str or
~azure.mgmt.storage.v2018_02_01.models.SignedResource
:param permissions: The signed permissions for the service SAS. Possible
Expand Down Expand Up @@ -74,7 +74,6 @@ class ServiceSasParameters(Model):

_validation = {
'canonicalized_resource': {'required': True},
'resource': {'required': True},
'identifier': {'max_length': 64},
}

Expand All @@ -99,7 +98,7 @@ class ServiceSasParameters(Model):
'content_type': {'key': 'rsct', 'type': 'str'},
}

def __init__(self, *, canonicalized_resource: str, resource, permissions=None, ip_address_or_range: str=None, protocols=None, shared_access_start_time=None, shared_access_expiry_time=None, identifier: str=None, partition_key_start: str=None, partition_key_end: str=None, row_key_start: str=None, row_key_end: str=None, key_to_sign: str=None, cache_control: str=None, content_disposition: str=None, content_encoding: str=None, content_language: str=None, content_type: str=None, **kwargs) -> None:
def __init__(self, *, canonicalized_resource: str, resource=None, permissions=None, ip_address_or_range: str=None, protocols=None, shared_access_start_time=None, shared_access_expiry_time=None, identifier: str=None, partition_key_start: str=None, partition_key_end: str=None, row_key_start: str=None, row_key_end: str=None, key_to_sign: str=None, cache_control: str=None, content_disposition: str=None, content_encoding: str=None, content_language: str=None, content_type: str=None, **kwargs) -> None:
super(ServiceSasParameters, self).__init__(**kwargs)
self.canonicalized_resource = canonicalized_resource
self.resource = resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,20 @@ class OperationDisplay(Model):
:type resource: str
:param operation: Type of operation: get, read, delete, etc.
:type operation: str
:param description: Description of the operation.
:type description: str
"""

_attribute_map = {
'provider': {'key': 'provider', 'type': 'str'},
'resource': {'key': 'resource', 'type': 'str'},
'operation': {'key': 'operation', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
}

def __init__(self, **kwargs):
super(OperationDisplay, self).__init__(**kwargs)
self.provider = kwargs.get('provider', None)
self.resource = kwargs.get('resource', None)
self.operation = kwargs.get('operation', None)
self.description = kwargs.get('description', None)
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,20 @@ class OperationDisplay(Model):
:type resource: str
:param operation: Type of operation: get, read, delete, etc.
:type operation: str
:param description: Description of the operation.
:type description: str
"""

_attribute_map = {
'provider': {'key': 'provider', 'type': 'str'},
'resource': {'key': 'resource', 'type': 'str'},
'operation': {'key': 'operation', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
}

def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, **kwargs) -> None:
def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None:
super(OperationDisplay, self).__init__(**kwargs)
self.provider = provider
self.resource = resource
self.operation = operation
self.description = description
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class Restriction(Model):
location. This would be different locations where the SKU is restricted.
:vartype values: list[str]
:param reason_code: The reason for the restriction. As of now this can be
QuotaId or NotAvailableForSubscription. Quota Id is set when the SKU
"QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU
has requiredQuotas parameter as the subscription does not belong to that
quota. The NotAvailableForSubscription is related to capacity at DC.
quota. The "NotAvailableForSubscription" is related to capacity at DC.
Possible values include: 'QuotaId', 'NotAvailableForSubscription'
:type reason_code: str or
~azure.mgmt.storage.v2018_03_01_preview.models.ReasonCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class Restriction(Model):
location. This would be different locations where the SKU is restricted.
:vartype values: list[str]
:param reason_code: The reason for the restriction. As of now this can be
QuotaId or NotAvailableForSubscription. Quota Id is set when the SKU
"QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU
has requiredQuotas parameter as the subscription does not belong to that
quota. The NotAvailableForSubscription is related to capacity at DC.
quota. The "NotAvailableForSubscription" is related to capacity at DC.
Possible values include: 'QuotaId', 'NotAvailableForSubscription'
:type reason_code: str or
~azure.mgmt.storage.v2018_03_01_preview.models.ReasonCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class ServiceSasParameters(Model):
:param canonicalized_resource: Required. The canonical path to the signed
resource.
:type canonicalized_resource: str
:param resource: Required. The signed services accessible with the service
SAS. Possible values include: Blob (b), Container (c), File (f), Share
(s). Possible values include: 'b', 'c', 'f', 's'
:param resource: The signed services accessible with the service SAS.
Possible values include: Blob (b), Container (c), File (f), Share (s).
Possible values include: 'b', 'c', 'f', 's'
:type resource: str or
~azure.mgmt.storage.v2018_03_01_preview.models.SignedResource
:param permissions: The signed permissions for the service SAS. Possible
Expand Down Expand Up @@ -74,7 +74,6 @@ class ServiceSasParameters(Model):

_validation = {
'canonicalized_resource': {'required': True},
'resource': {'required': True},
'identifier': {'max_length': 64},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class ServiceSasParameters(Model):
:param canonicalized_resource: Required. The canonical path to the signed
resource.
:type canonicalized_resource: str
:param resource: Required. The signed services accessible with the service
SAS. Possible values include: Blob (b), Container (c), File (f), Share
(s). Possible values include: 'b', 'c', 'f', 's'
:param resource: The signed services accessible with the service SAS.
Possible values include: Blob (b), Container (c), File (f), Share (s).
Possible values include: 'b', 'c', 'f', 's'
:type resource: str or
~azure.mgmt.storage.v2018_03_01_preview.models.SignedResource
:param permissions: The signed permissions for the service SAS. Possible
Expand Down Expand Up @@ -74,7 +74,6 @@ class ServiceSasParameters(Model):

_validation = {
'canonicalized_resource': {'required': True},
'resource': {'required': True},
'identifier': {'max_length': 64},
}

Expand All @@ -99,7 +98,7 @@ class ServiceSasParameters(Model):
'content_type': {'key': 'rsct', 'type': 'str'},
}

def __init__(self, *, canonicalized_resource: str, resource, permissions=None, ip_address_or_range: str=None, protocols=None, shared_access_start_time=None, shared_access_expiry_time=None, identifier: str=None, partition_key_start: str=None, partition_key_end: str=None, row_key_start: str=None, row_key_end: str=None, key_to_sign: str=None, cache_control: str=None, content_disposition: str=None, content_encoding: str=None, content_language: str=None, content_type: str=None, **kwargs) -> None:
def __init__(self, *, canonicalized_resource: str, resource=None, permissions=None, ip_address_or_range: str=None, protocols=None, shared_access_start_time=None, shared_access_expiry_time=None, identifier: str=None, partition_key_start: str=None, partition_key_end: str=None, row_key_start: str=None, row_key_end: str=None, key_to_sign: str=None, cache_control: str=None, content_disposition: str=None, content_encoding: str=None, content_language: str=None, content_type: str=None, **kwargs) -> None:
super(ServiceSasParameters, self).__init__(**kwargs)
self.canonicalized_resource = canonicalized_resource
self.resource = resource
Expand Down

0 comments on commit b80d986

Please sign in to comment.