tencentcloud-sdk-nodejs-intl-en 3.0.1468 → 3.0.1470

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-intl-en",
3
- "version": "3.0.1468",
3
+ "version": "3.0.1470",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -124,6 +124,7 @@ const UpdateRoleConsoleLoginResponse = models.UpdateRoleConsoleLoginResponse;
124
124
  const AttachRolePolicyRequest = models.AttachRolePolicyRequest;
125
125
  const GetPasswordRulesResponse = models.GetPasswordRulesResponse;
126
126
  const ConsumeCustomMFATokenResponse = models.ConsumeCustomMFATokenResponse;
127
+ const GenerateOIDCAccessTokenResponse = models.GenerateOIDCAccessTokenResponse;
127
128
  const AttachUserPolicyRequest = models.AttachUserPolicyRequest;
128
129
  const ListAttachedGroupPoliciesResponse = models.ListAttachedGroupPoliciesResponse;
129
130
  const ListAttachedUserPoliciesResponse = models.ListAttachedUserPoliciesResponse;
@@ -153,6 +154,7 @@ const GetServiceLinkedRoleDeletionStatusRequest = models.GetServiceLinkedRoleDel
153
154
  const DetachGroupPolicyResponse = models.DetachGroupPolicyResponse;
154
155
  const GroupMemberInfo = models.GroupMemberInfo;
155
156
  const CreatePolicyRequest = models.CreatePolicyRequest;
157
+ const GenerateOIDCAccessTokenRequest = models.GenerateOIDCAccessTokenRequest;
156
158
  const ListAttachedUserAllPoliciesRequest = models.ListAttachedUserAllPoliciesRequest;
157
159
  const DeletePolicyVersionRequest = models.DeletePolicyVersionRequest;
158
160
  const CreateUserSAMLConfigRequest = models.CreateUserSAMLConfigRequest;
@@ -706,6 +708,17 @@ class CamClient extends AbstractClient {
706
708
  this.request("UpdateAssumeRolePolicy", req, resp, cb);
707
709
  }
708
710
 
711
+ /**
712
+ * This API is used to update a user group.
713
+ * @param {UpdateGroupRequest} req
714
+ * @param {function(string, UpdateGroupResponse):void} cb
715
+ * @public
716
+ */
717
+ UpdateGroup(req, cb) {
718
+ let resp = new UpdateGroupResponse();
719
+ this.request("UpdateGroup", req, resp, cb);
720
+ }
721
+
709
722
  /**
710
723
  * This API is used to update an access key for a CAM user.
711
724
  * @param {UpdateAccessKeyRequest} req
@@ -839,14 +852,14 @@ class CamClient extends AbstractClient {
839
852
  }
840
853
 
841
854
  /**
842
- * This API is used to update a user group.
843
- * @param {UpdateGroupRequest} req
844
- * @param {function(string, UpdateGroupResponse):void} cb
855
+ * Generate an OIDC access token. This feature is in grayscale stage. Contact Tencent Cloud if needed.
856
+ * @param {GenerateOIDCAccessTokenRequest} req
857
+ * @param {function(string, GenerateOIDCAccessTokenResponse):void} cb
845
858
  * @public
846
859
  */
