Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AppInstance" /> class.
 /// </summary>
 /// <param name="appAccessToken">Specifies the token to access with the app..</param>
 /// <param name="appInstanceId">Specifies unique id across all instances of all apps..</param>
 /// <param name="appName">Specifies name of the app that is launched in this instance..</param>
 /// <param name="appUid">Specifies id of the app that is launched in this instance..</param>
 /// <param name="appVersion">Specifies the version of the app that is launched in this instance..</param>
 /// <param name="createdTimeUsecs">Specifies timestamp (in microseconds) when the app instance was first created..</param>
 /// <param name="creationUid">Specifies a unique identifier generated by the client to let the backend identify retries of the app launch request..</param>
 /// <param name="description">Specifies user configured description for the app instance..</param>
 /// <param name="devVersion">Specifies version of the app provided by the developer..</param>
 /// <param name="durationUsecs">Specifies duration (in microseconds) for which the app instance has run..</param>
 /// <param name="healthDetail">Specifies the reason the app instance is unhealthy. Only set if app instance is unhealthy..</param>
 /// <param name="healthStatus">Specifies the current health status of the app instance..</param>
 /// <param name="httpsUi">Specifies app ui http config. If set to true, the App&#39;s UI uses https. Otherwise it uses http..</param>
 /// <param name="nodeIp">Specifies the ip of the node which can be used to contact app instance external services..</param>
 /// <param name="nodePort">Specifies the node port on which the app instance services external requests..</param>
 /// <param name="settings">settings.</param>
 /// <param name="state">Specifies the current state of the app instance. Specifies operational status of an app instance. kInitializing - The app instance has been launched or resumed, but is not fully running yet. kRunning - The app instance is running. Check health_status for the actual health. kPausing - The app instance is being paused. kPaused - The app instance has been paused. kTerminating - The app instance is being terminated. kTerminated -  The app instance has been terminated. kFailed - The app instance has failed due to an unrecoverable error..</param>
 /// <param name="stateDetail">Specifies the failure reason when the app instance&#39;s state is kFailed..</param>
 /// <param name="userSshKey">userSshKey.</param>
 /// <param name="vmGroups">Specifies list of all VM groups for this application. Each VM group contains a list of VMs. Information needed for UI like the nodePort, the port type etc. is stored for each VM..</param>
 public AppInstance(string appAccessToken = default(string), long?appInstanceId = default(long?), string appName = default(string), long?appUid = default(long?), long?appVersion = default(long?), long?createdTimeUsecs = default(long?), string creationUid = default(string), string description = default(string), string devVersion = default(string), long?durationUsecs = default(long?), string healthDetail = default(string), int?healthStatus = default(int?), bool?httpsUi = default(bool?), string nodeIp = default(string), int?nodePort = default(int?), AppInstanceSettings settings = default(AppInstanceSettings), StateEnum?state = default(StateEnum?), string stateDetail = default(string), UserSshKey userSshKey = default(UserSshKey), List <VmGroup> vmGroups = default(List <VmGroup>))
 {
     this.AppAccessToken   = appAccessToken;
     this.AppInstanceId    = appInstanceId;
     this.AppName          = appName;
     this.AppUid           = appUid;
     this.AppVersion       = appVersion;
     this.CreatedTimeUsecs = createdTimeUsecs;
     this.CreationUid      = creationUid;
     this.Description      = description;
     this.DevVersion       = devVersion;
     this.DurationUsecs    = durationUsecs;
     this.HealthDetail     = healthDetail;
     this.HealthStatus     = healthStatus;
     this.HttpsUi          = httpsUi;
     this.NodeIp           = nodeIp;
     this.NodePort         = nodePort;
     this.State            = state;
     this.StateDetail      = stateDetail;
     this.VmGroups         = vmGroups;
     this.AppAccessToken   = appAccessToken;
     this.AppInstanceId    = appInstanceId;
     this.AppName          = appName;
     this.AppUid           = appUid;
     this.AppVersion       = appVersion;
     this.CreatedTimeUsecs = createdTimeUsecs;
     this.CreationUid      = creationUid;
     this.Description      = description;
     this.DevVersion       = devVersion;
     this.DurationUsecs    = durationUsecs;
     this.HealthDetail     = healthDetail;
     this.HealthStatus     = healthStatus;
     this.HttpsUi          = httpsUi;
     this.NodeIp           = nodeIp;
     this.NodePort         = nodePort;
     this.Settings         = settings;
     this.State            = state;
     this.StateDetail      = stateDetail;
     this.UserSshKey       = userSshKey;
     this.VmGroups         = vmGroups;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LaunchAppInstance" /> class.
 /// </summary>
 /// <param name="appUid">Specifies the app Id..</param>
 /// <param name="appVersion">Specifies the app version..</param>
 /// <param name="creationUid">Specifies unique identifier generated by the client to let the backend distinguish retries of the creation of the app instance..</param>
 /// <param name="description">Specifies user configured description for the app instance..</param>
 /// <param name="settings">settings.</param>
 public LaunchAppInstance(long?appUid = default(long?), long?appVersion = default(long?), string creationUid = default(string), string description = default(string), AppInstanceSettings settings = default(AppInstanceSettings))
 {
     this.AppUid      = appUid;
     this.AppVersion  = appVersion;
     this.CreationUid = creationUid;
     this.Description = description;
     this.AppUid      = appUid;
     this.AppVersion  = appVersion;
     this.CreationUid = creationUid;
     this.Description = description;
     this.Settings    = settings;
 }