Skip to content

Commit

Permalink
regenerate swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
xiafu-msft committed Oct 15, 2021
1 parent d8b07e6 commit caf9875
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,35 +241,36 @@ def __init__(
class BlobItemInternal(msrest.serialization.Model):
"""An Azure Storage blob.
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: .
All required parameters must be populated in order to send to Azure.
:param name: Required.
:param name:
:type name: str
:param deleted: Required.
:param deleted:
:type deleted: bool
:param snapshot: Required.
:param snapshot:
:type snapshot: str
:param version_id:
:type version_id: str
:param is_current_version:
:type is_current_version: bool
:param properties: Required. Properties of a blob.
:param properties: Properties of a blob.
:type properties: ~azure.storage.blob.models.BlobPropertiesInternal
:param metadata:
:type metadata: ~azure.storage.blob.models.BlobMetadata
:param blob_tags: Blob tags.
:type blob_tags: ~azure.storage.blob.models.BlobTags
:param object_replication_metadata: Dictionary of :code:`<string>`.
:type object_replication_metadata: dict[str, str]
:param has_versions_only:
:type has_versions_only: bool
:param object_replication_metadata: Required. Dictionary of :code:`<string>`.Constant filled by
server.
:type object_replication_metadata: dict[str, str]
"""

_validation = {
'name': {'required': True},
'deleted': {'required': True},
'snapshot': {'required': True},
'properties': {'required': True},
'object_replication_metadata': {'required': True},
}

_attribute_map = {
Expand All @@ -281,8 +282,12 @@ class BlobItemInternal(msrest.serialization.Model):
'properties': {'key': 'Properties', 'type': 'BlobPropertiesInternal'},
'metadata': {'key': 'Metadata', 'type': 'BlobMetadata'},
'blob_tags': {'key': 'BlobTags', 'type': 'BlobTags'},
'object_replication_metadata': {'key': 'ObjectReplicationMetadata', 'type': '{str}'},
'has_versions_only': {'key': 'HasVersionsOnly', 'type': 'bool'},
'object_replication_metadata': {'key': 'OrMetadata', 'type': '{str}'},
}

_subtype_map = {
'object_replication_metadata': {}
}
_xml_map = {
'name': 'Blob'
Expand All @@ -293,16 +298,16 @@ def __init__(
**kwargs
):
super(BlobItemInternal, self).__init__(**kwargs)
self.name = kwargs['name']
self.deleted = kwargs['deleted']
self.snapshot = kwargs['snapshot']
self.name = kwargs.get('name', None)
self.deleted = kwargs.get('deleted', None)
self.snapshot = kwargs.get('snapshot', None)
self.version_id = kwargs.get('version_id', None)
self.is_current_version = kwargs.get('is_current_version', None)
self.properties = kwargs['properties']
self.properties = kwargs.get('properties', None)
self.metadata = kwargs.get('metadata', None)
self.blob_tags = kwargs.get('blob_tags', None)
self.object_replication_metadata = kwargs.get('object_replication_metadata', None)
self.has_versions_only = kwargs.get('has_versions_only', None)
self.object_replication_metadata = None # type: Optional[str]


class BlobMetadata(msrest.serialization.Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,35 +272,36 @@ def __init__(
class BlobItemInternal(msrest.serialization.Model):
"""An Azure Storage blob.
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: .
All required parameters must be populated in order to send to Azure.
:param name: Required.
:param name:
:type name: str
:param deleted: Required.
:param deleted:
:type deleted: bool
:param snapshot: Required.
:param snapshot:
:type snapshot: str
:param version_id:
:type version_id: str
:param is_current_version:
:type is_current_version: bool
:param properties: Required. Properties of a blob.
:param properties: Properties of a blob.
:type properties: ~azure.storage.blob.models.BlobPropertiesInternal
:param metadata:
:type metadata: ~azure.storage.blob.models.BlobMetadata
:param blob_tags: Blob tags.
:type blob_tags: ~azure.storage.blob.models.BlobTags
:param object_replication_metadata: Dictionary of :code:`<string>`.
:type object_replication_metadata: dict[str, str]
:param has_versions_only:
:type has_versions_only: bool
:param object_replication_metadata: Required. Dictionary of :code:`<string>`.Constant filled by
server.
:type object_replication_metadata: dict[str, str]
"""

_validation = {
'name': {'required': True},
'deleted': {'required': True},
'snapshot': {'required': True},
'properties': {'required': True},
'object_replication_metadata': {'required': True},
}

_attribute_map = {
Expand All @@ -312,8 +313,12 @@ class BlobItemInternal(msrest.serialization.Model):
'properties': {'key': 'Properties', 'type': 'BlobPropertiesInternal'},
'metadata': {'key': 'Metadata', 'type': 'BlobMetadata'},
'blob_tags': {'key': 'BlobTags', 'type': 'BlobTags'},
'object_replication_metadata': {'key': 'ObjectReplicationMetadata', 'type': '{str}'},
'has_versions_only': {'key': 'HasVersionsOnly', 'type': 'bool'},
'object_replication_metadata': {'key': 'OrMetadata', 'type': '{str}'},
}

_subtype_map = {
'object_replication_metadata': {}
}
_xml_map = {
'name': 'Blob'
Expand All @@ -322,15 +327,14 @@ class BlobItemInternal(msrest.serialization.Model):
def __init__(
self,
*,
name: str,
deleted: bool,
snapshot: str,
properties: "BlobPropertiesInternal",
name: Optional[str] = None,
deleted: Optional[bool] = None,
snapshot: Optional[str] = None,
version_id: Optional[str] = None,
is_current_version: Optional[bool] = None,
properties: Optional["BlobPropertiesInternal"] = None,
metadata: Optional["BlobMetadata"] = None,
blob_tags: Optional["BlobTags"] = None,
object_replication_metadata: Optional[Dict[str, str]] = None,
has_versions_only: Optional[bool] = None,
**kwargs
):
Expand All @@ -343,8 +347,8 @@ def __init__(
self.properties = properties
self.metadata = metadata
self.blob_tags = blob_tags
self.object_replication_metadata = object_replication_metadata
self.has_versions_only = has_versions_only
self.object_replication_metadata = None # type: Optional[str]


class BlobMetadata(msrest.serialization.Model):
Expand Down

0 comments on commit caf9875

Please sign in to comment.