1313from 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+
1638class 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
225262class 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
476518class 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-
531546class 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