Skip to content

Commit

Permalink
Generated from 497f37d011e45d90e7a5f190b1326ec89e2719c8
Browse files Browse the repository at this point in the history
Merge pull request #6 from Khushboo-Baheti/master

merge
  • Loading branch information
SDK Automation committed Feb 24, 2020
1 parent a25a803 commit f06835e
Show file tree
Hide file tree
Showing 6 changed files with 385 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from ._configuration import AzureStackManagementClientConfiguration
from .operations import Operations
from .operations import CloudManifestFileOperations
from .operations import ProductsOperations
from .operations import RegistrationsOperations
from .operations import CustomerSubscriptionsOperations
Expand All @@ -28,6 +29,8 @@ class AzureStackManagementClient(SDKClient):
:ivar operations: Operations operations
:vartype operations: azure.mgmt.azurestack.operations.Operations
:ivar cloud_manifest_file: CloudManifestFile operations
:vartype cloud_manifest_file: azure.mgmt.azurestack.operations.CloudManifestFileOperations
:ivar products: Products operations
:vartype products: azure.mgmt.azurestack.operations.ProductsOperations
:ivar registrations: Registrations operations
Expand Down Expand Up @@ -58,6 +61,8 @@ def __init__(

self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.cloud_manifest_file = CloudManifestFileOperations(
self._client, self.config, self._serialize, self._deserialize)
self.products = ProductsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.registrations = RegistrationsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

try:
from ._models_py3 import ActivationKeyResult
from ._models_py3 import CloudManifestFileDeploymentData
from ._models_py3 import CloudManifestFileProperties
from ._models_py3 import CloudManifestFileResponse
from ._models_py3 import Compatibility
from ._models_py3 import CustomerSubscription
from ._models_py3 import DataDiskImage
Expand All @@ -36,6 +39,9 @@
from ._models_py3 import VirtualMachineProductProperties
except (SyntaxError, ImportError):
from ._models import ActivationKeyResult
from ._models import CloudManifestFileDeploymentData
from ._models import CloudManifestFileProperties
from ._models import CloudManifestFileResponse
from ._models import Compatibility
from ._models import CustomerSubscription
from ._models import DataDiskImage
Expand Down Expand Up @@ -74,6 +80,9 @@

__all__ = [
'ActivationKeyResult',
'CloudManifestFileDeploymentData',
'CloudManifestFileProperties',
'CloudManifestFileResponse',
'Compatibility',
'CustomerSubscription',
'DataDiskImage',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,34 +37,53 @@ class CloudError(Model):
}


class Compatibility(Model):
"""Product compatibility.
class CloudManifestFileDeploymentData(Model):
"""Cloud specific manifest data for AzureStack deployment.
:param external_dsms_certificates: Dsms external certificates.
:type external_dsms_certificates: str
:param custom_cloud_verification_key: Signing verification public key.
:type custom_cloud_verification_key: str
:param custom_cloud_arm_endpoint: ARM endpoint.
:type custom_cloud_arm_endpoint: str
:param external_dsms_endpoint: Dsms endpoint.
:type external_dsms_endpoint: str
"""

:param is_compatible: Tells if product is compatible with current device
:type is_compatible: bool
:param message: Short error message if any compatibility issues are found
:type message: str
:param description: Full error message if any compatibility issues are
found
:type description: str
:param issues: List of all issues found
:type issues: list[str or
~azure.mgmt.azurestack.models.CompatibilityIssue]
_attribute_map = {
'external_dsms_certificates': {'key': 'externalDsmsCertificates', 'type': 'str'},
'custom_cloud_verification_key': {'key': 'customCloudVerificationKey', 'type': 'str'},
'custom_cloud_arm_endpoint': {'key': 'customEnvironmentEndpoints.customCloudArmEndpoint', 'type': 'str'},
'external_dsms_endpoint': {'key': 'customEnvironmentEndpoints.externalDsmsEndpoint', 'type': 'str'},
}

def __init__(self, **kwargs):
super(CloudManifestFileDeploymentData, self).__init__(**kwargs)
self.external_dsms_certificates = kwargs.get('external_dsms_certificates', None)
self.custom_cloud_verification_key = kwargs.get('custom_cloud_verification_key', None)
self.custom_cloud_arm_endpoint = kwargs.get('custom_cloud_arm_endpoint', None)
self.external_dsms_endpoint = kwargs.get('external_dsms_endpoint', None)


class CloudManifestFileProperties(Model):
"""Cloud specific manifest JSON properties.
:param deployment_data: Cloud specific manifest data.
:type deployment_data:
~azure.mgmt.azurestack.models.CloudManifestFileDeploymentData
:param signature: Signature of the cloud specific manifest data.
:type signature: str
"""

_attribute_map = {
'is_compatible': {'key': 'isCompatible', 'type': 'bool'},
'message': {'key': 'message', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
'issues': {'key': 'issues', 'type': '[str]'},
'deployment_data': {'key': 'deploymentData', 'type': 'CloudManifestFileDeploymentData'},
'signature': {'key': 'signature', 'type': 'str'},
}

def __init__(self, **kwargs):
super(Compatibility, self).__init__(**kwargs)
self.is_compatible = kwargs.get('is_compatible', None)
self.message = kwargs.get('message', None)
self.description = kwargs.get('description', None)
self.issues = kwargs.get('issues', None)
super(CloudManifestFileProperties, self).__init__(**kwargs)
self.deployment_data = kwargs.get('deployment_data', None)
self.signature = kwargs.get('signature', None)


class Resource(Model):
Expand Down Expand Up @@ -105,6 +124,75 @@ def __init__(self, **kwargs):
self.etag = kwargs.get('etag', None)


class CloudManifestFileResponse(Resource):
"""Cloud specific manifest GET response.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: ID of the resource.
:vartype id: str
:ivar name: Name of the resource.
:vartype name: str
:ivar type: Type of Resource.
:vartype type: str
:param etag: The entity tag used for optimistic concurrency when modifying
the resource.
:type etag: str
:param properties: Cloud specific manifest data.
:type properties:
~azure.mgmt.azurestack.models.CloudManifestFileProperties
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'CloudManifestFileProperties'},
}