847
- UpdateGroup(req, cb) {
848
- let resp = new UpdateGroupResponse();
849
- this.request("UpdateGroup", req, resp, cb);
860
+ GenerateOIDCAccessToken(req, cb) {
861
+ let resp = new GenerateOIDCAccessTokenResponse();
862
+ this.request("GenerateOIDCAccessToken", req, resp, cb);
850
863
  }
851
864
 
852
865
  /**
@@ -4660,6 +4660,41 @@ class ConsumeCustomMFATokenResponse extends AbstractModel {
4660
4660
  }
4661
4661
  }
4662
4662
 
4663
+ /**
4664
+ * GenerateOIDCAccessToken response structure.
4665
+ * @class
4666
+ */
4667
+ class GenerateOIDCAccessTokenResponse extends AbstractModel {
4668
+ constructor(){
4669
+ super();
4670
+
4671
+ /**
4672
+ * <p>token generated by the OIDC protocol</p>
4673
+ * @type {string || null}
4674
+ */
4675
+ this.IdToken = null;
4676
+
4677
+ /**
4678
+ * 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.
4679
+ * @type {string || null}
4680
+ */
4681
+ this.RequestId = null;
4682
+
4683
+ }
4684
+
4685
+ /**
4686
+ * @private
4687
+ */
4688
+ deserialize(params) {
4689
+ if (!params) {
4690
+ return;
4691
+ }
4692
+ this.IdToken = 'IdToken' in params ? params.IdToken : null;
4693
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
4694
+
4695
+ }
4696
+ }
4697
+
4663
4698
  /**
4664
4699
  * AttachUserPolicy request structure.
4665
4700
  * @class
@@ -5970,6 +6005,41 @@ class CreatePolicyRequest extends AbstractModel {
5970
6005
  }
5971
6006
  }
5972
6007
 
6008
+ /**
6009
+ * GenerateOIDCAccessToken request structure.
6010
+ * @class
6011
+ */
6012
+ class GenerateOIDCAccessTokenRequest extends AbstractModel {
6013
+ constructor(){
6014
+ super();
6015
+
6016
+ /**
6017
+ * <p>Client ID</p>
6018
+ * @type {string || null}
6019
+ */
6020
+ this.ClientId = null;
6021
+
6022
+ /**
6023
+ * <p>Resource ID</p>
6024
+ * @type {string || null}
6025
+ */
6026
+ this.ResourceId = null;
6027
+
6028
+ }
6029
+
6030
+ /**
6031
+ * @private
6032
+ */
6033
+ deserialize(params) {
6034
+ if (!params) {
6035
+ return;
6036
+ }
6037
+ this.ClientId = 'ClientId' in params ? params.ClientId : null;
6038
+ this.ResourceId = 'ResourceId' in params ? params.ResourceId : null;
6039
+
6040
+ }
6041
+ }
6042
+
5973
6043
  /**
5974
6044
  * ListAttachedUserAllPolicies request structure.
5975
6045
  * @class
@@ -8593,6 +8663,7 @@ module.exports = {
8593
8663
  AttachRolePolicyRequest: AttachRolePolicyRequest,
8594
8664
  GetPasswordRulesResponse: GetPasswordRulesResponse,
8595
8665
  ConsumeCustomMFATokenResponse: ConsumeCustomMFATokenResponse,
8666
+ GenerateOIDCAccessTokenResponse: GenerateOIDCAccessTokenResponse,
8596
8667
  AttachUserPolicyRequest: AttachUserPolicyRequest,
8597
8668
  ListAttachedGroupPoliciesResponse: ListAttachedGroupPoliciesResponse,
8598
8669
  ListAttachedUserPoliciesResponse: ListAttachedUserPoliciesResponse,
@@ -8622,6 +8693,7 @@ module.exports = {
8622
8693
  DetachGroupPolicyResponse: DetachGroupPolicyResponse,
8623
8694
  GroupMemberInfo: GroupMemberInfo,
8624
8695
  CreatePolicyRequest: CreatePolicyRequest,
8696
+ GenerateOIDCAccessTokenRequest: GenerateOIDCAccessTokenRequest,
8625
8697
  ListAttachedUserAllPoliciesRequest: ListAttachedUserAllPoliciesRequest,
8626
8698
  DeletePolicyVersionRequest: DeletePolicyVersionRequest,
8627
8699
  CreateUserSAMLConfigRequest: CreateUserSAMLConfigRequest,
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.1468";
1
+ const sdkVersion = "3.0.1470";
2
2
  module.exports = sdkVersion
@@ -403,7 +403,7 @@ The API request rate is limited to 20 requests/sec by default.
403
403
  }
404
404
 
405
405
  /**
406
- * This interface supports identification of the front and back of Brazilian ID license. The identification fields include name, driver's license category, number, validity period, etc.
406
+ * This interface supports recognition of both the front and back sides of Brazilian ID cards. Default API request rate limit: 5 requests per second.
407
407
  * @param {RecognizeBrazilIDCardOCRRequest} req
408
408
  * @param {function(string, RecognizeBrazilIDCardOCRResponse):void} cb
409
409
  * @public
@@ -4844,93 +4844,95 @@ class HealthChecker extends AbstractModel {
4844
4844
  super();
4845
4845
 
4846
4846
  /**
4847
- * Health check policy. Valid values:
4848
- <li>HTTP.</li>
4849
- <li>HTTPS.</li>
4850
- <li>TCP.</li>
4851
- <li>UDP.</li>
4852
- <li>ICMP Ping.</li>
4853
- <li>NoCheck.</li>
4854
- Note: NoCheck means the health check policy is not enabled.
4847
+ * <p>Health check policy. Valid values:</p><li>HTTP;</li><li>HTTPS;</li><li>TCP;</li><li>UDP;</li><li>ICMP Ping;</li><li>NoCheck.</li>Note: NoCheck means health check policy is not enabled.
4855
4848
  * @type {string || null}
4856
4849
  */
4857
4850
  this.Type = null;
4858
4851
 
4859
4852
  /**
4860
- * Check port, which is required when Type = HTTP, Type = HTTPS, Type = TCP, or Type = UDP.
4853
+ * <p>Check port, which is required when Type = HTTP, Type = HTTPS, Type = TCP, or Type = UDP.</p>
4861
4854
  * @type {number || null}
4862
4855
  */
4863
4856
  this.Port = null;
4864
4857
 
4865
4858
  /**
4866
- * Check frequency, in seconds. It indicates how often a health check task is initiated. Configurable range: 10-600 seconds.
4859
+ * <p>Check frequency, in seconds. It indicates how often a health check task is initiated. Configurable range: 10-600 seconds.</p>
4867
4860
  * @type {number || null}
4868
4861
  */
4869
4862
  this.Interval = null;
4870
4863
 
4871
4864
  /**
4872
- * Timeout for each health check, in seconds. If the health check time exceeds this value, the check result is determined as "unhealthy". The default value is 5s, and the value should be less than Interval.
4865
+ * <p>Timeout for each health check, in seconds. If the health check time exceeds this value, the check result is determined as "unhealthy". The default value is 5s, and the value should be less than Interval.</p>
4873
4866
  * @type {number || null}
4874
4867
  */
4875
4868
  this.Timeout = null;
4876
4869
 
4877
4870
  /**
4878
- * Healthy state threshold, in the number of times. It indicates that if the consecutive health check results are "healthy" for a certain number of times, an origin server is considered "healthy". The default value is 3 times, with the minimum value of 1 time.
4871
+ * <p>Health threshold, in the number of times. It indicates that if the consecutive health check results are "healthy" for a certain number of times, an origin server is considered "healthy". The default value is 3 times, with the minimum value of 1 time.</p>
4879
4872
  * @type {number || null}
4880
4873
  */
4881
4874
  this.HealthThreshold = null;
4882
4875
 
4883
4876
  /**
4884
- * Unhealthy state threshold, in the number of times. It indicates that if the consecutive health check results are "unhealthy" for a certain number of times, an origin server is considered "unhealthy". The default value is 2 times.
4877
+ * <p>Unhealthy state threshold, in the number of times. It indicates that if the consecutive health check results are "unhealthy" for a certain number of times, an origin server is considered "unhealthy". The default value is 2 times.</p>
4885
4878
  * @type {number || null}
4886
4879
  */
4887
4880
  this.CriticalThreshold = null;
4888
4881
 
4889
4882
  /**
4890
- * Probe path. This parameter is valid only when Type = HTTP or Type = HTTPS. It needs to include the complete host/path and should not contain a protocol, for example, www.example.com/test.
4891
-
4883
+ * <p>Probe path. This parameter is valid only when Type = HTTP or Type = HTTPS. It needs to include the complete host/path and should not contain a protocol, for example, www.example.com/test.</p>
4892
4884
  * @type {string || null}
4893
4885
  */
4894
4886
  this.Path = null;
4895
4887
 
4896
4888
  /**
4897
- * Request method. This parameter is valid only when Type = HTTP or Type = HTTPS. Valid values:
4898
- <li>GET.</li>
4899
- <li>HEAD.</li>
4889
+ * <p>Probe request Host Header policy. It takes effect only when Type=HTTP or Type=HTTPS and the instance type is HTTP-dedicated (V2). Valid values:</p><li>FollowCheckURL: Follows the Host specified by the probe URL, that is, the Host part in the HealthChecker.Path field will be used as the Host address for probing;</li><li>FollowOriginGroup: Follows the origin-pull Host Header configured in the origin group, that is, the OriginGroup.HostHeader field value of the origin group where the probed origin resides will be used as the Host address for probing. If the origin group has no HostHeader configured, the Host part in the HealthChecker.Path field will be used as the Host address for probing;</li><li>FollowOrigin: Follows the origin address, that is, the OriginGroup.Records[N].Record field value (the origin address itself) of the corresponding origin record in the origin group where the probed origin resides will be used as the Host address for probing.</li>Default: FollowCheckURL.
4890
+ * @type {string || null}
4891
+ */
4892
+ this.HostHeaderPolicy = null;
4893
+
4894
+ /**
4895
+ * <p>Request method. This parameter is valid only when Type = HTTP or Type = HTTPS. Valid values:</p><li>GET;</li><li>HEAD.</li>
4900
4896
  * @type {string || null}
4901
4897
  */
4902
4898
  this.Method = null;
4903
4899
 
4904
4900
  /**
4905
- * The status codes used to determine that the probe result is healthy when the probe node initiates a health check to an origin server. This parameter is valid only when Type = HTTP or Type = HTTPS.
4901
+ * <p>The status codes used to determine that the probe result is healthy when the probe node initiates a health check to an origin server. This parameter is valid only when Type = HTTP or Type = HTTPS.</p>
4906
4902
  * @type {Array.<string> || null}
4907
4903
  */
4908
4904
  this.ExpectedCodes = null;
4909
4905
 
4910
4906
  /**
4911
- * The custom HTTP request header carried by a probe request, with a maximum value of 10. This parameter is valid only when Type = HTTP or Type = HTTPS.
4907
+ * <p>This parameter is valid only when Type=HTTP or Type=HTTPS. It refers to the custom HTTP request header carried in the probe request. Up to 10 can be configured.</p>
4912
4908
  * @type {Array.<CustomizedHeader> || null}
4913
4909
  */
4914
4910
  this.Headers = null;
4915
4911
 
4916
4912
  /**
4917
- * Whether to follow 301/302 redirect. When enabled, 301/302 is considered a "healthy" status code, redirecting 3 times by default. This parameter is valid only when Type = HTTP or Type = HTTPS.
4913
+ * <p>Whether to follow 301/302 redirect. When enabled, 301/302 is considered a "healthy" status code, redirecting 3 times by default. This parameter is valid only when Type = HTTP or Type = HTTPS.</p>
4918
4914
  * @type {string || null}
4919
4915
  */
4920
4916
  this.FollowRedirect = null;
4921
4917
 
4922
4918
  /**
4923
- * The content sent by a health check. Only ASCII visible characters are allowed, with up to 500 characters. This parameter is valid only when Type = UDP.
4919
+ * <p>The content sent by a health check. Only ASCII visible characters are allowed, with up to 500 characters. This parameter is valid only when Type = UDP.</p>
4924
4920
  * @type {string || null}
4925
4921
  */
4926
4922
  this.SendContext = null;
4927
4923
 
4928
4924
  /**
4929
- * The expected return result from an origin server during health check. Only ASCII visible characters are allowed, with up to 500 characters. This parameter is valid only when Type = UDP.
4925
+ * <p>The expected return result from an origin server during health check. Only ASCII visible characters are allowed, with up to 500 characters. This parameter is valid only when Type = UDP.</p>
4930
4926
  * @type {string || null}
4931
4927
  */
4932
4928
  this.RecvContext = null;
4933
4929
 
4930
+ /**
4931
+ * <p>Health check probe cluster. Specifies the cluster region scope from which this load balancer instance initiates health probes. For details on the regional distribution of probe clusters, see <a href="https://www.tencentcloud.com/document/product/1552/104228?from_cn_redirect=1">Health Check Policy Introduction</a>. This can be configured only for HTTP-dedicated (V2) load balancer instances. Valid values:</p><li>global: Probes are initiated by probe clusters in all regions worldwide, including the Chinese mainland and regions outside the Chinese mainland. Clusters in each region independently maintain their own probe results;</li><li>mainland_china: Probes are initiated only by probe clusters in the Chinese mainland. Currently, the Chinese mainland shares one probe cluster, and probe results are maintained by the probe cluster in the Chinese mainland. Other regions follow the probe results of the cluster in the Chinese mainland;</li><li>overseas: Probes are initiated only by probe clusters in regions outside the Chinese mainland. Currently, regions outside the Chinese mainland contain probe clusters in multiple areas, and probe results are independently maintained by the probe clusters in each area. Probe results for the Chinese mainland are generated by aggregating the probe results of the probe clusters in all other areas.</li>Default: global.
4932
+ * @type {string || null}
4933
+ */
4934
+ this.ProbeCluster = null;
4935
+
4934
4936
  }
