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

[ReleasePR azure-mgmt-azurestack] [Hub Generated] Review request for Microsoft.AzureStack to add version preview/2020-06-01-preview #15668

Closed
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
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 @@ -69,11 +75,13 @@
OperatingSystem,
CompatibilityIssue,
Category,
Location,
)

__all__ = [
'ActivationKeyResult',
'CloudManifestFileDeploymentData',
'CloudManifestFileProperties',
'CloudManifestFileResponse',
'Compatibility',
'CustomerSubscription',
'DataDiskImage',
Expand Down Expand Up @@ -106,5 +114,4 @@
'OperatingSystem',
'CompatibilityIssue',
'Category',
'Location',
]
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,3 @@ class Category(str, Enum):

azure_ad = "AzureAD"
adfs = "ADFS"


class Location(str, Enum):

global_enum = "global"
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 Expand Up @@ -855,29 +943,34 @@ def __init__(self, **kwargs):
class RegistrationParameter(Model):
"""Registration resource.

Variables are only populated by the server, and will be ignored when
sending a request.

All required parameters must be populated in order to send to Azure.

:param registration_token: Required. The token identifying registered
Azure Stack
:type registration_token: str
:param location: Location of the resource. Possible values include:
'global'
:type location: str or ~azure.mgmt.azurestack.models.Location
:ivar location: Required. Location of the resource. Default value:
"global" .
:vartype location: str
"""

_validation = {
'registration_token': {'required': True},
'location': {'required': True, 'constant': True},
}

_attribute_map = {
'registration_token': {'key': 'properties.registrationToken', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
}

location = "global"

def __init__(self, **kwargs):
super(RegistrationParameter, self).__init__(**kwargs)
self.registration_token = kwargs.get('registration_token', None)
self.location = kwargs.get('location', None)


class VirtualMachineExtensionProductProperties(Model):
Expand Down
Loading