Skip to content

Commit d643def

Browse files
msyycSDK Automation
andauthored
【T1】 azurestackhci (Azure#14495)
* Generated from c80a4d2c529a04e64d7340010447f466ab4fa09e * version,CHANGELOG Co-authored-by: SDK Automation <[email protected]>
1 parent d430f6d commit d643def

File tree

11 files changed

+164
-121
lines changed

11 files changed

+164
-121
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Release History
22

3+
## 1.0.0 (2020-10-14)
4+
5+
**Features**
6+
7+
- Model Cluster has a new parameter last_billing_timestamp
8+
- Model Cluster has a new parameter registration_timestamp
9+
- Model Cluster has a new parameter last_sync_timestamp
10+
- Added operation ClustersOperations.list_by_subscription
11+
12+
**Breaking changes**
13+
14+
- Removed operation ClustersOperations.list
15+
316
## 1.0.0rc (2020-07-22)
417

518
* Initial Release

sdk/azurestackhci/azure-mgmt-azurestackhci/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Microsoft Azure SDK for Python
22

3-
This is the Microsoft Azure MyService Management Client Library.
3+
This is the Microsoft Azure AzureStackHCI Management Client Library.
44
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5-
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/)
5+
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77

88
# Usage
99

10-
For code examples, see [MyService Management](https://docs.microsoft.com/python/api/overview/azure/)
10+
For code examples, see [AzureStackHCI Management](https://docs.microsoft.com/python/api/overview/azure/)
1111
on docs.microsoft.com.
1212

1313

sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_azure_stack_hci_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(
4444
super(AzureStackHCIClient, self).__init__(self.config.credentials, self.config)
4545

4646
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
47-
self.api_version = '2020-03-01-preview'
47+
self.api_version = '2020-10-01'
4848
self._serialize = Serializer(client_models)
4949
self._deserialize = Deserializer(client_models)
5050

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# --------------------------------------------------------------------------
1111

1212
try:
13+
from ._models_py3 import AvailableOperations
1314
from ._models_py3 import AzureEntityResource
1415
from ._models_py3 import Cluster
1516
from ._models_py3 import ClusterNode
@@ -18,13 +19,13 @@
1819
from ._models_py3 import ErrorAdditionalInfo
1920
from ._models_py3 import ErrorResponse, ErrorResponseException
2021
from ._models_py3 import ErrorResponseError
21-
from ._models_py3 import Operation
22+
from ._models_py3 import OperationDetail
2223
from ._models_py3 import OperationDisplay
23-
from ._models_py3 import OperationList
2424
from ._models_py3 import ProxyResource
2525
from ._models_py3 import Resource
2626
from ._models_py3 import TrackedResource
2727
except (SyntaxError, ImportError):
28+
from ._models import AvailableOperations
2829
from ._models import AzureEntityResource
2930
from ._models import Cluster
3031
from ._models import ClusterNode
@@ -33,9 +34,8 @@
3334
from ._models import ErrorAdditionalInfo
3435
from ._models import ErrorResponse, ErrorResponseException
3536
from ._models import ErrorResponseError
36-
from ._models import Operation
37+
from ._models import OperationDetail
3738
from ._models import OperationDisplay
38-
from ._models import OperationList
3939
from ._models import ProxyResource
4040
from ._models import Resource
4141
from ._models import TrackedResource
@@ -46,6 +46,7 @@
4646
)
4747

4848
__all__ = [
49+
'AvailableOperations',
4950
'AzureEntityResource',
5051
'Cluster',
5152
'ClusterNode',
@@ -54,9 +55,8 @@
5455
'ErrorAdditionalInfo',
5556
'ErrorResponse', 'ErrorResponseException',
5657
'ErrorResponseError',
57-
'Operation',
58+
'OperationDetail',
5859
'OperationDisplay',
59-
'OperationList',
6060
'ProxyResource',
6161
'Resource',
6262
'TrackedResource',

sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_azure_stack_hci_client_enums.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class ProvisioningState(str, Enum):
2323

2424
class Status(str, Enum):
2525

26-
never_connected = "NeverConnected"
26+
not_yet_registered = "NotYetRegistered"
2727
connected_recently = "ConnectedRecently"
2828
not_connected_recently = "NotConnectedRecently"
29-
expired = "Expired"
29+
disconnected = "Disconnected"
3030
error = "Error"

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

Lines changed: 63 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,28 @@
1313
from msrest.exceptions import HttpOperationError
1414

1515

16+
class AvailableOperations(Model):
17+
"""Available operations of the service.
18+
19+
:param value: Collection of available operation details
20+
:type value: list[~azure.mgmt.azurestackhci.models.OperationDetail]
21+
:param next_link: URL client should use to fetch the next page (per server
22+
side paging).
23+
It's null for now, added for future use.
24+
:type next_link: str
25+
"""
26+
27+
_attribute_map = {
28+
'value': {'key': 'value', 'type': '[OperationDetail]'},
29+
'next_link': {'key': 'nextLink', 'type': 'str'},
30+
}
31+
32+
def __init__(self, **kwargs):
33+
super(AvailableOperations, self).__init__(**kwargs)
34+
self.value = kwargs.get('value', None)
35+
self.next_link = kwargs.get('next_link', None)
36+
37+
1638
class Resource(Model):
1739
"""Resource.
1840
@@ -162,8 +184,8 @@ class Cluster(TrackedResource):
162184
:vartype provisioning_state: str or
163185
~azure.mgmt.azurestackhci.models.ProvisioningState
164186
:ivar status: Status of the cluster agent. Possible values include:
165-
'NeverConnected', 'ConnectedRecently', 'NotConnectedRecently', 'Expired',
166-
'Error'
187+
'NotYetRegistered', 'ConnectedRecently', 'NotConnectedRecently',
188+
'Disconnected', 'Error'
167189
:vartype status: str or ~azure.mgmt.azurestackhci.models.Status
168190
:ivar cloud_id: Unique, immutable resource id.
169191
:vartype cloud_id: str
@@ -178,6 +200,12 @@ class Cluster(TrackedResource):
178200
:vartype trial_days_remaining: float
179201
:ivar billing_model: Type of billing applied to the resource.
180202
:vartype billing_model: str
203+
:ivar registration_timestamp: First cluster sync timestamp.
204+
:vartype registration_timestamp: datetime
205+
:ivar last_sync_timestamp: Most recent cluster sync timestamp.
206+
:vartype last_sync_timestamp: datetime
207+
:ivar last_billing_timestamp: Most recent billing meter timestamp.
208+
:vartype last_billing_timestamp: datetime
181209
"""
182210

183211
_validation = {
@@ -192,6 +220,9 @@ class Cluster(TrackedResource):
192220
'aad_tenant_id': {'required': True},
193221
'trial_days_remaining': {'readonly': True},
194222
'billing_model': {'readonly': True},
223+
'registration_timestamp': {'readonly': True},
224+
'last_sync_timestamp': {'readonly': True},
225+
'last_billing_timestamp': {'readonly': True},
195226
}
196227

197228
_attribute_map = {
@@ -208,6 +239,9 @@ class Cluster(TrackedResource):
208239
'reported_properties': {'key': 'properties.reportedProperties', 'type': 'ClusterReportedProperties'},
209240
'trial_days_remaining': {'key': 'properties.trialDaysRemaining', 'type': 'float'},
210241
'billing_model': {'key': 'properties.billingModel', 'type': 'str'},
242+
'registration_timestamp': {'key': 'properties.registrationTimestamp', 'type': 'iso-8601'},
243+
'last_sync_timestamp': {'key': 'properties.lastSyncTimestamp', 'type': 'iso-8601'},
244+
'last_billing_timestamp': {'key': 'properties.lastBillingTimestamp', 'type': 'iso-8601'},
211245
}
212246

213247
def __init__(self, **kwargs):
@@ -220,6 +254,9 @@ def __init__(self, **kwargs):
220254
self.reported_properties = kwargs.get('reported_properties', None)
221255
self.trial_days_remaining = None
222256
self.billing_model = None
257+
self.registration_timestamp = None
258+
self.last_sync_timestamp = None
259+
self.last_billing_timestamp = None
223260

224261

225262
class ClusterNode(Model):
@@ -446,43 +483,48 @@ def __init__(self, **kwargs):
446483
self.additional_info = None
447484

448485

449-
class Operation(Model):
450-
"""Operation details.
486+
class OperationDetail(Model):
487+
"""Operation detail payload.
451488
452-
Variables are only populated by the server, and will be ignored when
453-
sending a request.
454-
455-
:ivar name: Name of the operation.
456-
:vartype name: str
457-
:param display: Operation properties.
489+
:param name: Name of the operation
490+
:type name: str
491+
:param is_data_action: Indicates whether the operation is a data action
492+
:type is_data_action: bool
493+
:param display: Display of the operation
458494
:type display: ~azure.mgmt.azurestackhci.models.OperationDisplay
495+
:param origin: Origin of the operation
496+
:type origin: str
497+
:param properties: Properties of the operation
498+
:type properties: object
459499
"""
460500

461-
_validation = {
462-
'name': {'readonly': True},
463-
}
464-
465501
_attribute_map = {
466502
'name': {'key': 'name', 'type': 'str'},
503+
'is_data_action': {'key': 'isDataAction', 'type': 'bool'},
467504
'display': {'key': 'display', 'type': 'OperationDisplay'},
505+
'origin': {'key': 'origin', 'type': 'str'},
506+
'properties': {'key': 'properties', 'type': 'object'},
468507
}
469508

470509
def __init__(self, **kwargs):
471-
super(Operation, self).__init__(**kwargs)
472-
self.name = None
510+
super(OperationDetail, self).__init__(**kwargs)
511+
self.name = kwargs.get('name', None)
512+
self.is_data_action = kwargs.get('is_data_action', None)
473513
self.display = kwargs.get('display', None)
514+
self.origin = kwargs.get('origin', None)
515+
self.properties = kwargs.get('properties', None)
474516

475517

476518
class OperationDisplay(Model):
477-
"""Operation properties.
519+
"""Operation display payload.
478520
479-
:param provider: Resource provider name.
521+
:param provider: Resource provider of the operation
480522
:type provider: str
481-
:param resource: Resource type name.
523+
:param resource: Resource of the operation
482524
:type resource: str
483-
:param operation: Operation name.
525+
:param operation: Localized friendly name for the operation
484526
:type operation: str
485-
:param description: Operation description.
527+
:param description: Localized friendly description for the operation
486528
:type description: str
487529
"""
488530

@@ -501,33 +543,6 @@ def __init__(self, **kwargs):
501543
self.description = kwargs.get('description', None)
502544

503545

504-
class OperationList(Model):
505-
"""List of available operations.
506-
507-
Variables are only populated by the server, and will be ignored when
508-
sending a request.
509-
510-
:param value: List of operations.
511-
:type value: list[~azure.mgmt.azurestackhci.models.Operation]
512-
:ivar next_link: Link to the next set of results.
513-
:vartype next_link: str
514-
"""
515-
516-
_validation = {
517-
'next_link': {'readonly': True},
518-
}
519-
520-
_attribute_map = {
521-
'value': {'key': 'value', 'type': '[Operation]'},
522-
'next_link': {'key': 'nextLink', 'type': 'str'},
523-
}
524-
525-
def __init__(self, **kwargs):
526-
super(OperationList, self).__init__(**kwargs)
527-
self.value = kwargs.get('value', None)
528-
self.next_link = None
529-
530-
531546
class ProxyResource(Resource):
532547
"""The resource model definition for a ARM proxy resource. It will have
533548
everything other than required location and tags.

0 commit comments

Comments
 (0)