Skip to content
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

[AutoPR] storage/resource-manager #3052

Merged
merged 2 commits into from
Aug 1, 2018
Merged
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
7 changes: 7 additions & 0 deletions azure-mgmt-storage/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
Release History
===============

2.0.0 (2018-08-01)
++++++++++++++++++

**Bugfixes**

- Set the signed resource as optional instead of required

2.0.0rc4 (2018-06-26)
+++++++++++++++++++++

Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-storage/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure Storage Management Client Library.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5 and 3.6.
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
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_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
2 changes: 1 addition & 1 deletion azure-mgmt-storage/azure/mgmt/storage/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "2.0.0rc4"
VERSION = "2.0.0"
Loading