4935
4937
 
4936
4938
  /**
@@ -4947,6 +4949,7 @@ Note: NoCheck means the health check policy is not enabled.
4947
4949
  this.HealthThreshold = 'HealthThreshold' in params ? params.HealthThreshold : null;
4948
4950
  this.CriticalThreshold = 'CriticalThreshold' in params ? params.CriticalThreshold : null;
4949
4951
  this.Path = 'Path' in params ? params.Path : null;
4952
+ this.HostHeaderPolicy = 'HostHeaderPolicy' in params ? params.HostHeaderPolicy : null;
4950
4953
  this.Method = 'Method' in params ? params.Method : null;
4951
4954
  this.ExpectedCodes = 'ExpectedCodes' in params ? params.ExpectedCodes : null;
4952
4955
 
@@ -4961,6 +4964,7 @@ Note: NoCheck means the health check policy is not enabled.
4961
4964
  this.FollowRedirect = 'FollowRedirect' in params ? params.FollowRedirect : null;
4962
4965
  this.SendContext = 'SendContext' in params ? params.SendContext : null;
4963
4966
  this.RecvContext = 'RecvContext' in params ? params.RecvContext : null;
4967
+ this.ProbeCluster = 'ProbeCluster' in params ? params.ProbeCluster : null;
4964
4968
 
4965
4969
  }
4966
4970
  }
@@ -14494,13 +14498,13 @@ class CustomizedHeader extends AbstractModel {
14494
14498
  super();
14495
14499
 
14496
14500
  /**
14497
- * Specifies the custom header Key.
14501
+ * Custom header Key.
14498
14502
  * @type {string || null}
14499
14503
  */
