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

changes with correctness fix #1

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
19 changes: 17 additions & 2 deletions azext_vmware/vendored_sdks/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
from .error_additional_info_py3 import ErrorAdditionalInfo
from .error_response_py3 import ErrorResponse
from .operation_display_py3 import OperationDisplay
from .log_specification_py3 import LogSpecification
from .metric_dimension_py3 import MetricDimension
from .metric_specification_py3 import MetricSpecification
from .service_specification_py3 import ServiceSpecification
from .operation_properties_py3 import OperationProperties
from .operation_py3 import Operation
from .express_route_authorization_py3 import ExpressRouteAuthorization
from .circuit_py3 import Circuit
Expand All @@ -35,6 +40,11 @@
from .error_additional_info import ErrorAdditionalInfo
from .error_response import ErrorResponse
from .operation_display import OperationDisplay
from .log_specification import LogSpecification
from .metric_dimension import MetricDimension
from .metric_specification import MetricSpecification
from .service_specification import ServiceSpecification
from .operation_properties import OperationProperties
from .operation import Operation
from .express_route_authorization import ExpressRouteAuthorization
from .circuit import Circuit
Expand All @@ -60,8 +70,8 @@
ExpressRouteAuthorizationProvisioningState,
SslEnum,
PrivateCloudProvisioningState,
InternetEnum,
ClusterProvisioningState,
InternetEnum,
HcxEnterpriseSiteStatus,
)

Expand All @@ -73,6 +83,11 @@
'ErrorAdditionalInfo',
'ErrorResponse',
'OperationDisplay',
'LogSpecification',
'MetricDimension',
'MetricSpecification',
'ServiceSpecification',
'OperationProperties',
'Operation',
'ExpressRouteAuthorization',
'Circuit',
Expand All @@ -97,7 +112,7 @@
'ExpressRouteAuthorizationProvisioningState',
'SslEnum',
'PrivateCloudProvisioningState',
'InternetEnum',
'ClusterProvisioningState',
'InternetEnum',
'HcxEnterpriseSiteStatus',
]
12 changes: 6 additions & 6 deletions azext_vmware/vendored_sdks/models/avs_client_enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ class PrivateCloudProvisioningState(str, Enum):
updating = "Updating"


class InternetEnum(str, Enum):

enabled = "Enabled"
disabled = "Disabled"


class ClusterProvisioningState(str, Enum):

succeeded = "Succeeded"
Expand All @@ -60,6 +54,12 @@ class ClusterProvisioningState(str, Enum):
updating = "Updating"


class InternetEnum(str, Enum):

enabled = "Enabled"
disabled = "Disabled"


class HcxEnterpriseSiteStatus(str, Enum):

available = "Available"
Expand Down
13 changes: 6 additions & 7 deletions azext_vmware/vendored_sdks/models/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ class Cluster(Resource):
:type sku: ~vendored_sdks.models.Sku
:param cluster_size: The cluster size
:type cluster_size: int
:param provisioning_state: The state of the cluster provisioning. Possible
values include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating'
:type provisioning_state: str or
~vendored_sdks.models.ClusterProvisioningState
:ivar cluster_id: The identity
:vartype cluster_id: int
:ivar hosts: The hosts
:vartype hosts: list[str]
:ivar provisioning_state: The state of the cluster provisioning. Possible
values include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating'
:vartype provisioning_state: str or
~vendored_sdks.models.ClusterProvisioningState
"""

_validation = {
Expand All @@ -43,7 +43,6 @@ class Cluster(Resource):
'sku': {'required': True},
'cluster_id': {'readonly': True},
'hosts': {'readonly': True},
'provisioning_state': {'readonly': True},
}

_attribute_map = {
Expand All @@ -52,15 +51,15 @@ class Cluster(Resource):
'type': {'key': 'type', 'type': 'str'},
'sku': {'key': 'sku', 'type': 'Sku'},
'cluster_size': {'key': 'properties.clusterSize', 'type': 'int'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'cluster_id': {'key': 'properties.clusterId', 'type': 'int'},
'hosts': {'key': 'properties.hosts', 'type': '[str]'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
}

def __init__(self, **kwargs):
super(Cluster, self).__init__(**kwargs)
self.sku = kwargs.get('sku', None)
self.cluster_size = kwargs.get('cluster_size', None)
self.provisioning_state = kwargs.get('provisioning_state', None)
self.cluster_id = None
self.hosts = None
self.provisioning_state = None
15 changes: 7 additions & 8 deletions azext_vmware/vendored_sdks/models/cluster_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ class Cluster(Resource):
:type sku: ~vendored_sdks.models.Sku
:param cluster_size: The cluster size
:type cluster_size: int
:param provisioning_state: The state of the cluster provisioning. Possible
values include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating'
:type provisioning_state: str or
~vendored_sdks.models.ClusterProvisioningState
:ivar cluster_id: The identity
:vartype cluster_id: int
:ivar hosts: The hosts
:vartype hosts: list[str]
:ivar provisioning_state: The state of the cluster provisioning. Possible
values include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating'
:vartype provisioning_state: str or
~vendored_sdks.models.ClusterProvisioningState
"""

_validation = {
Expand All @@ -43,7 +43,6 @@ class Cluster(Resource):
'sku': {'required': True},
'cluster_id': {'readonly': True},
'hosts': {'readonly': True},
'provisioning_state': {'readonly': True},
}

