Skip to content

Commit 280082d

Browse files
author
SDKAuto
committed
CodeGen from PR 11937 in Azure/azure-rest-api-specs
Merge 8ab930e64fee7bf1511113cb02a4bf57780b0779 into b9fbfae
1 parent e07f613 commit 280082d

File tree

11 files changed

+485
-101
lines changed

11 files changed

+485
-101
lines changed

sdk/azurestack/azure-mgmt-azurestack/azure/mgmt/azurestack/_azure_stack_management_client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
from ._configuration import AzureStackManagementClientConfiguration
1616
from .operations import Operations
17+
from .operations import CloudManifestFileOperations
1718
from .operations import ProductsOperations
1819
from .operations import RegistrationsOperations
1920
from .operations import CustomerSubscriptionsOperations
@@ -28,6 +29,8 @@ class AzureStackManagementClient(SDKClient):
2829
2930
:ivar operations: Operations operations
3031
:vartype operations: azure.mgmt.azurestack.operations.Operations
32+
:ivar cloud_manifest_file: CloudManifestFile operations
33+
:vartype cloud_manifest_file: azure.mgmt.azurestack.operations.CloudManifestFileOperations
3134
:ivar products: Products operations
3235
:vartype products: azure.mgmt.azurestack.operations.ProductsOperations
3336
:ivar registrations: Registrations operations
@@ -58,6 +61,8 @@ def __init__(
5861

5962
self.operations = Operations(
6063
self._client, self.config, self._serialize, self._deserialize)
64+
self.cloud_manifest_file = CloudManifestFileOperations(
65+
self._client, self.config, self._serialize, self._deserialize)
6166
self.products = ProductsOperations(
6267
self._client, self.config, self._serialize, self._deserialize)
6368
self.registrations = RegistrationsOperations(

sdk/azurestack/azure-mgmt-azurestack/azure/mgmt/azurestack/models/__init__.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
try:
1313
from ._models_py3 import ActivationKeyResult
14+
from ._models_py3 import CloudManifestFileDeploymentData
15+
from ._models_py3 import CloudManifestFileProperties
16+
from ._models_py3 import CloudManifestFileResponse
1417
from ._models_py3 import Compatibility
1518
from ._models_py3 import CustomerSubscription
1619
from ._models_py3 import DataDiskImage
@@ -36,6 +39,9 @@
3639
from ._models_py3 import VirtualMachineProductProperties
3740
except (SyntaxError, ImportError):
3841
from ._models import ActivationKeyResult
42+
from ._models import CloudManifestFileDeploymentData
43+
from ._models import CloudManifestFileProperties
44+
from ._models import CloudManifestFileResponse
3945
from ._models import Compatibility
4046
from ._models import CustomerSubscription
4147
from ._models import DataDiskImage
@@ -69,11 +75,13 @@
6975
OperatingSystem,
7076
CompatibilityIssue,
7177
Category,
72-
Location,
7378
)
7479

7580
__all__ = [
7681
'ActivationKeyResult',
82+
'CloudManifestFileDeploymentData',
83+
'CloudManifestFileProperties',
84+
'CloudManifestFileResponse',
7785
'Compatibility',
7886
'CustomerSubscription',
7987
'DataDiskImage',
@@ -106,5 +114,4 @@
106114
'OperatingSystem',
107115
'CompatibilityIssue',
108116
'Category',
109-
'Location',
110117
]

sdk/azurestack/azure-mgmt-azurestack/azure/mgmt/azurestack/models/_azure_stack_management_client_enums.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,3 @@ class Category(str, Enum):
5252

5353
azure_ad = "AzureAD"
5454
adfs = "ADFS"
55-
56-
57-
class Location(str, Enum):
58-
59-
global_enum = "global"

sdk/azurestack/azure-mgmt-azurestack/azure/mgmt/azurestack/models/_models.py

Lines changed: 118 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -37,34 +37,53 @@ class CloudError(Model):
3737
}
3838