14500
14504
  this.Key = null;
14501
14505
 
14502
14506
  /**
14503
- * Set custom headers Value.
14507
+ * Value of the custom header.
14504
14508
  * @type {string || null}
14505
14509
  */
14506
14510
  this.Value = null;
@@ -17111,12 +17111,6 @@ class UpdateAigcApiTokenRequest extends AbstractModel {
17111
17111
  constructor(){
17112
17112
  super();
17113
17113
 
17114
- /**
17115
- * <p><b>Video-on-demand <a href="https://www.tencentcloud.com/document/product/266/14574?from_cn_redirect=1">application</a> ID. For customers who activate on-demand services after December 25, 2023, this field must be filled in as the app ID when accessing resources in on-demand applications (whether the default application or a newly created application).</b></p>
17116
- * @type {number || null}
17117
- */
17118
- this.SubAppId = null;
17119
-
17120
17114
  /**
17121
17115
  * <p>To update the Api Key</p>
17122
17116
  * @type {string || null}
@@ -17124,13 +17118,19 @@ class UpdateAigcApiTokenRequest extends AbstractModel {
17124
17118
  this.ApiToken = null;
17125
17119
 
17126
17120
  /**
17127
- * <p>Merge (default, merge the ExtInfo JSON by top-level key), Overwrite (direct overwrite)</p>
17121
+ * <p><b>On-demand <a href="https://www.tencentcloud.com/document/product/266/14574?from_cn_redirect=1">application</a> ID. For customers who activate on-demand services after December 25, 2023, this field must be set to the app ID when accessing resources in on-demand applications (whether the default application or a newly created application).</b></p>
17122
+ * @type {number || null}
17123
+ */
17124
+ this.SubAppId = null;
17125
+
17126
+ /**
17127
+ * <p>Merge (default, merge ExtInfo JSON by top-level key), Overwrite (direct overwrite)</p>
17128
17128
  * @type {string || null}
17129
17129
  */
17130
17130
  this.ActionType = null;
17131
17131
 
17132
17132
  /**
17133
- * <p>Extended information of the token</p>
17133
+ * <p>The ip allowlist and model allowlist are stored in ExtInfo in json format, with the following fields:</p><p>(1) ip allowlist<br>&quot;ip&quot;: {&quot;127.0.0.1&quot;:true}<br>Not enabled: &quot;ip&quot;: {}<br>Multiple groups: {&quot;&#39;11.12.112.90&quot;:true,&quot;15.12.112.90&quot;:true}</p><p>(2) model allowlist<br>&quot;model&quot;: {&quot;deepseek-v4-pro&quot;:true}<br>Not enabled: &quot;model&quot;: {}</p><p>(3) name<br>&quot;name&quot;: &quot;test&quot;</p>
17134
17134
  * @type {string || null}
17135
17135
  */
17136
17136
  this.ExtInfo = null;
@@ -17144,8 +17144,8 @@ class UpdateAigcApiTokenRequest extends AbstractModel {
17144
17144
  if (!params) {
17145
17145
  return;
17146
17146
  }
17147
- this.SubAppId = 'SubAppId' in params ? params.SubAppId : null;
17148
17147
  this.ApiToken = 'ApiToken' in params ? params.ApiToken : null;
17148
+ this.SubAppId = 'SubAppId' in params ? params.SubAppId : null;
17149
17149
  this.ActionType = 'ActionType' in params ? params.ActionType : null;
17150
17150
  this.ExtInfo = 'ExtInfo' in params ? params.ExtInfo : null;
17151
17151
 
@@ -29852,7 +29852,7 @@ class CreateAigcQuotaRequest extends AbstractModel {
29852
29852
  super();
29853
29853
 
29854
29854
  /**
29855
- * <p><strong>VOD application ID. From December 25, 2023, customers who activate on-demand services must fill in this field with the app ID when accessing resources in on-demand applications, whether it is the default application or a newly created application.</strong></p>
29855
+ * <p><strong>VOD application ID. From December 25, 2023, customers who activate on-demand services must fill in this field with the app ID when accessing resources in on-demand applications, whether in the default application or a newly created application.</strong></p>
29856
29856
  * @type {number || null}
29857
29857
  */
29858
29858
  this.SubAppId = null;
@@ -29864,17 +29864,41 @@ class CreateAigcQuotaRequest extends AbstractModel {
29864
29864
  this.QuotaType = null;
29865
29865
 
29866
29866
  /**
29867
- * <p>Number of task quotas.</p><p>Unit: images/seconds/tokens.</p><ul><li>When QuotaType is Image, the unit is images;</li><li>When QuotaType is Video, the unit is seconds;</li><li>When QuotaType is Text, the unit is tokens.</li></ul>
29867
+ * <p>Number of quotas for the task.</p><p>Unit: images/second/tokens.</p><ul><li>When QuotaType is Image, the unit is images;</li><li>When QuotaType is Video, the unit is seconds;</li><li>When QuotaType is Text, the unit is tokens.</li></ul>
29868
29868
  * @type {number || null}
29869
29869
  */
29870
29870
  this.QuotaLimit = null;
29871
29871
 
29872
29872
  /**
29873
- * <p>Valid only when QuotaType is Text. It is used to select the ApiToken that needs a quota limit.</p>
29873
+ * <p>Valid only when QuotaType=Text, used to select the ApiToken that requires quota limit</p>
29874
29874
  * @type {string || null}
29875
29875
  */
29876
29876
  this.ApiToken = null;
29877
29877
 
29878
+ /**
29879
+ * <p>Quota reset cycle.</p><p>Enumeration values:</p><ul><li>Day: Reset every day.</li><li>Month: Reset on a specified date each month.</li><li>Total: Never reset. The QuotaLimit parameter is the total quota.</li></ul>
29880
+ * @type {string || null}
29881
+ */
29882
+ this.QuotaPeriod = null;
29883
+
29884
+ /**
29885
+ * <p>Reset date of the per month quota. Valid only when QuotaPeriod=Month.</p><p>If the selected date does not exist in the current month, the reset is postponed to 00:00 on the 1st of the next month.</p>
29886
+ * @type {number || null}
29887
+ */
29888
+ this.ResetDay = null;
29889
+
29890
+ /**
29891
+ * <p>Whether to set specified quotas for each model</p><p>Enumeration values: </p><ul><li>ON: Enable</li><li>OFF: Disable</li></ul>
29892
+ * @type {string || null}
29893
+ */
29894
+ this.ModelQuotaSwitch = null;
29895
+
29896
+ /**
29897
+ * <p>Quota set for each model, valid only when ModelQuotaSwitch=ON.</p>
29898
+ * @type {Array.<AigcModelQuota> || null}
29899
+ */
29900
+ this.ModelQuotas = null;
29901
+
29878
29902
  }
29879
29903
 
29880
29904
  /**
@@ -29888,6 +29912,18 @@ class CreateAigcQuotaRequest extends AbstractModel {
29888
29912
  this.QuotaType = 'QuotaType' in params ? params.QuotaType : null;
29889
29913
  this.QuotaLimit = 'QuotaLimit' in params ? params.QuotaLimit : null;
29890
29914
  this.ApiToken = 'ApiToken' in params ? params.ApiToken : null;
29915
+ this.QuotaPeriod = 'QuotaPeriod' in params ? params.QuotaPeriod : null;
29916
+ this.ResetDay = 'ResetDay' in params ? params.ResetDay : null;
29917
+ this.ModelQuotaSwitch = 'ModelQuotaSwitch' in params ? params.ModelQuotaSwitch : null;
29918
+
29919
+ if (params.ModelQuotas) {
29920
+ this.ModelQuotas = new Array();
29921
+ for (let z in params.ModelQuotas) {
29922
+ let obj = new AigcModelQuota();
29923
+ obj.deserialize(params.ModelQuotas[z]);
29924
+ this.ModelQuotas.push(obj);
29925
+ }
29926
+ }
29891
29927
 
29892
29928
  }
29893
29929
  }
@@ -40587,6 +40623,48 @@ class AiAnalysisTaskInput extends AbstractModel {
40587
40623
  }
40588
40624
  }
40589
40625
 
40626
+ /**
40627
+ * AIGC single-quota model.
40628
+ * @class
40629
+ */
40630
+ class AigcModelQuota extends AbstractModel {
40631
+ constructor(){
40632
+ super();
40633
+
40634
+ /**
40635
+ * <p>Model name.</p>
40636
+ * @type {string || null}
40637
+ */
40638
+ this.ModelName = null;
40639
+
40640
+ /**
40641
+ * <p>Quota quantity of tasks.</p><p>Unit: frames/second.</p><ul><li>When QuotaType is Image, the unit is frames;</li><li>When QuotaType is Video, the unit is seconds;</li></ul>
40642
+ * @type {number || null}
40643
+ */
40644
+ this.QuotaLimit = null;
40645
+
40646
+ /**
40647
+ * <p>Model version.</p>
40648
+ * @type {string || null}
40649
+ */
40650
+ this.ModelVersion = null;
40651
+
40652
+ }
40653
+
40654
+ /**
40655
+ * @private
40656
+ */
40657
+ deserialize(params) {
40658
+ if (!params) {
40659
+ return;
40660
+ }
40661
+ this.ModelName = 'ModelName' in params ? params.ModelName : null;
40662
+ this.QuotaLimit = 'QuotaLimit' in params ? params.QuotaLimit : null;
40663
+ this.ModelVersion = 'ModelVersion' in params ? params.ModelVersion : null;
40664
+
40665
+ }
40666
+ }
40667
+
40590
40668
  /**
40591
40669
  * Intelligent tag result information.
40592
40670
  * @class
@@ -61376,7 +61454,7 @@ class ModifyAigcQuotaRequest extends AbstractModel {
61376
61454
  super();
61377
61455
 
61378
61456
  /**
61379
- * <p><strong>VOD application ID. For customers who activate on-demand services after December 25, 2023, this field must be set to the app ID when accessing resources in on-demand applications (whether the default application or a newly created application).</strong></p>
61457
+ * <p><strong>VOD application ID. For customers who activate on-demand services after December 25, 2023, this field must be filled in with the app ID when accessing resources in on-demand applications, whether in the default application or a newly created application.</strong></p>
61380
61458
  * @type {number || null}
61381
61459
  */
61382
61460
  this.SubAppId = null;
@@ -61394,11 +61472,35 @@ class ModifyAigcQuotaRequest extends AbstractModel {
61394
61472
  this.QuotaLimit = null;
61395
61473
 
61396
61474
  /**
61397
- * <p>Valid only when QuotaType=Text. Used to select the ApiToken that needs a quota limit.</p>
61475
+ * <p>Valid only when QuotaType=Text, used to select the ApiToken that requires quota limit</p>
61398
61476
  * @type {string || null}
61399
61477
  */
61400
61478
  this.ApiToken = null;
61401
61479
 
61480
+ /**
61481
+ * <p>Quota reset cycle.</p><p>Enumeration values:</p><ul><li>Day: Reset daily.</li><li>Month: Reset on a specified date per month.</li><li>Total: Never reset. The QuotaLimit parameter is the total quota.</li></ul>
61482
+ * @type {string || null}
61483
+ */
61484
+ this.QuotaPeriod = null;
61485
+
61486
+ /**
61487
+ * <p>Reset date of the monthly quota. Valid only when QuotaPeriod=Month.</p><p>If the selected date does not exist in the current month, the reset will be postponed to 00:00 on the 1st of the next month.</p>
61488
+ * @type {number || null}
61489
+ */
61490
+ this.ResetDay = null;
61491
+
61492
+ /**
61493
+ * <p>Whether to set specified quotas for each model</p><p>Enumeration values: </p><ul><li>ON: Enable</li><li>OFF: Disable</li></ul>
61494
+ * @type {string || null}
61495
+ */
61496
+ this.ModelQuotaSwitch = null;
61497
+
61498
+ /**
61499
+ * <p>Quota set for each model, valid only when ModelQuotaSwitch=ON.</p>
61500
+ * @type {Array.<AigcModelQuota> || null}
61501
+ */
61502
+ this.ModelQuotas = null;
61503
+
61402
61504
  }
61403
61505
 
61404
61506
  /**
@@ -61412,6 +61514,18 @@ class ModifyAigcQuotaRequest extends AbstractModel {
61412
61514
  this.QuotaType = 'QuotaType' in params ? params.QuotaType : null;
61413
61515
  this.QuotaLimit = 'QuotaLimit' in params ? params.QuotaLimit : null;
61414
61516
  this.ApiToken = 'ApiToken' in params ? params.ApiToken : null;
61517
+ this.QuotaPeriod = 'QuotaPeriod' in params ? params.QuotaPeriod : null;
61518
+ this.ResetDay = 'ResetDay' in params ? params.ResetDay : null;
61519
+ this.ModelQuotaSwitch = 'ModelQuotaSwitch' in params ? params.ModelQuotaSwitch : null;
61520
+
61521
+ if (params.ModelQuotas) {
61522
+ this.ModelQuotas = new Array();
61523
+ for (let z in params.ModelQuotas) {
61524
+ let obj = new AigcModelQuota();
61525
+ obj.deserialize(params.ModelQuotas[z]);
61526
+ this.ModelQuotas.push(obj);
61527
+ }
61528
+ }
61415
61529
 
61416
61530
  }
61417
61531
  }
@@ -70661,6 +70775,7 @@ module.exports = {
70661
70775
  CreateAdaptiveDynamicStreamingTemplateResponse: CreateAdaptiveDynamicStreamingTemplateResponse,
70662
70776
  DeleteSampleSnapshotTemplateRequest: DeleteSampleSnapshotTemplateRequest,
70663
70777
  AiAnalysisTaskInput: AiAnalysisTaskInput,
70778
+ AigcModelQuota: AigcModelQuota,
70664
70779
  MediaAiAnalysisTagItem: MediaAiAnalysisTagItem,
70665
70780
  DescribeStorageDataResponse: DescribeStorageDataResponse,
70666
70781
  AiRecognitionTaskOcrFullTextSegmentTextItem: AiRecognitionTaskOcrFullTextSegmentTextItem,
@@ -709,6 +709,7 @@ const DescribeAigcQuotasResponse = models.DescribeAigcQuotasResponse;
709
709
  const CreateAdaptiveDynamicStreamingTemplateResponse = models.CreateAdaptiveDynamicStreamingTemplateResponse;
710
710
  const DeleteSampleSnapshotTemplateRequest = models.DeleteSampleSnapshotTemplateRequest;
711
711
  const AiAnalysisTaskInput = models.AiAnalysisTaskInput;
712
+ const AigcModelQuota = models.AigcModelQuota;
712
713
  const MediaAiAnalysisTagItem = models.MediaAiAnalysisTagItem;
713
714
  const DescribeStorageDataResponse = models.DescribeStorageDataResponse;
714
715
  const AiRecognitionTaskOcrFullTextSegmentTextItem = models.AiRecognitionTaskOcrFullTextSegmentTextItem;
@@ -1411,9 +1412,9 @@ The designated file must be in hls format. All playlist files should preferably
1411
1412
  }
1412
1413
 
1413
1414
  /**
1414
- * This API is used to edit AIGC quota configuration. Quota usage starts accumulating when the quota feature is enabled. Once the quota is reached, AIGC features will no longer be usable.
1415
+ * This API is used to edit AIGC quota configuration. Quota usage accumulates from the start of quota enablement. Once the quota is reached, AIGC features will no longer be usable.
1415
1416
 
1416
- Since AGC content generation is an async task, real-time usage data cannot be obtained. Therefore, quota limits result in some errors, and precise control over the set limit cannot be achieved.
1417
+ Since content generation in AGC is an asynchronous task, real-time usage data cannot be obtained. Therefore, quota limits may result in some errors, and precise control over the set limit cannot be achieved.
1417
1418
  * @param {ModifyAigcQuotaRequest} req
1418
1419
  * @param {function(string, ModifyAigcQuotaResponse):void} cb
1419
1420
  * @public
@@ -2249,7 +2250,7 @@ When the current storage type of a media file is DEEP_ARCHIVE, it can be modifie
2249
2250
  }
2250
2251
 
2251
2252
  /**
2252
- * Creates a Token for invoking AIGC APIs. Data sync has a delay once created. It can be queried or deleted after about 30 seconds.
2253
+ * Update the Token for AIGC API calls. Data synchronization has a delay of about 30 seconds after the update.
2253
2254
  * @param {UpdateAigcApiTokenRequest} req
2254
2255
  * @param {function(string, UpdateAigcApiTokenResponse):void} cb
2255
2256
  * @public
@@ -2562,11 +2563,11 @@ This API is used to create a video rebirth template.
2562
2563
  }
2563
2564
 
2564
2565
  /**
2565
- * This API is used to create and enable AIGC quota configuration. Quota usage starts accumulating from the enablement of the quota feature. Once the quota is reached, AIGC features will no longer be usable.
2566
+ * This API is used to create and enable AIGC quota configuration. Quota usage starts accumulating when the quota feature is enabled. Once the quota is reached, AIGC features will no longer be usable.
2566
2567
 
2567
- If the quota is deleted and re-enabled, the amount will be cleared and recalculated.
2568
+ If the quota is deleted and re-enabled, the amount will be zero and recalculated.
2568
2569
 
2569
- Since AGC content generation is an asynchronous task, real-time usage data cannot be obtained. Therefore, quota limits may result in some errors, and completely precise control over the set limit cannot be achieved.
2570
+ Since content generation in AGC is an asynchronous task, real-time usage data cannot be obtained. Therefore, quota limits may result in some errors, and full precise control over the set limit cannot be achieved.
2570
2571
  * @param {CreateAigcQuotaRequest} req
2571
2572
  * @param {function(string, CreateAigcQuotaResponse):void} cb
2572
2573
  * @public