def __init__(self, **kwargs):
super(CloudManifestFileResponse, self).__init__(**kwargs)
self.properties = kwargs.get('properties', None)


class Compatibility(Model):
"""Product compatibility.
:param is_compatible: Tells if product is compatible with current device
:type is_compatible: bool
:param message: Short error message if any compatibility issues are found
:type message: str
:param description: Full error message if any compatibility issues are
found
:type description: str
:param issues: List of all issues found
:type issues: list[str or
~azure.mgmt.azurestack.models.CompatibilityIssue]
"""

_attribute_map = {
'is_compatible': {'key': 'isCompatible', 'type': 'bool'},
'message': {'key': 'message', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
'issues': {'key': 'issues', 'type': '[str]'},
}

def __init__(self, **kwargs):
super(Compatibility, self).__init__(**kwargs)
self.is_compatible = kwargs.get('is_compatible', None)
self.message = kwargs.get('message', None)
self.description = kwargs.get('description', None)
self.issues = kwargs.get('issues', None)


class CustomerSubscription(Resource):
"""Customer subscription.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,34 +37,53 @@ class CloudError(Model):
}


class Compatibility(Model):
"""Product compatibility.
class CloudManifestFileDeploymentData(Model):
"""Cloud specific manifest data for AzureStack deployment.
:param external_dsms_certificates: Dsms external certificates.
:type external_dsms_certificates: str
:param custom_cloud_verification_key: Signing verification public key.
:type custom_cloud_verification_key: str
:param custom_cloud_arm_endpoint: ARM endpoint.
:type custom_cloud_arm_endpoint: str
:param external_dsms_endpoint: Dsms endpoint.
:type external_dsms_endpoint: str
"""

:param is_compatible: Tells if product is compatible with current device
:type is_compatible: bool
:param message: Short error message if any compatibility issues are found
:type message: str
:param description: Full error message if any compatibility issues are
found
:type description: str
:param issues: List of all issues found
:type issues: list[str or
~azure.mgmt.azurestack.models.CompatibilityIssue]
_attribute_map = {
'external_dsms_certificates': {'key': 'externalDsmsCertificates', 'type': 'str'},
'custom_cloud_verification_key': {'key': 'customCloudVerificationKey', 'type': 'str'},
'custom_cloud_arm_endpoint': {'key': 'customEnvironmentEndpoints.customCloudArmEndpoint', 'type': 'str'},
'external_dsms_endpoint': {'key': 'customEnvironmentEndpoints.externalDsmsEndpoint', 'type': 'str'},
}

def __init__(self, *, external_dsms_certificates: str=None, custom_cloud_verification_key: str=None, custom_cloud_arm_endpoint: str=None, external_dsms_endpoint: str=None, **kwargs) -> None:
super(CloudManifestFileDeploymentData, self).__init__(**kwargs)
self.external_dsms_certificates = external_dsms_certificates
self.custom_cloud_verification_key = custom_cloud_verification_key
self.custom_cloud_arm_endpoint = custom_cloud_arm_endpoint
self.external_dsms_endpoint = external_dsms_endpoint


class CloudManifestFileProperties(Model):
"""Cloud specific manifest JSON properties.
:param deployment_data: Cloud specific manifest data.
:type deployment_data:
~azure.mgmt.azurestack.models.CloudManifestFileDeploymentData
:param signature: Signature of the cloud specific manifest data.
:type signature: str
"""

_attribute_map = {
'is_compatible': {'key': 'isCompatible', 'type': 'bool'},
'message': {'key': 'message', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
'issues': {'key': 'issues', 'type': '[str]'},
'deployment_data': {'key': 'deploymentData', 'type': 'CloudManifestFileDeploymentData'},
'signature': {'key': 'signature', 'type': 'str'},
}

def __init__(self, *, is_compatible: bool=None, message: str=None, description: str=None, issues=None, **kwargs) -> None:
super(Compatibility, self).__init__(**kwargs)
self.is_compatible = is_compatible
self.message = message
self.description = description
self.issues = issues
def __init__(self, *, deployment_data=None, signature: str=None, **kwargs) -> None:
super(CloudManifestFileProperties, self).__init__(**kwargs)
self.deployment_data = deployment_data
self.signature = signature


class Resource(Model):
Expand Down Expand Up @@ -105,6 +124,75 @@ def __init__(self, *, etag: str=None, **kwargs) -> None:
self.etag = etag


class CloudManifestFileResponse(Resource):
"""Cloud specific manifest GET response.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: ID of the resource.
:vartype id: str
:ivar name: Name of the resource.
:vartype name: str
:ivar type: Type of Resource.
:vartype type: str
:param etag: The entity tag used for optimistic concurrency when modifying
the resource.
:type etag: str
:param properties: Cloud specific manifest data.
:type properties:
~azure.mgmt.azurestack.models.CloudManifestFileProperties
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'CloudManifestFileProperties'},
}

def __init__(self, *, etag: str=None, properties=None, **kwargs) -> None:
super(CloudManifestFileResponse, self).__init__(etag=etag, **kwargs)
self.properties = properties


class Compatibility(Model):
"""Product compatibility.
:param is_compatible: Tells if product is compatible with current device
:type is_compatible: bool
:param message: Short error message if any compatibility issues are found
:type message: str
:param description: Full error message if any compatibility issues are
found
:type description: str
:param issues: List of all issues found
:type issues: list[str or
~azure.mgmt.azurestack.models.CompatibilityIssue]
"""

_attribute_map = {
'is_compatible': {'key': 'isCompatible', 'type': 'bool'},
'message': {'key': 'message', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
'issues': {'key': 'issues', 'type': '[str]'},
}

def __init__(self, *, is_compatible: bool=None, message: str=None, description: str=None, issues=None, **kwargs) -> None:
super(Compatibility, self).__init__(**kwargs)
self.is_compatible = is_compatible
self.message = message
self.description = description
self.issues = issues


class CustomerSubscription(Resource):
"""Customer subscription.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
# --------------------------------------------------------------------------

from ._operations import Operations
from ._cloud_manifest_file_operations import CloudManifestFileOperations
from ._products_operations import ProductsOperations
from ._registrations_operations import RegistrationsOperations
from ._customer_subscriptions_operations import CustomerSubscriptionsOperations

__all__ = [
'Operations',
'CloudManifestFileOperations',
'ProductsOperations',
'RegistrationsOperations',
'CustomerSubscriptionsOperations',
Expand Down
Loading

0 comments on commit f06835e

Please sign in to comment.