3939

40-
class Compatibility(Model):
41-
"""Product compatibility.
40+
class CloudManifestFileDeploymentData(Model):
41+
"""Cloud specific manifest data for AzureStack deployment.
42+
43+
:param external_dsms_certificates: Dsms external certificates.
44+
:type external_dsms_certificates: str
45+
:param custom_cloud_verification_key: Signing verification public key.
46+
:type custom_cloud_verification_key: str
47+
:param custom_cloud_arm_endpoint: ARM endpoint.
48+
:type custom_cloud_arm_endpoint: str
49+
:param external_dsms_endpoint: Dsms endpoint.
50+
:type external_dsms_endpoint: str
51+
"""
4252

43-
:param is_compatible: Tells if product is compatible with current device
44-
:type is_compatible: bool
45-
:param message: Short error message if any compatibility issues are found
46-
:type message: str
47-
:param description: Full error message if any compatibility issues are
48-
found
49-
:type description: str
50-
:param issues: List of all issues found
51-
:type issues: list[str or
52-
~azure.mgmt.azurestack.models.CompatibilityIssue]
53+
_attribute_map = {
54+
'external_dsms_certificates': {'key': 'externalDsmsCertificates', 'type': 'str'},
55+
'custom_cloud_verification_key': {'key': 'customCloudVerificationKey', 'type': 'str'},
56+
'custom_cloud_arm_endpoint': {'key': 'customEnvironmentEndpoints.customCloudArmEndpoint', 'type': 'str'},
57+
'external_dsms_endpoint': {'key': 'customEnvironmentEndpoints.externalDsmsEndpoint', 'type': 'str'},
58+
}
59+
60+
def __init__(self, **kwargs):
61+
super(CloudManifestFileDeploymentData, self).__init__(**kwargs)
62+
self.external_dsms_certificates = kwargs.get('external_dsms_certificates', None)
63+
self.custom_cloud_verification_key = kwargs.get('custom_cloud_verification_key', None)
64+
self.custom_cloud_arm_endpoint = kwargs.get('custom_cloud_arm_endpoint', None)
65+
self.external_dsms_endpoint = kwargs.get('external_dsms_endpoint', None)
66+
67+
68+
class CloudManifestFileProperties(Model):
69+
"""Cloud specific manifest JSON properties.
70+
71+
:param deployment_data: Cloud specific manifest data.
72+
:type deployment_data:
73+
~azure.mgmt.azurestack.models.CloudManifestFileDeploymentData
74+
:param signature: Signature of the cloud specific manifest data.
75+
:type signature: str
5376
"""
5477

5578
_attribute_map = {
56-
'is_compatible': {'key': 'isCompatible', 'type': 'bool'},
57-
'message': {'key': 'message', 'type': 'str'},
58-
'description': {'key': 'description', 'type': 'str'},
59-
'issues': {'key': 'issues', 'type': '[str]'},
79+
'deployment_data': {'key': 'deploymentData', 'type': 'CloudManifestFileDeploymentData'},
80+
'signature': {'key': 'signature', 'type': 'str'},
6081
}
6182

6283
def __init__(self, **kwargs):
63-
super(Compatibility, self).__init__(**kwargs)
64-
self.is_compatible = kwargs.get('is_compatible', None)
65-
self.message = kwargs.get('message', None)
66-
self.description = kwargs.get('description', None)
67-
self.issues = kwargs.get('issues', None)
84+
super(CloudManifestFileProperties, self).__init__(**kwargs)
85+
self.deployment_data = kwargs.get('deployment_data', None)
86+
self.signature = kwargs.get('signature', None)
6887

6988

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

107126

127+
class CloudManifestFileResponse(Resource):
128+
"""Cloud specific manifest GET response.
129+
130+
Variables are only populated by the server, and will be ignored when
131+
sending a request.
132+
133+
:ivar id: ID of the resource.
134+
:vartype id: str
135+
:ivar name: Name of the resource.
136+
:vartype name: str
137+
:ivar type: Type of Resource.
138+
:vartype type: str
139+
:param etag: The entity tag used for optimistic concurrency when modifying
140+
the resource.
141+
:type etag: str
142+
:param properties: Cloud specific manifest data.
143+
:type properties:
144+
~azure.mgmt.azurestack.models.CloudManifestFileProperties
145+
"""
146+
147+
_validation = {
148+
'id': {'readonly': True},
149+
'name': {'readonly': True},
150+
'type': {'readonly': True},
151+
}
152+
153+
_attribute_map = {
154+
'id': {'key': 'id', 'type': 'str'},
155+
'name': {'key': 'name', 'type': 'str'},
156+
'type': {'key': 'type', 'type': 'str'},
157+
'etag': {'key': 'etag', 'type': 'str'},
158+
'properties': {'key': 'properties', 'type': 'CloudManifestFileProperties'},
159+
}
160+
161+
def __init__(self, **kwargs):
162+
super(CloudManifestFileResponse, self).__init__(**kwargs)
163+
self.properties = kwargs.get('properties', None)
164+
165+
166+
class Compatibility(Model):
167+
"""Product compatibility.
168+
169+
:param is_compatible: Tells if product is compatible with current device
170+
:type is_compatible: bool
171+
:param message: Short error message if any compatibility issues are found
172+
:type message: str
173+
:param description: Full error message if any compatibility issues are
174+
found
175+
:type description: str
176+
:param issues: List of all issues found
177+
:type issues: list[str or
178+
~azure.mgmt.azurestack.models.CompatibilityIssue]
179+
"""
180+
181+
_attribute_map = {
182+
'is_compatible': {'key': 'isCompatible', 'type': 'bool'},
183+
'message': {'key': 'message', 'type': 'str'},
184+
'description': {'key': 'description', 'type': 'str'},
185+
'issues': {'key': 'issues', 'type': '[str]'},
186+
}
187+
188+
def __init__(self, **kwargs):
189+
super(Compatibility, self).__init__(**kwargs)
190+
self.is_compatible = kwargs.get('is_compatible', None)
191+
self.message = kwargs.get('message', None)
192+
self.description = kwargs.get('description', None)
193+
self.issues = kwargs.get('issues', None)
194+
195+
108196
class CustomerSubscription(Resource):
109197
"""Customer subscription.
110198
@@ -855,29 +943,34 @@ def __init__(self, **kwargs):
855943
class RegistrationParameter(Model):
856944
"""Registration resource.
857945
946+
Variables are only populated by the server, and will be ignored when
947+
sending a request.
948+
858949
All required parameters must be populated in order to send to Azure.
859950
860951
:param registration_token: Required. The token identifying registered
861952
Azure Stack
862953
:type registration_token: str
863-
:param location: Location of the resource. Possible values include:
864-
'global'
865-
:type location: str or ~azure.mgmt.azurestack.models.Location
954+
:ivar location: Required. Location of the resource. Default value:
955+
"global" .
956+
:vartype location: str
866957
"""
867958

868959
_validation = {
869960
'registration_token': {'required': True},
961+
'location': {'required': True, 'constant': True},
870962
}
871963

872964
_attribute_map = {
873965
'registration_token': {'key': 'properties.registrationToken', 'type': 'str'},
874966
'location': {'key': 'location', 'type': 'str'},
875967
}
876968

969+
location = "global"
970+
877971
def __init__(self, **kwargs):
878972
super(RegistrationParameter, self).__init__(**kwargs)
879973
self.registration_token = kwargs.get('registration_token', None)
880-
self.location = kwargs.get('location', None)
881974

882975

883976
class VirtualMachineExtensionProductProperties(Model):

0 commit comments

Comments
 (0)