@huaweicloud/huaweicloud-sdk-smn 3.1.39 → 3.1.40

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 (55) hide show
  1. package/package.json +2 -2
  2. package/v2/SmnClient.d.ts +168 -30
  3. package/v2/SmnClient.js +328 -45
  4. package/v2/SmnRegion.d.ts +2 -0
  5. package/v2/SmnRegion.js +5 -1
  6. package/v2/model/AccessPolicy.d.ts +16 -0
  7. package/v2/model/AccessPolicy.js +54 -0
  8. package/v2/model/AddSubscriptionRequestBody.d.ts +3 -0
  9. package/v2/model/AddSubscriptionRequestBody.js +4 -0
  10. package/v2/model/CreateLogtankRequest.d.ts +10 -0
  11. package/v2/model/CreateLogtankRequest.js +28 -0
  12. package/v2/model/CreateLogtankRequestBody.d.ts +11 -0
  13. package/v2/model/CreateLogtankRequestBody.js +39 -0
  14. package/v2/model/CreateLogtankResponse.d.ts +10 -0
  15. package/v2/model/CreateLogtankResponse.js +45 -0
  16. package/v2/model/CreateResourceTagRequestBody.d.ts +3 -3
  17. package/v2/model/DeleteLogtankRequest.d.ts +11 -0
  18. package/v2/model/DeleteLogtankRequest.js +39 -0
  19. package/v2/model/DeleteLogtankResponse.d.ts +8 -0
  20. package/v2/model/DeleteLogtankResponse.js +41 -0
  21. package/v2/model/ListLogtankRequest.d.ts +7 -0
  22. package/v2/model/ListLogtankRequest.js +24 -0
  23. package/v2/model/ListLogtankResponse.d.ts +13 -0
  24. package/v2/model/ListLogtankResponse.js +49 -0
  25. package/v2/model/ListTopicDetailsResponse.d.ts +4 -0
  26. package/v2/model/ListTopicDetailsResponse.js +14 -0
  27. package/v2/model/ListTopicsItem.d.ts +5 -1
  28. package/v2/model/ListTopicsItem.js +16 -1
  29. package/v2/model/ListTopicsRequest.d.ts +4 -0
  30. package/v2/model/ListTopicsRequest.js +14 -0
  31. package/v2/model/ListVersionRequest.d.ts +1 -5
  32. package/v2/model/ListVersionRequest.js +1 -16
  33. package/v2/model/ListVersionResponse.d.ts +3 -2
  34. package/v2/model/LogtankItem.d.ts +21 -0
  35. package/v2/model/LogtankItem.js +74 -0
  36. package/v2/model/SubscriptionExtension.d.ts +17 -0
  37. package/v2/model/SubscriptionExtension.js +55 -0
  38. package/v2/model/TopicAttribute.d.ts +8 -14
  39. package/v2/model/TopicAttribute.js +9 -36
  40. package/v2/model/UpdateLogtankRequest.d.ts +14 -0
  41. package/v2/model/UpdateLogtankRequest.js +43 -0
  42. package/v2/model/UpdateLogtankRequestBody.d.ts +11 -0
  43. package/v2/model/UpdateLogtankRequestBody.js +39 -0
  44. package/v2/model/UpdateLogtankResponse.d.ts +11 -0
  45. package/v2/model/UpdateLogtankResponse.js +45 -0
  46. package/v2/model/UpdateSubscriptionRequest.d.ts +14 -0
  47. package/v2/model/UpdateSubscriptionRequest.js +43 -0
  48. package/v2/model/UpdateSubscriptionRequestBody.d.ts +5 -0
  49. package/v2/model/UpdateSubscriptionRequestBody.js +14 -0
  50. package/v2/model/UpdateSubscriptionResponse.d.ts +12 -0
  51. package/v2/model/UpdateSubscriptionResponse.js +55 -0
  52. package/v2/public-api.d.ts +16 -1
  53. package/v2/public-api.js +16 -1
  54. package/v2/model/CreateResourceTagRequestBodyTag.d.ts +0 -7
  55. package/v2/model/CreateResourceTagRequestBodyTag.js +0 -19
