tencentcloud-sdk-nodejs 4.0.898 → 4.0.899

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/SERVICE_CHANGELOG.md +88 -166
  3. package/package.json +1 -1
  4. package/products.md +9 -8
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/cloudapp/index.ts +5 -0
  7. package/src/services/cloudapp/v20220530/cloudapp_client.ts +40 -0
  8. package/src/services/cloudapp/v20220530/cloudapp_models.ts +194 -0
  9. package/src/services/cloudapp/v20220530/index.ts +6 -0
  10. package/src/services/dsgc/v20190723/dsgc_models.ts +31 -3
  11. package/src/services/ess/v20201111/ess_models.ts +1 -1
  12. package/src/services/essbasic/v20210526/essbasic_client.ts +3 -1
  13. package/src/services/essbasic/v20210526/essbasic_models.ts +19 -5
  14. package/src/services/index.ts +1 -0
  15. package/src/services/lighthouse/v20200324/lighthouse_models.ts +6 -6
  16. package/src/services/mongodb/v20190725/mongodb_models.ts +2 -2
  17. package/src/services/monitor/v20180724/monitor_client.ts +1 -1
  18. package/src/services/monitor/v20180724/monitor_models.ts +10 -105
  19. package/src/services/tcr/v20190924/tcr_models.ts +1 -1
  20. package/tencentcloud/common/sdk_version.d.ts +1 -1
  21. package/tencentcloud/common/sdk_version.js +1 -1
  22. package/tencentcloud/services/cloudapp/index.d.ts +6 -0
  23. package/tencentcloud/services/cloudapp/index.js +7 -0
  24. package/tencentcloud/services/cloudapp/v20220530/cloudapp_client.d.ts +14 -0
  25. package/tencentcloud/services/cloudapp/v20220530/cloudapp_client.js +37 -0
  26. package/tencentcloud/services/cloudapp/v20220530/cloudapp_models.d.ts +174 -0
  27. package/tencentcloud/services/cloudapp/v20220530/cloudapp_models.js +18 -0
  28. package/tencentcloud/services/cloudapp/v20220530/index.d.ts +6 -0
  29. package/tencentcloud/services/cloudapp/v20220530/index.js +9 -0
  30. package/tencentcloud/services/dsgc/v20190723/dsgc_models.d.ts +31 -3
  31. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +1 -1
  32. package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +3 -1
  33. package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +3 -1
  34. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +19 -5
  35. package/tencentcloud/services/index.d.ts +1 -0
  36. package/tencentcloud/services/index.js +2 -0
  37. package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +6 -6
  38. package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +2 -2
  39. package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +1 -1
  40. package/tencentcloud/services/monitor/v20180724/monitor_client.js +1 -1
  41. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +10 -105
  42. package/tencentcloud/services/tcr/v20190924/tcr_models.d.ts +1 -1
  43. package/test/cloudapp.v20220530.test.js +31 -0
