UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
2,054 lines (1,720 loc) • 219 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"); /** * DeleteInstanceCustomizedDomain response structure. * @class */ class DeleteInstanceCustomizedDomainResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ManageExternalEndpoint request structure. * @class */ class ManageExternalEndpointRequest extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.RegistryId = null; /** * Operation. Valid values: Create, Delete. * @type {string || null} */ this.Operation = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RegistryId = 'RegistryId' in params ? params.RegistryId : null; this.Operation = 'Operation' in params ? params.Operation : null; } } /** * Task details * @class */ class TaskDetail extends AbstractModel { constructor(){ super(); /** * Task * @type {string || null} */ this.TaskName = null; /** * Task UUID * @type {string || null} */ this.TaskUUID = null; /** * Task status * @type {string || null} */ this.TaskStatus = null; /** * Task details Note: this field may return `null`, indicating that no valid values can be obtained. * @type {string || null} */ this.TaskMessage = null; /** * Start time of the task * @type {string || null} */ this.CreatedTime = null; /** * End time of the task Note: this field may return `null`, indicating that no valid values can be obtained. * @type {string || null} */ this.FinishedTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TaskName = 'TaskName' in params ? params.TaskName : null; this.TaskUUID = 'TaskUUID' in params ? params.TaskUUID : null; this.TaskStatus = 'TaskStatus' in params ? params.TaskStatus : null; this.TaskMessage = 'TaskMessage' in params ? params.TaskMessage : null; this.CreatedTime = 'CreatedTime' in params ? params.CreatedTime : null; this.FinishedTime = 'FinishedTime' in params ? params.FinishedTime : null; } } /** * DescribeReplicationInstances response structure. * @class */ class DescribeReplicationInstancesResponse extends AbstractModel { constructor(){ super(); /** * Total number of instances * @type {number || null} */ this.TotalCount = null; /** * Replication instance list Note: this field may return `null`, indicating that no valid values can be obtained. * @type {Array.<ReplicationRegistry> || null} */ this.ReplicationRegistries = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; if (params.ReplicationRegistries) { this.ReplicationRegistries = new Array(); for (let z in params.ReplicationRegistries) { let obj = new ReplicationRegistry(); obj.deserialize(params.ReplicationRegistries[z]); this.ReplicationRegistries.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeReplicationInstanceCreateTasks response structure. * @class */ class DescribeReplicationInstanceCreateTasksResponse extends AbstractModel { constructor(){ super(); /** * Task details * @type {Array.<TaskDetail> || null} */ this.TaskDetail = null; /** * Overall task status * @type {string || null} */ this.Status = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.TaskDetail) { this.TaskDetail = new Array(); for (let z in params.TaskDetail) { let obj = new TaskDetail(); obj.deserialize(params.TaskDetail[z]); this.TaskDetail.push(obj); } } this.Status = 'Status' in params ? params.Status : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Trigger log * @class */ class WebhookTriggerLog extends AbstractModel { constructor(){ super(); /** * Log ID * @type {number || null} */ this.Id = null; /** * Trigger ID * @type {number || null} */ this.TriggerId = null; /** * Event type * @type {string || null} */ this.EventType = null; /** * Notification type * @type {string || null} */ this.NotifyType = null; /** * Details * @type {string || null} */ this.Detail = null; /** * Creation time * @type {string || null} */ this.CreationTime = null; /** * Update time * @type {string || null} */ this.UpdateTime = null; /** * Status * @type {string || null} */ this.Status = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Id = 'Id' in params ? params.Id : null; this.TriggerId = 'TriggerId' in params ? params.TriggerId : null; this.EventType = 'EventType' in params ? params.EventType : null; this.NotifyType = 'NotifyType' in params ? params.NotifyType : null; this.Detail = 'Detail' in params ? params.Detail : null; this.CreationTime = 'CreationTime' in params ? params.CreationTime : null; this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null; this.Status = 'Status' in params ? params.Status : null; } } /** * Private network access information * @class */ class AccessVpc extends AbstractModel { constructor(){ super(); /** * VPC ID * @type {string || null} */ this.VpcId = null; /** * Subnet ID * @type {string || null} */ this.SubnetId = null; /** * Private network access status * @type {string || null} */ this.Status = null; /** * Private network access IP * @type {string || null} */ this.AccessIp = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.VpcId = 'VpcId' in params ? params.VpcId : null; this.SubnetId = 'SubnetId' in params ? params.SubnetId : null; this.Status = 'Status' in params ? params.Status : null; this.AccessIp = 'AccessIp' in params ? params.AccessIp : null; } } /** * DeleteRepositoryTags response structure. * @class */ class DeleteRepositoryTagsResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyTagRetentionRule request structure. * @class */ class ModifyTagRetentionRuleRequest extends AbstractModel { constructor(){ super(); /** * Primary instance ID * @type {string || null} */ this.RegistryId = null; /** * ID of the original namespace * @type {number || null} */ this.NamespaceId = null; /** * Retention policy * @type {RetentionRule || null} */ this.RetentionRule = null; /** * Original execution cycle * @type {string || null} */ this.CronSetting = null; /** * Rule ID * @type {number || null} */ this.RetentionId = null; /** * Whether to disable the rule * @type {boolean || null} */ this.Disabled = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RegistryId = 'RegistryId' in params ? params.RegistryId : null; this.NamespaceId = 'NamespaceId' in params ? params.NamespaceId : null; if (params.RetentionRule) { let obj = new RetentionRule(); obj.deserialize(params.RetentionRule) this.RetentionRule = obj; } this.CronSetting = 'CronSetting' in params ? params.CronSetting : null; this.RetentionId = 'RetentionId' in params ? params.RetentionId : null; this.Disabled = 'Disabled' in params ? params.Disabled : null; } } /** * ModifyRepository response structure. * @class */ class ModifyRepositoryResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeNamespaces response structure. * @class */ class DescribeNamespacesResponse extends AbstractModel { constructor(){ super(); /** * List of namespaces * @type {Array.<TcrNamespaceInfo> || null} */ this.NamespaceList = null; /** * Total number * @type {number || null} */ this.TotalCount = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.NamespaceList) { this.NamespaceList = new Array(); for (let z in params.NamespaceList) { let obj = new TcrNamespaceInfo(); obj.deserialize(params.NamespaceList[z]); this.NamespaceList.push(obj); } } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DownloadHelmChart request structure. * @class */ class DownloadHelmChartRequest extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.RegistryId = null; /** * Namespace name * @type {string || null} */ this.NamespaceName = null; /** * Helm chart name * @type {string || null} */ this.ChartName = null; /** * Helm chart version * @type {string || null} */ this.ChartVersion = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RegistryId = 'RegistryId' in params ? params.RegistryId : null; this.NamespaceName = 'NamespaceName' in params ? params.NamespaceName : null; this.ChartName = 'ChartName' in params ? params.ChartName : null; this.ChartVersion = 'ChartVersion' in params ? params.ChartVersion : null; } } /** * Tag retention rule * @class */ class RetentionRule extends AbstractModel { constructor(){ super(); /** * Supported policy. Valid values: latestPushedK: Retain the latest specified number of pushed tags; nDaysSinceLastPush: Retain the tags pushed in the past specified number of days. * @type {string || null} */ this.Key = null; /** * Rule value * @type {number || null} */ this.Value = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Key = 'Key' in params ? params.Key : null; this.Value = 'Value' in params ? params.Value : null; } } /** * CreateInstance response structure. * @class */ class CreateInstanceResponse extends AbstractModel { constructor(){ super(); /** * Enterprise Edition instance ID * @type {string || null} */ this.RegistryId = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RegistryId = 'RegistryId' in params ? params.RegistryId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteInstanceToken request structure. * @class */ class DeleteInstanceTokenRequest extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.RegistryId = null; /** * Access credential ID * @type {string || null} */ this.TokenId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RegistryId = 'RegistryId' in params ? params.RegistryId : null; this.TokenId = 'TokenId' in params ? params.TokenId : null; } } /** * ModifyRepository request structure. * @class */ class ModifyRepositoryRequest extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.RegistryId = null; /** * Namespace name * @type {string || null} */ this.NamespaceName = null; /** * Image repository name * @type {string || null} */ this.RepositoryName = null; /** * Brief repository description * @type {string || null} */ this.BriefDescription = null; /** * Detailed repository description * @type {string || null} */ this.Description = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RegistryId = 'RegistryId' in params ? params.RegistryId : null; this.NamespaceName = 'NamespaceName' in params ? params.NamespaceName : null; this.RepositoryName = 'RepositoryName' in params ? params.RepositoryName : null; this.BriefDescription = 'BriefDescription' in params ? params.BriefDescription : null; this.Description = 'Description' in params ? params.Description : null; } } /** * Synchronization rule * @class */ class ReplicationRule extends AbstractModel { constructor(){ super(); /** * Name of synchronization rule * @type {string || null} */ this.Name = null; /** * Destination namespace * @type {string || null} */ this.DestNamespace = null; /** * Whether to override * @type {boolean || null} */ this.Override = null; /** * Synchronization filters * @type {Array.<ReplicationFilter> || null} */ this.Filters = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Name = 'Name' in params ? params.Name : null; this.DestNamespace = 'DestNamespace' in params ? params.DestNamespace : null; this.Override = 'Override' in params ? params.Override : null; if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new ReplicationFilter(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } } } /** * DescribeWebhookTriggerLog response structure. * @class */ class DescribeWebhookTriggerLogResponse extends AbstractModel { constructor(){ super(); /** * Total number * @type {number || null} */ this.TotalCount = null; /** * List of logs * @type {Array.<WebhookTriggerLog> || null} */ this.Logs = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; if (params.Logs) { this.Logs = new Array(); for (let z in params.Logs) { let obj = new WebhookTriggerLog(); obj.deserialize(params.Logs[z]); this.Logs.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyInstance request structure. * @class */ class ModifyInstanceRequest extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.RegistryId = null; /** * Instance edition Basic: `basic` Standard: `standard` Premium: `premium` * @type {string || null} */ this.RegistryType = null; /** * Whether to enable deletion protection. It defaults to `false`. * @type {boolean || null} */ this.DeletionProtection = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RegistryId = 'RegistryId' in params ? params.RegistryId : null; this.RegistryType = 'RegistryType' in params ? params.RegistryType : null; this.DeletionProtection = 'DeletionProtection' in params ? params.DeletionProtection : null; } } /** * RenewInstance response structure. * @class */ class RenewInstanceResponse extends AbstractModel { constructor(){ super(); /** * Enterprise Edition instance ID * @type {string || null} */ this.RegistryId = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RegistryId = 'RegistryId' in params ? params.RegistryId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateImmutableTagRules request structure. * @class */ class CreateImmutableTagRulesRequest extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.RegistryId = null; /** * Namespace * @type {string || null} */ this.NamespaceName = null; /** * Rule * @type {ImmutableTagRule || null} */ this.Rule = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RegistryId = 'RegistryId' in params ? params.RegistryId : null; this.NamespaceName = 'NamespaceName' in params ? params.NamespaceName : null; if (params.Rule) { let obj = new ImmutableTagRule(); obj.deserialize(params.Rule) this.Rule = obj; } } } /** * DescribeRepositories response structure. * @class */ class DescribeRepositoriesResponse extends AbstractModel { constructor(){ super(); /** * Repository information list * @type {Array.<TcrRepositoryInfo> || null} */ this.RepositoryList = null; /** * Total number * @type {number || null} */ this.TotalCount = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.RepositoryList) { this.RepositoryList = new Array(); for (let z in params.RepositoryList) { let obj = new TcrRepositoryInfo(); obj.deserialize(params.RepositoryList[z]); this.RepositoryList.push(obj); } } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteInstanceToken response structure. * @class */ class DeleteInstanceTokenResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeInstances response structure. * @class */ class DescribeInstancesResponse extends AbstractModel { constructor(){ super(); /** * Total number of instances * @type {number || null} */ this.TotalCount = null; /** * List of instances Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<Registry> || null} */ this.Registries = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; if (params.Registries) { this.Registries = new Array(); for (let z in params.Registries) { let obj = new Registry(); obj.deserialize(params.Registries[z]); this.Registries.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateReplicationInstance request structure. * @class */ class CreateReplicationInstanceRequest extends AbstractModel { constructor(){ super(); /** * Master instance ID * @type {string || null} */ this.RegistryId = null; /** * Region ID of the replication instance * @type {number || null} */ this.ReplicationRegionId = null; /** * Region name of the replication instance * @type {string || null} */ this.ReplicationRegionName = null; /** * Whether to sync TCR cloud tags to the COS Bucket * @type {boolean || null} */ this.SyncTag = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RegistryId = 'RegistryId' in params ? params.RegistryId : null; this.ReplicationRegionId = 'ReplicationRegionId' in params ? params.ReplicationRegionId : null; this.ReplicationRegionName = 'ReplicationRegionName' in params ? params.ReplicationRegionName : null; this.SyncTag = 'SyncTag' in params ? params.SyncTag : null; } } /** * ModifyInstanceToken response structure. * @class */ class ModifyInstanceTokenResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeTagRetentionRules request structure. * @class */ class DescribeTagRetentionRulesRequest extends AbstractModel { constructor(){ super(); /** * Primary instance ID * @type {string || null} */ this.RegistryId = null; /** * Namespace name * @type {string || null} */ this.NamespaceName = null; /** * `PageSize` for pagination * @type {number || null} */ this.Limit = null; /** * Page offset * @type {number || null} */ this.Offset = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RegistryId = 'RegistryId' in params ? params.RegistryId : null; this.NamespaceName = 'NamespaceName' in params ? params.NamespaceName : null; this.Limit = 'Limit' in params ? params.Limit : null; this.Offset = 'Offset' in params ? params.Offset : null; } } /** * Instance creation process * @class */ class RegistryCondition extends AbstractModel { constructor(){ super(); /** * Instance creation process type * @type {string || null} */ this.Type = null; /** * Instance creation process status * @type {string || null} */ this.Status = null; /** * Reasons for transiting to the process Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Reason = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Type = 'Type' in params ? params.Type : null; this.Status = 'Status' in params ? params.Status : null; this.Reason = 'Reason' in params ? params.Reason : null; } } /** * ModifyImmutableTagRules response structure. * @class */ class ModifyImmutableTagRulesResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Region information * @class */ class Region extends AbstractModel { constructor(){ super(); /** * gz * @type {string || null} */ this.Alias = null; /** * 1 * @type {number || null} */ this.RegionId = null; /** * ap-guangzhou * @type {string || null} */ this.RegionName = null; /** * alluser * @type {string || null} */ this.Status = null; /** * remark * @type {string || null} */ this.Remark = null; /** * Creation time * @type {string || null} */ this.CreatedAt = null; /** * Update time * @type {string || null} */ this.UpdatedAt = null; /** * id * @type {number || null} */ this.Id = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Alias = 'Alias' in params ? params.Alias : null; this.RegionId = 'RegionId' in params ? params.RegionId : null; this.RegionName = 'RegionName' in params ? params.RegionName : null; this.Status = 'Status' in params ? params.Status : null; this.Remark = 'Remark' in params ? params.Remark : null; this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null; this.UpdatedAt = 'UpdatedAt' in params ? params.UpdatedAt : null; this.Id = 'Id' in params ? params.Id : null; } } /** * ModifyServiceAccount request structure. * @class */ class ModifyServiceAccountRequest extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.RegistryId = null; /** * Service account name * @type {string || null} */ this.Name = null; /** * Service account description * @type {string || null} */ this.Description = null; /** * Validity in days starting from the current day, It takes a higher priority than `ExpiresAt`. * @type {number || null} */ this.Duration = null; /** * Expiry time (timestamp, in milliseconds) * @type {number || null} */ this.ExpiresAt = null; /** * Whether to disable the service account * @type {boolean || null} */ this.Disable = null; /** * Policy list * @type {Array.<Permission> || null} */ this.Permissions = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RegistryId = 'RegistryId' in params ? params.RegistryId : null; this.Name = 'Name' in params ? params.Name : null; this.Description = 'Description' in params ? params.Description : null; this.Duration = 'Duration' in params ? params.Duration : null; this.ExpiresAt = 'ExpiresAt' in params ? params.ExpiresAt : null; this.Disable = 'Disable' in params ? params.Disable : null; if (params.Permissions) { this.Permissions = new Array(); for (let z in params.Permissions) { let obj = new Permission(); obj.deserialize(params.Permissions[z]); this.Permissions.push(obj); } } } } /** * CreateImageAccelerationService response structure. * @class */ class CreateImageAccelerationServiceResponse extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.RegistryId = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RegistryId = 'RegistryId' in params ? params.RegistryId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateMultipleSecurityPolicy response structure. * @class */ class CreateMultipleSecurityPolicyResponse extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.RegistryId = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RegistryId = 'RegistryId' in params ? params.RegistryId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateTagRetentionRule response structure. * @class */ class CreateTagRetentionRuleResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeRegions response structure. * @class */ class DescribeRegionsResponse extends AbstractModel { constructor(){ super(); /** * Total number of returned results * @type {number || null} */ this.TotalCount = null; /** * List of regions * @type {Array.<Region> || null} */ this.Regions = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; if (params.Regions) { this.Regions = new Array(); for (let z in params.Regions) { let obj = new Region(); obj.deserialize(params.Regions[z]); this.Regions.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeChartDownloadInfo response structure. * @class */ class DescribeChartDownloadInfoResponse extends AbstractModel { constructor(){ super(); /** * Presigned URL for download * @type {string || null} */ this.PreSignedDownloadURL = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PreSignedDownloadURL = 'PreSignedDownloadURL' in params ? params.PreSignedDownloadURL : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeServiceAccounts request structure. * @class */ class DescribeServiceAccountsRequest extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.RegistryId = null; /** * All service accounts * @type {boolean || null} */ this.All = null; /** * Whether to fill in permission information. * @type {boolean || null} */ this.EmbedPermission = null; /** * Filters * @type {Array.<Filter> || null} */ this.Filters = null; /** * Offset. Default value: `0` * @type {number || null} */ this.Offset = null; /** * Maximum number of output entries. Default value: `20`. Maximum value: `100`. The maximum value is automatically applied when a value exceeding it is entered. * @type {number || null} */ this.Limit = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RegistryId = 'RegistryId' in params ? params.RegistryId : null; this.All = 'All' in params ? params.All : null; this.EmbedPermission = 'EmbedPermission' in params ? params.EmbedPermission : null; if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new Filter(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } this.Offset = 'Offset' in params ? params.Offset : null; this.Limit = 'Limit' in params ? params.Limit : null; } } /** * DescribeExternalEndpointStatus request structure. * @class */ class DescribeExternalEndpointStatusRequest extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.RegistryId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RegistryId = 'RegistryId' in params ? params.RegistryId : null; } } /** * DeleteRepository response structure. * @class */ class DeleteRepositoryResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeInstanceAllNamespaces request structure. * @class */ class DescribeInstanceAllNamespacesRequest extends AbstractModel { constructor(){ super(); /** * Number of entries per page * @type {number || null} */ this.Limit = null; /** * Start position offset * @type {number || null} */ this.Offset = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Limit = 'Limit' in params ? params.Limit : null; this.Offset = 'Offset' in params ? params.Offset : null; } } /** * DownloadHelmChart response structure. * @class */ class DownloadHelmChartResponse extends AbstractModel { constructor(){ super(); /** * Temporary token * @type {string || null} */ this.TmpToken = null; /** * Temporary `secretId` * @type {string || null} */ this.TmpSecretId = null; /** * Temporary `secretKey` * @type {string || null} */ this.TmpSecretKey = null; /** * Bucket information * @type {string || null} */ this.Bucket = null; /** * Instance ID * @type {string || null} */ this.Region = null; /** * Chart information * @type {string || null} */ this.Path = null; /** * Start timestamp * @type {number || null} */ this.StartTime = null; /** * Token expiration timestamp * @type {number || null} */ this.ExpiredTime = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TmpToken = 'TmpToken' in params ? params.TmpToken : null; this.TmpSecretId = 'TmpSecretId' in params ? params.TmpSecretId : null; this.TmpSecretKey = 'TmpSecretKey' in params ? params.TmpSecretKey : null; this.Bucket = 'Bucket' in params ? params.Bucket : null; this.Region = 'Region' in params ? params.Region : null; this.Path = 'Path' in params ? params.Path : null; this.StartTime = 'StartTime' in params ? params.StartTime : null; this.ExpiredTime = 'ExpiredTime' in params ? params.ExpiredTime : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ManageReplication request structure. * @class */ class ManageReplicationRequest extends AbstractModel { constructor(){ super(); /** * Source instance ID * @type {string || null} */ this.SourceRegistryId = null; /** * Destination instance ID * @type {string || null} */ this.DestinationRegistryId = null; /** * Synchronization rule * @type {ReplicationRule || null} */ this.Rule = null; /** * Rule description * @type {string || null} */ this.Description = null; /** * Region ID of the destination instance. For example, `1` represents Guangzhou * @type {number || null} */ this.DestinationRegionId = null; /** * Configuration of the synchronization rule * @type {PeerReplicationOption || null} */ this.PeerReplicationOption = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SourceRegistryId = 'SourceRegistryId' in params ? params.SourceRegistryId : null; this.DestinationRegistryId = 'DestinationRegistryId' in params ? params.DestinationRegistryId : null; if (params.Rule) { let obj = new ReplicationRule(); obj.deserialize(params.Rule) this.Rule = obj; } this.Description = 'Description' in params ? params.Description : null; this.DestinationRegionId = 'DestinationRegionId' in params ? params.DestinationRegionId : null; if (params.PeerReplicationOption) { let obj = new PeerReplicationOption(); obj.deserialize(params.PeerReplicationOption) this.PeerReplicationOption = obj; } } } /** * DeleteWebhookTrigger response structure. * @class */ class DeleteWebhookTriggerResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeTagRetentionExecutionTask response structure. * @class */ class DescribeTagRetentionExecutionTaskResponse extends AbstractModel { constructor(){ super(); /** * List of tag retention execution tasks * @type {Array.<RetentionTask> || null} */ this.RetentionTaskList = null; /** * Total number of tag retention execution tasks * @type {number || null} */ this.TotalCount = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.RetentionTaskList) { this.RetentionTaskList = new Array(); for (let z in params.RetentionTaskList) { let obj = new RetentionTask(); obj.deserialize(params.RetentionTaskList[z]); this.RetentionTaskList.push(obj); } } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifySecurityPolicy request str