_attribute_map = {
Expand All @@ -52,15 +51,15 @@ class Cluster(Resource):
'type': {'key': 'type', 'type': 'str'},
'sku': {'key': 'sku', 'type': 'Sku'},
'cluster_size': {'key': 'properties.clusterSize', 'type': 'int'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'cluster_id': {'key': 'properties.clusterId', 'type': 'int'},
'hosts': {'key': 'properties.hosts', 'type': '[str]'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
}

def __init__(self, *, sku, cluster_size: int=None, **kwargs) -> None:
def __init__(self, *, sku, cluster_size: int=None, provisioning_state=None, **kwargs) -> None:
super(Cluster, self).__init__(**kwargs)
self.sku = sku
self.cluster_size = cluster_size
self.provisioning_state = provisioning_state
self.cluster_id = None
self.hosts = None
self.provisioning_state = None
32 changes: 32 additions & 0 deletions azext_vmware/vendored_sdks/models/log_specification.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class LogSpecification(Model):
"""Specifications of the Log for Azure Monitoring.

:param name: Name of the log
:type name: str
:param display_name: Localized friendly display name of the log
:type display_name: str
:param blob_duration: Blob duration of the log
:type blob_duration: str
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'blob_duration': {'key': 'blobDuration', 'type': 'str'},
}

def __init__(self, **kwargs):
super(LogSpecification, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.display_name = kwargs.get('display_name', None)
self.blob_duration = kwargs.get('blob_duration', None)
32 changes: 32 additions & 0 deletions azext_vmware/vendored_sdks/models/log_specification_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class LogSpecification(Model):
"""Specifications of the Log for Azure Monitoring.

:param name: Name of the log
:type name: str
:param display_name: Localized friendly display name of the log
:type display_name: str
:param blob_duration: Blob duration of the log
:type blob_duration: str
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'blob_duration': {'key': 'blobDuration', 'type': 'str'},
}

def __init__(self, *, name: str=None, display_name: str=None, blob_duration: str=None, **kwargs) -> None:
super(LogSpecification, self).__init__(**kwargs)
self.name = name
self.display_name = display_name
self.blob_duration = blob_duration
6 changes: 6 additions & 0 deletions azext_vmware/vendored_sdks/models/management_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ class ManagementCluster(ClusterUpdateProperties):

:param cluster_size: The cluster size
:type cluster_size: int
:param provisioning_state: The state of the cluster provisioning. Possible
values include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating'
:type provisioning_state: str or
~vendored_sdks.models.ClusterProvisioningState
:ivar cluster_id: The identity
:vartype cluster_id: int
:ivar hosts: The hosts
Expand All @@ -29,11 +33,13 @@ class ManagementCluster(ClusterUpdateProperties):

_attribute_map = {
'cluster_size': {'key': 'clusterSize', 'type': 'int'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'cluster_id': {'key': 'clusterId', 'type': 'int'},
'hosts': {'key': 'hosts', 'type': '[str]'},
}

def __init__(self, **kwargs):
super(ManagementCluster, self).__init__(**kwargs)
self.provisioning_state = kwargs.get('provisioning_state', None)
self.cluster_id = None
self.hosts = None
8 changes: 7 additions & 1 deletion azext_vmware/vendored_sdks/models/management_cluster_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ class ManagementCluster(ClusterUpdateProperties):

:param cluster_size: The cluster size
:type cluster_size: int
:param provisioning_state: The state of the cluster provisioning. Possible
values include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating'
:type provisioning_state: str or
~vendored_sdks.models.ClusterProvisioningState
:ivar cluster_id: The identity
:vartype cluster_id: int
:ivar hosts: The hosts
Expand All @@ -29,11 +33,13 @@ class ManagementCluster(ClusterUpdateProperties):

_attribute_map = {
'cluster_size': {'key': 'clusterSize', 'type': 'int'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'cluster_id': {'key': 'clusterId', 'type': 'int'},
'hosts': {'key': 'hosts', 'type': '[str]'},
}

def __init__(self, *, cluster_size: int=None, **kwargs) -> None:
def __init__(self, *, cluster_size: int=None, provisioning_state=None, **kwargs) -> None:
super(ManagementCluster, self).__init__(cluster_size=cluster_size, **kwargs)
self.provisioning_state = provisioning_state
self.cluster_id = None
self.hosts = None
28 changes: 28 additions & 0 deletions azext_vmware/vendored_sdks/models/metric_dimension.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class MetricDimension(Model):
"""Specifications of the Dimension of metrics.

:param name: Name of the dimension
:type name: str
:param display_name: Localized friendly display name of the dimension
:type display_name: str
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
}

def __init__(self, **kwargs):
super(MetricDimension, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.display_name = kwargs.get('display_name', None)
28 changes: 28 additions & 0 deletions azext_vmware/vendored_sdks/models/metric_dimension_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class MetricDimension(Model):
"""Specifications of the Dimension of metrics.

:param name: Name of the dimension
:type name: str
:param display_name: Localized friendly display name of the dimension
:type display_name: str
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
}

def __init__(self, *, name: str=None, display_name: str=None, **kwargs) -> None:
super(MetricDimension, self).__init__(**kwargs)
self.name = name
self.display_name = display_name
Loading