@@ -75,11 +75,11 @@ export interface DescribePolicyGroupListResponse {
75
75
  */
76
76
  export interface DescribePrometheusInstancesOverviewRequest {
77
77
  /**
78
- * 用于分页
78
+ * 分页偏移量,默认为0
79
79
  */
80
80
  Offset?: number;
81
81
  /**
82
- * 用于分页
82
+ * 返回数量,默认为20,最大值为100
83
83
  */
84
84
  Limit?: number;
85
85
  /**
@@ -524,38 +524,7 @@ export interface UpdateServiceDiscoveryRequest {
524
524
  */
525
525
  Type: number;
526
526
  /**
527
- * 服务发现配置信息,YAML 格式
528
-
529
- 示例值:
530
-
531
- ```
532
- apiVersion: monitoring.coreos.com/v1
533
- kind: ServiceMonitor
534
- metadata:
535
- name: go-demo # 填写一个唯一名称
536
- namespace: cm-prometheus # namespace固定,不要修改
537
- spec:
538
- endpoints:
539
- - interval: 30s
540
- # 填写service yaml中Prometheus Exporter对应的Port的Name
541
- port: 2112
542
- # 填写Prometheus Exporter对应的Path的值,不填默认/metrics
543
- path: /metrics
544
- relabelings:
545
- # ** 必须要有一个 label 为 application,这里假设 k8s 有一个 label 为 app,
546
- # 我们通过 relabel 的 replace 动作把它替换成了 application
547
- - action: replace
548
- sourceLabels: [__meta_kubernetes_pod_label_app]
549
- targetLabel: application
550
- # 选择要监控service所在的namespace
551
- namespaceSelector:
552
- matchNames:
553
- - golang-demo
554
- # 填写要监控service的Label值,以定位目标service
555
- selector:
556
- matchLabels:
557
- app: golang-app-demo
558
- ```
527
+ * 服务发现配置信息,YAML 格式,[具体YAML参数内容请参考](https://cloud.tencent.com/document/product/1416/55995#service-monitor)
559
528
  */
560
529
  Yaml: string;
561
530
  }
@@ -4760,7 +4729,7 @@ export interface DescribePrometheusTargetsTMPRequest {
4760
4729
  */
4761
4730
  Filters?: Array<Filter>;
4762
4731
  /**
4763
- * targets偏移量,默认为0
4732
+ * targets分页偏移量,默认为0
4764
4733
  */
4765
4734
  Offset?: number;
4766
4735
  /**
@@ -5830,38 +5799,7 @@ export interface CreateServiceDiscoveryRequest {
5830
5799
  */
5831
5800
  Type: number;
5832
5801
  /**
5833
- * 服务发现配置信息,YAML 格式
5834
-
5835
- 示例值:
5836
-
5837
- ```
5838
- apiVersion: monitoring.coreos.com/v1
5839
- kind: ServiceMonitor
5840
- metadata:
5841
- name: go-demo # 填写一个唯一名称
5842
- namespace: cm-prometheus # namespace固定,不要修改
5843
- spec:
5844
- endpoints:
5845
- - interval: 30s
5846
- # 填写service yaml中Prometheus Exporter对应的Port的Name
5847
- port: 2112
5848
- # 填写Prometheus Exporter对应的Path的值,不填默认/metrics
5849
- path: /metrics
5850
- relabelings:
5851
- # ** 必须要有一个 label 为 application,这里假设 k8s 有一个 label 为 app,
5852
- # 我们通过 relabel 的 replace 动作把它替换成了 application
5853
- - action: replace
5854
- sourceLabels: [__meta_kubernetes_pod_label_app]
5855
- targetLabel: application
5856
- # 选择要监控service所在的namespace
5857
- namespaceSelector:
5858
- matchNames:
5859
- - golang-demo
5860
- # 填写要监控service的Label值,以定位目标service
5861
- selector:
5862
- matchLabels:
5863
- app: golang-app-demo
5864
- ```
5802
+ * 服务发现配置信息,YAML 格式,[具体YAML参数内容请参考](https://cloud.tencent.com/document/product/1416/55995#service-monitor)
5865
5803
  */
5866
5804
  Yaml: string;
5867
5805
  }
@@ -7181,11 +7119,11 @@ export interface DescribePrometheusClusterAgentsRequest {
7181
7119
  */
7182
7120
  InstanceId: string;
7183
7121
  /**
7184
- * 用于分页
7122
+ * 偏移量,默认为0。
7185
7123
  */
7186
7124
  Offset?: number;
7187
7125
  /**
7188
- * 用于分页
7126
+ * 返回数量,默认为20,最大值为100。
7189
7127
  */
7190
7128
  Limit?: number;
7191
7129
  /**
@@ -8188,38 +8126,7 @@ export interface DeleteServiceDiscoveryRequest {
8188
8126
  */
8189
8127
  Type: number;
8190
8128
  /**
8191
- * 服务发现配置信息,YAML 格式
8192
-
8193
- 示例值:
8194
-
8195
- ```
8196
- apiVersion: monitoring.coreos.com/v1
8197
- kind: ServiceMonitor
8198
- metadata:
8199
- name: go-demo # 填写一个唯一名称
8200
- namespace: cm-prometheus # namespace固定,不要修改
8201
- spec:
8202
- endpoints:
8203
- - interval: 30s
8204
- # 填写service yaml中Prometheus Exporter对应的Port的Name
8205
- port: 2112
8206
- # 填写Prometheus Exporter对应的Path的值,不填默认/metrics
8207
- path: /metrics
8208
- relabelings:
8209
- # ** 必须要有一个 label 为 application,这里假设 k8s 有一个 label 为 app,
8210
- # 我们通过 relabel 的 replace 动作把它替换成了 application
8211
- - action: replace
8212
- sourceLabels: [__meta_kubernetes_pod_label_app]
8213
- targetLabel: application
8214
- # 选择要监控service所在的namespace
8215
- namespaceSelector:
8216
- matchNames:
8217
- - golang-demo
8218
- # 填写要监控service的Label值,以定位目标service
8219
- selector:
8220
- matchLabels:
8221
- app: golang-app-demo
8222
- ```
8129
+ * 服务发现配置信息,YAML 格式,[具体YAML参数内容请参考](https://cloud.tencent.com/document/product/1416/55995#service-monitor)
8223
8130
  */
8224
8131
  Yaml: string;
8225
8132
  }
@@ -8461,13 +8368,11 @@ export interface UpdateGrafanaWhiteListRequest {
8461
8368
  */
8462
8369
  export interface UpdatePrometheusAgentStatusRequest {
8463
8370
  /**
8464
- * Prometheus 实例 ID,例如:prom-abcd1234
8371
+ * Prometheus 实例 ID
8465
8372
  */
8466
8373
  InstanceId: string;
8467
8374
  /**
8468
8375
  * Agent ID 列表,例如:agent-abcd1234,可在控制台 Agent 管理中获取
8469
-
8470
- 示例值:["agent-abcd1234"]
8471
8376
  */
8472
8377
  AgentIds: Array<string>;
8473
8378
  /**
@@ -9496,7 +9401,7 @@ export interface DescribePrometheusTempRequest {
9496
9401
  */
9497
9402
  Filters?: Array<Filter>;
9498
9403
  /**
9499
- * 分页偏移
9404
+ * 分页偏移量,默认为0
9500
9405
  */
9501
9406
  Offset?: number;
9502
9407
  /**
@@ -3940,7 +3940,7 @@ export interface CheckInstanceNameResponse {
3940
3940
  */
3941
3941
  IsValidated?: boolean;
3942
3942
  /**
3943
- * 1: Illegal(名子非法), 2:Reserved(名字保留), 3:Existed(名字已存在)
3943
+ * 1: Illegal(名称非法), 2:Reserved(名字保留), 3:Existed(名字已存在)
3944
3944
  注意:此字段可能返回 null,表示取不到有效值。
3945
3945
  */
3946
3946
  DetailCode?: number;
@@ -0,0 +1,31 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.cloudapp.v20220530.Client({
5
+ credential: {
6
+ secretId: process.env.secretId,
7
+ secretKey: process.env.secretKey,
8
+ },
9
+ region: "ap-shanghai",
10
+ profile: {
11
+ signMethod: "TC3-HMAC-SHA256",
12
+ httpProfile: {
13
+ reqMethod: "POST",
14
+ reqTimeout: 30,
15
+ endpoint: "cvm.ap-shanghai.tencentcloudapi.com",
16
+ },
17
+ },
18
+ })
19
+ describe("cloudapp.v20220530.test.js", function () {
20
+
21
+ it("cloudapp.v20220530.VerifyLicense", async function () {
22
+ try {
23
+ const data = await client.VerifyLicense({})
24
+ expect(data).to.be.ok
25
+ } catch(error) {
26
+ expect(error.requestId).to.be.ok
27
+ expect(error.code).to.be.ok
28
+ }
29
+ })
30
+
31
+ })