示例#1
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (ConfigServerProperties != null)
     {
         ConfigServerProperties.Validate();
     }
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the ClusterResourceProperties class.
 /// </summary>
 /// <param name="provisioningState">Provisioning state of the Service.
 /// Possible values include: 'Creating', 'Updating', 'Deleting',
 /// 'Deleted', 'Succeeded', 'Failed', 'Moving', 'Moved',
 /// 'MoveFailed'</param>
 /// <param name="configServerProperties">Config server git properties
 /// of the Service</param>
 /// <param name="trace">Trace properties of the Service</param>
 /// <param name="version">Version of the Service</param>
 /// <param name="serviceId">ServiceInstanceEntity GUID which uniquely
 /// identifies a created resource</param>
 public ClusterResourceProperties(string provisioningState = default(string), ConfigServerProperties configServerProperties = default(ConfigServerProperties), TraceProperties trace = default(TraceProperties), int?version = default(int?), string serviceId = default(string))
 {
     ProvisioningState      = provisioningState;
     ConfigServerProperties = configServerProperties;
     Trace     = trace;
     Version   = version;
     ServiceId = serviceId;
     CustomInit();
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the ConfigServerResource class.
 /// </summary>
 /// <param name="id">Fully qualified resource Id for the
 /// resource.</param>
 /// <param name="name">The name of the resource.</param>
 /// <param name="type">The type of the resource.</param>
 /// <param name="properties">Properties of the Config Server
 /// resource</param>
 public ConfigServerResource(string id = default(string), string name = default(string), string type = default(string), ConfigServerProperties properties = default(ConfigServerProperties))
     : base(id, name, type)
 {
     Properties = properties;
     CustomInit();
 }