UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,994 lines (1,682 loc) • 246 kB
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ const AbstractModel = require("../../common/abstract_model"); /** * CreateResource request structure. * @class */ class CreateResourceRequest extends AbstractModel { constructor(){ super(); /** * Environment ID * @type {string || null} */ this.EnvironmentId = null; /** * Resource type. Valid values: `CFS` (file system), `CLS` (log service), `TSE_SRE` (registry) * @type {string || null} */ this.ResourceType = null; /** * Resource ID * @type {string || null} */ this.ResourceId = null; /** * Source channel * @type {number || null} */ this.SourceChannel = null; /** * Source of the resource. Values: `existing` (choose an existing resource), `creating` (create a new resource) * @type {string || null} */ this.ResourceFrom = null; /** * Resource extra configuration * @type {string || null} */ this.ResourceConfig = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; this.ResourceType = 'ResourceType' in params ? params.ResourceType : null; this.ResourceId = 'ResourceId' in params ? params.ResourceId : null; this.SourceChannel = 'SourceChannel' in params ? params.SourceChannel : null; this.ResourceFrom = 'ResourceFrom' in params ? params.ResourceFrom : null; this.ResourceConfig = 'ResourceConfig' in params ? params.ResourceConfig : null; } } /** * DescribeConfigData response structure. * @class */ class DescribeConfigDataResponse extends AbstractModel { constructor(){ super(); /** * Configuration * @type {ConfigData || null} */ this.Result = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Result) { let obj = new ConfigData(); obj.deserialize(params.Result) this.Result = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Namespace query result pagination * @class */ class NamespacePage extends AbstractModel { constructor(){ super(); /** * Details of the returned records * @type {Array.<TemNamespaceInfo> || null} */ this.Records = null; /** * Total number of returned records * @type {number || null} */ this.Total = null; /** * Number of records per page * @type {number || null} */ this.Size = null; /** * Total number of pages * @type {number || null} */ this.Pages = null; /** * Current entry Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Current = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Records) { this.Records = new Array(); for (let z in params.Records) { let obj = new TemNamespaceInfo(); obj.deserialize(params.Records[z]); this.Records.push(obj); } } this.Total = 'Total' in params ? params.Total : null; this.Size = 'Size' in params ? params.Size : null; this.Pages = 'Pages' in params ? params.Pages : null; this.Current = 'Current' in params ? params.Current : null; } } /** * DescribeApplicationPods response structure. * @class */ class DescribeApplicationPodsResponse extends AbstractModel { constructor(){ super(); /** * Returned result * @type {DescribeRunPodPage || null} */ this.Result = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Result) { let obj = new DescribeRunPodPage(); obj.deserialize(params.Result) this.Result = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyIngress response structure. * @class */ class ModifyIngressResponse extends AbstractModel { constructor(){ super(); /** * Created successfully. Note: this field may return `null`, indicating that no valid values can be obtained. * @type {boolean || null} */ this.Result = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Result = 'Result' in params ? params.Result : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteApplicationService request structure. * @class */ class DeleteApplicationServiceRequest extends AbstractModel { constructor(){ super(); /** * Application ID * @type {string || null} */ this.ApplicationId = null; /** * Source channel. Please keep the default value. * @type {number || null} */ this.SourceChannel = null; /** * Environment ID * @type {string || null} */ this.EnvironmentId = null; /** * Service name * @type {string || null} */ this.ServiceName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ApplicationId = 'ApplicationId' in params ? params.ApplicationId : null; this.SourceChannel = 'SourceChannel' in params ? params.SourceChannel : null; this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; this.ServiceName = 'ServiceName' in params ? params.ServiceName : null; } } /** * RestartApplicationPod request structure. * @class */ class RestartApplicationPodRequest extends AbstractModel { constructor(){ super(); /** * Environment ID * @type {string || null} */ this.EnvironmentId = null; /** * Application ID * @type {string || null} */ this.ApplicationId = null; /** * Name * @type {string || null} */ this.PodName = null; /** * Number of items per page * @type {number || null} */ this.Limit = null; /** * Page offset * @type {number || null} */ this.Offset = null; /** * Pod status * @type {string || null} */ this.Status = null; /** * Source channel * @type {number || null} */ this.SourceChannel = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; this.ApplicationId = 'ApplicationId' in params ? params.ApplicationId : null; this.PodName = 'PodName' in params ? params.PodName : null; this.Limit = 'Limit' in params ? params.Limit : null; this.Offset = 'Offset' in params ? params.Offset : null; this.Status = 'Status' in params ? params.Status : null; this.SourceChannel = 'SourceChannel' in params ? params.SourceChannel : null; } } /** * DestroyLogConfig response structure. * @class */ class DestroyLogConfigResponse extends AbstractModel { constructor(){ super(); /** * Returned result. * @type {boolean || null} */ this.Result = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Result = 'Result' in params ? params.Result : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Filters for query * @class */ class QueryFilter extends AbstractModel { constructor(){ super(); /** * Name of the field to query * @type {string || null} */ this.Name = null; /** * Value of the field to query * @type {Array.<string> || null} */ this.Value = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Name = 'Name' in params ? params.Name : null; this.Value = 'Value' in params ? params.Value : null; } } /** * Storage volume configuration * @class */ class StorageConf extends AbstractModel { constructor(){ super(); /** * Storage volume name * @type {string || null} */ this.StorageVolName = null; /** * Storage volume path * @type {string || null} */ this.StorageVolPath = null; /** * Storage volume IP Note: this field may return `null`, indicating that no valid values can be obtained. * @type {string || null} */ this.StorageVolIp = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.StorageVolName = 'StorageVolName' in params ? params.StorageVolName : null; this.StorageVolPath = 'StorageVolPath' in params ? params.StorageVolPath : null; this.StorageVolIp = 'StorageVolIp' in params ? params.StorageVolIp : null; } } /** * DescribeApplicationPods request structure. * @class */ class DescribeApplicationPodsRequest extends AbstractModel { constructor(){ super(); /** * Environment ID * @type {string || null} */ this.EnvironmentId = null; /** * Application ID * @type {string || null} */ this.ApplicationId = null; /** * Number of items per page. Default value: 20 * @type {number || null} */ this.Limit = null; /** * Page number. Default value: 0 * @type {number || null} */ this.Offset = null; /** * Pod status - Running - Pending - Error * @type {string || null} */ this.Status = null; /** * Pod name * @type {string || null} */ this.PodName = null; /** * Source channel * @type {number || null} */ this.SourceChannel = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; this.ApplicationId = 'ApplicationId' in params ? params.ApplicationId : null; this.Limit = 'Limit' in params ? params.Limit : null; this.Offset = 'Offset' in params ? params.Offset : null; this.Status = 'Status' in params ? params.Status : null; this.PodName = 'PodName' in params ? params.PodName : null; this.SourceChannel = 'SourceChannel' in params ? params.SourceChannel : null; } } /** * Ingress TLS configuration * @class */ class IngressTls extends AbstractModel { constructor(){ super(); /** * Host array. An empty array indicates the default certificate for all domain names. * @type {Array.<string> || null} */ this.Hosts = null; /** * Secret name. If a certificate is used, this field is left empty. * @type {string || null} */ this.SecretName = null; /** * SSL Certificate Id * @type {string || null} */ this.CertificateId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Hosts = 'Hosts' in params ? params.Hosts : null; this.SecretName = 'SecretName' in params ? params.SecretName : null; this.CertificateId = 'CertificateId' in params ? params.CertificateId : null; } } /** * Log output configuration * @class */ class LogOutputConf extends AbstractModel { constructor(){ super(); /** * Log consumer type * @type {string || null} */ this.OutputType = null; /** * CLS logset * @type {string || null} */ this.ClsLogsetName = null; /** * CLS log topic * @type {string || null} */ this.ClsLogTopicId = null; /** * CLS logset ID * @type {string || null} */ this.ClsLogsetId = null; /** * CLS log topic name * @type {string || null} */ this.ClsLogTopicName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.OutputType = 'OutputType' in params ? params.OutputType : null; this.ClsLogsetName = 'ClsLogsetName' in params ? params.ClsLogsetName : null; this.ClsLogTopicId = 'ClsLogTopicId' in params ? params.ClsLogTopicId : null; this.ClsLogsetId = 'ClsLogsetId' in params ? params.ClsLogsetId : null; this.ClsLogTopicName = 'ClsLogTopicName' in params ? params.ClsLogTopicName : null; } } /** * DeleteIngress response structure. * @class */ class DeleteIngressResponse extends AbstractModel { constructor(){ super(); /** * Whether deletion is successful * @type {boolean || null} */ this.Result = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Result = 'Result' in params ? params.Result : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteApplication response structure. * @class */ class DeleteApplicationResponse extends AbstractModel { constructor(){ super(); /** * Returned result. * @type {boolean || null} */ this.Result = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Result = 'Result' in params ? params.Result : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyApplicationAutoscaler response structure. * @class */ class ModifyApplicationAutoscalerResponse extends AbstractModel { constructor(){ super(); /** * Whether the action is successful Note: This field may return `null`, indicating that no valid values can be obtained. * @type {boolean || null} */ this.Result = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Result = 'Result' in params ? params.Result : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * RollingUpdateApplicationByVersion request structure. * @class */ class RollingUpdateApplicationByVersionRequest extends AbstractModel { constructor(){ super(); /** * Application ID * @type {string || null} */ this.ApplicationId = null; /** * Environment ID * @type {string || null} */ this.EnvironmentId = null; /** * Update version. For image-based deployment, it is the value. For deployment with JAR/WAR files, it is `Version`. * @type {string || null} */ this.DeployVersion = null; /** * JAR/WAR package name. It’s only required for deployment with JAR/WAR files. * @type {string || null} */ this.PackageName = null; /** * Request source. Options: `IntelliJ`, `Coding` * @type {string || null} */ this.From = null; /** * The deployment policy. Values: `AUTO` (automatically deploy), `BETA` (deploy a small batch first to test the result, and deploy the rest automatically) and `MANUAL` (manually deploy) * @type {string || null} */ this.DeployStrategyType = null; /** * Total number of batches * @type {number || null} */ this.TotalBatchCount = null; /** * Interval between the batches * @type {number || null} */ this.BatchInterval = null; /** * Number of instances in a beta batch * @type {number || null} */ this.BetaBatchNum = null; /** * Minimum number of available instances during the deployment * @type {number || null} */ this.MinAvailable = null; /** * Whether to enable force release * @type {boolean || null} */ this.Force = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ApplicationId = 'ApplicationId' in params ? params.ApplicationId : null; this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; this.DeployVersion = 'DeployVersion' in params ? params.DeployVersion : null; this.PackageName = 'PackageName' in params ? params.PackageName : null; this.From = 'From' in params ? params.From : null; this.DeployStrategyType = 'DeployStrategyType' in params ? params.DeployStrategyType : null; this.TotalBatchCount = 'TotalBatchCount' in params ? params.TotalBatchCount : null; this.BatchInterval = 'BatchInterval' in params ? params.BatchInterval : null; this.BetaBatchNum = 'BetaBatchNum' in params ? params.BetaBatchNum : null; this.MinAvailable = 'MinAvailable' in params ? params.MinAvailable : null; this.Force = 'Force' in params ? params.Force : null; } } /** * CreateCosToken response structure. * @class */ class CreateCosTokenResponse extends AbstractModel { constructor(){ super(); /** * `CosToken` object in case of success and `null` in case of failure Note: this field may return `null`, indicating that no valid values can be obtained. * @type {CosToken || null} */ this.Result = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Result) { let obj = new CosToken(); obj.deserialize(params.Result) this.Result = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyLogConfig response structure. * @class */ class ModifyLogConfigResponse extends AbstractModel { constructor(){ super(); /** * Result of the modification * @type {boolean || null} */ this.Result = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Result = 'Result' in params ? params.Result : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * RollingUpdateApplicationByVersion response structure. * @class */ class RollingUpdateApplicationByVersionResponse extends AbstractModel { constructor(){ super(); /** * Version ID * @type {string || null} */ this.Result = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Result = 'Result' in params ? params.Result : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * StopApplication request structure. * @class */ class StopApplicationRequest extends AbstractModel { constructor(){ super(); /** * Application ID * @type {string || null} */ this.ApplicationId = null; /** * Retain as default * @type {number || null} */ this.SourceChannel = null; /** * Environment ID * @type {string || null} */ this.EnvironmentId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ApplicationId = 'ApplicationId' in params ? params.ApplicationId : null; this.SourceChannel = 'SourceChannel' in params ? params.SourceChannel : null; this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; } } /** * ModifyApplicationInfo request structure. * @class */ class ModifyApplicationInfoRequest extends AbstractModel { constructor(){ super(); /** * Application ID * @type {string || null} */ this.ApplicationId = null; /** * Description * @type {string || null} */ this.Description = null; /** * Source channel * @type {number || null} */ this.SourceChannel = null; /** * (Disused) Whether to enable the call chain. * @type {number || null} */ this.EnableTracing = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ApplicationId = 'ApplicationId' in params ? params.ApplicationId : null; this.Description = 'Description' in params ? params.Description : null; this.SourceChannel = 'SourceChannel' in params ? params.SourceChannel : null; this.EnableTracing = 'EnableTracing' in params ? params.EnableTracing : null; } } /** * DestroyEnvironment request structure. * @class */ class DestroyEnvironmentRequest extends AbstractModel { constructor(){ super(); /** * Namespace ID. * @type {string || null} */ this.EnvironmentId = null; /** * Namespace * @type {number || null} */ this.SourceChannel = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; this.SourceChannel = 'SourceChannel' in params ? params.SourceChannel : null; } } /** * CreateEnvironment response structure. * @class */ class CreateEnvironmentResponse extends AbstractModel { constructor(){ super(); /** * Environment ID in case of success and `null` in case of failure Note: this field may return `null`, indicating that no valid values can be obtained. * @type {string || null} */ this.Result = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Result = 'Result' in params ? params.Result : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeEnvironmentStatus request structure. * @class */ class DescribeEnvironmentStatusRequest extends AbstractModel { constructor(){ super(); /** * ID of the environment * @type {Array.<string> || null} */ this.EnvironmentIds = null; /** * Source channel * @type {number || null} */ this.SourceChannel = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EnvironmentIds = 'EnvironmentIds' in params ? params.EnvironmentIds : null; this.SourceChannel = 'SourceChannel' in params ? params.SourceChannel : null; } } /** * Configuration of batch release policies * @class */ class DeployStrategyConf extends AbstractModel { constructor(){ super(); /** * Total batches * @type {number || null} */ this.TotalBatchCount = null; /** * Number of pods for the beta batch * @type {number || null} */ this.BetaBatchNum = null; /** * Batch deployment policy. `0`: automatically; `1`: manually; `2`: beta batch (manual), `3`: initial release * @type {number || null} */ this.DeployStrategyType = null; /** * Interval between batches * @type {number || null} */ this.BatchInterval = null; /** * The minimum number of available pods * @type {number || null} */ this.MinAvailable = null; /** * Whether to enable force release * @type {boolean || null} */ this.Force = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TotalBatchCount = 'TotalBatchCount' in params ? params.TotalBatchCount : null; this.BetaBatchNum = 'BetaBatchNum' in params ? params.BetaBatchNum : null; this.DeployStrategyType = 'DeployStrategyType' in params ? params.DeployStrategyType : null; this.BatchInterval = 'BatchInterval' in params ? params.BatchInterval : null; this.MinAvailable = 'MinAvailable' in params ? params.MinAvailable : null; this.Force = 'Force' in params ? params.Force : null; } } /** * DescribeApplications response structure. * @class */ class DescribeApplicationsResponse extends AbstractModel { constructor(){ super(); /** * Returned result. * @type {ServicePage || null} */ this.Result = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Result) { let obj = new ServicePage(); obj.deserialize(params.Result) this.Result = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Ingress configuration * @class */ class IngressInfo extends AbstractModel { constructor(){ super(); /** * Environment ID Note: this field may return `null`, indicating that no valid values can be obtained. * @type {string || null} */ this.EnvironmentId = null; /** * Environment namespace * @type {string || null} */ this.ClusterNamespace = null; /** * ip version * @type {string || null} */ this.AddressIPVersion = null; /** * ingress name * @type {string || null} */ this.IngressName = null; /** * Rules configuration * @type {Array.<IngressRule> || null} */ this.Rules = null; /** * clb ID Note: this field may return `null`, indicating that no valid values can be obtained. * @type {string || null} */ this.ClbId = null; /** * TLS configuration Note: this field may return `null`, indicating that no valid values can be obtained. * @type {Array.<IngressTls> || null} */ this.Tls = null; /** * Environment cluster ID Note: this field may return `null`, indicating that no valid values can be obtained. * @type {string || null} */ this.ClusterId = null; /** * clb ip Note: this field may return `null`, indicating that no valid values can be obtained. * @type {string || null} */ this.Vip = null; /** * Creation time Note: this field may return `null`, indicating that no valid values can be obtained. * @type {string || null} */ this.CreateTime = null; /** * Whether to listen on both the HTTP 80 port and HTTPS 443 port. The default value is `false`. The optional value `true` means listening on both the HTTP 80 port and HTTPS 443 port. * @type {boolean || null} */ this.Mixed = null; /** * Redirection mode. Values: - `AUTO` (automatically redirect HTTP to HTTPS) - `NONE` (no redirection) Note: This field may return `null`, indicating that no valid value can be obtained. * @type {string || null} */ this.RewriteType = null; /** * CLB domain name Note: This field may return `null`, indicating that no valid value can be obtained. * @type {string || null} */ this.Domain = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; this.ClusterNamespace = 'ClusterNamespace' in params ? params.ClusterNamespace : null; this.AddressIPVersion = 'AddressIPVersion' in params ? params.AddressIPVersion : null; this.IngressName = 'IngressName' in params ? params.IngressName : null; if (params.Rules) { this.Rules = new Array(); for (let z in params.Rules) { let obj = new IngressRule(); obj.deserialize(params.Rules[z]); this.Rules.push(obj); } } this.ClbId = 'ClbId' in params ? params.ClbId : null; if (params.Tls) { this.Tls = new Array(); for (let z in params.Tls) { let obj = new IngressTls(); obj.deserialize(params.Tls[z]); this.Tls.push(obj); } } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.Vip = 'Vip' in params ? params.Vip : null; this.CreateTime = 'CreateTime' in params ? params.CreateTime : null; this.Mixed = 'Mixed' in params ? params.Mixed : null; this.RewriteType = 'RewriteType' in params ? params.RewriteType : null; this.Domain = 'Domain' in params ? params.Domain : null; } } /** * DescribeEnvironments request structure. * @class */ class DescribeEnvironmentsRequest extends AbstractModel { constructor(){ super(); /** * Pagination limit * @type {number || null} */ this.Limit = null; /** * Page offset * @type {number || null} */ this.Offset = null; /** * Source * @type {number || null} */ this.SourceChannel = null; /** * Filters for query * @type {Array.<QueryFilter> || null} */ this.Filters = null; /** * Sorting field * @type {SortType || null} */ this.SortInfo = null; /** * Environment ID * @type {string || null} */ this.EnvironmentId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Limit = 'Limit' in params ? params.Limit : null; this.Offset = 'Offset' in params ? params.Offset : null; this.SourceChannel = 'SourceChannel' in params ? params.SourceChannel : null; if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new QueryFilter(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } if (params.SortInfo) { let obj = new SortType(); obj.deserialize(params.SortInfo) this.SortInfo = obj; } this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; } } /** * ModifyEnvironment request structure. * @class */ class ModifyEnvironmentRequest extends AbstractModel { constructor(){ super(); /** * Environment ID * @type {string || null} */ this.EnvironmentId = null; /** * Environment name * @type {string || null} */ this.EnvironmentName = null; /** * Environment description * @type {string || null} */ this.Description = null; /** * VPC name * @type {string || null} */ this.Vpc = null; /** * Subnets * @type {Array.<string> || null} */ this.SubnetIds = null; /** * Source channel * @type {number || null} */ this.SourceChannel = null; /** * Environment type. Values: `test`, `pre`, `prod` * @type {string || null} */ this.EnvType = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; this.EnvironmentName = 'EnvironmentName' in params ? params.EnvironmentName : null; this.Description = 'Description' in params ? params.Description : null; this.Vpc = 'Vpc' in params ? params.Vpc : null; this.SubnetIds = 'SubnetIds' in params ? params.SubnetIds : null; this.SourceChannel = 'SourceChannel' in params ? params.SourceChannel : null; this.EnvType = 'EnvType' in params ? params.EnvType : null; } } /** * List of application versions * @class */ class ServiceVersionBrief extends AbstractModel { constructor(){ super(); /** * Version name * @type {string || null} */ this.VersionName = null; /** * Status of version * @type {string || null} */ this.Status = null; /** * (Disused) Whether to enable elastic scaling * @type {number || null} */ this.EnableEs = null; /** * Number of current instances * @type {number || null} */ this.CurrentInstances = null; /** * Version ID * @type {string || null} */ this.VersionId = null; /** * (Disused) Log output configuration Note: This field may return null, indicating that no valid values can be obtained. * @type {LogOutputConf || null} */ this.LogOutputConf = null; /** * Expected number of instances Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.ExpectedInstances = null; /** * Deployment mode Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.DeployMode = null; /** * Task ID Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.BuildTaskId = null; /** * Environment ID Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.EnvironmentId = null; /** * Environment name Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.EnvironmentName = null; /** * Application ID. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ApplicationId = null; /** * Application name Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ApplicationName = null; /** * Whether the application is being deployed Note: This field may return null, indicating that no valid values can be obtained. * @type {boolean || null} */ this.UnderDeploying = null; /** * Status of batch deployment Note: This field may return `null`, indicating that no valid value was found. * @type {string || null} */ this.BatchDeployStatus = null; /** * Availability zones Note: This field may return `null`, indicating that no valid value was found. * @type {Array.<string> || null} */ this.Zones = null; /** * Node information Note: This field may return `null`, indicating that no valid value was found. * @type {Array.<NodeInfo> || null} */ this.NodeInfos = null; /** * Pod information Note: This field may return `null`, indicating that no valid value was found. * @type {DescribeRunPodPage || null} */ this.PodList = null; /** * Workload information Note: This field may return `null`, indicating that no valid value was found. * @type {WorkloadInfo || null} */ this.WorkloadInfo = null; /** * Creation time Note: This field may return `null`, indicating that no valid value was found. * @type {string || null} */ this.CreateDate = null; /** * Region ID Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.RegionId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.VersionName = 'VersionName' in params ? params.VersionName : null; this.Status = 'Status' in params ? params.Status : null; this.EnableEs = 'EnableEs' in params ? params.EnableEs : null; this.CurrentInstances = 'CurrentInstances' in params ? params.CurrentInstances : null; this.VersionId = 'VersionId' in params ? params.VersionId : null; if (params.LogOutputConf) { let obj = new LogOutputConf(); obj.deserialize(params.LogOutputConf) this.LogOutputConf = obj; } this.ExpectedInstances = 'ExpectedInstances' in params ? params.ExpectedInstances : null; this.DeployMode = 'DeployMode' in params ? params.DeployMode : null; this.BuildTaskId = 'BuildTaskId' in params ? params.BuildTaskId : null; this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; this.EnvironmentName = 'EnvironmentName' in params ? params.EnvironmentName : null; this.ApplicationId = 'ApplicationId' in params ? params.ApplicationId : null; this.ApplicationName = 'ApplicationName' in params ? params.ApplicationName : null; this.UnderDeploying = 'UnderDeploying' in params ? params.UnderDeploying : null; this.BatchDeployStatus = 'BatchDeployStatus' in params ? params.BatchDeployStatus : null; this.Zones = 'Zones' in params ? params.Zones : null; if (params.NodeInfos) { this.NodeInfos = new Array(); for (let z in params.NodeInfos) { let obj = new NodeInfo(); obj.deserialize(params.NodeInfos[z]); this.NodeInfos.push(obj); } } if (params.PodList) { let obj = new DescribeRunPodPage(); obj.deserialize(params.PodList) this.PodList = obj; } if (params.WorkloadInfo) { let obj = new WorkloadInfo(); obj.deserialize(params.WorkloadInfo) this.WorkloadInfo = obj; } this.CreateDate = 'CreateDate' in params ? params.CreateDate : null; this.RegionId = 'RegionId' in params ? params.RegionId : null; } } /** * Configuration of log exporting rule * @class */ class LogConfigExtractRule extends AbstractModel { constructor(){ super(); /** * First line regex Note: This field may return `null`, indicating that no valid value was found. * @type {string || null} */ this.BeginningRegex = null; /** * Withdrawl result Note: This field may return `null`, indicating that no valid value was found. * @type {Array.<string> || null} */ this.Keys = null; /** * Filter keys Note: This field may return `null`, indicating that no valid value was found. * @type {Array.<string> || null} */ this.FilterKeys = null; /** * Filter values Note: This field may return `null`, indicating that no valid value was found. * @type {Array.<string> || null} */ this.FilterRegex = null; /** * Log regex Note: This field may return `null`, indicating that no valid value was found. * @type {string || null} */ this.LogRegex = null; /** * Time field Note: This field may return `null`, indicating that no valid value was found. * @type {string || null} */ this.TimeKey = null; /** * Time Format Note: This field may return `null`, indicating that no valid value was found. * @type {string || null} */ this.TimeFormat = null; /** * - Enable the upload of the log that failed to parse Note: This field may return `null`, indicating that no valid value was found. * @type {string || null} */ this.UnMatchUpload = null; /** * Key of log failed to be parsed Note: This field may return `null`, indicating that no valid value was found. * @type {string || null} */ this.UnMatchedKey = null; /** * tracking Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Backtracking = null; /** * Separator Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Delimiter = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.BeginningRegex = 'BeginningRegex' in params ? params.BeginningRegex : null; this.Keys = 'Keys' in params ? params.Keys : null; this.FilterKeys = 'FilterKeys' in params ? params.FilterKeys : null; this.FilterRegex = 'FilterRegex' in params ? params.FilterRegex : null; this.LogRegex = 'LogRegex' in params ? params.LogRegex : null; this.TimeKey = 'TimeKey' in params ? params.TimeKey : null; this.TimeFormat = 'TimeFormat' in params ? params.TimeFormat : null; this.UnMatchUpload = 'UnMatchUpload' in params ? params.UnMatchUpload : null; this.UnMatchedKey = 'UnMatchedKey' in params ? params.UnMatchedKey : null; this.Backtracking = 'Backtracking' in params ? params.Backtracking : null; this.Delimiter = 'Delimiter' in params ? params.Delimiter : null; } } /** * CreateEnvironment request structure. * @class */ class CreateEnvironmentRequest extends AbstractModel { constructor(){ super(); /** * Environment name * @type {string || null} */ this.EnvironmentName = null; /** * Environment description * @type {string || null} */ this.Description = null; /** * VPC name * @type {string || null} */ this.Vpc = null; /** * List of subnets * @type {Array.<string> || null} */ this.SubnetIds = null; /** * Kubernetes version * @type {string || null} */ this.K8sVersion = null; /** * Source channel * @type {number || null} */ this.SourceChannel = null; /** * Whether to enable the TSW service * @type {boolean || null} */ this.EnableTswTraceService = null; /** * Tag * @type {Array.<Tag> || null} */ this.Tags = null; /** * Environment type. Values: `test`, `pre`, `prod` * @type {string || null} */ this.EnvType = null; /** * The region to create the environment * @type {string || null} */ this.CreateRegion = null; /** * Whether to create a VPC * @type {boolean || null} */ this.SetupVpc = null; /** * Whether to create a TMP instance * @type {boolean || null} */ this.SetupPrometheus = null; /** * TMP instance ID * @type {string || null} */ this.PrometheusId = null; /** * APM ID * @type {string || null} */ this.ApmId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EnvironmentName = 'EnvironmentName' in params ? params.EnvironmentName : null; this.Description = 'Description' in params ? params.Description : null; this.Vpc = 'Vpc' in params ? params.Vpc : null; this.SubnetIds = 'SubnetIds' in params ? params.SubnetIds : null; this.K8sVersion = 'K8sVersion' in params ? params.K8sVersion : null; this.SourceChannel = 'SourceChannel' in params ? params.SourceChannel : null; this.EnableTswTraceService = 'EnableTswTraceService' in params ? params.EnableTswTraceService : null; if (params.Tags) { this.Tags = new Array(); for (let z in params.Tags) { let obj = new Tag();