예제 #1
0
 /// <summary>
 /// Initializes a new instance of the Cluster class.
 /// </summary>
 /// <param name="location">The geo-location where the resource
 /// lives</param>
 /// <param name="aadClientId">App id of cluster AAD identity.</param>
 /// <param name="aadTenantId">Tenant id of cluster AAD
 /// identity.</param>
 /// <param name="id">Fully qualified resource Id for the resource. Ex -
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource. Ex-
 /// Microsoft.Compute/virtualMachines or
 /// Microsoft.Storage/storageAccounts.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="provisioningState">Provisioning state. Possible values
 /// include: 'Succeeded', 'Failed', 'Canceled', 'Accepted',
 /// 'Provisioning'</param>
 /// <param name="status">Status of the cluster agent. Possible values
 /// include: 'NeverConnected', 'ConnectedRecently',
 /// 'NotConnectedRecently', 'Expired', 'Error'</param>
 /// <param name="cloudId">Unique, immutable resource id.</param>
 /// <param name="reportedProperties">Properties reported by cluster
 /// agent.</param>
 /// <param name="trialDaysRemaining">Number of days remaining in the
 /// trial period.</param>
 /// <param name="billingModel">Type of billing applied to the
 /// resource.</param>
 public Cluster(string location, string aadClientId, string aadTenantId, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string provisioningState = default(string), string status = default(string), string cloudId = default(string), ClusterReportedProperties reportedProperties = default(ClusterReportedProperties), double?trialDaysRemaining = default(double?), string billingModel = default(string))
     : base(location, id, name, type, tags)
 {
     ProvisioningState  = provisioningState;
     Status             = status;
     CloudId            = cloudId;
     AadClientId        = aadClientId;
     AadTenantId        = aadTenantId;
     ReportedProperties = reportedProperties;
     TrialDaysRemaining = trialDaysRemaining;
     BillingModel       = billingModel;
     CustomInit();
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the Cluster class.
 /// </summary>
 /// <param name="location">The geo-location where the resource
 /// lives</param>
 /// <param name="aadClientId">App id of cluster AAD identity.</param>
 /// <param name="aadTenantId">Tenant id of cluster AAD
 /// identity.</param>
 /// <param name="id">Fully qualified resource ID for the resource. Ex -
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource. E.g.
 /// "Microsoft.Compute/virtualMachines" or
 /// "Microsoft.Storage/storageAccounts"</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="createdBy">The identity that created the
 /// resource.</param>
 /// <param name="createdByType">The type of identity that created the
 /// resource. Possible values include: 'User', 'Application',
 /// 'ManagedIdentity', 'Key'</param>
 /// <param name="createdAt">The timestamp of resource creation
 /// (UTC).</param>
 /// <param name="lastModifiedBy">The identity that last modified the
 /// resource.</param>
 /// <param name="lastModifiedByType">The type of identity that last
 /// modified the resource. Possible values include: 'User',
 /// 'Application', 'ManagedIdentity', 'Key'</param>
 /// <param name="lastModifiedAt">The timestamp of resource last
 /// modification (UTC)</param>
 /// <param name="provisioningState">Provisioning state. Possible values
 /// include: 'Succeeded', 'Failed', 'Canceled', 'Accepted',
 /// 'Provisioning'</param>
 /// <param name="status">Status of the cluster agent. Possible values
 /// include: 'NotYetRegistered', 'ConnectedRecently',
 /// 'NotConnectedRecently', 'Disconnected', 'Error'</param>
 /// <param name="cloudId">Unique, immutable resource id.</param>
 /// <param name="cloudManagementEndpoint">Endpoint configured for
 /// management from the Azure portal</param>
 /// <param name="reportedProperties">Properties reported by cluster
 /// agent.</param>
 /// <param name="trialDaysRemaining">Number of days remaining in the
 /// trial period.</param>
 /// <param name="billingModel">Type of billing applied to the
 /// resource.</param>
 /// <param name="registrationTimestamp">First cluster sync
 /// timestamp.</param>
 /// <param name="lastSyncTimestamp">Most recent cluster sync
 /// timestamp.</param>
 /// <param name="lastBillingTimestamp">Most recent billing meter
 /// timestamp.</param>
 public Cluster(string location, string aadClientId, string aadTenantId, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string createdBy = default(string), string createdByType = default(string), System.DateTime?createdAt = default(System.DateTime?), string lastModifiedBy = default(string), string lastModifiedByType = default(string), System.DateTime?lastModifiedAt = default(System.DateTime?), string provisioningState = default(string), string status = default(string), string cloudId = default(string), string cloudManagementEndpoint = default(string), ClusterReportedProperties reportedProperties = default(ClusterReportedProperties), double?trialDaysRemaining = default(double?), string billingModel = default(string), System.DateTime?registrationTimestamp = default(System.DateTime?), System.DateTime?lastSyncTimestamp = default(System.DateTime?), System.DateTime?lastBillingTimestamp = default(System.DateTime?))
     : base(location, id, name, type, tags)
 {
     CreatedBy               = createdBy;
     CreatedByType           = createdByType;
     CreatedAt               = createdAt;
     LastModifiedBy          = lastModifiedBy;
     LastModifiedByType      = lastModifiedByType;
     LastModifiedAt          = lastModifiedAt;
     ProvisioningState       = provisioningState;
     Status                  = status;
     CloudId                 = cloudId;
     CloudManagementEndpoint = cloudManagementEndpoint;
     AadClientId             = aadClientId;
     AadTenantId             = aadTenantId;
     ReportedProperties      = reportedProperties;
     TrialDaysRemaining      = trialDaysRemaining;
     BillingModel            = billingModel;
     RegistrationTimestamp   = registrationTimestamp;
     LastSyncTimestamp       = lastSyncTimestamp;
     LastBillingTimestamp    = lastBillingTimestamp;
     CustomInit();
 }