diff --git a/azext_vmware/vendored_sdks/models/__init__.py b/azext_vmware/vendored_sdks/models/__init__.py index 7e6d2db..dd0fb95 100644 --- a/azext_vmware/vendored_sdks/models/__init__.py +++ b/azext_vmware/vendored_sdks/models/__init__.py @@ -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 @@ -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 @@ -60,8 +70,8 @@ ExpressRouteAuthorizationProvisioningState, SslEnum, PrivateCloudProvisioningState, - InternetEnum, ClusterProvisioningState, + InternetEnum, HcxEnterpriseSiteStatus, ) @@ -73,6 +83,11 @@ 'ErrorAdditionalInfo', 'ErrorResponse', 'OperationDisplay', + 'LogSpecification', + 'MetricDimension', + 'MetricSpecification', + 'ServiceSpecification', + 'OperationProperties', 'Operation', 'ExpressRouteAuthorization', 'Circuit', @@ -97,7 +112,7 @@ 'ExpressRouteAuthorizationProvisioningState', 'SslEnum', 'PrivateCloudProvisioningState', - 'InternetEnum', 'ClusterProvisioningState', + 'InternetEnum', 'HcxEnterpriseSiteStatus', ] diff --git a/azext_vmware/vendored_sdks/models/avs_client_enums.py b/azext_vmware/vendored_sdks/models/avs_client_enums.py index c12f4d5..8c16a38 100644 --- a/azext_vmware/vendored_sdks/models/avs_client_enums.py +++ b/azext_vmware/vendored_sdks/models/avs_client_enums.py @@ -45,12 +45,6 @@ class PrivateCloudProvisioningState(str, Enum): updating = "Updating" -class InternetEnum(str, Enum): - - enabled = "Enabled" - disabled = "Disabled" - - class ClusterProvisioningState(str, Enum): succeeded = "Succeeded" @@ -60,6 +54,12 @@ class ClusterProvisioningState(str, Enum): updating = "Updating" +class InternetEnum(str, Enum): + + enabled = "Enabled" + disabled = "Disabled" + + class HcxEnterpriseSiteStatus(str, Enum): available = "Available" diff --git a/azext_vmware/vendored_sdks/models/cluster.py b/azext_vmware/vendored_sdks/models/cluster.py index f7f2133..ef0d7f0 100644 --- a/azext_vmware/vendored_sdks/models/cluster.py +++ b/azext_vmware/vendored_sdks/models/cluster.py @@ -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 = { @@ -43,7 +43,6 @@ class Cluster(Resource): 'sku': {'required': True}, 'cluster_id': {'readonly': True}, 'hosts': {'readonly': True}, - 'provisioning_state': {'readonly': True}, } _attribute_map = { @@ -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 diff --git a/azext_vmware/vendored_sdks/models/cluster_py3.py b/azext_vmware/vendored_sdks/models/cluster_py3.py index 3d6203d..9fa5e4e 100644 --- a/azext_vmware/vendored_sdks/models/cluster_py3.py +++ b/azext_vmware/vendored_sdks/models/cluster_py3.py @@ -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 = { @@ -43,7 +43,6 @@ class Cluster(Resource): 'sku': {'required': True}, 'cluster_id': {'readonly': True}, 'hosts': {'readonly': True}, - 'provisioning_state': {'readonly': True}, } _attribute_map = { @@ -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 diff --git a/azext_vmware/vendored_sdks/models/log_specification.py b/azext_vmware/vendored_sdks/models/log_specification.py new file mode 100644 index 0000000..a7273b2 --- /dev/null +++ b/azext_vmware/vendored_sdks/models/log_specification.py @@ -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) diff --git a/azext_vmware/vendored_sdks/models/log_specification_py3.py b/azext_vmware/vendored_sdks/models/log_specification_py3.py new file mode 100644 index 0000000..2c24422 --- /dev/null +++ b/azext_vmware/vendored_sdks/models/log_specification_py3.py @@ -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 diff --git a/azext_vmware/vendored_sdks/models/management_cluster.py b/azext_vmware/vendored_sdks/models/management_cluster.py index 9ce0c25..5c25173 100644 --- a/azext_vmware/vendored_sdks/models/management_cluster.py +++ b/azext_vmware/vendored_sdks/models/management_cluster.py @@ -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 @@ -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 diff --git a/azext_vmware/vendored_sdks/models/management_cluster_py3.py b/azext_vmware/vendored_sdks/models/management_cluster_py3.py index 7cf6b84..3b4658f 100644 --- a/azext_vmware/vendored_sdks/models/management_cluster_py3.py +++ b/azext_vmware/vendored_sdks/models/management_cluster_py3.py @@ -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 @@ -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 diff --git a/azext_vmware/vendored_sdks/models/metric_dimension.py b/azext_vmware/vendored_sdks/models/metric_dimension.py new file mode 100644 index 0000000..e8030ff --- /dev/null +++ b/azext_vmware/vendored_sdks/models/metric_dimension.py @@ -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) diff --git a/azext_vmware/vendored_sdks/models/metric_dimension_py3.py b/azext_vmware/vendored_sdks/models/metric_dimension_py3.py new file mode 100644 index 0000000..30fbe16 --- /dev/null +++ b/azext_vmware/vendored_sdks/models/metric_dimension_py3.py @@ -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 diff --git a/azext_vmware/vendored_sdks/models/metric_specification.py b/azext_vmware/vendored_sdks/models/metric_specification.py new file mode 100644 index 0000000..94f66d3 --- /dev/null +++ b/azext_vmware/vendored_sdks/models/metric_specification.py @@ -0,0 +1,76 @@ +# 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 MetricSpecification(Model): + """Specifications of the Metrics for Azure Monitoring. + + :param name: Name of the metric + :type name: str + :param display_name: Localized friendly display name of the metric + :type display_name: str + :param display_description: Localized friendly description of the metric + :type display_description: str + :param unit: Unit that makes sense for the metric + :type unit: str + :param category: Name of the metric category that the metric belongs to. A + metric can only belong to a single category. + :type category: str + :param aggregation_type: Only provide one value for this field. Valid + values: Average, Minimum, Maximum, Total, Count. + :type aggregation_type: str + :param supported_aggregation_types: Supported aggregation types + :type supported_aggregation_types: list[str] + :param supported_time_grain_types: Supported time grain types + :type supported_time_grain_types: list[str] + :param fill_gap_with_zero: Optional. If set to true, then zero will be + returned for time duration where no metric is emitted/published. + :type fill_gap_with_zero: bool + :param dimensions: Dimensions of the metric + :type dimensions: list[~vendored_sdks.models.MetricDimension] + :param enable_regional_mdm_account: Whether or not the service is using + regional MDM accounts. + :type enable_regional_mdm_account: str + :param source_mdm_account: The name of the MDM account. + :type source_mdm_account: str + :param source_mdm_namespace: The name of the MDM namespace. + :type source_mdm_namespace: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'supported_aggregation_types': {'key': 'supportedAggregationTypes', 'type': '[str]'}, + 'supported_time_grain_types': {'key': 'supportedTimeGrainTypes', 'type': '[str]'}, + 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'}, + 'dimensions': {'key': 'dimensions', 'type': '[MetricDimension]'}, + 'enable_regional_mdm_account': {'key': 'enableRegionalMdmAccount', 'type': 'str'}, + 'source_mdm_account': {'key': 'sourceMdmAccount', 'type': 'str'}, + 'source_mdm_namespace': {'key': 'sourceMdmNamespace', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MetricSpecification, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.display_description = kwargs.get('display_description', None) + self.unit = kwargs.get('unit', None) + self.category = kwargs.get('category', None) + self.aggregation_type = kwargs.get('aggregation_type', None) + self.supported_aggregation_types = kwargs.get('supported_aggregation_types', None) + self.supported_time_grain_types = kwargs.get('supported_time_grain_types', None) + self.fill_gap_with_zero = kwargs.get('fill_gap_with_zero', None) + self.dimensions = kwargs.get('dimensions', None) + self.enable_regional_mdm_account = kwargs.get('enable_regional_mdm_account', None) + self.source_mdm_account = kwargs.get('source_mdm_account', None) + self.source_mdm_namespace = kwargs.get('source_mdm_namespace', None) diff --git a/azext_vmware/vendored_sdks/models/metric_specification_py3.py b/azext_vmware/vendored_sdks/models/metric_specification_py3.py new file mode 100644 index 0000000..bf5ba13 --- /dev/null +++ b/azext_vmware/vendored_sdks/models/metric_specification_py3.py @@ -0,0 +1,76 @@ +# 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 MetricSpecification(Model): + """Specifications of the Metrics for Azure Monitoring. + + :param name: Name of the metric + :type name: str + :param display_name: Localized friendly display name of the metric + :type display_name: str + :param display_description: Localized friendly description of the metric + :type display_description: str + :param unit: Unit that makes sense for the metric + :type unit: str + :param category: Name of the metric category that the metric belongs to. A + metric can only belong to a single category. + :type category: str + :param aggregation_type: Only provide one value for this field. Valid + values: Average, Minimum, Maximum, Total, Count. + :type aggregation_type: str + :param supported_aggregation_types: Supported aggregation types + :type supported_aggregation_types: list[str] + :param supported_time_grain_types: Supported time grain types + :type supported_time_grain_types: list[str] + :param fill_gap_with_zero: Optional. If set to true, then zero will be + returned for time duration where no metric is emitted/published. + :type fill_gap_with_zero: bool + :param dimensions: Dimensions of the metric + :type dimensions: list[~vendored_sdks.models.MetricDimension] + :param enable_regional_mdm_account: Whether or not the service is using + regional MDM accounts. + :type enable_regional_mdm_account: str + :param source_mdm_account: The name of the MDM account. + :type source_mdm_account: str + :param source_mdm_namespace: The name of the MDM namespace. + :type source_mdm_namespace: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'supported_aggregation_types': {'key': 'supportedAggregationTypes', 'type': '[str]'}, + 'supported_time_grain_types': {'key': 'supportedTimeGrainTypes', 'type': '[str]'}, + 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'}, + 'dimensions': {'key': 'dimensions', 'type': '[MetricDimension]'}, + 'enable_regional_mdm_account': {'key': 'enableRegionalMdmAccount', 'type': 'str'}, + 'source_mdm_account': {'key': 'sourceMdmAccount', 'type': 'str'}, + 'source_mdm_namespace': {'key': 'sourceMdmNamespace', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, display_name: str=None, display_description: str=None, unit: str=None, category: str=None, aggregation_type: str=None, supported_aggregation_types=None, supported_time_grain_types=None, fill_gap_with_zero: bool=None, dimensions=None, enable_regional_mdm_account: str=None, source_mdm_account: str=None, source_mdm_namespace: str=None, **kwargs) -> None: + super(MetricSpecification, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.display_description = display_description + self.unit = unit + self.category = category + self.aggregation_type = aggregation_type + self.supported_aggregation_types = supported_aggregation_types + self.supported_time_grain_types = supported_time_grain_types + self.fill_gap_with_zero = fill_gap_with_zero + self.dimensions = dimensions + self.enable_regional_mdm_account = enable_regional_mdm_account + self.source_mdm_account = source_mdm_account + self.source_mdm_namespace = source_mdm_namespace diff --git a/azext_vmware/vendored_sdks/models/operation.py b/azext_vmware/vendored_sdks/models/operation.py index 52521f9..17ecf59 100644 --- a/azext_vmware/vendored_sdks/models/operation.py +++ b/azext_vmware/vendored_sdks/models/operation.py @@ -19,6 +19,13 @@ class Operation(Model): :ivar display: Contains the localized display information for this operation :vartype display: ~vendored_sdks.models.OperationDisplay + :param is_data_action: Gets or sets a value indicating whether the + operation is a data action or not + :type is_data_action: bool + :param origin: Origin of the operation + :type origin: str + :param properties: Properties of the operation + :type properties: ~vendored_sdks.models.OperationProperties """ _validation = { @@ -29,9 +36,15 @@ class Operation(Model): _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'OperationProperties'}, } def __init__(self, **kwargs): super(Operation, self).__init__(**kwargs) self.name = None self.display = None + self.is_data_action = kwargs.get('is_data_action', None) + self.origin = kwargs.get('origin', None) + self.properties = kwargs.get('properties', None) diff --git a/azext_vmware/vendored_sdks/models/operation_properties.py b/azext_vmware/vendored_sdks/models/operation_properties.py new file mode 100644 index 0000000..f47c124 --- /dev/null +++ b/azext_vmware/vendored_sdks/models/operation_properties.py @@ -0,0 +1,24 @@ +# 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 OperationProperties(Model): + """Extra Operation properties. + + :param service_specification: Service specifications of the operation + :type service_specification: ~vendored_sdks.models.ServiceSpecification + """ + + _attribute_map = { + 'service_specification': {'key': 'serviceSpecification', 'type': 'ServiceSpecification'}, + } + + def __init__(self, **kwargs): + super(OperationProperties, self).__init__(**kwargs) + self.service_specification = kwargs.get('service_specification', None) diff --git a/azext_vmware/vendored_sdks/models/operation_properties_py3.py b/azext_vmware/vendored_sdks/models/operation_properties_py3.py new file mode 100644 index 0000000..834af35 --- /dev/null +++ b/azext_vmware/vendored_sdks/models/operation_properties_py3.py @@ -0,0 +1,24 @@ +# 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 OperationProperties(Model): + """Extra Operation properties. + + :param service_specification: Service specifications of the operation + :type service_specification: ~vendored_sdks.models.ServiceSpecification + """ + + _attribute_map = { + 'service_specification': {'key': 'serviceSpecification', 'type': 'ServiceSpecification'}, + } + + def __init__(self, *, service_specification=None, **kwargs) -> None: + super(OperationProperties, self).__init__(**kwargs) + self.service_specification = service_specification diff --git a/azext_vmware/vendored_sdks/models/operation_py3.py b/azext_vmware/vendored_sdks/models/operation_py3.py index bfd033b..e07c962 100644 --- a/azext_vmware/vendored_sdks/models/operation_py3.py +++ b/azext_vmware/vendored_sdks/models/operation_py3.py @@ -19,6 +19,13 @@ class Operation(Model): :ivar display: Contains the localized display information for this operation :vartype display: ~vendored_sdks.models.OperationDisplay + :param is_data_action: Gets or sets a value indicating whether the + operation is a data action or not + :type is_data_action: bool + :param origin: Origin of the operation + :type origin: str + :param properties: Properties of the operation + :type properties: ~vendored_sdks.models.OperationProperties """ _validation = { @@ -29,9 +36,15 @@ class Operation(Model): _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'OperationProperties'}, } - def __init__(self, **kwargs) -> None: + def __init__(self, *, is_data_action: bool=None, origin: str=None, properties=None, **kwargs) -> None: super(Operation, self).__init__(**kwargs) self.name = None self.display = None + self.is_data_action = is_data_action + self.origin = origin + self.properties = properties diff --git a/azext_vmware/vendored_sdks/models/service_specification.py b/azext_vmware/vendored_sdks/models/service_specification.py new file mode 100644 index 0000000..68aeaff --- /dev/null +++ b/azext_vmware/vendored_sdks/models/service_specification.py @@ -0,0 +1,30 @@ +# 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 ServiceSpecification(Model): + """Service specification payload. + + :param log_specifications: Specifications of the Log for Azure Monitoring + :type log_specifications: list[~vendored_sdks.models.LogSpecification] + :param metric_specifications: Specifications of the Metrics for Azure + Monitoring + :type metric_specifications: + list[~vendored_sdks.models.MetricSpecification] + """ + + _attribute_map = { + 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + } + + def __init__(self, **kwargs): + super(ServiceSpecification, self).__init__(**kwargs) + self.log_specifications = kwargs.get('log_specifications', None) + self.metric_specifications = kwargs.get('metric_specifications', None) diff --git a/azext_vmware/vendored_sdks/models/service_specification_py3.py b/azext_vmware/vendored_sdks/models/service_specification_py3.py new file mode 100644 index 0000000..930ab89 --- /dev/null +++ b/azext_vmware/vendored_sdks/models/service_specification_py3.py @@ -0,0 +1,30 @@ +# 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 ServiceSpecification(Model): + """Service specification payload. + + :param log_specifications: Specifications of the Log for Azure Monitoring + :type log_specifications: list[~vendored_sdks.models.LogSpecification] + :param metric_specifications: Specifications of the Metrics for Azure + Monitoring + :type metric_specifications: + list[~vendored_sdks.models.MetricSpecification] + """ + + _attribute_map = { + 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + } + + def __init__(self, *, log_specifications=None, metric_specifications=None, **kwargs) -> None: + super(ServiceSpecification, self).__init__(**kwargs) + self.log_specifications = log_specifications + self.metric_specifications = metric_specifications