package/v2/SmnRegion.d.ts CHANGED
@@ -16,6 +16,8 @@ export declare class SmnRegion {
16
16
  static SA_BRAZIL_1: any;
17
17
  static LA_SOUTH_2: any;
18
18
  static CN_NORTH_9: any;
19
+ static AP_SOUTHEAST_4: any;
20
+ static TR_WEST_1: any;
19
21
  private static REGION_MAP;
20
22
  static valueOf(regionId: string): any;
21
23
  }
package/v2/SmnRegion.js CHANGED
@@ -32,6 +32,8 @@ var SmnRegion = exports.SmnRegion = /** @class */ (function () {
32
32
  SmnRegion.SA_BRAZIL_1 = new region_1.Region("sa-brazil-1", ["https://smn.sa-brazil-1.myhuaweicloud.com"]);
33
33
  SmnRegion.LA_SOUTH_2 = new region_1.Region("la-south-2", ["https://smn.la-south-2.myhuaweicloud.com"]);
34
34
  SmnRegion.CN_NORTH_9 = new region_1.Region("cn-north-9", ["https://smn.cn-north-9.myhuaweicloud.com"]);
35
+ SmnRegion.AP_SOUTHEAST_4 = new region_1.Region("ap-southeast-4", ["https://smn.ap-southeast-4.myhuaweicloud.com"]);
36
+ SmnRegion.TR_WEST_1 = new region_1.Region("tr-west-1", ["https://smn.tr-west-1.myhuaweicloud.com"]);
35
37
  SmnRegion.REGION_MAP = {
36
38
  "af-south-1": SmnRegion.AF_SOUTH_1,
37
39
  "cn-north-4": SmnRegion.CN_NORTH_4,
@@ -49,7 +51,9 @@ var SmnRegion = exports.SmnRegion = /** @class */ (function () {
49
51
  "la-north-2": SmnRegion.LA_NORTH_2,
50
52
  "sa-brazil-1": SmnRegion.SA_BRAZIL_1,
51
53
  "la-south-2": SmnRegion.LA_SOUTH_2,
52
- "cn-north-9": SmnRegion.CN_NORTH_9
54
+ "cn-north-9": SmnRegion.CN_NORTH_9,
55
+ "ap-southeast-4": SmnRegion.AP_SOUTHEAST_4,
56
+ "tr-west-1": SmnRegion.TR_WEST_1
53
57
  };
54
58
  return SmnRegion;
55
59
  }());
@@ -0,0 +1,16 @@
1
+ import { Statement } from './Statement';
2
+ export declare class AccessPolicy {
3
+ private 'Version';
4
+ private 'Id';
5
+ private 'Statement';
6
+ constructor(version?: any, id?: any, statement?: any);
7
+ withVersion(version: string): AccessPolicy;
8
+ set version(version: string | undefined);
9
+ get version(): string | undefined;
10
+ withId(id: string): AccessPolicy;
11
+ set id(id: string | undefined);
12
+ get id(): string | undefined;
13
+ withStatement(statement: Array<Statement>): AccessPolicy;
14
+ set statement(statement: Array<Statement> | undefined);
15
+ get statement(): Array<Statement> | undefined;
16
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AccessPolicy = void 0;
4
+ var AccessPolicy = /** @class */ (function () {
5
+ function AccessPolicy(version, id, statement) {
6
+ this['Version'] = version;
7
+ this['Id'] = id;
8
+ this['Statement'] = statement;
9
+ }
10
+ AccessPolicy.prototype.withVersion = function (version) {
11
+ this['Version'] = version;
12
+ return this;
13
+ };
14
+ Object.defineProperty(AccessPolicy.prototype, "version", {
15
+ get: function () {
16
+ return this['Version'];
17
+ },
18
+ set: function (version) {
19
+ this['Version'] = version;
20
+ },
21
+ enumerable: false,
22
+ configurable: true
23
+ });
24
+ AccessPolicy.prototype.withId = function (id) {
25
+ this['Id'] = id;
26
+ return this;
27
+ };
28
+ Object.defineProperty(AccessPolicy.prototype, "id", {
29
+ get: function () {
30
+ return this['Id'];
31
+ },
32
+ set: function (id) {
33
+ this['Id'] = id;
34
+ },
35
+ enumerable: false,
36
+ configurable: true
37
+ });
38
+ AccessPolicy.prototype.withStatement = function (statement) {
39
+ this['Statement'] = statement;
40
+ return this;
41
+ };
42
+ Object.defineProperty(AccessPolicy.prototype, "statement", {
43
+ get: function () {
44
+ return this['Statement'];
45
+ },
46
+ set: function (statement) {
47
+ this['Statement'] = statement;
48
+ },
49
+ enumerable: false,
50
+ configurable: true
51
+ });
52
+ return AccessPolicy;
53
+ }());
54
+ exports.AccessPolicy = AccessPolicy;
@@ -1,9 +1,12 @@
1
+ import { SubscriptionExtension } from './SubscriptionExtension';
1
2
  export declare class AddSubscriptionRequestBody {
2
3
  protocol: string;
3
4
  endpoint: string;
4
5
  remark?: string;
6
+ extension?: SubscriptionExtension;
5
7
  constructor(protocol?: any, endpoint?: any);
6
8
  withProtocol(protocol: string): AddSubscriptionRequestBody;
7
9
  withEndpoint(endpoint: string): AddSubscriptionRequestBody;
8
10
  withRemark(remark: string): AddSubscriptionRequestBody;
11
+ withExtension(extension: SubscriptionExtension): AddSubscriptionRequestBody;
9
12
  }
@@ -18,6 +18,10 @@ var AddSubscriptionRequestBody = /** @class */ (function () {
18
18
  this['remark'] = remark;
19
19
  return this;
20
20
  };
21
+ AddSubscriptionRequestBody.prototype.withExtension = function (extension) {
22
+ this['extension'] = extension;
23
+ return this;
24
+ };
21
25
  return AddSubscriptionRequestBody;
22
26
  }());
23
27
  exports.AddSubscriptionRequestBody = AddSubscriptionRequestBody;
@@ -0,0 +1,10 @@
1
+ import { CreateLogtankRequestBody } from './CreateLogtankRequestBody';
2
+ export declare class CreateLogtankRequest {
3
+ private 'topic_urn';
4
+ body?: CreateLogtankRequestBody;
5
+ constructor(topicUrn?: any);
6
+ withTopicUrn(topicUrn: string): CreateLogtankRequest;
7
+ set topicUrn(topicUrn: string | undefined);
8
+ get topicUrn(): string | undefined;
9
+ withBody(body: CreateLogtankRequestBody): CreateLogtankRequest;
10
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateLogtankRequest = void 0;
4
+ var CreateLogtankRequest = /** @class */ (function () {
5
+ function CreateLogtankRequest(topicUrn) {
6
+ this['topic_urn'] = topicUrn;
7
+ }
8
+ CreateLogtankRequest.prototype.withTopicUrn = function (topicUrn) {
9
+ this['topic_urn'] = topicUrn;
10
+ return this;
11
+ };
12
+ Object.defineProperty(CreateLogtankRequest.prototype, "topicUrn", {
13
+ get: function () {
14
+ return this['topic_urn'];
15
+ },
16
+ set: function (topicUrn) {
17
+ this['topic_urn'] = topicUrn;
18
+ },
19
+ enumerable: false,
20
+ configurable: true
21
+ });
22
+ CreateLogtankRequest.prototype.withBody = function (body) {
23
+ this['body'] = body;
24
+ return this;
25
+ };
26
+ return CreateLogtankRequest;
27
+ }());
28
+ exports.CreateLogtankRequest = CreateLogtankRequest;
@@ -0,0 +1,11 @@
1
+ export declare class CreateLogtankRequestBody {
2
+ private 'log_group_id';
3
+ private 'log_stream_id';
4
+ constructor(logGroupId?: any, logStreamId?: any);
5
+ withLogGroupId(logGroupId: string): CreateLogtankRequestBody;
6
+ set logGroupId(logGroupId: string | undefined);
7
+ get logGroupId(): string | undefined;
8
+ withLogStreamId(logStreamId: string): CreateLogtankRequestBody;
9
+ set logStreamId(logStreamId: string | undefined);
10
+ get logStreamId(): string | undefined;
11
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateLogtankRequestBody = void 0;
4
+ var CreateLogtankRequestBody = /** @class */ (function () {
5
+ function CreateLogtankRequestBody(logGroupId, logStreamId) {
6
+ this['log_group_id'] = logGroupId;
7
+ this['log_stream_id'] = logStreamId;
8
+ }
9
+ CreateLogtankRequestBody.prototype.withLogGroupId = function (logGroupId) {
10
+ this['log_group_id'] = logGroupId;
11
+ return this;
12
+ };
13
+ Object.defineProperty(CreateLogtankRequestBody.prototype, "logGroupId", {
14
+ get: function () {
15
+ return this['log_group_id'];
16
+ },
17
+ set: function (logGroupId) {
18
+ this['log_group_id'] = logGroupId;
19
+ },
20
+ enumerable: false,
21
+ configurable: true
22
+ });
23
+ CreateLogtankRequestBody.prototype.withLogStreamId = function (logStreamId) {
24
+ this['log_stream_id'] = logStreamId;
25
+ return this;
26
+ };
27
+ Object.defineProperty(CreateLogtankRequestBody.prototype, "logStreamId", {
28
+ get: function () {
29
+ return this['log_stream_id'];
30
+ },
31
+ set: function (logStreamId) {
32
+ this['log_stream_id'] = logStreamId;
33
+ },
34
+ enumerable: false,
35
+ configurable: true
36
+ });
37
+ return CreateLogtankRequestBody;
38
+ }());
39
+ exports.CreateLogtankRequestBody = CreateLogtankRequestBody;
@@ -0,0 +1,10 @@
1
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
2
+ export declare class CreateLogtankResponse extends SdkResponse {
3
+ private 'request_id'?;
4
+ id?: string;
5
+ constructor();
6
+ withRequestId(requestId: string): CreateLogtankResponse;
7
+ set requestId(requestId: string | undefined);
8
+ get requestId(): string | undefined;
9
+ withId(id: string): CreateLogtankResponse;
10
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.CreateLogtankResponse = void 0;
19
+ var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
20
+ var CreateLogtankResponse = /** @class */ (function (_super) {
21
+ __extends(CreateLogtankResponse, _super);
22
+ function CreateLogtankResponse() {
23
+ return _super.call(this) || this;
24
+ }
25
+ CreateLogtankResponse.prototype.withRequestId = function (requestId) {
26
+ this['request_id'] = requestId;
27
+ return this;
28
+ };
29
+ Object.defineProperty(CreateLogtankResponse.prototype, "requestId", {
30
+ get: function () {
31
+ return this['request_id'];
32
+ },
33
+ set: function (requestId) {
34
+ this['request_id'] = requestId;
35
+ },
36
+ enumerable: false,
37
+ configurable: true
38
+ });
39
+ CreateLogtankResponse.prototype.withId = function (id) {
40
+ this['id'] = id;
41
+ return this;
42
+ };
43
+ return CreateLogtankResponse;
44
+ }(SdkResponse_1.SdkResponse));
45
+ exports.CreateLogtankResponse = CreateLogtankResponse;
@@ -1,6 +1,6 @@
1
- import { CreateResourceTagRequestBodyTag } from './CreateResourceTagRequestBodyTag';
1
+ import { ResourceTag } from './ResourceTag';
2
2
  export declare class CreateResourceTagRequestBody {
3
- tag: CreateResourceTagRequestBodyTag;
3
+ tag: ResourceTag;
4
4
  constructor(tag?: any);
5
- withTag(tag: CreateResourceTagRequestBodyTag): CreateResourceTagRequestBody;
5
+ withTag(tag: ResourceTag): CreateResourceTagRequestBody;
6
6
  }
@@ -0,0 +1,11 @@
1
+ export declare class DeleteLogtankRequest {
2
+ private 'topic_urn';
3
+ private 'logtank_id';
4
+ constructor(topicUrn?: any, logtankId?: any);
5
+ withTopicUrn(topicUrn: string): DeleteLogtankRequest;
6
+ set topicUrn(topicUrn: string | undefined);
7
+ get topicUrn(): string | undefined;
8
+ withLogtankId(logtankId: string): DeleteLogtankRequest;
9
+ set logtankId(logtankId: string | undefined);
10
+ get logtankId(): string | undefined;
11
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteLogtankRequest = void 0;
4
+ var DeleteLogtankRequest = /** @class */ (function () {
5
+ function DeleteLogtankRequest(topicUrn, logtankId) {
6
+ this['topic_urn'] = topicUrn;
7
+ this['logtank_id'] = logtankId;
8
+ }
9
+ DeleteLogtankRequest.prototype.withTopicUrn = function (topicUrn) {
10
+ this['topic_urn'] = topicUrn;
11
+ return this;
12
+ };
13
+ Object.defineProperty(DeleteLogtankRequest.prototype, "topicUrn", {
14
+ get: function () {
15
+ return this['topic_urn'];
16
+ },
17
+ set: function (topicUrn) {
18
+ this['topic_urn'] = topicUrn;
19
+ },
20
+ enumerable: false,
21
+ configurable: true
22
+ });
23
+ DeleteLogtankRequest.prototype.withLogtankId = function (logtankId) {
24
+ this['logtank_id'] = logtankId;
25
+ return this;
26
+ };
27
+ Object.defineProperty(DeleteLogtankRequest.prototype, "logtankId", {
28
+ get: function () {
29
+ return this['logtank_id'];
30
+ },
31
+ set: function (logtankId) {
32
+ this['logtank_id'] = logtankId;
33
+ },
34
+ enumerable: false,
35
+ configurable: true
36
+ });
37
+ return DeleteLogtankRequest;
38
+ }());
39
+ exports.DeleteLogtankRequest = DeleteLogtankRequest;
@@ -0,0 +1,8 @@
1
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
2
+ export declare class DeleteLogtankResponse extends SdkResponse {
3
+ private 'request_id'?;
4
+ constructor();
5
+ withRequestId(requestId: string): DeleteLogtankResponse;
6
+ set requestId(requestId: string | undefined);
7
+ get requestId(): string | undefined;
8
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.DeleteLogtankResponse = void 0;
19
+ var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
20
+ var DeleteLogtankResponse = /** @class */ (function (_super) {
21
+ __extends(DeleteLogtankResponse, _super);
22
+ function DeleteLogtankResponse() {
23
+ return _super.call(this) || this;
24
+ }
25
+ DeleteLogtankResponse.prototype.withRequestId = function (requestId) {
26
+ this['request_id'] = requestId;
27
+ return this;
28
+ };
29
+ Object.defineProperty(DeleteLogtankResponse.prototype, "requestId", {
30
+ get: function () {
31
+ return this['request_id'];
32
+ },
33
+ set: function (requestId) {
34
+ this['request_id'] = requestId;
35
+ },
36
+ enumerable: false,
37
+ configurable: true
38
+ });
39
+ return DeleteLogtankResponse;
40
+ }(SdkResponse_1.SdkResponse));
41
+ exports.DeleteLogtankResponse = DeleteLogtankResponse;
@@ -0,0 +1,7 @@
1
+ export declare class ListLogtankRequest {
2
+ private 'topic_urn';
3
+ constructor(topicUrn?: any);
4
+ withTopicUrn(topicUrn: string): ListLogtankRequest;
5
+ set topicUrn(topicUrn: string | undefined);
6
+ get topicUrn(): string | undefined;
7
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListLogtankRequest = void 0;
4
+ var ListLogtankRequest = /** @class */ (function () {
5
+ function ListLogtankRequest(topicUrn) {
6
+ this['topic_urn'] = topicUrn;
7
+ }
8
+ ListLogtankRequest.prototype.withTopicUrn = function (topicUrn) {
9
+ this['topic_urn'] = topicUrn;
10
+ return this;
11
+ };
12
+ Object.defineProperty(ListLogtankRequest.prototype, "topicUrn", {
13
+ get: function () {
14
+ return this['topic_urn'];
15
+ },
16
+ set: function (topicUrn) {
17
+ this['topic_urn'] = topicUrn;
18
+ },
19
+ enumerable: false,
20
+ configurable: true
21
+ });
22
+ return ListLogtankRequest;
23
+ }());
24
+ exports.ListLogtankRequest = ListLogtankRequest;
@@ -0,0 +1,13 @@
1
+ import { LogtankItem } from './LogtankItem';
2
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
3
+ export declare class ListLogtankResponse extends SdkResponse {
4
+ private 'request_id'?;
5
+ count?: number;
6
+ logtanks?: Array<LogtankItem>;
7
+ constructor();
8
+ withRequestId(requestId: string): ListLogtankResponse;
9
+ set requestId(requestId: string | undefined);
10
+ get requestId(): string | undefined;
11
+ withCount(count: number): ListLogtankResponse;
12
+ withLogtanks(logtanks: Array<LogtankItem>): ListLogtankResponse;
13
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ListLogtankResponse = void 0;
19
+ var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
20
+ var ListLogtankResponse = /** @class */ (function (_super) {
21
+ __extends(ListLogtankResponse, _super);
22
+ function ListLogtankResponse() {
23
+ return _super.call(this) || this;
24
+ }
25
+ ListLogtankResponse.prototype.withRequestId = function (requestId) {
26
+ this['request_id'] = requestId;
27
+ return this;
28
+ };
29
+ Object.defineProperty(ListLogtankResponse.prototype, "requestId", {
30
+ get: function () {
31
+ return this['request_id'];
32
+ },
33
+ set: function (requestId) {
34
+ this['request_id'] = requestId;
35
+ },
36
+ enumerable: false,
37
+ configurable: true
38
+ });
39
+ ListLogtankResponse.prototype.withCount = function (count) {
40
+ this['count'] = count;
41
+ return this;
42
+ };
43
+ ListLogtankResponse.prototype.withLogtanks = function (logtanks) {
44
+ this['logtanks'] = logtanks;
45
+ return this;
46
+ };
47
+ return ListLogtankResponse;
48
+ }(SdkResponse_1.SdkResponse));
49
+ exports.ListLogtankResponse = ListLogtankResponse;
@@ -8,6 +8,7 @@ export declare class ListTopicDetailsResponse extends SdkResponse {
8
8
  private 'display_name'?;
9
9
  private 'request_id'?;
10
10
  private 'enterprise_project_id'?;
11
+ private 'topic_id'?;
11
12
  constructor();
12
13
  withUpdateTime(updateTime: string): ListTopicDetailsResponse;
13
14
  set updateTime(updateTime: string | undefined);
@@ -31,4 +32,7 @@ export declare class ListTopicDetailsResponse extends SdkResponse {
31
32
  withEnterpriseProjectId(enterpriseProjectId: string): ListTopicDetailsResponse;
32
33
  set enterpriseProjectId(enterpriseProjectId: string | undefined);
33
34
  get enterpriseProjectId(): string | undefined;
35
+ withTopicId(topicId: string): ListTopicDetailsResponse;
36
+ set topicId(topicId: string | undefined);
37
+ get topicId(): string | undefined;
34
38
  }
@@ -124,6 +124,20 @@ var ListTopicDetailsResponse = /** @class */ (function (_super) {
124
124
  enumerable: false,
125
125
  configurable: true
126
126
  });
127
+ ListTopicDetailsResponse.prototype.withTopicId = function (topicId) {
128
+ this['topic_id'] = topicId;
129
+ return this;
130
+ };
131
+ Object.defineProperty(ListTopicDetailsResponse.prototype, "topicId", {
132
+ get: function () {
133
+ return this['topic_id'];
134
+ },
135
+ set: function (topicId) {
136
+ this['topic_id'] = topicId;
137
+ },
138
+ enumerable: false,
139
+ configurable: true
140
+ });
127
141
  return ListTopicDetailsResponse;
128
142
  }(SdkResponse_1.SdkResponse));
129
143
  exports.ListTopicDetailsResponse = ListTopicDetailsResponse;
@@ -4,7 +4,8 @@ export declare class ListTopicsItem {
4
4
  private 'display_name';
5
5
  private 'push_policy';
6
6
  private 'enterprise_project_id';
7
- constructor(topicUrn?: any, name?: any, displayName?: any, pushPolicy?: any, enterpriseProjectId?: any);
7
+ private 'topic_id';
8
+ constructor(topicUrn?: any, name?: any, displayName?: any, pushPolicy?: any, enterpriseProjectId?: any, topicId?: any);
8
9
  withTopicUrn(topicUrn: string): ListTopicsItem;
9
10
  set topicUrn(topicUrn: string | undefined);
10
11
  get topicUrn(): string | undefined;
@@ -18,4 +19,7 @@ export declare class ListTopicsItem {
18
19
  withEnterpriseProjectId(enterpriseProjectId: string): ListTopicsItem;
19
20
  set enterpriseProjectId(enterpriseProjectId: string | undefined);
20
21
  get enterpriseProjectId(): string | undefined;
22
+ withTopicId(topicId: string): ListTopicsItem;
23
+ set topicId(topicId: string | undefined);
24
+ get topicId(): string | undefined;
21
25
  }
@@ -2,12 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ListTopicsItem = void 0;
4
4
  var ListTopicsItem = /** @class */ (function () {
5
- function ListTopicsItem(topicUrn, name, displayName, pushPolicy, enterpriseProjectId) {
5
+ function ListTopicsItem(topicUrn, name, displayName, pushPolicy, enterpriseProjectId, topicId) {
6
6
  this['topic_urn'] = topicUrn;
7
7
  this['name'] = name;
8
8
  this['display_name'] = displayName;
9
9
  this['push_policy'] = pushPolicy;
10
10
  this['enterprise_project_id'] = enterpriseProjectId;
11
+ this['topic_id'] = topicId;
11
12
  }
12
13
  ListTopicsItem.prototype.withTopicUrn = function (topicUrn) {
13
14
  this['topic_urn'] = topicUrn;
@@ -69,6 +70,20 @@ var ListTopicsItem = /** @class */ (function () {
69
70
  enumerable: false,
70
71
  configurable: true
71
72
  });
73
+ ListTopicsItem.prototype.withTopicId = function (topicId) {
74
+ this['topic_id'] = topicId;
75
+ return this;
76
+ };
77
+ Object.defineProperty(ListTopicsItem.prototype, "topicId", {
78
+ get: function () {
79
+ return this['topic_id'];
80
+ },
81
+ set: function (topicId) {
82
+ this['topic_id'] = topicId;
83
+ },
84
+ enumerable: false,
85
+ configurable: true
86
+ });
72
87
  return ListTopicsItem;
73
88
  }());
74
89
  exports.ListTopicsItem = ListTopicsItem;
@@ -4,6 +4,7 @@ export declare class ListTopicsRequest {
4
4
  private 'enterprise_project_id'?;
5
5
  name?: string;
6
6
  private 'fuzzy_name'?;
7
+ private 'topic_id'?;
7
8
  constructor();
8
9
  withOffset(offset: number): ListTopicsRequest;
9
10
  withLimit(limit: number): ListTopicsRequest;
@@ -14,4 +15,7 @@ export declare class ListTopicsRequest {
14
15
  withFuzzyName(fuzzyName: string): ListTopicsRequest;
15
16
  set fuzzyName(fuzzyName: string | undefined);
16
17
  get fuzzyName(): string | undefined;
18
+ withTopicId(topicId: string): ListTopicsRequest;
19
+ set topicId(topicId: string | undefined);
20
+ get topicId(): string | undefined;
17
21
  }
@@ -44,6 +44,20 @@ var ListTopicsRequest = /** @class */ (function () {
44
44
  enumerable: false,
45
45
  configurable: true
46
46
  });
47
+ ListTopicsRequest.prototype.withTopicId = function (topicId) {
48
+ this['topic_id'] = topicId;
49
+ return this;
50
+ };
51
+ Object.defineProperty(ListTopicsRequest.prototype, "topicId", {
52
+ get: function () {
53
+ return this['topic_id'];
54
+ },
55
+ set: function (topicId) {
56
+ this['topic_id'] = topicId;
57
+ },
58
+ enumerable: false,
59
+ configurable: true
60
+ });
47
61
  return ListTopicsRequest;
48
62
  }());
49
63
  exports.ListTopicsRequest = ListTopicsRequest;
@@ -1,7 +1,3 @@
1
1
  export declare class ListVersionRequest {
2
- private 'api_version';
3
- constructor(apiVersion?: any);
4
- withApiVersion(apiVersion: string): ListVersionRequest;
5
- set apiVersion(apiVersion: string | undefined);
6
- get apiVersion(): string | undefined;
2
+ constructor();
7
3
  }
@@ -2,23 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ListVersionRequest = void 0;
4
4
  var ListVersionRequest = /** @class */ (function () {
5
- function ListVersionRequest(apiVersion) {
6
- this['api_version'] = apiVersion;
5
+ function ListVersionRequest() {
7
6
  }
8
- ListVersionRequest.prototype.withApiVersion = function (apiVersion) {
9
- this['api_version'] = apiVersion;
10
- return this;
11
- };
12
- Object.defineProperty(ListVersionRequest.prototype, "apiVersion", {
13
- get: function () {
14
- return this['api_version'];
15
- },
16
- set: function (apiVersion) {
17
- this['api_version'] = apiVersion;
18
- },
19
- enumerable: false,
20
- configurable: true
21
- });
22
7
  return ListVersionRequest;
23
8
  }());
24
9
  exports.ListVersionRequest = ListVersionRequest;