@huaweicloud/huaweicloud-sdk-smn 3.1.45 → 3.1.46
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/huaweicloud-sdk-smn.ts +4 -0
- package/package.json +4 -4
- package/v2/{SmnClient.js → SmnClient.ts} +1260 -788
- package/v2/SmnRegion.ts +62 -0
- package/v2/model/AccessPolicy.ts +43 -0
- package/v2/model/AddSubscriptionRequest.ts +24 -0
- package/v2/model/AddSubscriptionRequestBody.ts +29 -0
- package/v2/model/AddSubscriptionResponse.ts +30 -0
- package/v2/model/ApplicationEndpoint.ts +54 -0
- package/v2/model/ApplicationItem.ts +71 -0
- package/v2/model/BatchCreateOrDeleteResourceTagsRequest.ts +36 -0
- package/v2/model/BatchCreateOrDeleteResourceTagsRequestBody.ts +19 -0
- package/v2/model/BatchCreateOrDeleteResourceTagsResponse.ts +8 -0
- package/v2/model/CancelSubscriptionRequest.ts +18 -0
- package/v2/model/CancelSubscriptionResponse.ts +19 -0
- package/v2/model/CreateApplicationEndpointRequest.ts +24 -0
- package/v2/model/CreateApplicationEndpointRequestBody.ts +24 -0
- package/v2/model/CreateApplicationEndpointResponse.ts +30 -0
- package/v2/model/CreateApplicationRequest.ts +12 -0
- package/v2/model/CreateApplicationRequestBody.ts +42 -0
- package/v2/model/CreateApplicationResponse.ts +41 -0
- package/v2/model/CreateLogtankRequest.ts +24 -0
- package/v2/model/CreateLogtankRequestBody.ts +30 -0
- package/v2/model/CreateLogtankResponse.ts +24 -0
- package/v2/model/CreateMessageTemplateRequest.ts +12 -0
- package/v2/model/CreateMessageTemplateRequestBody.ts +30 -0
- package/v2/model/CreateMessageTemplateResponse.ts +30 -0
- package/v2/model/CreateResourceTagRequest.ts +36 -0
- package/v2/model/CreateResourceTagRequestBody.ts +13 -0
- package/v2/model/CreateResourceTagResponse.ts +8 -0
- package/v2/model/CreateTopicRequest.ts +12 -0
- package/v2/model/CreateTopicRequestBody.ts +35 -0
- package/v2/model/CreateTopicResponse.ts +30 -0
- package/v2/model/DeleteApplicationEndpointRequest.ts +18 -0
- package/v2/model/DeleteApplicationEndpointResponse.ts +19 -0
- package/v2/model/DeleteApplicationRequest.ts +18 -0
- package/v2/model/DeleteApplicationResponse.ts +19 -0
- package/v2/model/DeleteLogtankRequest.ts +30 -0
- package/v2/model/DeleteLogtankResponse.ts +19 -0
- package/v2/model/DeleteMessageTemplateRequest.ts +18 -0
- package/v2/model/DeleteMessageTemplateResponse.ts +19 -0
- package/v2/model/DeleteResourceTagRequest.ts +36 -0
- package/v2/model/DeleteResourceTagResponse.ts +8 -0
- package/v2/model/DeleteTopicAttributeByNameRequest.ts +24 -0
- package/v2/model/DeleteTopicAttributeByNameResponse.ts +19 -0
- package/v2/model/DeleteTopicAttributesRequest.ts +18 -0
- package/v2/model/DeleteTopicAttributesResponse.ts +19 -0
- package/v2/model/DeleteTopicRequest.ts +18 -0
- package/v2/model/DeleteTopicResponse.ts +19 -0
- package/v2/model/LinksItem.ts +18 -0
- package/v2/model/ListApplicationAttributesRequest.ts +18 -0
- package/v2/model/ListApplicationAttributesResponse.ts +36 -0
- package/v2/model/ListApplicationAttributesResponseBodyAttributes.ts +23 -0
- package/v2/model/ListApplicationEndpointAttributesRequest.ts +18 -0
- package/v2/model/ListApplicationEndpointAttributesResponse.ts +25 -0
- package/v2/model/ListApplicationEndpointAttributesResponseBodyAttributes.ts +30 -0
- package/v2/model/ListApplicationEndpointsRequest.ts +49 -0
- package/v2/model/ListApplicationEndpointsResponse.ts +36 -0
- package/v2/model/ListApplicationsRequest.ts +26 -0
- package/v2/model/ListApplicationsResponse.ts +36 -0
- package/v2/model/ListInstanceRequestBody.ts +67 -0
- package/v2/model/ListLogtankRequest.ts +18 -0
- package/v2/model/ListLogtankResponse.ts +30 -0
- package/v2/model/ListMessageTemplateDetailsRequest.ts +18 -0
- package/v2/model/ListMessageTemplateDetailsResponse.ts +84 -0
- package/v2/model/ListMessageTemplatesRequest.ts +32 -0
- package/v2/model/ListMessageTemplatesResponse.ts +42 -0
- package/v2/model/ListProjectTagsRequest.ts +18 -0
- package/v2/model/ListProjectTagsResponse.ts +14 -0
- package/v2/model/ListResourceInstancesRequest.ts +24 -0
- package/v2/model/ListResourceInstancesResponse.ts +25 -0
- package/v2/model/ListResourceTagsRequest.ts +30 -0
- package/v2/model/ListResourceTagsResponse.ts +14 -0
- package/v2/model/ListSubscriptionsByTopicRequest.ts +28 -0
- package/v2/model/ListSubscriptionsByTopicResponse.ts +36 -0
- package/v2/model/ListSubscriptionsItem.ts +60 -0
- package/v2/model/ListSubscriptionsRequest.ts +31 -0
- package/v2/model/ListSubscriptionsResponse.ts +36 -0
- package/v2/model/ListTopicAttributesRequest.ts +24 -0
- package/v2/model/ListTopicAttributesResponse.ts +25 -0
- package/v2/model/ListTopicDetailsRequest.ts +18 -0
- package/v2/model/ListTopicDetailsResponse.ts +101 -0
- package/v2/model/ListTopicsItem.ts +72 -0
- package/v2/model/ListTopicsRequest.ts +54 -0
- package/v2/model/ListTopicsResponse.ts +36 -0
- package/v2/model/ListVersionRequest.ts +6 -0
- package/v2/model/ListVersionResponse.ts +14 -0
- package/v2/model/ListVersionsRequest.ts +6 -0
- package/v2/model/ListVersionsResponse.ts +14 -0
- package/v2/model/LogtankItem.ts +60 -0
- package/v2/model/MessageTemplate.ts +72 -0
- package/v2/model/PublishAppMessageRequest.ts +24 -0
- package/v2/model/PublishAppMessageRequestBody.ts +33 -0
- package/v2/model/PublishAppMessageResponse.ts +30 -0
- package/v2/model/PublishMessageRequest.ts +24 -0
- package/v2/model/PublishMessageRequestBody.ts +54 -0
- package/v2/model/PublishMessageResponse.ts +30 -0
- package/v2/model/ResourceDetail.ts +48 -0
- package/v2/model/ResourceTag.ts +18 -0
- package/v2/model/ResourceTags.ts +18 -0
- package/v2/model/Statement.ts +96 -0
- package/v2/model/SubscriptionExtension.ts +44 -0
- package/v2/model/TagMatch.ts +18 -0
- package/v2/model/TagResource.ts +50 -0
- package/v2/model/TopicAttribute.ts +23 -0
- package/v2/model/UpdateApplicationEndpointRequest.ts +24 -0
- package/v2/model/UpdateApplicationEndpointRequestBody.ts +22 -0
- package/v2/model/UpdateApplicationEndpointResponse.ts +19 -0
- package/v2/model/UpdateApplicationRequest.ts +24 -0
- package/v2/model/UpdateApplicationRequestBody.ts +30 -0
- package/v2/model/UpdateApplicationResponse.ts +19 -0
- package/v2/model/UpdateLogtankRequest.ts +36 -0
- package/v2/model/UpdateLogtankRequestBody.ts +30 -0
- package/v2/model/UpdateLogtankResponse.ts +25 -0
- package/v2/model/UpdateMessageTemplateRequest.ts +24 -0
- package/v2/model/UpdateMessageTemplateRequestBody.ts +12 -0
- package/v2/model/UpdateMessageTemplateResponse.ts +19 -0
- package/v2/model/UpdateSubscriptionRequest.ts +36 -0
- package/v2/model/UpdateSubscriptionRequestBody.ts +12 -0
- package/v2/model/UpdateSubscriptionResponse.ts +30 -0
- package/v2/model/UpdateTopicAttributeRequest.ts +30 -0
- package/v2/model/UpdateTopicAttributeRequestBody.ts +12 -0
- package/v2/model/UpdateTopicAttributeResponse.ts +19 -0
- package/v2/model/UpdateTopicRequest.ts +24 -0
- package/v2/model/UpdateTopicRequestBody.ts +18 -0
- package/v2/model/UpdateTopicResponse.ts +19 -0
- package/v2/model/VersionItem.ts +49 -0
- package/v2/{public-api.d.ts → public-api.ts} +1 -0
- package/LICENSE +0 -13
- package/README.md +0 -1
- package/huaweicloud-sdk-smn.d.ts +0 -2
- package/huaweicloud-sdk-smn.js +0 -31
- package/v2/SmnClient.d.ts +0 -1229
- package/v2/SmnRegion.d.ts +0 -23
- package/v2/SmnRegion.js +0 -59
- package/v2/model/AccessPolicy.d.ts +0 -16
- package/v2/model/AccessPolicy.js +0 -54
- package/v2/model/AddSubscriptionRequest.d.ts +0 -10
- package/v2/model/AddSubscriptionRequest.js +0 -28
- package/v2/model/AddSubscriptionRequestBody.d.ts +0 -12
- package/v2/model/AddSubscriptionRequestBody.js +0 -27
- package/v2/model/AddSubscriptionResponse.d.ts +0 -12
- package/v2/model/AddSubscriptionResponse.js +0 -55
- package/v2/model/ApplicationEndpoint.d.ts +0 -19
- package/v2/model/ApplicationEndpoint.js +0 -64
- package/v2/model/ApplicationItem.d.ts +0 -25
- package/v2/model/ApplicationItem.js +0 -83
- package/v2/model/BatchCreateOrDeleteResourceTagsRequest.d.ts +0 -14
- package/v2/model/BatchCreateOrDeleteResourceTagsRequest.js +0 -43
- package/v2/model/BatchCreateOrDeleteResourceTagsRequestBody.d.ts +0 -8
- package/v2/model/BatchCreateOrDeleteResourceTagsRequestBody.js +0 -19
- package/v2/model/BatchCreateOrDeleteResourceTagsResponse.d.ts +0 -4
- package/v2/model/BatchCreateOrDeleteResourceTagsResponse.js +0 -27
- package/v2/model/CancelSubscriptionRequest.d.ts +0 -7
- package/v2/model/CancelSubscriptionRequest.js +0 -24
- package/v2/model/CancelSubscriptionResponse.d.ts +0 -8
- package/v2/model/CancelSubscriptionResponse.js +0 -41
- package/v2/model/CreateApplicationEndpointRequest.d.ts +0 -10
- package/v2/model/CreateApplicationEndpointRequest.js +0 -28
- package/v2/model/CreateApplicationEndpointRequestBody.d.ts +0 -9
- package/v2/model/CreateApplicationEndpointRequestBody.js +0 -29
- package/v2/model/CreateApplicationEndpointResponse.d.ts +0 -12
- package/v2/model/CreateApplicationEndpointResponse.js +0 -55
- package/v2/model/CreateApplicationRequest.d.ts +0 -6
- package/v2/model/CreateApplicationRequest.js +0 -13
- package/v2/model/CreateApplicationRequestBody.d.ts +0 -15
- package/v2/model/CreateApplicationRequestBody.js +0 -49
- package/v2/model/CreateApplicationResponse.d.ts +0 -16
- package/v2/model/CreateApplicationResponse.js +0 -69
- package/v2/model/CreateLogtankRequest.d.ts +0 -10
- package/v2/model/CreateLogtankRequest.js +0 -28
- package/v2/model/CreateLogtankRequestBody.d.ts +0 -11
- package/v2/model/CreateLogtankRequestBody.js +0 -39
- package/v2/model/CreateLogtankResponse.d.ts +0 -10
- package/v2/model/CreateLogtankResponse.js +0 -45
- package/v2/model/CreateMessageTemplateRequest.d.ts +0 -6
- package/v2/model/CreateMessageTemplateRequest.js +0 -13
- package/v2/model/CreateMessageTemplateRequestBody.d.ts +0 -11
- package/v2/model/CreateMessageTemplateRequestBody.js +0 -34
- package/v2/model/CreateMessageTemplateResponse.d.ts +0 -12
- package/v2/model/CreateMessageTemplateResponse.js +0 -55
- package/v2/model/CreateResourceTagRequest.d.ts +0 -14
- package/v2/model/CreateResourceTagRequest.js +0 -43
- package/v2/model/CreateResourceTagRequestBody.d.ts +0 -6
- package/v2/model/CreateResourceTagRequestBody.js +0 -14
- package/v2/model/CreateResourceTagResponse.d.ts +0 -4
- package/v2/model/CreateResourceTagResponse.js +0 -27
- package/v2/model/CreateTopicRequest.d.ts +0 -6
- package/v2/model/CreateTopicRequest.js +0 -13
- package/v2/model/CreateTopicRequestBody.d.ts +0 -13
- package/v2/model/CreateTopicRequestBody.js +0 -43
- package/v2/model/CreateTopicResponse.d.ts +0 -12
- package/v2/model/CreateTopicResponse.js +0 -55
- package/v2/model/DeleteApplicationEndpointRequest.d.ts +0 -7
- package/v2/model/DeleteApplicationEndpointRequest.js +0 -24
- package/v2/model/DeleteApplicationEndpointResponse.d.ts +0 -8
- package/v2/model/DeleteApplicationEndpointResponse.js +0 -41
- package/v2/model/DeleteApplicationRequest.d.ts +0 -7
- package/v2/model/DeleteApplicationRequest.js +0 -24
- package/v2/model/DeleteApplicationResponse.d.ts +0 -8
- package/v2/model/DeleteApplicationResponse.js +0 -41
- package/v2/model/DeleteLogtankRequest.d.ts +0 -11
- package/v2/model/DeleteLogtankRequest.js +0 -39
- package/v2/model/DeleteLogtankResponse.d.ts +0 -8
- package/v2/model/DeleteLogtankResponse.js +0 -41
- package/v2/model/DeleteMessageTemplateRequest.d.ts +0 -7
- package/v2/model/DeleteMessageTemplateRequest.js +0 -24
- package/v2/model/DeleteMessageTemplateResponse.d.ts +0 -8
- package/v2/model/DeleteMessageTemplateResponse.js +0 -41
- package/v2/model/DeleteResourceTagRequest.d.ts +0 -13
- package/v2/model/DeleteResourceTagRequest.js +0 -44
- package/v2/model/DeleteResourceTagResponse.d.ts +0 -4
- package/v2/model/DeleteResourceTagResponse.js +0 -27
- package/v2/model/DeleteTopicAttributeByNameRequest.d.ts +0 -9
- package/v2/model/DeleteTopicAttributeByNameRequest.js +0 -29
- package/v2/model/DeleteTopicAttributeByNameResponse.d.ts +0 -8
- package/v2/model/DeleteTopicAttributeByNameResponse.js +0 -41
- package/v2/model/DeleteTopicAttributesRequest.d.ts +0 -7
- package/v2/model/DeleteTopicAttributesRequest.js +0 -24
- package/v2/model/DeleteTopicAttributesResponse.d.ts +0 -8
- package/v2/model/DeleteTopicAttributesResponse.js +0 -41
- package/v2/model/DeleteTopicRequest.d.ts +0 -7
- package/v2/model/DeleteTopicRequest.js +0 -24
- package/v2/model/DeleteTopicResponse.d.ts +0 -8
- package/v2/model/DeleteTopicResponse.js +0 -41
- package/v2/model/LinksItem.d.ts +0 -7
- package/v2/model/LinksItem.js +0 -19
- package/v2/model/ListApplicationAttributesRequest.d.ts +0 -7
- package/v2/model/ListApplicationAttributesRequest.js +0 -24
- package/v2/model/ListApplicationAttributesResponse.d.ts +0 -15
- package/v2/model/ListApplicationAttributesResponse.js +0 -59
- package/v2/model/ListApplicationAttributesResponseBodyAttributes.d.ts +0 -9
- package/v2/model/ListApplicationAttributesResponseBodyAttributes.js +0 -28
- package/v2/model/ListApplicationEndpointAttributesRequest.d.ts +0 -7
- package/v2/model/ListApplicationEndpointAttributesRequest.js +0 -24
- package/v2/model/ListApplicationEndpointAttributesResponse.d.ts +0 -11
- package/v2/model/ListApplicationEndpointAttributesResponse.js +0 -45
- package/v2/model/ListApplicationEndpointAttributesResponseBodyAttributes.d.ts +0 -11
- package/v2/model/ListApplicationEndpointAttributesResponseBodyAttributes.js +0 -34
- package/v2/model/ListApplicationEndpointsRequest.d.ts +0 -19
- package/v2/model/ListApplicationEndpointsRequest.js +0 -54
- package/v2/model/ListApplicationEndpointsResponse.d.ts +0 -15
- package/v2/model/ListApplicationEndpointsResponse.js +0 -59
- package/v2/model/ListApplicationsRequest.d.ts +0 -11
- package/v2/model/ListApplicationsRequest.js +0 -25
- package/v2/model/ListApplicationsResponse.d.ts +0 -15
- package/v2/model/ListApplicationsResponse.js +0 -59
- package/v2/model/ListInstanceRequestBody.d.ts +0 -27
- package/v2/model/ListInstanceRequestBody.js +0 -72
- package/v2/model/ListLogtankRequest.d.ts +0 -7
- package/v2/model/ListLogtankRequest.js +0 -24
- package/v2/model/ListLogtankResponse.d.ts +0 -13
- package/v2/model/ListLogtankResponse.js +0 -49
- package/v2/model/ListMessageTemplateDetailsRequest.d.ts +0 -7
- package/v2/model/ListMessageTemplateDetailsRequest.js +0 -24
- package/v2/model/ListMessageTemplateDetailsResponse.d.ts +0 -32
- package/v2/model/ListMessageTemplateDetailsResponse.js +0 -119
- package/v2/model/ListMessageTemplatesRequest.d.ts +0 -13
- package/v2/model/ListMessageTemplatesRequest.js +0 -35
- package/v2/model/ListMessageTemplatesResponse.d.ts +0 -17
- package/v2/model/ListMessageTemplatesResponse.js +0 -69
- package/v2/model/ListProjectTagsRequest.d.ts +0 -7
- package/v2/model/ListProjectTagsRequest.js +0 -24
- package/v2/model/ListProjectTagsResponse.d.ts +0 -7
- package/v2/model/ListProjectTagsResponse.js +0 -31
- package/v2/model/ListResourceInstancesRequest.d.ts +0 -10
- package/v2/model/ListResourceInstancesRequest.js +0 -28
- package/v2/model/ListResourceInstancesResponse.d.ts +0 -11
- package/v2/model/ListResourceInstancesResponse.js +0 -45
- package/v2/model/ListResourceTagsRequest.d.ts +0 -11
- package/v2/model/ListResourceTagsRequest.js +0 -39
- package/v2/model/ListResourceTagsResponse.d.ts +0 -7
- package/v2/model/ListResourceTagsResponse.js +0 -31
- package/v2/model/ListSubscriptionsByTopicRequest.d.ts +0 -11
- package/v2/model/ListSubscriptionsByTopicRequest.js +0 -32
- package/v2/model/ListSubscriptionsByTopicResponse.d.ts +0 -15
- package/v2/model/ListSubscriptionsByTopicResponse.js +0 -59
- package/v2/model/ListSubscriptionsItem.d.ts +0 -21
- package/v2/model/ListSubscriptionsItem.js +0 -64
- package/v2/model/ListSubscriptionsRequest.d.ts +0 -13
- package/v2/model/ListSubscriptionsRequest.js +0 -29
- package/v2/model/ListSubscriptionsResponse.d.ts +0 -15
- package/v2/model/ListSubscriptionsResponse.js +0 -59
- package/v2/model/ListTopicAttributesRequest.d.ts +0 -9
- package/v2/model/ListTopicAttributesRequest.js +0 -29
- package/v2/model/ListTopicAttributesResponse.d.ts +0 -11
- package/v2/model/ListTopicAttributesResponse.js +0 -45
- package/v2/model/ListTopicDetailsRequest.d.ts +0 -7
- package/v2/model/ListTopicDetailsRequest.js +0 -24
- package/v2/model/ListTopicDetailsResponse.d.ts +0 -38
- package/v2/model/ListTopicDetailsResponse.js +0 -143
- package/v2/model/ListTopicsItem.d.ts +0 -25
- package/v2/model/ListTopicsItem.js +0 -89
- package/v2/model/ListTopicsRequest.d.ts +0 -21
- package/v2/model/ListTopicsRequest.js +0 -63
- package/v2/model/ListTopicsResponse.d.ts +0 -15
- package/v2/model/ListTopicsResponse.js +0 -59
- package/v2/model/ListVersionRequest.d.ts +0 -3
- package/v2/model/ListVersionRequest.js +0 -9
- package/v2/model/ListVersionResponse.d.ts +0 -7
- package/v2/model/ListVersionResponse.js +0 -31
- package/v2/model/ListVersionsRequest.d.ts +0 -3
- package/v2/model/ListVersionsRequest.js +0 -9
- package/v2/model/ListVersionsResponse.d.ts +0 -7
- package/v2/model/ListVersionsResponse.js +0 -31
- package/v2/model/LogtankItem.d.ts +0 -21
- package/v2/model/LogtankItem.js +0 -74
- package/v2/model/MessageTemplate.d.ts +0 -25
- package/v2/model/MessageTemplate.js +0 -89
- package/v2/model/PublishAppMessageRequest.d.ts +0 -10
- package/v2/model/PublishAppMessageRequest.js +0 -28
- package/v2/model/PublishAppMessageRequestBody.d.ts +0 -13
- package/v2/model/PublishAppMessageRequestBody.js +0 -41
- package/v2/model/PublishAppMessageResponse.d.ts +0 -12
- package/v2/model/PublishAppMessageResponse.js +0 -55
- package/v2/model/PublishMessageRequest.d.ts +0 -10
- package/v2/model/PublishMessageRequest.js +0 -28
- package/v2/model/PublishMessageRequestBody.d.ts +0 -25
- package/v2/model/PublishMessageRequestBody.js +0 -63
- package/v2/model/PublishMessageResponse.d.ts +0 -12
- package/v2/model/PublishMessageResponse.js +0 -55
- package/v2/model/ResourceDetail.d.ts +0 -17
- package/v2/model/ResourceDetail.js +0 -59
- package/v2/model/ResourceTag.d.ts +0 -7
- package/v2/model/ResourceTag.js +0 -19
- package/v2/model/ResourceTags.d.ts +0 -7
- package/v2/model/ResourceTags.js +0 -19
- package/v2/model/Statement.d.ts +0 -35
- package/v2/model/Statement.js +0 -123
- package/v2/model/SubscriptionExtension.d.ts +0 -17
- package/v2/model/SubscriptionExtension.js +0 -55
- package/v2/model/TagMatch.d.ts +0 -7
- package/v2/model/TagMatch.js +0 -19
- package/v2/model/TagResource.d.ts +0 -19
- package/v2/model/TagResource.js +0 -59
- package/v2/model/TopicAttribute.d.ts +0 -10
- package/v2/model/TopicAttribute.js +0 -27
- package/v2/model/UpdateApplicationEndpointRequest.d.ts +0 -10
- package/v2/model/UpdateApplicationEndpointRequest.js +0 -28
- package/v2/model/UpdateApplicationEndpointRequestBody.d.ts +0 -9
- package/v2/model/UpdateApplicationEndpointRequestBody.js +0 -27
- package/v2/model/UpdateApplicationEndpointResponse.d.ts +0 -8
- package/v2/model/UpdateApplicationEndpointResponse.js +0 -41
- package/v2/model/UpdateApplicationRequest.d.ts +0 -10
- package/v2/model/UpdateApplicationRequest.js +0 -28
- package/v2/model/UpdateApplicationRequestBody.d.ts +0 -11
- package/v2/model/UpdateApplicationRequestBody.js +0 -39
- package/v2/model/UpdateApplicationResponse.d.ts +0 -8
- package/v2/model/UpdateApplicationResponse.js +0 -41
- package/v2/model/UpdateLogtankRequest.d.ts +0 -14
- package/v2/model/UpdateLogtankRequest.js +0 -43
- package/v2/model/UpdateLogtankRequestBody.d.ts +0 -11
- package/v2/model/UpdateLogtankRequestBody.js +0 -39
- package/v2/model/UpdateLogtankResponse.d.ts +0 -11
- package/v2/model/UpdateLogtankResponse.js +0 -45
- package/v2/model/UpdateMessageTemplateRequest.d.ts +0 -10
- package/v2/model/UpdateMessageTemplateRequest.js +0 -28
- package/v2/model/UpdateMessageTemplateRequestBody.d.ts +0 -5
- package/v2/model/UpdateMessageTemplateRequestBody.js +0 -14
- package/v2/model/UpdateMessageTemplateResponse.d.ts +0 -8
- package/v2/model/UpdateMessageTemplateResponse.js +0 -41
- package/v2/model/UpdateSubscriptionRequest.d.ts +0 -14
- package/v2/model/UpdateSubscriptionRequest.js +0 -43
- package/v2/model/UpdateSubscriptionRequestBody.d.ts +0 -5
- package/v2/model/UpdateSubscriptionRequestBody.js +0 -14
- package/v2/model/UpdateSubscriptionResponse.d.ts +0 -12
- package/v2/model/UpdateSubscriptionResponse.js +0 -55
- package/v2/model/UpdateTopicAttributeRequest.d.ts +0 -12
- package/v2/model/UpdateTopicAttributeRequest.js +0 -33
- package/v2/model/UpdateTopicAttributeRequestBody.d.ts +0 -5
- package/v2/model/UpdateTopicAttributeRequestBody.js +0 -14
- package/v2/model/UpdateTopicAttributeResponse.d.ts +0 -8
- package/v2/model/UpdateTopicAttributeResponse.js +0 -41
- package/v2/model/UpdateTopicRequest.d.ts +0 -10
- package/v2/model/UpdateTopicRequest.js +0 -28
- package/v2/model/UpdateTopicRequestBody.d.ts +0 -7
- package/v2/model/UpdateTopicRequestBody.js +0 -24
- package/v2/model/UpdateTopicResponse.d.ts +0 -8
- package/v2/model/UpdateTopicResponse.js +0 -41
- package/v2/model/VersionItem.d.ts +0 -18
- package/v2/model/VersionItem.js +0 -49
- package/v2/public-api.js +0 -141
|
@@ -1,114 +1,193 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
1
|
+
import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient";
|
|
2
|
+
import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder";
|
|
3
|
+
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
|
4
|
+
|
|
5
|
+
import { AccessPolicy } from './model/AccessPolicy';
|
|
6
|
+
import { AddSubscriptionRequest } from './model/AddSubscriptionRequest';
|
|
7
|
+
import { AddSubscriptionRequestBody } from './model/AddSubscriptionRequestBody';
|
|
8
|
+
import { AddSubscriptionResponse } from './model/AddSubscriptionResponse';
|
|
9
|
+
import { ApplicationEndpoint } from './model/ApplicationEndpoint';
|
|
10
|
+
import { ApplicationItem } from './model/ApplicationItem';
|
|
11
|
+
import { BatchCreateOrDeleteResourceTagsRequest } from './model/BatchCreateOrDeleteResourceTagsRequest';
|
|
12
|
+
import { BatchCreateOrDeleteResourceTagsRequestBody } from './model/BatchCreateOrDeleteResourceTagsRequestBody';
|
|
13
|
+
import { BatchCreateOrDeleteResourceTagsResponse } from './model/BatchCreateOrDeleteResourceTagsResponse';
|
|
14
|
+
import { CancelSubscriptionRequest } from './model/CancelSubscriptionRequest';
|
|
15
|
+
import { CancelSubscriptionResponse } from './model/CancelSubscriptionResponse';
|
|
16
|
+
import { CreateApplicationEndpointRequest } from './model/CreateApplicationEndpointRequest';
|
|
17
|
+
import { CreateApplicationEndpointRequestBody } from './model/CreateApplicationEndpointRequestBody';
|
|
18
|
+
import { CreateApplicationEndpointResponse } from './model/CreateApplicationEndpointResponse';
|
|
19
|
+
import { CreateApplicationRequest } from './model/CreateApplicationRequest';
|
|
20
|
+
import { CreateApplicationRequestBody } from './model/CreateApplicationRequestBody';
|
|
21
|
+
import { CreateApplicationResponse } from './model/CreateApplicationResponse';
|
|
22
|
+
import { CreateLogtankRequest } from './model/CreateLogtankRequest';
|
|
23
|
+
import { CreateLogtankRequestBody } from './model/CreateLogtankRequestBody';
|
|
24
|
+
import { CreateLogtankResponse } from './model/CreateLogtankResponse';
|
|
25
|
+
import { CreateMessageTemplateRequest } from './model/CreateMessageTemplateRequest';
|
|
26
|
+
import { CreateMessageTemplateRequestBody } from './model/CreateMessageTemplateRequestBody';
|
|
27
|
+
import { CreateMessageTemplateResponse } from './model/CreateMessageTemplateResponse';
|
|
28
|
+
import { CreateResourceTagRequest } from './model/CreateResourceTagRequest';
|
|
29
|
+
import { CreateResourceTagRequestBody } from './model/CreateResourceTagRequestBody';
|
|
30
|
+
import { CreateResourceTagResponse } from './model/CreateResourceTagResponse';
|
|
31
|
+
import { CreateTopicRequest } from './model/CreateTopicRequest';
|
|
32
|
+
import { CreateTopicRequestBody } from './model/CreateTopicRequestBody';
|
|
33
|
+
import { CreateTopicResponse } from './model/CreateTopicResponse';
|
|
34
|
+
import { DeleteApplicationEndpointRequest } from './model/DeleteApplicationEndpointRequest';
|
|
35
|
+
import { DeleteApplicationEndpointResponse } from './model/DeleteApplicationEndpointResponse';
|
|
36
|
+
import { DeleteApplicationRequest } from './model/DeleteApplicationRequest';
|
|
37
|
+
import { DeleteApplicationResponse } from './model/DeleteApplicationResponse';
|
|
38
|
+
import { DeleteLogtankRequest } from './model/DeleteLogtankRequest';
|
|
39
|
+
import { DeleteLogtankResponse } from './model/DeleteLogtankResponse';
|
|
40
|
+
import { DeleteMessageTemplateRequest } from './model/DeleteMessageTemplateRequest';
|
|
41
|
+
import { DeleteMessageTemplateResponse } from './model/DeleteMessageTemplateResponse';
|
|
42
|
+
import { DeleteResourceTagRequest } from './model/DeleteResourceTagRequest';
|
|
43
|
+
import { DeleteResourceTagResponse } from './model/DeleteResourceTagResponse';
|
|
44
|
+
import { DeleteTopicAttributeByNameRequest } from './model/DeleteTopicAttributeByNameRequest';
|
|
45
|
+
import { DeleteTopicAttributeByNameResponse } from './model/DeleteTopicAttributeByNameResponse';
|
|
46
|
+
import { DeleteTopicAttributesRequest } from './model/DeleteTopicAttributesRequest';
|
|
47
|
+
import { DeleteTopicAttributesResponse } from './model/DeleteTopicAttributesResponse';
|
|
48
|
+
import { DeleteTopicRequest } from './model/DeleteTopicRequest';
|
|
49
|
+
import { DeleteTopicResponse } from './model/DeleteTopicResponse';
|
|
50
|
+
import { LinksItem } from './model/LinksItem';
|
|
51
|
+
import { ListApplicationAttributesRequest } from './model/ListApplicationAttributesRequest';
|
|
52
|
+
import { ListApplicationAttributesResponse } from './model/ListApplicationAttributesResponse';
|
|
53
|
+
import { ListApplicationAttributesResponseBodyAttributes } from './model/ListApplicationAttributesResponseBodyAttributes';
|
|
54
|
+
import { ListApplicationEndpointAttributesRequest } from './model/ListApplicationEndpointAttributesRequest';
|
|
55
|
+
import { ListApplicationEndpointAttributesResponse } from './model/ListApplicationEndpointAttributesResponse';
|
|
56
|
+
import { ListApplicationEndpointAttributesResponseBodyAttributes } from './model/ListApplicationEndpointAttributesResponseBodyAttributes';
|
|
57
|
+
import { ListApplicationEndpointsRequest } from './model/ListApplicationEndpointsRequest';
|
|
58
|
+
import { ListApplicationEndpointsResponse } from './model/ListApplicationEndpointsResponse';
|
|
59
|
+
import { ListApplicationsRequest } from './model/ListApplicationsRequest';
|
|
60
|
+
import { ListApplicationsResponse } from './model/ListApplicationsResponse';
|
|
61
|
+
import { ListInstanceRequestBody } from './model/ListInstanceRequestBody';
|
|
62
|
+
import { ListLogtankRequest } from './model/ListLogtankRequest';
|
|
63
|
+
import { ListLogtankResponse } from './model/ListLogtankResponse';
|
|
64
|
+
import { ListMessageTemplateDetailsRequest } from './model/ListMessageTemplateDetailsRequest';
|
|
65
|
+
import { ListMessageTemplateDetailsResponse } from './model/ListMessageTemplateDetailsResponse';
|
|
66
|
+
import { ListMessageTemplatesRequest } from './model/ListMessageTemplatesRequest';
|
|
67
|
+
import { ListMessageTemplatesResponse } from './model/ListMessageTemplatesResponse';
|
|
68
|
+
import { ListProjectTagsRequest } from './model/ListProjectTagsRequest';
|
|
69
|
+
import { ListProjectTagsResponse } from './model/ListProjectTagsResponse';
|
|
70
|
+
import { ListResourceInstancesRequest } from './model/ListResourceInstancesRequest';
|
|
71
|
+
import { ListResourceInstancesResponse } from './model/ListResourceInstancesResponse';
|
|
72
|
+
import { ListResourceTagsRequest } from './model/ListResourceTagsRequest';
|
|
73
|
+
import { ListResourceTagsResponse } from './model/ListResourceTagsResponse';
|
|
74
|
+
import { ListSubscriptionsByTopicRequest } from './model/ListSubscriptionsByTopicRequest';
|
|
75
|
+
import { ListSubscriptionsByTopicResponse } from './model/ListSubscriptionsByTopicResponse';
|
|
76
|
+
import { ListSubscriptionsItem } from './model/ListSubscriptionsItem';
|
|
77
|
+
import { ListSubscriptionsRequest } from './model/ListSubscriptionsRequest';
|
|
78
|
+
import { ListSubscriptionsResponse } from './model/ListSubscriptionsResponse';
|
|
79
|
+
import { ListTopicAttributesRequest } from './model/ListTopicAttributesRequest';
|
|
80
|
+
import { ListTopicAttributesResponse } from './model/ListTopicAttributesResponse';
|
|
81
|
+
import { ListTopicDetailsRequest } from './model/ListTopicDetailsRequest';
|
|
82
|
+
import { ListTopicDetailsResponse } from './model/ListTopicDetailsResponse';
|
|
83
|
+
import { ListTopicsItem } from './model/ListTopicsItem';
|
|
84
|
+
import { ListTopicsRequest } from './model/ListTopicsRequest';
|
|
85
|
+
import { ListTopicsResponse } from './model/ListTopicsResponse';
|
|
86
|
+
import { ListVersionRequest } from './model/ListVersionRequest';
|
|
87
|
+
import { ListVersionResponse } from './model/ListVersionResponse';
|
|
88
|
+
import { ListVersionsRequest } from './model/ListVersionsRequest';
|
|
89
|
+
import { ListVersionsResponse } from './model/ListVersionsResponse';
|
|
90
|
+
import { LogtankItem } from './model/LogtankItem';
|
|
91
|
+
import { MessageTemplate } from './model/MessageTemplate';
|
|
92
|
+
import { PublishAppMessageRequest } from './model/PublishAppMessageRequest';
|
|
93
|
+
import { PublishAppMessageRequestBody } from './model/PublishAppMessageRequestBody';
|
|
94
|
+
import { PublishAppMessageResponse } from './model/PublishAppMessageResponse';
|
|
95
|
+
import { PublishMessageRequest } from './model/PublishMessageRequest';
|
|
96
|
+
import { PublishMessageRequestBody } from './model/PublishMessageRequestBody';
|
|
97
|
+
import { PublishMessageResponse } from './model/PublishMessageResponse';
|
|
98
|
+
import { ResourceDetail } from './model/ResourceDetail';
|
|
99
|
+
import { ResourceTag } from './model/ResourceTag';
|
|
100
|
+
import { ResourceTags } from './model/ResourceTags';
|
|
101
|
+
import { Statement } from './model/Statement';
|
|
102
|
+
import { SubscriptionExtension } from './model/SubscriptionExtension';
|
|
103
|
+
import { TagMatch } from './model/TagMatch';
|
|
104
|
+
import { TagResource } from './model/TagResource';
|
|
105
|
+
import { TopicAttribute } from './model/TopicAttribute';
|
|
106
|
+
import { UpdateApplicationEndpointRequest } from './model/UpdateApplicationEndpointRequest';
|
|
107
|
+
import { UpdateApplicationEndpointRequestBody } from './model/UpdateApplicationEndpointRequestBody';
|
|
108
|
+
import { UpdateApplicationEndpointResponse } from './model/UpdateApplicationEndpointResponse';
|
|
109
|
+
import { UpdateApplicationRequest } from './model/UpdateApplicationRequest';
|
|
110
|
+
import { UpdateApplicationRequestBody } from './model/UpdateApplicationRequestBody';
|
|
111
|
+
import { UpdateApplicationResponse } from './model/UpdateApplicationResponse';
|
|
112
|
+
import { UpdateLogtankRequest } from './model/UpdateLogtankRequest';
|
|
113
|
+
import { UpdateLogtankRequestBody } from './model/UpdateLogtankRequestBody';
|
|
114
|
+
import { UpdateLogtankResponse } from './model/UpdateLogtankResponse';
|
|
115
|
+
import { UpdateMessageTemplateRequest } from './model/UpdateMessageTemplateRequest';
|
|
116
|
+
import { UpdateMessageTemplateRequestBody } from './model/UpdateMessageTemplateRequestBody';
|
|
117
|
+
import { UpdateMessageTemplateResponse } from './model/UpdateMessageTemplateResponse';
|
|
118
|
+
import { UpdateSubscriptionRequest } from './model/UpdateSubscriptionRequest';
|
|
119
|
+
import { UpdateSubscriptionRequestBody } from './model/UpdateSubscriptionRequestBody';
|
|
120
|
+
import { UpdateSubscriptionResponse } from './model/UpdateSubscriptionResponse';
|
|
121
|
+
import { UpdateTopicAttributeRequest } from './model/UpdateTopicAttributeRequest';
|
|
122
|
+
import { UpdateTopicAttributeRequestBody } from './model/UpdateTopicAttributeRequestBody';
|
|
123
|
+
import { UpdateTopicAttributeResponse } from './model/UpdateTopicAttributeResponse';
|
|
124
|
+
import { UpdateTopicRequest } from './model/UpdateTopicRequest';
|
|
125
|
+
import { UpdateTopicRequestBody } from './model/UpdateTopicRequestBody';
|
|
126
|
+
import { UpdateTopicResponse } from './model/UpdateTopicResponse';
|
|
127
|
+
import { VersionItem } from './model/VersionItem';
|
|
128
|
+
|
|
129
|
+
export class SmnClient {
|
|
130
|
+
public static newBuilder(): ClientBuilder<SmnClient> {
|
|
131
|
+
return new ClientBuilder<SmnClient>(newClient);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
private hcClient: HcClient;
|
|
135
|
+
public constructor(client: HcClient) {
|
|
63
136
|
this.hcClient = client;
|
|
64
137
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
};
|
|
68
|
-
SmnClient.prototype.getPath = function () {
|
|
138
|
+
|
|
139
|
+
public getPath() {
|
|
69
140
|
return __dirname;
|
|
70
|
-
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
|
|
71
144
|
/**
|
|
72
145
|
* 为指定Topic添加一个订阅者,如果订阅者的状态为未确认,则向订阅者发送一个确认的消息。待订阅者进行ConfirmSubscription确认后,该订阅者才能收到Topic发布的消息。单Topic默认可添加10000个订阅者,高并发场景下,可能会出现订阅者数量超过10000仍添加成功的情况,此为正常现象。接口是幂等的,如果添加已存在的订阅者,则返回成功,且status code为200,否则status code为201。
|
|
73
|
-
*
|
|
146
|
+
*
|
|
74
147
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
75
148
|
*
|
|
76
149
|
* @summary 订阅
|
|
77
150
|
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
78
|
-
* @param {AddSubscriptionRequestBody} [addSubscriptionRequestBody]
|
|
151
|
+
* @param {AddSubscriptionRequestBody} [addSubscriptionRequestBody]
|
|
79
152
|
* @param {*} [options] Override http request option.
|
|
80
153
|
* @throws {RequiredError}
|
|
81
154
|
*/
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
155
|
+
public addSubscription(addSubscriptionRequest?: AddSubscriptionRequest): Promise<AddSubscriptionResponse> {
|
|
156
|
+
const options = ParamCreater().addSubscription(addSubscriptionRequest);
|
|
157
|
+
|
|
158
|
+
// @ts-ignore
|
|
85
159
|
options['responseHeaders'] = [''];
|
|
160
|
+
|
|
86
161
|
return this.hcClient.sendRequest(options);
|
|
87
|
-
}
|
|
162
|
+
}
|
|
163
|
+
|
|
88
164
|
/**
|
|
89
165
|
* 为指定实例批量添加或删除标签。一个资源上最多有10个标签。
|
|
90
166
|
* 此接口为幂等接口:创建时如果请求体中存在重复key则报错。
|
|
91
167
|
* 创建时,不允许重复key,如果数据库存在就覆盖。
|
|
92
168
|
* 删除时,如果删除的标签不存在,默认处理成功,删除时不对标签字符集范围做校验。
|
|
93
|
-
*
|
|
169
|
+
*
|
|
94
170
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
95
171
|
*
|
|
96
172
|
* @summary 批量添加删除资源标签
|
|
97
173
|
* @param {string} resourceType 资源类型,目前有: smn_topic,主题 smn_sms,短信 smn_application,移动推送
|
|
98
174
|
* @param {string} resourceId 资源ID。 获取resource_id的方法: 当resource_type为“smn_topic”时, 手动添加请求消息头“X-SMN-RESOURCEID-TYPE=name”,资源ID即为topic名称。 不添加请求消息头,通过“查询资源实例”,获取资源ID。 当resource_type为“smn_sms”时,resource_id为签名ID。您可在控制台获取。
|
|
99
|
-
* @param {BatchCreateOrDeleteResourceTagsRequestBody} [batchCreateOrDeleteResourceTagsRequestBody]
|
|
175
|
+
* @param {BatchCreateOrDeleteResourceTagsRequestBody} [batchCreateOrDeleteResourceTagsRequestBody]
|
|
100
176
|
* @param {*} [options] Override http request option.
|
|
101
177
|
* @throws {RequiredError}
|
|
102
178
|
*/
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
179
|
+
public batchCreateOrDeleteResourceTags(batchCreateOrDeleteResourceTagsRequest?: BatchCreateOrDeleteResourceTagsRequest): Promise<BatchCreateOrDeleteResourceTagsResponse> {
|
|
180
|
+
const options = ParamCreater().batchCreateOrDeleteResourceTags(batchCreateOrDeleteResourceTagsRequest);
|
|
181
|
+
|
|
182
|
+
// @ts-ignore
|
|
106
183
|
options['responseHeaders'] = [''];
|
|
184
|
+
|
|
107
185
|
return this.hcClient.sendRequest(options);
|
|
108
|
-
}
|
|
186
|
+
}
|
|
187
|
+
|
|
109
188
|
/**
|
|
110
189
|
* 删除指定的订阅者。
|
|
111
|
-
*
|
|
190
|
+
*
|
|
112
191
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
113
192
|
*
|
|
114
193
|
* @summary 取消订阅
|
|
@@ -116,15 +195,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
116
195
|
* @param {*} [options] Override http request option.
|
|
117
196
|
* @throws {RequiredError}
|
|
118
197
|
*/
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
198
|
+
public cancelSubscription(cancelSubscriptionRequest?: CancelSubscriptionRequest): Promise<CancelSubscriptionResponse> {
|
|
199
|
+
const options = ParamCreater().cancelSubscription(cancelSubscriptionRequest);
|
|
200
|
+
|
|
201
|
+
// @ts-ignore
|
|
122
202
|
options['responseHeaders'] = [''];
|
|
203
|
+
|
|
123
204
|
return this.hcClient.sendRequest(options);
|
|
124
|
-
}
|
|
205
|
+
}
|
|
206
|
+
|
|
125
207
|
/**
|
|
126
208
|
* 为指定Topic绑定一个云日志,用于记录主题消息发送状态等信息。
|
|
127
|
-
*
|
|
209
|
+
*
|
|
128
210
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
129
211
|
*
|
|
130
212
|
* @summary 绑定云日志
|
|
@@ -133,51 +215,60 @@ var SmnClient = /** @class */ (function () {
|
|
|
133
215
|
* @param {*} [options] Override http request option.
|
|
134
216
|
* @throws {RequiredError}
|
|
135
217
|
*/
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
218
|
+
public createLogtank(createLogtankRequest?: CreateLogtankRequest): Promise<CreateLogtankResponse> {
|
|
219
|
+
const options = ParamCreater().createLogtank(createLogtankRequest);
|
|
220
|
+
|
|
221
|
+
// @ts-ignore
|
|
139
222
|
options['responseHeaders'] = [''];
|
|
223
|
+
|
|
140
224
|
return this.hcClient.sendRequest(options);
|
|
141
|
-
}
|
|
225
|
+
}
|
|
226
|
+
|
|
142
227
|
/**
|
|
143
228
|
* 创建一个模板,用户可以按照模板去发送消息,这样可以减少请求的数据量。
|
|
144
229
|
* 单用户默认可创建100个消息模板,高并发场景下,可能会出现消息模板数量超过100仍创建成功的情况,此为正常现象。
|
|
145
|
-
*
|
|
230
|
+
*
|
|
146
231
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
147
232
|
*
|
|
148
233
|
* @summary 创建消息模板
|
|
149
|
-
* @param {CreateMessageTemplateRequestBody} [createMessageTemplateRequestBody]
|
|
234
|
+
* @param {CreateMessageTemplateRequestBody} [createMessageTemplateRequestBody]
|
|
150
235
|
* @param {*} [options] Override http request option.
|
|
151
236
|
* @throws {RequiredError}
|
|
152
237
|
*/
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
238
|
+
public createMessageTemplate(createMessageTemplateRequest?: CreateMessageTemplateRequest): Promise<CreateMessageTemplateResponse> {
|
|
239
|
+
const options = ParamCreater().createMessageTemplate(createMessageTemplateRequest);
|
|
240
|
+
|
|
241
|
+
// @ts-ignore
|
|
156
242
|
options['responseHeaders'] = [''];
|
|
243
|
+
|
|
157
244
|
return this.hcClient.sendRequest(options);
|
|
158
|
-
}
|
|
245
|
+
}
|
|
246
|
+
|
|
159
247
|
/**
|
|
160
248
|
* 一个资源上最多有10个标签。此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。
|
|
161
|
-
*
|
|
249
|
+
*
|
|
162
250
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
163
251
|
*
|
|
164
252
|
* @summary 添加资源标签
|
|
165
253
|
* @param {string} resourceType 资源类型,目前有: smn_topic,主题 smn_sms,短信 smn_application,移动推送
|
|
166
254
|
* @param {string} resourceId 资源ID。 获取resource_id的方法: 当resource_type为“smn_topic”时, 手动添加请求消息头“X-SMN-RESOURCEID-TYPE=name”,资源ID即为topic名称。 不添加请求消息头,通过“查询资源实例”,获取资源ID。 当resource_type为“smn_sms”时,resource_id为签名ID。您可在控制台获取。
|
|
167
|
-
* @param {CreateResourceTagRequestBody} [createResourceTagRequestBody]
|
|
255
|
+
* @param {CreateResourceTagRequestBody} [createResourceTagRequestBody]
|
|
168
256
|
* @param {*} [options] Override http request option.
|
|
169
257
|
* @throws {RequiredError}
|
|
170
258
|
*/
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
259
|
+
public createResourceTag(createResourceTagRequest?: CreateResourceTagRequest): Promise<CreateResourceTagResponse> {
|
|
260
|
+
const options = ParamCreater().createResourceTag(createResourceTagRequest);
|
|
261
|
+
|
|
262
|
+
// @ts-ignore
|
|
174
263
|
options['responseHeaders'] = [''];
|
|
264
|
+
|
|
175
265
|
return this.hcClient.sendRequest(options);
|
|
176
|
-
}
|
|
266
|
+
}
|
|
267
|
+
|
|
177
268
|
/**
|
|
178
269
|
* 创建Topic,单用户默认配额为3000。高并发场景下,可能会出现Topic数量超过3000仍创建成功的情况,此为正常现象。
|
|
179
270
|
* 接口是幂等的,接口调用返回成功时,若已存在同名的Topic,返回的status code为200,否则返回的status code为201
|
|
180
|
-
*
|
|
271
|
+
*
|
|
181
272
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
182
273
|
*
|
|
183
274
|
* @summary 创建主题
|
|
@@ -185,15 +276,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
185
276
|
* @param {*} [options] Override http request option.
|
|
186
277
|
* @throws {RequiredError}
|
|
187
278
|
*/
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
279
|
+
public createTopic(createTopicRequest?: CreateTopicRequest): Promise<CreateTopicResponse> {
|
|
280
|
+
const options = ParamCreater().createTopic(createTopicRequest);
|
|
281
|
+
|
|
282
|
+
// @ts-ignore
|
|
191
283
|
options['responseHeaders'] = [''];
|
|
284
|
+
|
|
192
285
|
return this.hcClient.sendRequest(options);
|
|
193
|
-
}
|
|
286
|
+
}
|
|
287
|
+
|
|
194
288
|
/**
|
|
195
289
|
* 解绑指定Topic绑定的云日志。
|
|
196
|
-
*
|
|
290
|
+
*
|
|
197
291
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
198
292
|
*
|
|
199
293
|
* @summary 解绑云日志
|
|
@@ -202,15 +296,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
202
296
|
* @param {*} [options] Override http request option.
|
|
203
297
|
* @throws {RequiredError}
|
|
204
298
|
*/
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
299
|
+
public deleteLogtank(deleteLogtankRequest?: DeleteLogtankRequest): Promise<DeleteLogtankResponse> {
|
|
300
|
+
const options = ParamCreater().deleteLogtank(deleteLogtankRequest);
|
|
301
|
+
|
|
302
|
+
// @ts-ignore
|
|
208
303
|
options['responseHeaders'] = [''];
|
|
304
|
+
|
|
209
305
|
return this.hcClient.sendRequest(options);
|
|
210
|
-
}
|
|
306
|
+
}
|
|
307
|
+
|
|
211
308
|
/**
|
|
212
309
|
* 删除消息模板。删除模板之前的消息请求都可以使用该模板发送,删除之后无法再使用该模板发送消息。
|
|
213
|
-
*
|
|
310
|
+
*
|
|
214
311
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
215
312
|
*
|
|
216
313
|
* @summary 删除消息模板
|
|
@@ -218,15 +315,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
218
315
|
* @param {*} [options] Override http request option.
|
|
219
316
|
* @throws {RequiredError}
|
|
220
317
|
*/
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
318
|
+
public deleteMessageTemplate(deleteMessageTemplateRequest?: DeleteMessageTemplateRequest): Promise<DeleteMessageTemplateResponse> {
|
|
319
|
+
const options = ParamCreater().deleteMessageTemplate(deleteMessageTemplateRequest);
|
|
320
|
+
|
|
321
|
+
// @ts-ignore
|
|
224
322
|
options['responseHeaders'] = [''];
|
|
323
|
+
|
|
225
324
|
return this.hcClient.sendRequest(options);
|
|
226
|
-
}
|
|
325
|
+
}
|
|
326
|
+
|
|
227
327
|
/**
|
|
228
328
|
* 幂等接口:删除时,不对标签做校验。删除的key不存在报404,key不能为空或者空字符串。
|
|
229
|
-
*
|
|
329
|
+
*
|
|
230
330
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
231
331
|
*
|
|
232
332
|
* @summary 删除资源标签
|
|
@@ -236,15 +336,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
236
336
|
* @param {*} [options] Override http request option.
|
|
237
337
|
* @throws {RequiredError}
|
|
238
338
|
*/
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
339
|
+
public deleteResourceTag(deleteResourceTagRequest?: DeleteResourceTagRequest): Promise<DeleteResourceTagResponse> {
|
|
340
|
+
const options = ParamCreater().deleteResourceTag(deleteResourceTagRequest);
|
|
341
|
+
|
|
342
|
+
// @ts-ignore
|
|
242
343
|
options['responseHeaders'] = [''];
|
|
344
|
+
|
|
243
345
|
return this.hcClient.sendRequest(options);
|
|
244
|
-
}
|
|
346
|
+
}
|
|
347
|
+
|
|
245
348
|
/**
|
|
246
349
|
* 删除主题。
|
|
247
|
-
*
|
|
350
|
+
*
|
|
248
351
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
249
352
|
*
|
|
250
353
|
* @summary 删除主题
|
|
@@ -252,15 +355,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
252
355
|
* @param {*} [options] Override http request option.
|
|
253
356
|
* @throws {RequiredError}
|
|
254
357
|
*/
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
358
|
+
public deleteTopic(deleteTopicRequest?: DeleteTopicRequest): Promise<DeleteTopicResponse> {
|
|
359
|
+
const options = ParamCreater().deleteTopic(deleteTopicRequest);
|
|
360
|
+
|
|
361
|
+
// @ts-ignore
|
|
258
362
|
options['responseHeaders'] = [''];
|
|
363
|
+
|
|
259
364
|
return this.hcClient.sendRequest(options);
|
|
260
|
-
}
|
|
365
|
+
}
|
|
366
|
+
|
|
261
367
|
/**
|
|
262
368
|
* 删除指定名称的主题策略。
|
|
263
|
-
*
|
|
369
|
+
*
|
|
264
370
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
265
371
|
*
|
|
266
372
|
* @summary 删除指定名称的主题策略
|
|
@@ -269,15 +375,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
269
375
|
* @param {*} [options] Override http request option.
|
|
270
376
|
* @throws {RequiredError}
|
|
271
377
|
*/
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
378
|
+
public deleteTopicAttributeByName(deleteTopicAttributeByNameRequest?: DeleteTopicAttributeByNameRequest): Promise<DeleteTopicAttributeByNameResponse> {
|
|
379
|
+
const options = ParamCreater().deleteTopicAttributeByName(deleteTopicAttributeByNameRequest);
|
|
380
|
+
|
|
381
|
+
// @ts-ignore
|
|
275
382
|
options['responseHeaders'] = [''];
|
|
383
|
+
|
|
276
384
|
return this.hcClient.sendRequest(options);
|
|
277
|
-
}
|
|
385
|
+
}
|
|
386
|
+
|
|
278
387
|
/**
|
|
279
388
|
* 删除所有主题策略。
|
|
280
|
-
*
|
|
389
|
+
*
|
|
281
390
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
282
391
|
*
|
|
283
392
|
* @summary 删除所有主题策略
|
|
@@ -285,15 +394,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
285
394
|
* @param {*} [options] Override http request option.
|
|
286
395
|
* @throws {RequiredError}
|
|
287
396
|
*/
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
397
|
+
public deleteTopicAttributes(deleteTopicAttributesRequest?: DeleteTopicAttributesRequest): Promise<DeleteTopicAttributesResponse> {
|
|
398
|
+
const options = ParamCreater().deleteTopicAttributes(deleteTopicAttributesRequest);
|
|
399
|
+
|
|
400
|
+
// @ts-ignore
|
|
291
401
|
options['responseHeaders'] = [''];
|
|
402
|
+
|
|
292
403
|
return this.hcClient.sendRequest(options);
|
|
293
|
-
}
|
|
404
|
+
}
|
|
405
|
+
|
|
294
406
|
/**
|
|
295
407
|
* 查询指定Topic绑定的云日志。
|
|
296
|
-
*
|
|
408
|
+
*
|
|
297
409
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
298
410
|
*
|
|
299
411
|
* @summary 查询云日志
|
|
@@ -301,15 +413,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
301
413
|
* @param {*} [options] Override http request option.
|
|
302
414
|
* @throws {RequiredError}
|
|
303
415
|
*/
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
416
|
+
public listLogtank(listLogtankRequest?: ListLogtankRequest): Promise<ListLogtankResponse> {
|
|
417
|
+
const options = ParamCreater().listLogtank(listLogtankRequest);
|
|
418
|
+
|
|
419
|
+
// @ts-ignore
|
|
307
420
|
options['responseHeaders'] = [''];
|
|
421
|
+
|
|
308
422
|
return this.hcClient.sendRequest(options);
|
|
309
|
-
}
|
|
423
|
+
}
|
|
424
|
+
|
|
310
425
|
/**
|
|
311
426
|
* 查询模板详情,包括模板内容。
|
|
312
|
-
*
|
|
427
|
+
*
|
|
313
428
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
314
429
|
*
|
|
315
430
|
* @summary 查询消息模板详情
|
|
@@ -317,15 +432,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
317
432
|
* @param {*} [options] Override http request option.
|
|
318
433
|
* @throws {RequiredError}
|
|
319
434
|
*/
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
435
|
+
public listMessageTemplateDetails(listMessageTemplateDetailsRequest?: ListMessageTemplateDetailsRequest): Promise<ListMessageTemplateDetailsResponse> {
|
|
436
|
+
const options = ParamCreater().listMessageTemplateDetails(listMessageTemplateDetailsRequest);
|
|
437
|
+
|
|
438
|
+
// @ts-ignore
|
|
323
439
|
options['responseHeaders'] = [''];
|
|
440
|
+
|
|
324
441
|
return this.hcClient.sendRequest(options);
|
|
325
|
-
}
|
|
442
|
+
}
|
|
443
|
+
|
|
326
444
|
/**
|
|
327
445
|
* 分页查询模板列表,模板列表按照创建时间进行升序排列。分页查询可以指定offset以及limit。如果不存在模板,则返回空列表。额外的查询参数分别有message_template_name和protocol。
|
|
328
|
-
*
|
|
446
|
+
*
|
|
329
447
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
330
448
|
*
|
|
331
449
|
* @summary 查询消息模板列表
|
|
@@ -336,15 +454,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
336
454
|
* @param {*} [options] Override http request option.
|
|
337
455
|
* @throws {RequiredError}
|
|
338
456
|
*/
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
457
|
+
public listMessageTemplates(listMessageTemplatesRequest?: ListMessageTemplatesRequest): Promise<ListMessageTemplatesResponse> {
|
|
458
|
+
const options = ParamCreater().listMessageTemplates(listMessageTemplatesRequest);
|
|
459
|
+
|
|
460
|
+
// @ts-ignore
|
|
342
461
|
options['responseHeaders'] = [''];
|
|
462
|
+
|
|
343
463
|
return this.hcClient.sendRequest(options);
|
|
344
|
-
}
|
|
464
|
+
}
|
|
465
|
+
|
|
345
466
|
/**
|
|
346
467
|
* 查询租户在指定Region和实例类型的所有标签集合。
|
|
347
|
-
*
|
|
468
|
+
*
|
|
348
469
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
349
470
|
*
|
|
350
471
|
* @summary 查询项目标签
|
|
@@ -352,32 +473,38 @@ var SmnClient = /** @class */ (function () {
|
|
|
352
473
|
* @param {*} [options] Override http request option.
|
|
353
474
|
* @throws {RequiredError}
|
|
354
475
|
*/
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
476
|
+
public listProjectTags(listProjectTagsRequest?: ListProjectTagsRequest): Promise<ListProjectTagsResponse> {
|
|
477
|
+
const options = ParamCreater().listProjectTags(listProjectTagsRequest);
|
|
478
|
+
|
|
479
|
+
// @ts-ignore
|
|
358
480
|
options['responseHeaders'] = [''];
|
|
481
|
+
|
|
359
482
|
return this.hcClient.sendRequest(options);
|
|
360
|
-
}
|
|
483
|
+
}
|
|
484
|
+
|
|
361
485
|
/**
|
|
362
486
|
* 使用标签过滤实例。
|
|
363
|
-
*
|
|
487
|
+
*
|
|
364
488
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
365
489
|
*
|
|
366
490
|
* @summary 查询资源实例
|
|
367
491
|
* @param {string} resourceType 资源类型,目前有: smn_topic,主题 smn_sms,短信 smn_application,移动推送
|
|
368
|
-
* @param {ListInstanceRequestBody} [listInstancesRequestBody]
|
|
492
|
+
* @param {ListInstanceRequestBody} [listInstancesRequestBody]
|
|
369
493
|
* @param {*} [options] Override http request option.
|
|
370
494
|
* @throws {RequiredError}
|
|
371
495
|
*/
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
496
|
+
public listResourceInstances(listResourceInstancesRequest?: ListResourceInstancesRequest): Promise<ListResourceInstancesResponse> {
|
|
497
|
+
const options = ParamCreater().listResourceInstances(listResourceInstancesRequest);
|
|
498
|
+
|
|
499
|
+
// @ts-ignore
|
|
375
500
|
options['responseHeaders'] = [''];
|
|
501
|
+
|
|
376
502
|
return this.hcClient.sendRequest(options);
|
|
377
|
-
}
|
|
503
|
+
}
|
|
504
|
+
|
|
378
505
|
/**
|
|
379
506
|
* 查询指定实例的标签信息。
|
|
380
|
-
*
|
|
507
|
+
*
|
|
381
508
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
382
509
|
*
|
|
383
510
|
* @summary 查询资源标签
|
|
@@ -386,15 +513,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
386
513
|
* @param {*} [options] Override http request option.
|
|
387
514
|
* @throws {RequiredError}
|
|
388
515
|
*/
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
516
|
+
public listResourceTags(listResourceTagsRequest?: ListResourceTagsRequest): Promise<ListResourceTagsResponse> {
|
|
517
|
+
const options = ParamCreater().listResourceTags(listResourceTagsRequest);
|
|
518
|
+
|
|
519
|
+
// @ts-ignore
|
|
392
520
|
options['responseHeaders'] = [''];
|
|
521
|
+
|
|
393
522
|
return this.hcClient.sendRequest(options);
|
|
394
|
-
}
|
|
523
|
+
}
|
|
524
|
+
|
|
395
525
|
/**
|
|
396
526
|
* 分页返回请求者的所有的订阅列表,订阅列表按照订阅创建时间进行升序排列。分页查询可以指定offset以及limit。如果订阅者不存在,返回空列表。
|
|
397
|
-
*
|
|
527
|
+
*
|
|
398
528
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
399
529
|
*
|
|
400
530
|
* @summary 查询订阅者列表
|
|
@@ -406,15 +536,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
406
536
|
* @param {*} [options] Override http request option.
|
|
407
537
|
* @throws {RequiredError}
|
|
408
538
|
*/
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
539
|
+
public listSubscriptions(listSubscriptionsRequest?: ListSubscriptionsRequest): Promise<ListSubscriptionsResponse> {
|
|
540
|
+
const options = ParamCreater().listSubscriptions(listSubscriptionsRequest);
|
|
541
|
+
|
|
542
|
+
// @ts-ignore
|
|
412
543
|
options['responseHeaders'] = [''];
|
|
544
|
+
|
|
413
545
|
return this.hcClient.sendRequest(options);
|
|
414
|
-
}
|
|
546
|
+
}
|
|
547
|
+
|
|
415
548
|
/**
|
|
416
549
|
* 分页获取特定Topic的订阅列表,订阅列表按照订阅创建时间进行升序排列。分页查询可以指定offset以及limit。如果指定Topic不存在订阅者,返回空列表。
|
|
417
|
-
*
|
|
550
|
+
*
|
|
418
551
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
419
552
|
*
|
|
420
553
|
* @summary 查询指定Topic的订阅者列表
|
|
@@ -424,15 +557,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
424
557
|
* @param {*} [options] Override http request option.
|
|
425
558
|
* @throws {RequiredError}
|
|
426
559
|
*/
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
560
|
+
public listSubscriptionsByTopic(listSubscriptionsByTopicRequest?: ListSubscriptionsByTopicRequest): Promise<ListSubscriptionsByTopicResponse> {
|
|
561
|
+
const options = ParamCreater().listSubscriptionsByTopic(listSubscriptionsByTopicRequest);
|
|
562
|
+
|
|
563
|
+
// @ts-ignore
|
|
430
564
|
options['responseHeaders'] = [''];
|
|
565
|
+
|
|
431
566
|
return this.hcClient.sendRequest(options);
|
|
432
|
-
}
|
|
567
|
+
}
|
|
568
|
+
|
|
433
569
|
/**
|
|
434
570
|
* 查询主题的策略信息。
|
|
435
|
-
*
|
|
571
|
+
*
|
|
436
572
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
437
573
|
*
|
|
438
574
|
* @summary 查询主题策略
|
|
@@ -441,15 +577,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
441
577
|
* @param {*} [options] Override http request option.
|
|
442
578
|
* @throws {RequiredError}
|
|
443
579
|
*/
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
580
|
+
public listTopicAttributes(listTopicAttributesRequest?: ListTopicAttributesRequest): Promise<ListTopicAttributesResponse> {
|
|
581
|
+
const options = ParamCreater().listTopicAttributes(listTopicAttributesRequest);
|
|
582
|
+
|
|
583
|
+
// @ts-ignore
|
|
447
584
|
options['responseHeaders'] = [''];
|
|
585
|
+
|
|
448
586
|
return this.hcClient.sendRequest(options);
|
|
449
|
-
}
|
|
587
|
+
}
|
|
588
|
+
|
|
450
589
|
/**
|
|
451
590
|
* 查询Topic的详细信息。
|
|
452
|
-
*
|
|
591
|
+
*
|
|
453
592
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
454
593
|
*
|
|
455
594
|
* @summary 查询主题详情
|
|
@@ -457,15 +596,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
457
596
|
* @param {*} [options] Override http request option.
|
|
458
597
|
* @throws {RequiredError}
|
|
459
598
|
*/
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
599
|
+
public listTopicDetails(listTopicDetailsRequest?: ListTopicDetailsRequest): Promise<ListTopicDetailsResponse> {
|
|
600
|
+
const options = ParamCreater().listTopicDetails(listTopicDetailsRequest);
|
|
601
|
+
|
|
602
|
+
// @ts-ignore
|
|
463
603
|
options['responseHeaders'] = [''];
|
|
604
|
+
|
|
464
605
|
return this.hcClient.sendRequest(options);
|
|
465
|
-
}
|
|
606
|
+
}
|
|
607
|
+
|
|
466
608
|
/**
|
|
467
609
|
* 分页查询Topic列表,Topic列表按照Topic创建时间进行降序排列。分页查询可以指定offset以及limit。如果不存在Topic,则返回空列表。
|
|
468
|
-
*
|
|
610
|
+
*
|
|
469
611
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
470
612
|
*
|
|
471
613
|
* @summary 查询主题列表
|
|
@@ -478,71 +620,83 @@ var SmnClient = /** @class */ (function () {
|
|
|
478
620
|
* @param {*} [options] Override http request option.
|
|
479
621
|
* @throws {RequiredError}
|
|
480
622
|
*/
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
623
|
+
public listTopics(listTopicsRequest?: ListTopicsRequest): Promise<ListTopicsResponse> {
|
|
624
|
+
const options = ParamCreater().listTopics(listTopicsRequest);
|
|
625
|
+
|
|
626
|
+
// @ts-ignore
|
|
484
627
|
options['responseHeaders'] = [''];
|
|
628
|
+
|
|
485
629
|
return this.hcClient.sendRequest(options);
|
|
486
|
-
}
|
|
630
|
+
}
|
|
631
|
+
|
|
487
632
|
/**
|
|
488
633
|
* 查询SMN API V2版本信息。
|
|
489
|
-
*
|
|
634
|
+
*
|
|
490
635
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
491
636
|
*
|
|
492
637
|
* @summary 查询SMN API V2版本信息
|
|
493
638
|
* @param {*} [options] Override http request option.
|
|
494
639
|
* @throws {RequiredError}
|
|
495
640
|
*/
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
641
|
+
public listVersion(): Promise<ListVersionResponse> {
|
|
642
|
+
const options = ParamCreater().listVersion();
|
|
643
|
+
|
|
644
|
+
// @ts-ignore
|
|
499
645
|
options['responseHeaders'] = [''];
|
|
646
|
+
|
|
500
647
|
return this.hcClient.sendRequest(options);
|
|
501
|
-
}
|
|
648
|
+
}
|
|
649
|
+
|
|
502
650
|
/**
|
|
503
651
|
* 查询SMN开放API支持的版本号。
|
|
504
|
-
*
|
|
652
|
+
*
|
|
505
653
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
506
654
|
*
|
|
507
655
|
* @summary 查询SMN支持的API版本号信息
|
|
508
656
|
* @param {*} [options] Override http request option.
|
|
509
657
|
* @throws {RequiredError}
|
|
510
658
|
*/
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
659
|
+
public listVersions(): Promise<ListVersionsResponse> {
|
|
660
|
+
const options = ParamCreater().listVersions();
|
|
661
|
+
|
|
662
|
+
// @ts-ignore
|
|
514
663
|
options['responseHeaders'] = [''];
|
|
664
|
+
|
|
515
665
|
return this.hcClient.sendRequest(options);
|
|
516
|
-
}
|
|
666
|
+
}
|
|
667
|
+
|
|
517
668
|
/**
|
|
518
669
|
* 将消息发送给Topic的所有订阅端点。当返回消息ID时,该消息已被保存并开始尝试将其推送给Topic的订阅者。三种消息发送方式
|
|
519
|
-
*
|
|
670
|
+
*
|
|
520
671
|
* message
|
|
521
|
-
*
|
|
672
|
+
*
|
|
522
673
|
* message_structure
|
|
523
|
-
*
|
|
674
|
+
*
|
|
524
675
|
* message_template_name
|
|
525
|
-
*
|
|
676
|
+
*
|
|
526
677
|
* 只需要设置其中一个,如果同时设置,生效的优先级为
|
|
527
678
|
* message_structure > message_template_name > message。
|
|
528
|
-
*
|
|
679
|
+
*
|
|
529
680
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
530
681
|
*
|
|
531
682
|
* @summary 消息发布
|
|
532
683
|
* @param {string} topicUrn Topic的唯一的资源标识,可通过[查询主题列表](smn_api_51004.xml)获取该标识。
|
|
533
|
-
* @param {PublishMessageRequestBody} [publishMessageRequestBody]
|
|
684
|
+
* @param {PublishMessageRequestBody} [publishMessageRequestBody]
|
|
534
685
|
* @param {*} [options] Override http request option.
|
|
535
686
|
* @throws {RequiredError}
|
|
536
687
|
*/
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
688
|
+
public publishMessage(publishMessageRequest?: PublishMessageRequest): Promise<PublishMessageResponse> {
|
|
689
|
+
const options = ParamCreater().publishMessage(publishMessageRequest);
|
|
690
|
+
|
|
691
|
+
// @ts-ignore
|
|
540
692
|
options['responseHeaders'] = [''];
|
|
693
|
+
|
|
541
694
|
return this.hcClient.sendRequest(options);
|
|
542
|
-
}
|
|
695
|
+
}
|
|
696
|
+
|
|
543
697
|
/**
|
|
544
698
|
* 更新指定Topic绑定的云日志。
|
|
545
|
-
*
|
|
699
|
+
*
|
|
546
700
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
547
701
|
*
|
|
548
702
|
* @summary 更新云日志
|
|
@@ -552,32 +706,38 @@ var SmnClient = /** @class */ (function () {
|
|
|
552
706
|
* @param {*} [options] Override http request option.
|
|
553
707
|
* @throws {RequiredError}
|
|
554
708
|
*/
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
709
|
+
public updateLogtank(updateLogtankRequest?: UpdateLogtankRequest): Promise<UpdateLogtankResponse> {
|
|
710
|
+
const options = ParamCreater().updateLogtank(updateLogtankRequest);
|
|
711
|
+
|
|
712
|
+
// @ts-ignore
|
|
558
713
|
options['responseHeaders'] = [''];
|
|
714
|
+
|
|
559
715
|
return this.hcClient.sendRequest(options);
|
|
560
|
-
}
|
|
716
|
+
}
|
|
717
|
+
|
|
561
718
|
/**
|
|
562
719
|
* 修改消息模板的内容。
|
|
563
|
-
*
|
|
720
|
+
*
|
|
564
721
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
565
722
|
*
|
|
566
723
|
* @summary 更新消息模板
|
|
567
724
|
* @param {string} messageTemplateId 模板唯一的资源标识,可通过查询[消息模板列表](ListMessageTemplates.xml)获取该标识。
|
|
568
|
-
* @param {UpdateMessageTemplateRequestBody} [updateMessageTemplateRequestBody]
|
|
725
|
+
* @param {UpdateMessageTemplateRequestBody} [updateMessageTemplateRequestBody]
|
|
569
726
|
* @param {*} [options] Override http request option.
|
|
570
727
|
* @throws {RequiredError}
|
|
571
728
|
*/
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
729
|
+
public updateMessageTemplate(updateMessageTemplateRequest?: UpdateMessageTemplateRequest): Promise<UpdateMessageTemplateResponse> {
|
|
730
|
+
const options = ParamCreater().updateMessageTemplate(updateMessageTemplateRequest);
|
|
731
|
+
|
|
732
|
+
// @ts-ignore
|
|
575
733
|
options['responseHeaders'] = [''];
|
|
734
|
+
|
|
576
735
|
return this.hcClient.sendRequest(options);
|
|
577
|
-
}
|
|
736
|
+
}
|
|
737
|
+
|
|
578
738
|
/**
|
|
579
739
|
* 更新订阅者备注。
|
|
580
|
-
*
|
|
740
|
+
*
|
|
581
741
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
582
742
|
*
|
|
583
743
|
* @summary 更新订阅者
|
|
@@ -587,15 +747,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
587
747
|
* @param {*} [options] Override http request option.
|
|
588
748
|
* @throws {RequiredError}
|
|
589
749
|
*/
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
750
|
+
public updateSubscription(updateSubscriptionRequest?: UpdateSubscriptionRequest): Promise<UpdateSubscriptionResponse> {
|
|
751
|
+
const options = ParamCreater().updateSubscription(updateSubscriptionRequest);
|
|
752
|
+
|
|
753
|
+
// @ts-ignore
|
|
593
754
|
options['responseHeaders'] = [''];
|
|
755
|
+
|
|
594
756
|
return this.hcClient.sendRequest(options);
|
|
595
|
-
}
|
|
757
|
+
}
|
|
758
|
+
|
|
596
759
|
/**
|
|
597
760
|
* 更新显示名。
|
|
598
|
-
*
|
|
761
|
+
*
|
|
599
762
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
600
763
|
*
|
|
601
764
|
* @summary 更新主题
|
|
@@ -604,15 +767,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
604
767
|
* @param {*} [options] Override http request option.
|
|
605
768
|
* @throws {RequiredError}
|
|
606
769
|
*/
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
770
|
+
public updateTopic(updateTopicRequest?: UpdateTopicRequest): Promise<UpdateTopicResponse> {
|
|
771
|
+
const options = ParamCreater().updateTopic(updateTopicRequest);
|
|
772
|
+
|
|
773
|
+
// @ts-ignore
|
|
610
774
|
options['responseHeaders'] = [''];
|
|
775
|
+
|
|
611
776
|
return this.hcClient.sendRequest(options);
|
|
612
|
-
}
|
|
777
|
+
}
|
|
778
|
+
|
|
613
779
|
/**
|
|
614
780
|
* 更新主题的策略信息。
|
|
615
|
-
*
|
|
781
|
+
*
|
|
616
782
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
617
783
|
*
|
|
618
784
|
* @summary 更新主题策略
|
|
@@ -622,31 +788,37 @@ var SmnClient = /** @class */ (function () {
|
|
|
622
788
|
* @param {*} [options] Override http request option.
|
|
623
789
|
* @throws {RequiredError}
|
|
624
790
|
*/
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
791
|
+
public updateTopicAttribute(updateTopicAttributeRequest?: UpdateTopicAttributeRequest): Promise<UpdateTopicAttributeResponse> {
|
|
792
|
+
const options = ParamCreater().updateTopicAttribute(updateTopicAttributeRequest);
|
|
793
|
+
|
|
794
|
+
// @ts-ignore
|
|
628
795
|
options['responseHeaders'] = [''];
|
|
796
|
+
|
|
629
797
|
return this.hcClient.sendRequest(options);
|
|
630
|
-
}
|
|
798
|
+
}
|
|
799
|
+
|
|
631
800
|
/**
|
|
632
801
|
* 创建平台应用。
|
|
633
|
-
*
|
|
802
|
+
*
|
|
634
803
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
635
804
|
*
|
|
636
805
|
* @summary 创建Application
|
|
637
|
-
* @param {CreateApplicationRequestBody} [createApplicationRequestBody]
|
|
806
|
+
* @param {CreateApplicationRequestBody} [createApplicationRequestBody]
|
|
638
807
|
* @param {*} [options] Override http request option.
|
|
639
808
|
* @throws {RequiredError}
|
|
640
809
|
*/
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
810
|
+
public createApplication(createApplicationRequest?: CreateApplicationRequest): Promise<CreateApplicationResponse> {
|
|
811
|
+
const options = ParamCreater().createApplication(createApplicationRequest);
|
|
812
|
+
|
|
813
|
+
// @ts-ignore
|
|
644
814
|
options['responseHeaders'] = [''];
|
|
815
|
+
|
|
645
816
|
return this.hcClient.sendRequest(options);
|
|
646
|
-
}
|
|
817
|
+
}
|
|
818
|
+
|
|
647
819
|
/**
|
|
648
820
|
* 删除平台应用。
|
|
649
|
-
*
|
|
821
|
+
*
|
|
650
822
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
651
823
|
*
|
|
652
824
|
* @summary 删除Application
|
|
@@ -654,15 +826,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
654
826
|
* @param {*} [options] Override http request option.
|
|
655
827
|
* @throws {RequiredError}
|
|
656
828
|
*/
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
829
|
+
public deleteApplication(deleteApplicationRequest?: DeleteApplicationRequest): Promise<DeleteApplicationResponse> {
|
|
830
|
+
const options = ParamCreater().deleteApplication(deleteApplicationRequest);
|
|
831
|
+
|
|
832
|
+
// @ts-ignore
|
|
660
833
|
options['responseHeaders'] = [''];
|
|
834
|
+
|
|
661
835
|
return this.hcClient.sendRequest(options);
|
|
662
|
-
}
|
|
836
|
+
}
|
|
837
|
+
|
|
663
838
|
/**
|
|
664
839
|
* 获取应用平台属性。
|
|
665
|
-
*
|
|
840
|
+
*
|
|
666
841
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
667
842
|
*
|
|
668
843
|
* @summary 查询Application属性
|
|
@@ -670,15 +845,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
670
845
|
* @param {*} [options] Override http request option.
|
|
671
846
|
* @throws {RequiredError}
|
|
672
847
|
*/
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
848
|
+
public listApplicationAttributes(listApplicationAttributesRequest?: ListApplicationAttributesRequest): Promise<ListApplicationAttributesResponse> {
|
|
849
|
+
const options = ParamCreater().listApplicationAttributes(listApplicationAttributesRequest);
|
|
850
|
+
|
|
851
|
+
// @ts-ignore
|
|
676
852
|
options['responseHeaders'] = [''];
|
|
853
|
+
|
|
677
854
|
return this.hcClient.sendRequest(options);
|
|
678
|
-
}
|
|
855
|
+
}
|
|
856
|
+
|
|
679
857
|
/**
|
|
680
858
|
* 查询应用平台列表。
|
|
681
|
-
*
|
|
859
|
+
*
|
|
682
860
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
683
861
|
*
|
|
684
862
|
* @summary 查询Application
|
|
@@ -689,66 +867,78 @@ var SmnClient = /** @class */ (function () {
|
|
|
689
867
|
* @param {*} [options] Override http request option.
|
|
690
868
|
* @throws {RequiredError}
|
|
691
869
|
*/
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
870
|
+
public listApplications(listApplicationsRequest?: ListApplicationsRequest): Promise<ListApplicationsResponse> {
|
|
871
|
+
const options = ParamCreater().listApplications(listApplicationsRequest);
|
|
872
|
+
|
|
873
|
+
// @ts-ignore
|
|
695
874
|
options['responseHeaders'] = [''];
|
|
875
|
+
|
|
696
876
|
return this.hcClient.sendRequest(options);
|
|
697
|
-
}
|
|
877
|
+
}
|
|
878
|
+
|
|
698
879
|
/**
|
|
699
880
|
* 将消息直发给endpoint设备。
|
|
700
|
-
*
|
|
881
|
+
*
|
|
701
882
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
702
883
|
*
|
|
703
884
|
* @summary App消息发布
|
|
704
885
|
* @param {string} endpointUrn Endpoint的唯一资源标识,可通过[查询Application的Endpoint列表](smn_api_58004.xml)获取该标识
|
|
705
|
-
* @param {PublishAppMessageRequestBody} [publishAppMessageRequestBody]
|
|
886
|
+
* @param {PublishAppMessageRequestBody} [publishAppMessageRequestBody]
|
|
706
887
|
* @param {*} [options] Override http request option.
|
|
707
888
|
* @throws {RequiredError}
|
|
708
889
|
*/
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
890
|
+
public publishAppMessage(publishAppMessageRequest?: PublishAppMessageRequest): Promise<PublishAppMessageResponse> {
|
|
891
|
+
const options = ParamCreater().publishAppMessage(publishAppMessageRequest);
|
|
892
|
+
|
|
893
|
+
// @ts-ignore
|
|
712
894
|
options['responseHeaders'] = [''];
|
|
895
|
+
|
|
713
896
|
return this.hcClient.sendRequest(options);
|
|
714
|
-
}
|
|
897
|
+
}
|
|
898
|
+
|
|
715
899
|
/**
|
|
716
900
|
* 更新应用平台。
|
|
717
|
-
*
|
|
901
|
+
*
|
|
718
902
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
719
903
|
*
|
|
720
904
|
* @summary 更新Application
|
|
721
905
|
* @param {string} applicationUrn Application的唯一资源标识,可通过[查询Application](smn_api_57004.xml)获取该标识。
|
|
722
|
-
* @param {UpdateApplicationRequestBody} [updateApplicationRequestBody]
|
|
906
|
+
* @param {UpdateApplicationRequestBody} [updateApplicationRequestBody]
|
|
723
907
|
* @param {*} [options] Override http request option.
|
|
724
908
|
* @throws {RequiredError}
|
|
725
909
|
*/
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
910
|
+
public updateApplication(updateApplicationRequest?: UpdateApplicationRequest): Promise<UpdateApplicationResponse> {
|
|
911
|
+
const options = ParamCreater().updateApplication(updateApplicationRequest);
|
|
912
|
+
|
|
913
|
+
// @ts-ignore
|
|
729
914
|
options['responseHeaders'] = [''];
|
|
915
|
+
|
|
730
916
|
return this.hcClient.sendRequest(options);
|
|
731
|
-
}
|
|
917
|
+
}
|
|
918
|
+
|
|
732
919
|
/**
|
|
733
920
|
* 创建应用平台的endpoint终端。
|
|
734
|
-
*
|
|
921
|
+
*
|
|
735
922
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
736
923
|
*
|
|
737
924
|
* @summary 创建Application endpoint
|
|
738
925
|
* @param {string} applicationUrn Application的唯一资源标识,可通过[查询Application](smn_api_57004.xml)获取该标识。
|
|
739
|
-
* @param {CreateApplicationEndpointRequestBody} [createApplicationEndpointRequestBody]
|
|
926
|
+
* @param {CreateApplicationEndpointRequestBody} [createApplicationEndpointRequestBody]
|
|
740
927
|
* @param {*} [options] Override http request option.
|
|
741
928
|
* @throws {RequiredError}
|
|
742
929
|
*/
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
930
|
+
public createApplicationEndpoint(createApplicationEndpointRequest?: CreateApplicationEndpointRequest): Promise<CreateApplicationEndpointResponse> {
|
|
931
|
+
const options = ParamCreater().createApplicationEndpoint(createApplicationEndpointRequest);
|
|
932
|
+
|
|
933
|
+
// @ts-ignore
|
|
746
934
|
options['responseHeaders'] = [''];
|
|
935
|
+
|
|
747
936
|
return this.hcClient.sendRequest(options);
|
|
748
|
-
}
|
|
937
|
+
}
|
|
938
|
+
|
|
749
939
|
/**
|
|
750
940
|
* 删除设备。
|
|
751
|
-
*
|
|
941
|
+
*
|
|
752
942
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
753
943
|
*
|
|
754
944
|
* @summary 删除Application endpoint
|
|
@@ -756,15 +946,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
756
946
|
* @param {*} [options] Override http request option.
|
|
757
947
|
* @throws {RequiredError}
|
|
758
948
|
*/
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
949
|
+
public deleteApplicationEndpoint(deleteApplicationEndpointRequest?: DeleteApplicationEndpointRequest): Promise<DeleteApplicationEndpointResponse> {
|
|
950
|
+
const options = ParamCreater().deleteApplicationEndpoint(deleteApplicationEndpointRequest);
|
|
951
|
+
|
|
952
|
+
// @ts-ignore
|
|
762
953
|
options['responseHeaders'] = [''];
|
|
954
|
+
|
|
763
955
|
return this.hcClient.sendRequest(options);
|
|
764
|
-
}
|
|
956
|
+
}
|
|
957
|
+
|
|
765
958
|
/**
|
|
766
959
|
* 获取endpoint的属性。
|
|
767
|
-
*
|
|
960
|
+
*
|
|
768
961
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
769
962
|
*
|
|
770
963
|
* @summary 查询Application的Endpoint属性
|
|
@@ -772,15 +965,18 @@ var SmnClient = /** @class */ (function () {
|
|
|
772
965
|
* @param {*} [options] Override http request option.
|
|
773
966
|
* @throws {RequiredError}
|
|
774
967
|
*/
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
968
|
+
public listApplicationEndpointAttributes(listApplicationEndpointAttributesRequest?: ListApplicationEndpointAttributesRequest): Promise<ListApplicationEndpointAttributesResponse> {
|
|
969
|
+
const options = ParamCreater().listApplicationEndpointAttributes(listApplicationEndpointAttributesRequest);
|
|
970
|
+
|
|
971
|
+
// @ts-ignore
|
|
778
972
|
options['responseHeaders'] = [''];
|
|
973
|
+
|
|
779
974
|
return this.hcClient.sendRequest(options);
|
|
780
|
-
}
|
|
975
|
+
}
|
|
976
|
+
|
|
781
977
|
/**
|
|
782
978
|
* 查询平台的endpoint列表。
|
|
783
|
-
*
|
|
979
|
+
*
|
|
784
980
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
785
981
|
*
|
|
786
982
|
* @summary 查询Application的Endpoint列表
|
|
@@ -793,41 +989,46 @@ var SmnClient = /** @class */ (function () {
|
|
|
793
989
|
* @param {*} [options] Override http request option.
|
|
794
990
|
* @throws {RequiredError}
|
|
795
991
|
*/
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
992
|
+
public listApplicationEndpoints(listApplicationEndpointsRequest?: ListApplicationEndpointsRequest): Promise<ListApplicationEndpointsResponse> {
|
|
993
|
+
const options = ParamCreater().listApplicationEndpoints(listApplicationEndpointsRequest);
|
|
994
|
+
|
|
995
|
+
// @ts-ignore
|
|
799
996
|
options['responseHeaders'] = [''];
|
|
997
|
+
|
|
800
998
|
return this.hcClient.sendRequest(options);
|
|
801
|
-
}
|
|
999
|
+
}
|
|
1000
|
+
|
|
802
1001
|
/**
|
|
803
1002
|
* 更新设备属性。
|
|
804
|
-
*
|
|
1003
|
+
*
|
|
805
1004
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
806
1005
|
*
|
|
807
1006
|
* @summary 更新Application endpoint
|
|
808
1007
|
* @param {string} endpointUrn Endpoint的唯一资源标识,可通过[查询Application的Endpoint列表](smn_api_58004.xml)获取该标识。
|
|
809
|
-
* @param {UpdateApplicationEndpointRequestBody} [updateApplicationEndpointRequestBody]
|
|
1008
|
+
* @param {UpdateApplicationEndpointRequestBody} [updateApplicationEndpointRequestBody]
|
|
810
1009
|
* @param {*} [options] Override http request option.
|
|
811
1010
|
* @throws {RequiredError}
|
|
812
1011
|
*/
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
1012
|
+
public updateApplicationEndpoint(updateApplicationEndpointRequest?: UpdateApplicationEndpointRequest): Promise<UpdateApplicationEndpointResponse> {
|
|
1013
|
+
const options = ParamCreater().updateApplicationEndpoint(updateApplicationEndpointRequest);
|
|
1014
|
+
|
|
1015
|
+
// @ts-ignore
|
|
816
1016
|
options['responseHeaders'] = [''];
|
|
1017
|
+
|
|
817
1018
|
return this.hcClient.sendRequest(options);
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
var ParamCreater = function () {
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
export const ParamCreater = function () {
|
|
823
1023
|
return {
|
|
1024
|
+
|
|
824
1025
|
/**
|
|
825
1026
|
* 为指定Topic添加一个订阅者,如果订阅者的状态为未确认,则向订阅者发送一个确认的消息。待订阅者进行ConfirmSubscription确认后,该订阅者才能收到Topic发布的消息。单Topic默认可添加10000个订阅者,高并发场景下,可能会出现订阅者数量超过10000仍添加成功的情况,此为正常现象。接口是幂等的,如果添加已存在的订阅者,则返回成功,且status code为200,否则status code为201。
|
|
826
|
-
*
|
|
1027
|
+
*
|
|
827
1028
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
828
1029
|
*/
|
|
829
|
-
addSubscription
|
|
830
|
-
|
|
1030
|
+
addSubscription(addSubscriptionRequest?: AddSubscriptionRequest) {
|
|
1031
|
+
const options = {
|
|
831
1032
|
method: "POST",
|
|
832
1033
|
url: "/v2/{project_id}/notifications/topics/{topic_urn}/subscriptions",
|
|
833
1034
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -836,38 +1037,44 @@ var ParamCreater = function () {
|
|
|
836
1037
|
headers: {},
|
|
837
1038
|
data: {}
|
|
838
1039
|
};
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
1040
|
+
const localVarHeaderParameter = {} as any;
|
|
1041
|
+
|
|
1042
|
+
let body: any;
|
|
1043
|
+
|
|
1044
|
+
let topicUrn;
|
|
1045
|
+
|
|
842
1046
|
if (addSubscriptionRequest !== null && addSubscriptionRequest !== undefined) {
|
|
843
|
-
if (addSubscriptionRequest instanceof
|
|
1047
|
+
if (addSubscriptionRequest instanceof AddSubscriptionRequest) {
|
|
844
1048
|
topicUrn = addSubscriptionRequest.topicUrn;
|
|
845
|
-
body = addSubscriptionRequest.body
|
|
846
|
-
}
|
|
847
|
-
else {
|
|
1049
|
+
body = addSubscriptionRequest.body
|
|
1050
|
+
} else {
|
|
848
1051
|
topicUrn = addSubscriptionRequest['topic_urn'];
|
|
849
1052
|
body = addSubscriptionRequest['body'];
|
|
850
1053
|
}
|
|
851
1054
|
}
|
|
1055
|
+
|
|
1056
|
+
|
|
852
1057
|
if (topicUrn === null || topicUrn === undefined) {
|
|
853
|
-
|
|
1058
|
+
throw new RequiredError('topicUrn','Required parameter topicUrn was null or undefined when calling addSubscription.');
|
|
854
1059
|
}
|
|
855
1060
|
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
1061
|
+
|
|
856
1062
|
options.data = body !== undefined ? body : {};
|
|
857
1063
|
options.pathParams = { 'topic_urn': topicUrn, };
|
|
858
1064
|
options.headers = localVarHeaderParameter;
|
|
859
1065
|
return options;
|
|
860
1066
|
},
|
|
1067
|
+
|
|
861
1068
|
/**
|
|
862
1069
|
* 为指定实例批量添加或删除标签。一个资源上最多有10个标签。
|
|
863
1070
|
* 此接口为幂等接口:创建时如果请求体中存在重复key则报错。
|
|
864
1071
|
* 创建时,不允许重复key,如果数据库存在就覆盖。
|
|
865
1072
|
* 删除时,如果删除的标签不存在,默认处理成功,删除时不对标签字符集范围做校验。
|
|
866
|
-
*
|
|
1073
|
+
*
|
|
867
1074
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
868
1075
|
*/
|
|
869
|
-
batchCreateOrDeleteResourceTags
|
|
870
|
-
|
|
1076
|
+
batchCreateOrDeleteResourceTags(batchCreateOrDeleteResourceTagsRequest?: BatchCreateOrDeleteResourceTagsRequest) {
|
|
1077
|
+
const options = {
|
|
871
1078
|
method: "POST",
|
|
872
1079
|
url: "/v2/{project_id}/{resource_type}/{resource_id}/tags/action",
|
|
873
1080
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -876,41 +1083,48 @@ var ParamCreater = function () {
|
|
|
876
1083
|
headers: {},
|
|
877
1084
|
data: {}
|
|
878
1085
|
};
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
1086
|
+
const localVarHeaderParameter = {} as any;
|
|
1087
|
+
|
|
1088
|
+
let body: any;
|
|
1089
|
+
|
|
1090
|
+
let resourceType;
|
|
1091
|
+
|
|
1092
|
+
let resourceId;
|
|
1093
|
+
|
|
883
1094
|
if (batchCreateOrDeleteResourceTagsRequest !== null && batchCreateOrDeleteResourceTagsRequest !== undefined) {
|
|
884
|
-
if (batchCreateOrDeleteResourceTagsRequest instanceof
|
|
1095
|
+
if (batchCreateOrDeleteResourceTagsRequest instanceof BatchCreateOrDeleteResourceTagsRequest) {
|
|
885
1096
|
resourceType = batchCreateOrDeleteResourceTagsRequest.resourceType;
|
|
886
1097
|
resourceId = batchCreateOrDeleteResourceTagsRequest.resourceId;
|
|
887
|
-
body = batchCreateOrDeleteResourceTagsRequest.body
|
|
888
|
-
}
|
|
889
|
-
else {
|
|
1098
|
+
body = batchCreateOrDeleteResourceTagsRequest.body
|
|
1099
|
+
} else {
|
|
890
1100
|
resourceType = batchCreateOrDeleteResourceTagsRequest['resource_type'];
|
|
891
1101
|
resourceId = batchCreateOrDeleteResourceTagsRequest['resource_id'];
|
|
892
1102
|
body = batchCreateOrDeleteResourceTagsRequest['body'];
|
|
893
1103
|
}
|
|
894
1104
|
}
|
|
1105
|
+
|
|
1106
|
+
|
|
895
1107
|
if (resourceType === null || resourceType === undefined) {
|
|
896
|
-
|
|
1108
|
+
throw new RequiredError('resourceType','Required parameter resourceType was null or undefined when calling batchCreateOrDeleteResourceTags.');
|
|
897
1109
|
}
|
|
898
1110
|
if (resourceId === null || resourceId === undefined) {
|
|
899
|
-
|
|
1111
|
+
throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling batchCreateOrDeleteResourceTags.');
|
|
900
1112
|
}
|
|
901
1113
|
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
1114
|
+
|
|
902
1115
|
options.data = body !== undefined ? body : {};
|
|
903
|
-
options.pathParams = { 'resource_type': resourceType,
|
|
1116
|
+
options.pathParams = { 'resource_type': resourceType,'resource_id': resourceId, };
|
|
904
1117
|
options.headers = localVarHeaderParameter;
|
|
905
1118
|
return options;
|
|
906
1119
|
},
|
|
1120
|
+
|
|
907
1121
|
/**
|
|
908
1122
|
* 删除指定的订阅者。
|
|
909
|
-
*
|
|
1123
|
+
*
|
|
910
1124
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
911
1125
|
*/
|
|
912
|
-
cancelSubscription
|
|
913
|
-
|
|
1126
|
+
cancelSubscription(cancelSubscriptionRequest?: CancelSubscriptionRequest) {
|
|
1127
|
+
const options = {
|
|
914
1128
|
method: "DELETE",
|
|
915
1129
|
url: "/v2/{project_id}/notifications/subscriptions/{subscription_urn}",
|
|
916
1130
|
contentType: "application/json",
|
|
@@ -918,30 +1132,36 @@ var ParamCreater = function () {
|
|
|
918
1132
|
pathParams: {},
|
|
919
1133
|
headers: {}
|
|
920
1134
|
};
|
|
921
|
-
|
|
922
|
-
|
|
1135
|
+
const localVarHeaderParameter = {} as any;
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
let subscriptionUrn;
|
|
1139
|
+
|
|
923
1140
|
if (cancelSubscriptionRequest !== null && cancelSubscriptionRequest !== undefined) {
|
|
924
|
-
if (cancelSubscriptionRequest instanceof
|
|
1141
|
+
if (cancelSubscriptionRequest instanceof CancelSubscriptionRequest) {
|
|
925
1142
|
subscriptionUrn = cancelSubscriptionRequest.subscriptionUrn;
|
|
926
|
-
}
|
|
927
|
-
else {
|
|
1143
|
+
} else {
|
|
928
1144
|
subscriptionUrn = cancelSubscriptionRequest['subscription_urn'];
|
|
929
1145
|
}
|
|
930
1146
|
}
|
|
1147
|
+
|
|
1148
|
+
|
|
931
1149
|
if (subscriptionUrn === null || subscriptionUrn === undefined) {
|
|
932
|
-
|
|
1150
|
+
throw new RequiredError('subscriptionUrn','Required parameter subscriptionUrn was null or undefined when calling cancelSubscription.');
|
|
933
1151
|
}
|
|
1152
|
+
|
|
934
1153
|
options.pathParams = { 'subscription_urn': subscriptionUrn, };
|
|
935
1154
|
options.headers = localVarHeaderParameter;
|
|
936
1155
|
return options;
|
|
937
1156
|
},
|
|
1157
|
+
|
|
938
1158
|
/**
|
|
939
1159
|
* 为指定Topic绑定一个云日志,用于记录主题消息发送状态等信息。
|
|
940
|
-
*
|
|
1160
|
+
*
|
|
941
1161
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
942
1162
|
*/
|
|
943
|
-
createLogtank
|
|
944
|
-
|
|
1163
|
+
createLogtank(createLogtankRequest?: CreateLogtankRequest) {
|
|
1164
|
+
const options = {
|
|
945
1165
|
method: "POST",
|
|
946
1166
|
url: "/v2/{project_id}/notifications/topics/{topic_urn}/logtanks",
|
|
947
1167
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -950,39 +1170,45 @@ var ParamCreater = function () {
|
|
|
950
1170
|
headers: {},
|
|
951
1171
|
data: {}
|
|
952
1172
|
};
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
1173
|
+
const localVarHeaderParameter = {} as any;
|
|
1174
|
+
|
|
1175
|
+
let body: any;
|
|
1176
|
+
|
|
1177
|
+
let topicUrn;
|
|
1178
|
+
|
|
956
1179
|
if (createLogtankRequest !== null && createLogtankRequest !== undefined) {
|
|
957
|
-
if (createLogtankRequest instanceof
|
|
1180
|
+
if (createLogtankRequest instanceof CreateLogtankRequest) {
|
|
958
1181
|
topicUrn = createLogtankRequest.topicUrn;
|
|
959
|
-
body = createLogtankRequest.body
|
|
960
|
-
}
|
|
961
|
-
else {
|
|
1182
|
+
body = createLogtankRequest.body
|
|
1183
|
+
} else {
|
|
962
1184
|
topicUrn = createLogtankRequest['topic_urn'];
|
|
963
1185
|
body = createLogtankRequest['body'];
|
|
964
1186
|
}
|
|
965
1187
|
}
|
|
1188
|
+
|
|
1189
|
+
|
|
966
1190
|
if (topicUrn === null || topicUrn === undefined) {
|
|
967
|
-
|
|
1191
|
+
throw new RequiredError('topicUrn','Required parameter topicUrn was null or undefined when calling createLogtank.');
|
|
968
1192
|
}
|
|
969
1193
|
if (body === null || body === undefined) {
|
|
970
|
-
throw new RequiredError('body',
|
|
1194
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
971
1195
|
}
|
|
972
1196
|
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
1197
|
+
|
|
973
1198
|
options.data = body !== undefined ? body : {};
|
|
974
1199
|
options.pathParams = { 'topic_urn': topicUrn, };
|
|
975
1200
|
options.headers = localVarHeaderParameter;
|
|
976
1201
|
return options;
|
|
977
1202
|
},
|
|
1203
|
+
|
|
978
1204
|
/**
|
|
979
1205
|
* 创建一个模板,用户可以按照模板去发送消息,这样可以减少请求的数据量。
|
|
980
1206
|
* 单用户默认可创建100个消息模板,高并发场景下,可能会出现消息模板数量超过100仍创建成功的情况,此为正常现象。
|
|
981
|
-
*
|
|
1207
|
+
*
|
|
982
1208
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
983
1209
|
*/
|
|
984
|
-
createMessageTemplate
|
|
985
|
-
|
|
1210
|
+
createMessageTemplate(createMessageTemplateRequest?: CreateMessageTemplateRequest) {
|
|
1211
|
+
const options = {
|
|
986
1212
|
method: "POST",
|
|
987
1213
|
url: "/v2/{project_id}/notifications/message_template",
|
|
988
1214
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -991,28 +1217,33 @@ var ParamCreater = function () {
|
|
|
991
1217
|
headers: {},
|
|
992
1218
|
data: {}
|
|
993
1219
|
};
|
|
994
|
-
|
|
995
|
-
|
|
1220
|
+
const localVarHeaderParameter = {} as any;
|
|
1221
|
+
|
|
1222
|
+
let body: any;
|
|
1223
|
+
|
|
996
1224
|
if (createMessageTemplateRequest !== null && createMessageTemplateRequest !== undefined) {
|
|
997
|
-
if (createMessageTemplateRequest instanceof
|
|
998
|
-
body = createMessageTemplateRequest.body
|
|
999
|
-
}
|
|
1000
|
-
else {
|
|
1225
|
+
if (createMessageTemplateRequest instanceof CreateMessageTemplateRequest) {
|
|
1226
|
+
body = createMessageTemplateRequest.body
|
|
1227
|
+
} else {
|
|
1001
1228
|
body = createMessageTemplateRequest['body'];
|
|
1002
1229
|
}
|
|
1003
1230
|
}
|
|
1231
|
+
|
|
1232
|
+
|
|
1004
1233
|
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
1234
|
+
|
|
1005
1235
|
options.data = body !== undefined ? body : {};
|
|
1006
1236
|
options.headers = localVarHeaderParameter;
|
|
1007
1237
|
return options;
|
|
1008
1238
|
},
|
|
1239
|
+
|
|
1009
1240
|
/**
|
|
1010
1241
|
* 一个资源上最多有10个标签。此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。
|
|
1011
|
-
*
|
|
1242
|
+
*
|
|
1012
1243
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1013
1244
|
*/
|
|
1014
|
-
createResourceTag
|
|
1015
|
-
|
|
1245
|
+
createResourceTag(createResourceTagRequest?: CreateResourceTagRequest) {
|
|
1246
|
+
const options = {
|
|
1016
1247
|
method: "POST",
|
|
1017
1248
|
url: "/v2/{project_id}/{resource_type}/{resource_id}/tags",
|
|
1018
1249
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -1021,42 +1252,49 @@ var ParamCreater = function () {
|
|
|
1021
1252
|
headers: {},
|
|
1022
1253
|
data: {}
|
|
1023
1254
|
};
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1255
|
+
const localVarHeaderParameter = {} as any;
|
|
1256
|
+
|
|
1257
|
+
let body: any;
|
|
1258
|
+
|
|
1259
|
+
let resourceType;
|
|
1260
|
+
|
|
1261
|
+
let resourceId;
|
|
1262
|
+
|
|
1028
1263
|
if (createResourceTagRequest !== null && createResourceTagRequest !== undefined) {
|
|
1029
|
-
if (createResourceTagRequest instanceof
|
|
1264
|
+
if (createResourceTagRequest instanceof CreateResourceTagRequest) {
|
|
1030
1265
|
resourceType = createResourceTagRequest.resourceType;
|
|
1031
1266
|
resourceId = createResourceTagRequest.resourceId;
|
|
1032
|
-
body = createResourceTagRequest.body
|
|
1033
|
-
}
|
|
1034
|
-
else {
|
|
1267
|
+
body = createResourceTagRequest.body
|
|
1268
|
+
} else {
|
|
1035
1269
|
resourceType = createResourceTagRequest['resource_type'];
|
|
1036
1270
|
resourceId = createResourceTagRequest['resource_id'];
|
|
1037
1271
|
body = createResourceTagRequest['body'];
|
|
1038
1272
|
}
|
|
1039
1273
|
}
|
|
1274
|
+
|
|
1275
|
+
|
|
1040
1276
|
if (resourceType === null || resourceType === undefined) {
|
|
1041
|
-
|
|
1277
|
+
throw new RequiredError('resourceType','Required parameter resourceType was null or undefined when calling createResourceTag.');
|
|
1042
1278
|
}
|
|
1043
1279
|
if (resourceId === null || resourceId === undefined) {
|
|
1044
|
-
|
|
1280
|
+
throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling createResourceTag.');
|
|
1045
1281
|
}
|
|
1046
1282
|
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
1283
|
+
|
|
1047
1284
|
options.data = body !== undefined ? body : {};
|
|
1048
|
-
options.pathParams = { 'resource_type': resourceType,
|
|
1285
|
+
options.pathParams = { 'resource_type': resourceType,'resource_id': resourceId, };
|
|
1049
1286
|
options.headers = localVarHeaderParameter;
|
|
1050
1287
|
return options;
|
|
1051
1288
|
},
|
|
1289
|
+
|
|
1052
1290
|
/**
|
|
1053
1291
|
* 创建Topic,单用户默认配额为3000。高并发场景下,可能会出现Topic数量超过3000仍创建成功的情况,此为正常现象。
|
|
1054
1292
|
* 接口是幂等的,接口调用返回成功时,若已存在同名的Topic,返回的status code为200,否则返回的status code为201
|
|
1055
|
-
*
|
|
1293
|
+
*
|
|
1056
1294
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1057
1295
|
*/
|
|
1058
|
-
createTopic
|
|
1059
|
-
|
|
1296
|
+
createTopic(createTopicRequest?: CreateTopicRequest) {
|
|
1297
|
+
const options = {
|
|
1060
1298
|
method: "POST",
|
|
1061
1299
|
url: "/v2/{project_id}/notifications/topics",
|
|
1062
1300
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -1065,31 +1303,36 @@ var ParamCreater = function () {
|
|
|
1065
1303
|
headers: {},
|
|
1066
1304
|
data: {}
|
|
1067
1305
|
};
|
|
1068
|
-
|
|
1069
|
-
|
|
1306
|
+
const localVarHeaderParameter = {} as any;
|
|
1307
|
+
|
|
1308
|
+
let body: any;
|
|
1309
|
+
|
|
1070
1310
|
if (createTopicRequest !== null && createTopicRequest !== undefined) {
|
|
1071
|
-
if (createTopicRequest instanceof
|
|
1072
|
-
body = createTopicRequest.body
|
|
1073
|
-
}
|
|
1074
|
-
else {
|
|
1311
|
+
if (createTopicRequest instanceof CreateTopicRequest) {
|
|
1312
|
+
body = createTopicRequest.body
|
|
1313
|
+
} else {
|
|
1075
1314
|
body = createTopicRequest['body'];
|
|
1076
1315
|
}
|
|
1077
1316
|
}
|
|
1317
|
+
|
|
1318
|
+
|
|
1078
1319
|
if (body === null || body === undefined) {
|
|
1079
|
-
throw new RequiredError('body',
|
|
1320
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
1080
1321
|
}
|
|
1081
1322
|
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
1323
|
+
|
|
1082
1324
|
options.data = body !== undefined ? body : {};
|
|
1083
1325
|
options.headers = localVarHeaderParameter;
|
|
1084
1326
|
return options;
|
|
1085
1327
|
},
|
|
1328
|
+
|
|
1086
1329
|
/**
|
|
1087
1330
|
* 解绑指定Topic绑定的云日志。
|
|
1088
|
-
*
|
|
1331
|
+
*
|
|
1089
1332
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1090
1333
|
*/
|
|
1091
|
-
deleteLogtank
|
|
1092
|
-
|
|
1334
|
+
deleteLogtank(deleteLogtankRequest?: DeleteLogtankRequest) {
|
|
1335
|
+
const options = {
|
|
1093
1336
|
method: "DELETE",
|
|
1094
1337
|
url: "/v2/{project_id}/notifications/topics/{topic_urn}/logtanks/{logtank_id}",
|
|
1095
1338
|
contentType: "application/json",
|
|
@@ -1097,36 +1340,43 @@ var ParamCreater = function () {
|
|
|
1097
1340
|
pathParams: {},
|
|
1098
1341
|
headers: {}
|
|
1099
1342
|
};
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1343
|
+
const localVarHeaderParameter = {} as any;
|
|
1344
|
+
|
|
1345
|
+
|
|
1346
|
+
let topicUrn;
|
|
1347
|
+
|
|
1348
|
+
let logtankId;
|
|
1349
|
+
|
|
1103
1350
|
if (deleteLogtankRequest !== null && deleteLogtankRequest !== undefined) {
|
|
1104
|
-
if (deleteLogtankRequest instanceof
|
|
1351
|
+
if (deleteLogtankRequest instanceof DeleteLogtankRequest) {
|
|
1105
1352
|
topicUrn = deleteLogtankRequest.topicUrn;
|
|
1106
1353
|
logtankId = deleteLogtankRequest.logtankId;
|
|
1107
|
-
}
|
|
1108
|
-
else {
|
|
1354
|
+
} else {
|
|
1109
1355
|
topicUrn = deleteLogtankRequest['topic_urn'];
|
|
1110
1356
|
logtankId = deleteLogtankRequest['logtank_id'];
|
|
1111
1357
|
}
|
|
1112
1358
|
}
|
|
1359
|
+
|
|
1360
|
+
|
|
1113
1361
|
if (topicUrn === null || topicUrn === undefined) {
|
|
1114
|
-
|
|
1362
|
+
throw new RequiredError('topicUrn','Required parameter topicUrn was null or undefined when calling deleteLogtank.');
|
|
1115
1363
|
}
|
|
1116
1364
|
if (logtankId === null || logtankId === undefined) {
|
|
1117
|
-
|
|
1365
|
+
throw new RequiredError('logtankId','Required parameter logtankId was null or undefined when calling deleteLogtank.');
|
|
1118
1366
|
}
|
|
1119
|
-
|
|
1367
|
+
|
|
1368
|
+
options.pathParams = { 'topic_urn': topicUrn,'logtank_id': logtankId, };
|
|
1120
1369
|
options.headers = localVarHeaderParameter;
|
|
1121
1370
|
return options;
|
|
1122
1371
|
},
|
|
1372
|
+
|
|
1123
1373
|
/**
|
|
1124
1374
|
* 删除消息模板。删除模板之前的消息请求都可以使用该模板发送,删除之后无法再使用该模板发送消息。
|
|
1125
|
-
*
|
|
1375
|
+
*
|
|
1126
1376
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1127
1377
|
*/
|
|
1128
|
-
deleteMessageTemplate
|
|
1129
|
-
|
|
1378
|
+
deleteMessageTemplate(deleteMessageTemplateRequest?: DeleteMessageTemplateRequest) {
|
|
1379
|
+
const options = {
|
|
1130
1380
|
method: "DELETE",
|
|
1131
1381
|
url: "/v2/{project_id}/notifications/message_template/{message_template_id}",
|
|
1132
1382
|
contentType: "application/json",
|
|
@@ -1134,30 +1384,36 @@ var ParamCreater = function () {
|
|
|
1134
1384
|
pathParams: {},
|
|
1135
1385
|
headers: {}
|
|
1136
1386
|
};
|
|
1137
|
-
|
|
1138
|
-
|
|
1387
|
+
const localVarHeaderParameter = {} as any;
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
let messageTemplateId;
|
|
1391
|
+
|
|
1139
1392
|
if (deleteMessageTemplateRequest !== null && deleteMessageTemplateRequest !== undefined) {
|
|
1140
|
-
if (deleteMessageTemplateRequest instanceof
|
|
1393
|
+
if (deleteMessageTemplateRequest instanceof DeleteMessageTemplateRequest) {
|
|
1141
1394
|
messageTemplateId = deleteMessageTemplateRequest.messageTemplateId;
|
|
1142
|
-
}
|
|
1143
|
-
else {
|
|
1395
|
+
} else {
|
|
1144
1396
|
messageTemplateId = deleteMessageTemplateRequest['message_template_id'];
|
|
1145
1397
|
}
|
|
1146
1398
|
}
|
|
1399
|
+
|
|
1400
|
+
|
|
1147
1401
|
if (messageTemplateId === null || messageTemplateId === undefined) {
|
|
1148
|
-
|
|
1402
|
+
throw new RequiredError('messageTemplateId','Required parameter messageTemplateId was null or undefined when calling deleteMessageTemplate.');
|
|
1149
1403
|
}
|
|
1404
|
+
|
|
1150
1405
|
options.pathParams = { 'message_template_id': messageTemplateId, };
|
|
1151
1406
|
options.headers = localVarHeaderParameter;
|
|
1152
1407
|
return options;
|
|
1153
1408
|
},
|
|
1409
|
+
|
|
1154
1410
|
/**
|
|
1155
1411
|
* 幂等接口:删除时,不对标签做校验。删除的key不存在报404,key不能为空或者空字符串。
|
|
1156
|
-
*
|
|
1412
|
+
*
|
|
1157
1413
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1158
1414
|
*/
|
|
1159
|
-
deleteResourceTag
|
|
1160
|
-
|
|
1415
|
+
deleteResourceTag(deleteResourceTagRequest?: DeleteResourceTagRequest) {
|
|
1416
|
+
const options = {
|
|
1161
1417
|
method: "DELETE",
|
|
1162
1418
|
url: "/v2/{project_id}/{resource_type}/{resource_id}/tags/{key}",
|
|
1163
1419
|
contentType: "application/json",
|
|
@@ -1165,42 +1421,50 @@ var ParamCreater = function () {
|
|
|
1165
1421
|
pathParams: {},
|
|
1166
1422
|
headers: {}
|
|
1167
1423
|
};
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1424
|
+
const localVarHeaderParameter = {} as any;
|
|
1425
|
+
|
|
1426
|
+
|
|
1427
|
+
let resourceType;
|
|
1428
|
+
|
|
1429
|
+
let resourceId;
|
|
1430
|
+
|
|
1431
|
+
let key;
|
|
1432
|
+
|
|
1172
1433
|
if (deleteResourceTagRequest !== null && deleteResourceTagRequest !== undefined) {
|
|
1173
|
-
if (deleteResourceTagRequest instanceof
|
|
1434
|
+
if (deleteResourceTagRequest instanceof DeleteResourceTagRequest) {
|
|
1174
1435
|
resourceType = deleteResourceTagRequest.resourceType;
|
|
1175
1436
|
resourceId = deleteResourceTagRequest.resourceId;
|
|
1176
1437
|
key = deleteResourceTagRequest.key;
|
|
1177
|
-
}
|
|
1178
|
-
else {
|
|
1438
|
+
} else {
|
|
1179
1439
|
resourceType = deleteResourceTagRequest['resource_type'];
|
|
1180
1440
|
resourceId = deleteResourceTagRequest['resource_id'];
|
|
1181
1441
|
key = deleteResourceTagRequest['key'];
|
|
1182
1442
|
}
|
|
1183
1443
|
}
|
|
1444
|
+
|
|
1445
|
+
|
|
1184
1446
|
if (resourceType === null || resourceType === undefined) {
|
|
1185
|
-
|
|
1447
|
+
throw new RequiredError('resourceType','Required parameter resourceType was null or undefined when calling deleteResourceTag.');
|
|
1186
1448
|
}
|
|
1187
1449
|
if (resourceId === null || resourceId === undefined) {
|
|
1188
|
-
|
|
1450
|
+
throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling deleteResourceTag.');
|
|
1189
1451
|
}
|
|
1190
1452
|
if (key === null || key === undefined) {
|
|
1191
|
-
|
|
1453
|
+
throw new RequiredError('key','Required parameter key was null or undefined when calling deleteResourceTag.');
|
|
1192
1454
|
}
|
|
1193
|
-
|
|
1455
|
+
|
|
1456
|
+
options.pathParams = { 'resource_type': resourceType,'resource_id': resourceId,'key': key, };
|
|
1194
1457
|
options.headers = localVarHeaderParameter;
|
|
1195
1458
|
return options;
|
|
1196
1459
|
},
|
|
1460
|
+
|
|
1197
1461
|
/**
|
|
1198
1462
|
* 删除主题。
|
|
1199
|
-
*
|
|
1463
|
+
*
|
|
1200
1464
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1201
1465
|
*/
|
|
1202
|
-
deleteTopic
|
|
1203
|
-
|
|
1466
|
+
deleteTopic(deleteTopicRequest?: DeleteTopicRequest) {
|
|
1467
|
+
const options = {
|
|
1204
1468
|
method: "DELETE",
|
|
1205
1469
|
url: "/v2/{project_id}/notifications/topics/{topic_urn}",
|
|
1206
1470
|
contentType: "application/json",
|
|
@@ -1208,30 +1472,36 @@ var ParamCreater = function () {
|
|
|
1208
1472
|
pathParams: {},
|
|
1209
1473
|
headers: {}
|
|
1210
1474
|
};
|
|
1211
|
-
|
|
1212
|
-
|
|
1475
|
+
const localVarHeaderParameter = {} as any;
|
|
1476
|
+
|
|
1477
|
+
|
|
1478
|
+
let topicUrn;
|
|
1479
|
+
|
|
1213
1480
|
if (deleteTopicRequest !== null && deleteTopicRequest !== undefined) {
|
|
1214
|
-
if (deleteTopicRequest instanceof
|
|
1481
|
+
if (deleteTopicRequest instanceof DeleteTopicRequest) {
|
|
1215
1482
|
topicUrn = deleteTopicRequest.topicUrn;
|
|
1216
|
-
}
|
|
1217
|
-
else {
|
|
1483
|
+
} else {
|
|
1218
1484
|
topicUrn = deleteTopicRequest['topic_urn'];
|
|
1219
1485
|
}
|
|
1220
1486
|
}
|
|
1487
|
+
|
|
1488
|
+
|
|
1221
1489
|
if (topicUrn === null || topicUrn === undefined) {
|
|
1222
|
-
|
|
1490
|
+
throw new RequiredError('topicUrn','Required parameter topicUrn was null or undefined when calling deleteTopic.');
|
|
1223
1491
|
}
|
|
1492
|
+
|
|
1224
1493
|
options.pathParams = { 'topic_urn': topicUrn, };
|
|
1225
1494
|
options.headers = localVarHeaderParameter;
|
|
1226
1495
|
return options;
|
|
1227
1496
|
},
|
|
1497
|
+
|
|
1228
1498
|
/**
|
|
1229
1499
|
* 删除指定名称的主题策略。
|
|
1230
|
-
*
|
|
1500
|
+
*
|
|
1231
1501
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1232
1502
|
*/
|
|
1233
|
-
deleteTopicAttributeByName
|
|
1234
|
-
|
|
1503
|
+
deleteTopicAttributeByName(deleteTopicAttributeByNameRequest?: DeleteTopicAttributeByNameRequest) {
|
|
1504
|
+
const options = {
|
|
1235
1505
|
method: "DELETE",
|
|
1236
1506
|
url: "/v2/{project_id}/notifications/topics/{topic_urn}/attributes/{name}",
|
|
1237
1507
|
contentType: "application/json",
|
|
@@ -1239,36 +1509,43 @@ var ParamCreater = function () {
|
|
|
1239
1509
|
pathParams: {},
|
|
1240
1510
|
headers: {}
|
|
1241
1511
|
};
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1512
|
+
const localVarHeaderParameter = {} as any;
|
|
1513
|
+
|
|
1514
|
+
|
|
1515
|
+
let topicUrn;
|
|
1516
|
+
|
|
1517
|
+
let name;
|
|
1518
|
+
|
|
1245
1519
|
if (deleteTopicAttributeByNameRequest !== null && deleteTopicAttributeByNameRequest !== undefined) {
|
|
1246
|
-
if (deleteTopicAttributeByNameRequest instanceof
|
|
1520
|
+
if (deleteTopicAttributeByNameRequest instanceof DeleteTopicAttributeByNameRequest) {
|
|
1247
1521
|
topicUrn = deleteTopicAttributeByNameRequest.topicUrn;
|
|
1248
1522
|
name = deleteTopicAttributeByNameRequest.name;
|
|
1249
|
-
}
|
|
1250
|
-
else {
|
|
1523
|
+
} else {
|
|
1251
1524
|
topicUrn = deleteTopicAttributeByNameRequest['topic_urn'];
|
|
1252
1525
|
name = deleteTopicAttributeByNameRequest['name'];
|
|
1253
1526
|
}
|
|
1254
1527
|
}
|
|
1528
|
+
|
|
1529
|
+
|
|
1255
1530
|
if (topicUrn === null || topicUrn === undefined) {
|
|
1256
|
-
|
|
1531
|
+
throw new RequiredError('topicUrn','Required parameter topicUrn was null or undefined when calling deleteTopicAttributeByName.');
|
|
1257
1532
|
}
|
|
1258
1533
|
if (name === null || name === undefined) {
|
|
1259
|
-
|
|
1534
|
+
throw new RequiredError('name','Required parameter name was null or undefined when calling deleteTopicAttributeByName.');
|
|
1260
1535
|
}
|
|
1261
|
-
|
|
1536
|
+
|
|
1537
|
+
options.pathParams = { 'topic_urn': topicUrn,'name': name, };
|
|
1262
1538
|
options.headers = localVarHeaderParameter;
|
|
1263
1539
|
return options;
|
|
1264
1540
|
},
|
|
1541
|
+
|
|
1265
1542
|
/**
|
|
1266
1543
|
* 删除所有主题策略。
|
|
1267
|
-
*
|
|
1544
|
+
*
|
|
1268
1545
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1269
1546
|
*/
|
|
1270
|
-
deleteTopicAttributes
|
|
1271
|
-
|
|
1547
|
+
deleteTopicAttributes(deleteTopicAttributesRequest?: DeleteTopicAttributesRequest) {
|
|
1548
|
+
const options = {
|
|
1272
1549
|
method: "DELETE",
|
|
1273
1550
|
url: "/v2/{project_id}/notifications/topics/{topic_urn}/attributes",
|
|
1274
1551
|
contentType: "application/json",
|
|
@@ -1276,30 +1553,36 @@ var ParamCreater = function () {
|
|
|
1276
1553
|
pathParams: {},
|
|
1277
1554
|
headers: {}
|
|
1278
1555
|
};
|
|
1279
|
-
|
|
1280
|
-
|
|
1556
|
+
const localVarHeaderParameter = {} as any;
|
|
1557
|
+
|
|
1558
|
+
|
|
1559
|
+
let topicUrn;
|
|
1560
|
+
|
|
1281
1561
|
if (deleteTopicAttributesRequest !== null && deleteTopicAttributesRequest !== undefined) {
|
|
1282
|
-
if (deleteTopicAttributesRequest instanceof
|
|
1562
|
+
if (deleteTopicAttributesRequest instanceof DeleteTopicAttributesRequest) {
|
|
1283
1563
|
topicUrn = deleteTopicAttributesRequest.topicUrn;
|
|
1284
|
-
}
|
|
1285
|
-
else {
|
|
1564
|
+
} else {
|
|
1286
1565
|
topicUrn = deleteTopicAttributesRequest['topic_urn'];
|
|
1287
1566
|
}
|
|
1288
1567
|
}
|
|
1568
|
+
|
|
1569
|
+
|
|
1289
1570
|
if (topicUrn === null || topicUrn === undefined) {
|
|
1290
|
-
|
|
1571
|
+
throw new RequiredError('topicUrn','Required parameter topicUrn was null or undefined when calling deleteTopicAttributes.');
|
|
1291
1572
|
}
|
|
1573
|
+
|
|
1292
1574
|
options.pathParams = { 'topic_urn': topicUrn, };
|
|
1293
1575
|
options.headers = localVarHeaderParameter;
|
|
1294
1576
|
return options;
|
|
1295
1577
|
},
|
|
1578
|
+
|
|
1296
1579
|
/**
|
|
1297
1580
|
* 查询指定Topic绑定的云日志。
|
|
1298
|
-
*
|
|
1581
|
+
*
|
|
1299
1582
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1300
1583
|
*/
|
|
1301
|
-
listLogtank
|
|
1302
|
-
|
|
1584
|
+
listLogtank(listLogtankRequest?: ListLogtankRequest) {
|
|
1585
|
+
const options = {
|
|
1303
1586
|
method: "GET",
|
|
1304
1587
|
url: "/v2/{project_id}/notifications/topics/{topic_urn}/logtanks",
|
|
1305
1588
|
contentType: "application/json",
|
|
@@ -1307,30 +1590,36 @@ var ParamCreater = function () {
|
|
|
1307
1590
|
pathParams: {},
|
|
1308
1591
|
headers: {}
|
|
1309
1592
|
};
|
|
1310
|
-
|
|
1311
|
-
|
|
1593
|
+
const localVarHeaderParameter = {} as any;
|
|
1594
|
+
|
|
1595
|
+
|
|
1596
|
+
let topicUrn;
|
|
1597
|
+
|
|
1312
1598
|
if (listLogtankRequest !== null && listLogtankRequest !== undefined) {
|
|
1313
|
-
if (listLogtankRequest instanceof
|
|
1599
|
+
if (listLogtankRequest instanceof ListLogtankRequest) {
|
|
1314
1600
|
topicUrn = listLogtankRequest.topicUrn;
|
|
1315
|
-
}
|
|
1316
|
-
else {
|
|
1601
|
+
} else {
|
|
1317
1602
|
topicUrn = listLogtankRequest['topic_urn'];
|
|
1318
1603
|
}
|
|
1319
1604
|
}
|
|
1605
|
+
|
|
1606
|
+
|
|
1320
1607
|
if (topicUrn === null || topicUrn === undefined) {
|
|
1321
|
-
|
|
1608
|
+
throw new RequiredError('topicUrn','Required parameter topicUrn was null or undefined when calling listLogtank.');
|
|
1322
1609
|
}
|
|
1610
|
+
|
|
1323
1611
|
options.pathParams = { 'topic_urn': topicUrn, };
|
|
1324
1612
|
options.headers = localVarHeaderParameter;
|
|
1325
1613
|
return options;
|
|
1326
1614
|
},
|
|
1615
|
+
|
|
1327
1616
|
/**
|
|
1328
1617
|
* 查询模板详情,包括模板内容。
|
|
1329
|
-
*
|
|
1618
|
+
*
|
|
1330
1619
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1331
1620
|
*/
|
|
1332
|
-
listMessageTemplateDetails
|
|
1333
|
-
|
|
1621
|
+
listMessageTemplateDetails(listMessageTemplateDetailsRequest?: ListMessageTemplateDetailsRequest) {
|
|
1622
|
+
const options = {
|
|
1334
1623
|
method: "GET",
|
|
1335
1624
|
url: "/v2/{project_id}/notifications/message_template/{message_template_id}",
|
|
1336
1625
|
contentType: "application/json",
|
|
@@ -1338,30 +1627,36 @@ var ParamCreater = function () {
|
|
|
1338
1627
|
pathParams: {},
|
|
1339
1628
|
headers: {}
|
|
1340
1629
|
};
|
|
1341
|
-
|
|
1342
|
-
|
|
1630
|
+
const localVarHeaderParameter = {} as any;
|
|
1631
|
+
|
|
1632
|
+
|
|
1633
|
+
let messageTemplateId;
|
|
1634
|
+
|
|
1343
1635
|
if (listMessageTemplateDetailsRequest !== null && listMessageTemplateDetailsRequest !== undefined) {
|
|
1344
|
-
if (listMessageTemplateDetailsRequest instanceof
|
|
1636
|
+
if (listMessageTemplateDetailsRequest instanceof ListMessageTemplateDetailsRequest) {
|
|
1345
1637
|
messageTemplateId = listMessageTemplateDetailsRequest.messageTemplateId;
|
|
1346
|
-
}
|
|
1347
|
-
else {
|
|
1638
|
+
} else {
|
|
1348
1639
|
messageTemplateId = listMessageTemplateDetailsRequest['message_template_id'];
|
|
1349
1640
|
}
|
|
1350
1641
|
}
|
|
1642
|
+
|
|
1643
|
+
|
|
1351
1644
|
if (messageTemplateId === null || messageTemplateId === undefined) {
|
|
1352
|
-
|
|
1645
|
+
throw new RequiredError('messageTemplateId','Required parameter messageTemplateId was null or undefined when calling listMessageTemplateDetails.');
|
|
1353
1646
|
}
|
|
1647
|
+
|
|
1354
1648
|
options.pathParams = { 'message_template_id': messageTemplateId, };
|
|
1355
1649
|
options.headers = localVarHeaderParameter;
|
|
1356
1650
|
return options;
|
|
1357
1651
|
},
|
|
1652
|
+
|
|
1358
1653
|
/**
|
|
1359
1654
|
* 分页查询模板列表,模板列表按照创建时间进行升序排列。分页查询可以指定offset以及limit。如果不存在模板,则返回空列表。额外的查询参数分别有message_template_name和protocol。
|
|
1360
|
-
*
|
|
1655
|
+
*
|
|
1361
1656
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1362
1657
|
*/
|
|
1363
|
-
listMessageTemplates
|
|
1364
|
-
|
|
1658
|
+
listMessageTemplates(listMessageTemplatesRequest?: ListMessageTemplatesRequest) {
|
|
1659
|
+
const options = {
|
|
1365
1660
|
method: "GET",
|
|
1366
1661
|
url: "/v2/{project_id}/notifications/message_template",
|
|
1367
1662
|
contentType: "application/json",
|
|
@@ -1369,26 +1664,32 @@ var ParamCreater = function () {
|
|
|
1369
1664
|
pathParams: {},
|
|
1370
1665
|
headers: {}
|
|
1371
1666
|
};
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1667
|
+
const localVarHeaderParameter = {} as any;
|
|
1668
|
+
const localVarQueryParameter = {} as any;
|
|
1669
|
+
|
|
1670
|
+
let offset;
|
|
1671
|
+
|
|
1672
|
+
let limit;
|
|
1673
|
+
|
|
1674
|
+
let messageTemplateName;
|
|
1675
|
+
|
|
1676
|
+
let protocol;
|
|
1677
|
+
|
|
1378
1678
|
if (listMessageTemplatesRequest !== null && listMessageTemplatesRequest !== undefined) {
|
|
1379
|
-
if (listMessageTemplatesRequest instanceof
|
|
1679
|
+
if (listMessageTemplatesRequest instanceof ListMessageTemplatesRequest) {
|
|
1380
1680
|
offset = listMessageTemplatesRequest.offset;
|
|
1381
1681
|
limit = listMessageTemplatesRequest.limit;
|
|
1382
1682
|
messageTemplateName = listMessageTemplatesRequest.messageTemplateName;
|
|
1383
1683
|
protocol = listMessageTemplatesRequest.protocol;
|
|
1384
|
-
}
|
|
1385
|
-
else {
|
|
1684
|
+
} else {
|
|
1386
1685
|
offset = listMessageTemplatesRequest['offset'];
|
|
1387
1686
|
limit = listMessageTemplatesRequest['limit'];
|
|
1388
1687
|
messageTemplateName = listMessageTemplatesRequest['message_template_name'];
|
|
1389
1688
|
protocol = listMessageTemplatesRequest['protocol'];
|
|
1390
1689
|
}
|
|
1391
1690
|
}
|
|
1691
|
+
|
|
1692
|
+
|
|
1392
1693
|
if (offset !== null && offset !== undefined) {
|
|
1393
1694
|
localVarQueryParameter['offset'] = offset;
|
|
1394
1695
|
}
|
|
@@ -1401,17 +1702,19 @@ var ParamCreater = function () {
|
|
|
1401
1702
|
if (protocol !== null && protocol !== undefined) {
|
|
1402
1703
|
localVarQueryParameter['protocol'] = protocol;
|
|
1403
1704
|
}
|
|
1705
|
+
|
|
1404
1706
|
options.queryParams = localVarQueryParameter;
|
|
1405
1707
|
options.headers = localVarHeaderParameter;
|
|
1406
1708
|
return options;
|
|
1407
1709
|
},
|
|
1710
|
+
|
|
1408
1711
|
/**
|
|
1409
1712
|
* 查询租户在指定Region和实例类型的所有标签集合。
|
|
1410
|
-
*
|
|
1713
|
+
*
|
|
1411
1714
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1412
1715
|
*/
|
|
1413
|
-
listProjectTags
|
|
1414
|
-
|
|
1716
|
+
listProjectTags(listProjectTagsRequest?: ListProjectTagsRequest) {
|
|
1717
|
+
const options = {
|
|
1415
1718
|
method: "GET",
|
|
1416
1719
|
url: "/v2/{project_id}/{resource_type}/tags",
|
|
1417
1720
|
contentType: "application/json",
|
|
@@ -1419,30 +1722,36 @@ var ParamCreater = function () {
|
|
|
1419
1722
|
pathParams: {},
|
|
1420
1723
|
headers: {}
|
|
1421
1724
|
};
|
|
1422
|
-
|
|
1423
|
-
|
|
1725
|
+
const localVarHeaderParameter = {} as any;
|
|
1726
|
+
|
|
1727
|
+
|
|
1728
|
+
let resourceType;
|
|
1729
|
+
|
|
1424
1730
|
if (listProjectTagsRequest !== null && listProjectTagsRequest !== undefined) {
|
|
1425
|
-
if (listProjectTagsRequest instanceof
|
|
1731
|
+
if (listProjectTagsRequest instanceof ListProjectTagsRequest) {
|
|
1426
1732
|
resourceType = listProjectTagsRequest.resourceType;
|
|
1427
|
-
}
|
|
1428
|
-
else {
|
|
1733
|
+
} else {
|
|
1429
1734
|
resourceType = listProjectTagsRequest['resource_type'];
|
|
1430
1735
|
}
|
|
1431
1736
|
}
|
|
1737
|
+
|
|
1738
|
+
|
|
1432
1739
|
if (resourceType === null || resourceType === undefined) {
|
|
1433
|
-
|
|
1740
|
+
throw new RequiredError('resourceType','Required parameter resourceType was null or undefined when calling listProjectTags.');
|
|
1434
1741
|
}
|
|
1742
|
+
|
|
1435
1743
|
options.pathParams = { 'resource_type': resourceType, };
|
|
1436
1744
|
options.headers = localVarHeaderParameter;
|
|
1437
1745
|
return options;
|
|
1438
1746
|
},
|
|
1747
|
+
|
|
1439
1748
|
/**
|
|
1440
1749
|
* 使用标签过滤实例。
|
|
1441
|
-
*
|
|
1750
|
+
*
|
|
1442
1751
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1443
1752
|
*/
|
|
1444
|
-
listResourceInstances
|
|
1445
|
-
|
|
1753
|
+
listResourceInstances(listResourceInstancesRequest?: ListResourceInstancesRequest) {
|
|
1754
|
+
const options = {
|
|
1446
1755
|
method: "POST",
|
|
1447
1756
|
url: "/v2/{project_id}/{resource_type}/resource_instances/action",
|
|
1448
1757
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -1451,35 +1760,41 @@ var ParamCreater = function () {
|
|
|
1451
1760
|
headers: {},
|
|
1452
1761
|
data: {}
|
|
1453
1762
|
};
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1763
|
+
const localVarHeaderParameter = {} as any;
|
|
1764
|
+
|
|
1765
|
+
let body: any;
|
|
1766
|
+
|
|
1767
|
+
let resourceType;
|
|
1768
|
+
|
|
1457
1769
|
if (listResourceInstancesRequest !== null && listResourceInstancesRequest !== undefined) {
|
|
1458
|
-
if (listResourceInstancesRequest instanceof
|
|
1770
|
+
if (listResourceInstancesRequest instanceof ListResourceInstancesRequest) {
|
|
1459
1771
|
resourceType = listResourceInstancesRequest.resourceType;
|
|
1460
|
-
body = listResourceInstancesRequest.body
|
|
1461
|
-
}
|
|
1462
|
-
else {
|
|
1772
|
+
body = listResourceInstancesRequest.body
|
|
1773
|
+
} else {
|
|
1463
1774
|
resourceType = listResourceInstancesRequest['resource_type'];
|
|
1464
1775
|
body = listResourceInstancesRequest['body'];
|
|
1465
1776
|
}
|
|
1466
1777
|
}
|
|
1778
|
+
|
|
1779
|
+
|
|
1467
1780
|
if (resourceType === null || resourceType === undefined) {
|
|
1468
|
-
|
|
1781
|
+
throw new RequiredError('resourceType','Required parameter resourceType was null or undefined when calling listResourceInstances.');
|
|
1469
1782
|
}
|
|
1470
1783
|
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
1784
|
+
|
|
1471
1785
|
options.data = body !== undefined ? body : {};
|
|
1472
1786
|
options.pathParams = { 'resource_type': resourceType, };
|
|
1473
1787
|
options.headers = localVarHeaderParameter;
|
|
1474
1788
|
return options;
|
|
1475
1789
|
},
|
|
1790
|
+
|
|
1476
1791
|
/**
|
|
1477
1792
|
* 查询指定实例的标签信息。
|
|
1478
|
-
*
|
|
1793
|
+
*
|
|
1479
1794
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1480
1795
|
*/
|
|
1481
|
-
listResourceTags
|
|
1482
|
-
|
|
1796
|
+
listResourceTags(listResourceTagsRequest?: ListResourceTagsRequest) {
|
|
1797
|
+
const options = {
|
|
1483
1798
|
method: "GET",
|
|
1484
1799
|
url: "/v2/{project_id}/{resource_type}/{resource_id}/tags",
|
|
1485
1800
|
contentType: "application/json",
|
|
@@ -1487,36 +1802,43 @@ var ParamCreater = function () {
|
|
|
1487
1802
|
pathParams: {},
|
|
1488
1803
|
headers: {}
|
|
1489
1804
|
};
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1805
|
+
const localVarHeaderParameter = {} as any;
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
let resourceType;
|
|
1809
|
+
|
|
1810
|
+
let resourceId;
|
|
1811
|
+
|
|
1493
1812
|
if (listResourceTagsRequest !== null && listResourceTagsRequest !== undefined) {
|
|
1494
|
-
if (listResourceTagsRequest instanceof
|
|
1813
|
+
if (listResourceTagsRequest instanceof ListResourceTagsRequest) {
|
|
1495
1814
|
resourceType = listResourceTagsRequest.resourceType;
|
|
1496
1815
|
resourceId = listResourceTagsRequest.resourceId;
|
|
1497
|
-
}
|
|
1498
|
-
else {
|
|
1816
|
+
} else {
|
|
1499
1817
|
resourceType = listResourceTagsRequest['resource_type'];
|
|
1500
1818
|
resourceId = listResourceTagsRequest['resource_id'];
|
|
1501
1819
|
}
|
|
1502
1820
|
}
|
|
1821
|
+
|
|
1822
|
+
|
|
1503
1823
|
if (resourceType === null || resourceType === undefined) {
|
|
1504
|
-
|
|
1824
|
+
throw new RequiredError('resourceType','Required parameter resourceType was null or undefined when calling listResourceTags.');
|
|
1505
1825
|
}
|
|
1506
1826
|
if (resourceId === null || resourceId === undefined) {
|
|
1507
|
-
|
|
1827
|
+
throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling listResourceTags.');
|
|
1508
1828
|
}
|
|
1509
|
-
|
|
1829
|
+
|
|
1830
|
+
options.pathParams = { 'resource_type': resourceType,'resource_id': resourceId, };
|
|
1510
1831
|
options.headers = localVarHeaderParameter;
|
|
1511
1832
|
return options;
|
|
1512
1833
|
},
|
|
1834
|
+
|
|
1513
1835
|
/**
|
|
1514
1836
|
* 分页返回请求者的所有的订阅列表,订阅列表按照订阅创建时间进行升序排列。分页查询可以指定offset以及limit。如果订阅者不存在,返回空列表。
|
|
1515
|
-
*
|
|
1837
|
+
*
|
|
1516
1838
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1517
1839
|
*/
|
|
1518
|
-
listSubscriptions
|
|
1519
|
-
|
|
1840
|
+
listSubscriptions(listSubscriptionsRequest?: ListSubscriptionsRequest) {
|
|
1841
|
+
const options = {
|
|
1520
1842
|
method: "GET",
|
|
1521
1843
|
url: "/v2/{project_id}/notifications/subscriptions",
|
|
1522
1844
|
contentType: "application/json",
|
|
@@ -1524,22 +1846,27 @@ var ParamCreater = function () {
|
|
|
1524
1846
|
pathParams: {},
|
|
1525
1847
|
headers: {}
|
|
1526
1848
|
};
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1849
|
+
const localVarHeaderParameter = {} as any;
|
|
1850
|
+
const localVarQueryParameter = {} as any;
|
|
1851
|
+
|
|
1852
|
+
let offset;
|
|
1853
|
+
|
|
1854
|
+
let limit;
|
|
1855
|
+
|
|
1856
|
+
let protocol;
|
|
1857
|
+
|
|
1858
|
+
let status;
|
|
1859
|
+
|
|
1860
|
+
let endpoint;
|
|
1861
|
+
|
|
1534
1862
|
if (listSubscriptionsRequest !== null && listSubscriptionsRequest !== undefined) {
|
|
1535
|
-
if (listSubscriptionsRequest instanceof
|
|
1863
|
+
if (listSubscriptionsRequest instanceof ListSubscriptionsRequest) {
|
|
1536
1864
|
offset = listSubscriptionsRequest.offset;
|
|
1537
1865
|
limit = listSubscriptionsRequest.limit;
|
|
1538
1866
|
protocol = listSubscriptionsRequest.protocol;
|
|
1539
1867
|
status = listSubscriptionsRequest.status;
|
|
1540
1868
|
endpoint = listSubscriptionsRequest.endpoint;
|
|
1541
|
-
}
|
|
1542
|
-
else {
|
|
1869
|
+
} else {
|
|
1543
1870
|
offset = listSubscriptionsRequest['offset'];
|
|
1544
1871
|
limit = listSubscriptionsRequest['limit'];
|
|
1545
1872
|
protocol = listSubscriptionsRequest['protocol'];
|
|
@@ -1547,6 +1874,8 @@ var ParamCreater = function () {
|
|
|
1547
1874
|
endpoint = listSubscriptionsRequest['endpoint'];
|
|
1548
1875
|
}
|
|
1549
1876
|
}
|
|
1877
|
+
|
|
1878
|
+
|
|
1550
1879
|
if (offset !== null && offset !== undefined) {
|
|
1551
1880
|
localVarQueryParameter['offset'] = offset;
|
|
1552
1881
|
}
|
|
@@ -1562,17 +1891,19 @@ var ParamCreater = function () {
|
|
|
1562
1891
|
if (endpoint !== null && endpoint !== undefined) {
|
|
1563
1892
|
localVarQueryParameter['endpoint'] = endpoint;
|
|
1564
1893
|
}
|
|
1894
|
+
|
|
1565
1895
|
options.queryParams = localVarQueryParameter;
|
|
1566
1896
|
options.headers = localVarHeaderParameter;
|
|
1567
1897
|
return options;
|
|
1568
1898
|
},
|
|
1899
|
+
|
|
1569
1900
|
/**
|
|
1570
1901
|
* 分页获取特定Topic的订阅列表,订阅列表按照订阅创建时间进行升序排列。分页查询可以指定offset以及limit。如果指定Topic不存在订阅者,返回空列表。
|
|
1571
|
-
*
|
|
1902
|
+
*
|
|
1572
1903
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1573
1904
|
*/
|
|
1574
|
-
listSubscriptionsByTopic
|
|
1575
|
-
|
|
1905
|
+
listSubscriptionsByTopic(listSubscriptionsByTopicRequest?: ListSubscriptionsByTopicRequest) {
|
|
1906
|
+
const options = {
|
|
1576
1907
|
method: "GET",
|
|
1577
1908
|
url: "/v2/{project_id}/notifications/topics/{topic_urn}/subscriptions",
|
|
1578
1909
|
contentType: "application/json",
|
|
@@ -1580,25 +1911,30 @@ var ParamCreater = function () {
|
|
|
1580
1911
|
pathParams: {},
|
|
1581
1912
|
headers: {}
|
|
1582
1913
|
};
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1914
|
+
const localVarHeaderParameter = {} as any;
|
|
1915
|
+
const localVarQueryParameter = {} as any;
|
|
1916
|
+
|
|
1917
|
+
let topicUrn;
|
|
1918
|
+
|
|
1919
|
+
let offset;
|
|
1920
|
+
|
|
1921
|
+
let limit;
|
|
1922
|
+
|
|
1588
1923
|
if (listSubscriptionsByTopicRequest !== null && listSubscriptionsByTopicRequest !== undefined) {
|
|
1589
|
-
if (listSubscriptionsByTopicRequest instanceof
|
|
1924
|
+
if (listSubscriptionsByTopicRequest instanceof ListSubscriptionsByTopicRequest) {
|
|
1590
1925
|
topicUrn = listSubscriptionsByTopicRequest.topicUrn;
|
|
1591
1926
|
offset = listSubscriptionsByTopicRequest.offset;
|
|
1592
1927
|
limit = listSubscriptionsByTopicRequest.limit;
|
|
1593
|
-
}
|
|
1594
|
-
else {
|
|
1928
|
+
} else {
|
|
1595
1929
|
topicUrn = listSubscriptionsByTopicRequest['topic_urn'];
|
|
1596
1930
|
offset = listSubscriptionsByTopicRequest['offset'];
|
|
1597
1931
|
limit = listSubscriptionsByTopicRequest['limit'];
|
|
1598
1932
|
}
|
|
1599
1933
|
}
|
|
1934
|
+
|
|
1935
|
+
|
|
1600
1936
|
if (topicUrn === null || topicUrn === undefined) {
|
|
1601
|
-
|
|
1937
|
+
throw new RequiredError('topicUrn','Required parameter topicUrn was null or undefined when calling listSubscriptionsByTopic.');
|
|
1602
1938
|
}
|
|
1603
1939
|
if (offset !== null && offset !== undefined) {
|
|
1604
1940
|
localVarQueryParameter['offset'] = offset;
|
|
@@ -1606,18 +1942,20 @@ var ParamCreater = function () {
|
|
|
1606
1942
|
if (limit !== null && limit !== undefined) {
|
|
1607
1943
|
localVarQueryParameter['limit'] = limit;
|
|
1608
1944
|
}
|
|
1945
|
+
|
|
1609
1946
|
options.queryParams = localVarQueryParameter;
|
|
1610
1947
|
options.pathParams = { 'topic_urn': topicUrn, };
|
|
1611
1948
|
options.headers = localVarHeaderParameter;
|
|
1612
1949
|
return options;
|
|
1613
1950
|
},
|
|
1951
|
+
|
|
1614
1952
|
/**
|
|
1615
1953
|
* 查询主题的策略信息。
|
|
1616
|
-
*
|
|
1954
|
+
*
|
|
1617
1955
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1618
1956
|
*/
|
|
1619
|
-
listTopicAttributes
|
|
1620
|
-
|
|
1957
|
+
listTopicAttributes(listTopicAttributesRequest?: ListTopicAttributesRequest) {
|
|
1958
|
+
const options = {
|
|
1621
1959
|
method: "GET",
|
|
1622
1960
|
url: "/v2/{project_id}/notifications/topics/{topic_urn}/attributes",
|
|
1623
1961
|
contentType: "application/json",
|
|
@@ -1625,41 +1963,47 @@ var ParamCreater = function () {
|
|
|
1625
1963
|
pathParams: {},
|
|
1626
1964
|
headers: {}
|
|
1627
1965
|
};
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1966
|
+
const localVarHeaderParameter = {} as any;
|
|
1967
|
+
const localVarQueryParameter = {} as any;
|
|
1968
|
+
|
|
1969
|
+
let topicUrn;
|
|
1970
|
+
|
|
1971
|
+
let name;
|
|
1972
|
+
|
|
1632
1973
|
if (listTopicAttributesRequest !== null && listTopicAttributesRequest !== undefined) {
|
|
1633
|
-
if (listTopicAttributesRequest instanceof
|
|
1974
|
+
if (listTopicAttributesRequest instanceof ListTopicAttributesRequest) {
|
|
1634
1975
|
topicUrn = listTopicAttributesRequest.topicUrn;
|
|
1635
1976
|
name = listTopicAttributesRequest.name;
|
|
1636
|
-
}
|
|
1637
|
-
else {
|
|
1977
|
+
} else {
|
|
1638
1978
|
topicUrn = listTopicAttributesRequest['topic_urn'];
|
|
1639
1979
|
name = listTopicAttributesRequest['name'];
|
|
1640
1980
|
}
|
|
1641
1981
|
}
|
|
1982
|
+
|
|
1983
|
+
|
|
1642
1984
|
if (topicUrn === null || topicUrn === undefined) {
|
|
1643
|
-
|
|
1985
|
+
throw new RequiredError('topicUrn','Required parameter topicUrn was null or undefined when calling listTopicAttributes.');
|
|
1644
1986
|
}
|
|
1645
1987
|
if (name === null || name === undefined) {
|
|
1646
|
-
throw new RequiredError('name',
|
|
1988
|
+
throw new RequiredError('name','Required parameter name was null or undefined when calling listTopicAttributes.');
|
|
1647
1989
|
}
|
|
1648
1990
|
if (name !== null && name !== undefined) {
|
|
1649
1991
|
localVarQueryParameter['name'] = name;
|
|
1650
1992
|
}
|
|
1993
|
+
|
|
1651
1994
|
options.queryParams = localVarQueryParameter;
|
|
1652
1995
|
options.pathParams = { 'topic_urn': topicUrn, };
|
|
1653
1996
|
options.headers = localVarHeaderParameter;
|
|
1654
1997
|
return options;
|
|
1655
1998
|
},
|
|
1999
|
+
|
|
1656
2000
|
/**
|
|
1657
2001
|
* 查询Topic的详细信息。
|
|
1658
|
-
*
|
|
2002
|
+
*
|
|
1659
2003
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1660
2004
|
*/
|
|
1661
|
-
listTopicDetails
|
|
1662
|
-
|
|
2005
|
+
listTopicDetails(listTopicDetailsRequest?: ListTopicDetailsRequest) {
|
|
2006
|
+
const options = {
|
|
1663
2007
|
method: "GET",
|
|
1664
2008
|
url: "/v2/{project_id}/notifications/topics/{topic_urn}",
|
|
1665
2009
|
contentType: "application/json",
|
|
@@ -1667,30 +2011,36 @@ var ParamCreater = function () {
|
|
|
1667
2011
|
pathParams: {},
|
|
1668
2012
|
headers: {}
|
|
1669
2013
|
};
|
|
1670
|
-
|
|
1671
|
-
|
|
2014
|
+
const localVarHeaderParameter = {} as any;
|
|
2015
|
+
|
|
2016
|
+
|
|
2017
|
+
let topicUrn;
|
|
2018
|
+
|
|
1672
2019
|
if (listTopicDetailsRequest !== null && listTopicDetailsRequest !== undefined) {
|
|
1673
|
-
if (listTopicDetailsRequest instanceof
|
|
2020
|
+
if (listTopicDetailsRequest instanceof ListTopicDetailsRequest) {
|
|
1674
2021
|
topicUrn = listTopicDetailsRequest.topicUrn;
|
|
1675
|
-
}
|
|
1676
|
-
else {
|
|
2022
|
+
} else {
|
|
1677
2023
|
topicUrn = listTopicDetailsRequest['topic_urn'];
|
|
1678
2024
|
}
|
|
1679
2025
|
}
|
|
2026
|
+
|
|
2027
|
+
|
|
1680
2028
|
if (topicUrn === null || topicUrn === undefined) {
|
|
1681
|
-
|
|
2029
|
+
throw new RequiredError('topicUrn','Required parameter topicUrn was null or undefined when calling listTopicDetails.');
|
|
1682
2030
|
}
|
|
2031
|
+
|
|
1683
2032
|
options.pathParams = { 'topic_urn': topicUrn, };
|
|
1684
2033
|
options.headers = localVarHeaderParameter;
|
|
1685
2034
|
return options;
|
|
1686
2035
|
},
|
|
2036
|
+
|
|
1687
2037
|
/**
|
|
1688
2038
|
* 分页查询Topic列表,Topic列表按照Topic创建时间进行降序排列。分页查询可以指定offset以及limit。如果不存在Topic,则返回空列表。
|
|
1689
|
-
*
|
|
2039
|
+
*
|
|
1690
2040
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1691
2041
|
*/
|
|
1692
|
-
listTopics
|
|
1693
|
-
|
|
2042
|
+
listTopics(listTopicsRequest?: ListTopicsRequest) {
|
|
2043
|
+
const options = {
|
|
1694
2044
|
method: "GET",
|
|
1695
2045
|
url: "/v2/{project_id}/notifications/topics",
|
|
1696
2046
|
contentType: "application/json",
|
|
@@ -1698,24 +2048,30 @@ var ParamCreater = function () {
|
|
|
1698
2048
|
pathParams: {},
|
|
1699
2049
|
headers: {}
|
|
1700
2050
|
};
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
2051
|
+
const localVarHeaderParameter = {} as any;
|
|
2052
|
+
const localVarQueryParameter = {} as any;
|
|
2053
|
+
|
|
2054
|
+
let offset;
|
|
2055
|
+
|
|
2056
|
+
let limit;
|
|
2057
|
+
|
|
2058
|
+
let enterpriseProjectId;
|
|
2059
|
+
|
|
2060
|
+
let name;
|
|
2061
|
+
|
|
2062
|
+
let fuzzyName;
|
|
2063
|
+
|
|
2064
|
+
let topicId;
|
|
2065
|
+
|
|
1709
2066
|
if (listTopicsRequest !== null && listTopicsRequest !== undefined) {
|
|
1710
|
-
if (listTopicsRequest instanceof
|
|
2067
|
+
if (listTopicsRequest instanceof ListTopicsRequest) {
|
|
1711
2068
|
offset = listTopicsRequest.offset;
|
|
1712
2069
|
limit = listTopicsRequest.limit;
|
|
1713
2070
|
enterpriseProjectId = listTopicsRequest.enterpriseProjectId;
|
|
1714
2071
|
name = listTopicsRequest.name;
|
|
1715
2072
|
fuzzyName = listTopicsRequest.fuzzyName;
|
|
1716
2073
|
topicId = listTopicsRequest.topicId;
|
|
1717
|
-
}
|
|
1718
|
-
else {
|
|
2074
|
+
} else {
|
|
1719
2075
|
offset = listTopicsRequest['offset'];
|
|
1720
2076
|
limit = listTopicsRequest['limit'];
|
|
1721
2077
|
enterpriseProjectId = listTopicsRequest['enterprise_project_id'];
|
|
@@ -1724,6 +2080,8 @@ var ParamCreater = function () {
|
|
|
1724
2080
|
topicId = listTopicsRequest['topic_id'];
|
|
1725
2081
|
}
|
|
1726
2082
|
}
|
|
2083
|
+
|
|
2084
|
+
|
|
1727
2085
|
if (offset !== null && offset !== undefined) {
|
|
1728
2086
|
localVarQueryParameter['offset'] = offset;
|
|
1729
2087
|
}
|
|
@@ -1742,17 +2100,19 @@ var ParamCreater = function () {
|
|
|
1742
2100
|
if (topicId !== null && topicId !== undefined) {
|
|
1743
2101
|
localVarQueryParameter['topic_id'] = topicId;
|
|
1744
2102
|
}
|
|
2103
|
+
|
|
1745
2104
|
options.queryParams = localVarQueryParameter;
|
|
1746
2105
|
options.headers = localVarHeaderParameter;
|
|
1747
2106
|
return options;
|
|
1748
2107
|
},
|
|
2108
|
+
|
|
1749
2109
|
/**
|
|
1750
2110
|
* 查询SMN API V2版本信息。
|
|
1751
|
-
*
|
|
2111
|
+
*
|
|
1752
2112
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1753
2113
|
*/
|
|
1754
|
-
listVersion
|
|
1755
|
-
|
|
2114
|
+
listVersion() {
|
|
2115
|
+
const options = {
|
|
1756
2116
|
method: "GET",
|
|
1757
2117
|
url: "/v2",
|
|
1758
2118
|
contentType: "application/json",
|
|
@@ -1760,17 +2120,20 @@ var ParamCreater = function () {
|
|
|
1760
2120
|
pathParams: {},
|
|
1761
2121
|
headers: {}
|
|
1762
2122
|
};
|
|
1763
|
-
|
|
2123
|
+
const localVarHeaderParameter = {} as any;
|
|
2124
|
+
|
|
2125
|
+
|
|
1764
2126
|
options.headers = localVarHeaderParameter;
|
|
1765
2127
|
return options;
|
|
1766
2128
|
},
|
|
2129
|
+
|
|
1767
2130
|
/**
|
|
1768
2131
|
* 查询SMN开放API支持的版本号。
|
|
1769
|
-
*
|
|
2132
|
+
*
|
|
1770
2133
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1771
2134
|
*/
|
|
1772
|
-
listVersions
|
|
1773
|
-
|
|
2135
|
+
listVersions() {
|
|
2136
|
+
const options = {
|
|
1774
2137
|
method: "GET",
|
|
1775
2138
|
url: "/",
|
|
1776
2139
|
contentType: "application/json",
|
|
@@ -1778,26 +2141,29 @@ var ParamCreater = function () {
|
|
|
1778
2141
|
pathParams: {},
|
|
1779
2142
|
headers: {}
|
|
1780
2143
|
};
|
|
1781
|
-
|
|
2144
|
+
const localVarHeaderParameter = {} as any;
|
|
2145
|
+
|
|
2146
|
+
|
|
1782
2147
|
options.headers = localVarHeaderParameter;
|
|
1783
2148
|
return options;
|
|
1784
2149
|
},
|
|
2150
|
+
|
|
1785
2151
|
/**
|
|
1786
2152
|
* 将消息发送给Topic的所有订阅端点。当返回消息ID时,该消息已被保存并开始尝试将其推送给Topic的订阅者。三种消息发送方式
|
|
1787
|
-
*
|
|
2153
|
+
*
|
|
1788
2154
|
* message
|
|
1789
|
-
*
|
|
2155
|
+
*
|
|
1790
2156
|
* message_structure
|
|
1791
|
-
*
|
|
2157
|
+
*
|
|
1792
2158
|
* message_template_name
|
|
1793
|
-
*
|
|
2159
|
+
*
|
|
1794
2160
|
* 只需要设置其中一个,如果同时设置,生效的优先级为
|
|
1795
2161
|
* message_structure > message_template_name > message。
|
|
1796
|
-
*
|
|
2162
|
+
*
|
|
1797
2163
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1798
2164
|
*/
|
|
1799
|
-
publishMessage
|
|
1800
|
-
|
|
2165
|
+
publishMessage(publishMessageRequest?: PublishMessageRequest) {
|
|
2166
|
+
const options = {
|
|
1801
2167
|
method: "POST",
|
|
1802
2168
|
url: "/v2/{project_id}/notifications/topics/{topic_urn}/publish",
|
|
1803
2169
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -1806,35 +2172,41 @@ var ParamCreater = function () {
|
|
|
1806
2172
|
headers: {},
|
|
1807
2173
|
data: {}
|
|
1808
2174
|
};
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
2175
|
+
const localVarHeaderParameter = {} as any;
|
|
2176
|
+
|
|
2177
|
+
let body: any;
|
|
2178
|
+
|
|
2179
|
+
let topicUrn;
|
|
2180
|
+
|
|
1812
2181
|
if (publishMessageRequest !== null && publishMessageRequest !== undefined) {
|
|
1813
|
-
if (publishMessageRequest instanceof
|
|
2182
|
+
if (publishMessageRequest instanceof PublishMessageRequest) {
|
|
1814
2183
|
topicUrn = publishMessageRequest.topicUrn;
|
|
1815
|
-
body = publishMessageRequest.body
|
|
1816
|
-
}
|
|
1817
|
-
else {
|
|
2184
|
+
body = publishMessageRequest.body
|
|
2185
|
+
} else {
|
|
1818
2186
|
topicUrn = publishMessageRequest['topic_urn'];
|
|
1819
2187
|
body = publishMessageRequest['body'];
|
|
1820
2188
|
}
|
|
1821
2189
|
}
|
|
2190
|
+
|
|
2191
|
+
|
|
1822
2192
|
if (topicUrn === null || topicUrn === undefined) {
|
|
1823
|
-
|
|
2193
|
+
throw new RequiredError('topicUrn','Required parameter topicUrn was null or undefined when calling publishMessage.');
|
|
1824
2194
|
}
|
|
1825
2195
|
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
2196
|
+
|
|
1826
2197
|
options.data = body !== undefined ? body : {};
|
|
1827
2198
|
options.pathParams = { 'topic_urn': topicUrn, };
|
|
1828
2199
|
options.headers = localVarHeaderParameter;
|
|
1829
2200
|
return options;
|
|
1830
2201
|
},
|
|
2202
|
+
|
|
1831
2203
|
/**
|
|
1832
2204
|
* 更新指定Topic绑定的云日志。
|
|
1833
|
-
*
|
|
2205
|
+
*
|
|
1834
2206
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1835
2207
|
*/
|
|
1836
|
-
updateLogtank
|
|
1837
|
-
|
|
2208
|
+
updateLogtank(updateLogtankRequest?: UpdateLogtankRequest) {
|
|
2209
|
+
const options = {
|
|
1838
2210
|
method: "PUT",
|
|
1839
2211
|
url: "/v2/{project_id}/notifications/topics/{topic_urn}/logtanks/{logtank_id}",
|
|
1840
2212
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -1843,44 +2215,51 @@ var ParamCreater = function () {
|
|
|
1843
2215
|
headers: {},
|
|
1844
2216
|
data: {}
|
|
1845
2217
|
};
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
2218
|
+
const localVarHeaderParameter = {} as any;
|
|
2219
|
+
|
|
2220
|
+
let body: any;
|
|
2221
|
+
|
|
2222
|
+
let topicUrn;
|
|
2223
|
+
|
|
2224
|
+
let logtankId;
|
|
2225
|
+
|
|
1850
2226
|
if (updateLogtankRequest !== null && updateLogtankRequest !== undefined) {
|
|
1851
|
-
if (updateLogtankRequest instanceof
|
|
2227
|
+
if (updateLogtankRequest instanceof UpdateLogtankRequest) {
|
|
1852
2228
|
topicUrn = updateLogtankRequest.topicUrn;
|
|
1853
2229
|
logtankId = updateLogtankRequest.logtankId;
|
|
1854
|
-
body = updateLogtankRequest.body
|
|
1855
|
-
}
|
|
1856
|
-
else {
|
|
2230
|
+
body = updateLogtankRequest.body
|
|
2231
|
+
} else {
|
|
1857
2232
|
topicUrn = updateLogtankRequest['topic_urn'];
|
|
1858
2233
|
logtankId = updateLogtankRequest['logtank_id'];
|
|
1859
2234
|
body = updateLogtankRequest['body'];
|
|
1860
2235
|
}
|
|
1861
2236
|
}
|
|
2237
|
+
|
|
2238
|
+
|
|
1862
2239
|
if (topicUrn === null || topicUrn === undefined) {
|
|
1863
|
-
|
|
2240
|
+
throw new RequiredError('topicUrn','Required parameter topicUrn was null or undefined when calling updateLogtank.');
|
|
1864
2241
|
}
|
|
1865
2242
|
if (logtankId === null || logtankId === undefined) {
|
|
1866
|
-
|
|
2243
|
+
throw new RequiredError('logtankId','Required parameter logtankId was null or undefined when calling updateLogtank.');
|
|
1867
2244
|
}
|
|
1868
2245
|
if (body === null || body === undefined) {
|
|
1869
|
-
throw new RequiredError('body',
|
|
2246
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
1870
2247
|
}
|
|
1871
2248
|
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
2249
|
+
|
|
1872
2250
|
options.data = body !== undefined ? body : {};
|
|
1873
|
-
options.pathParams = { 'topic_urn': topicUrn,
|
|
2251
|
+
options.pathParams = { 'topic_urn': topicUrn,'logtank_id': logtankId, };
|
|
1874
2252
|
options.headers = localVarHeaderParameter;
|
|
1875
2253
|
return options;
|
|
1876
2254
|
},
|
|
2255
|
+
|
|
1877
2256
|
/**
|
|
1878
2257
|
* 修改消息模板的内容。
|
|
1879
|
-
*
|
|
2258
|
+
*
|
|
1880
2259
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1881
2260
|
*/
|
|
1882
|
-
updateMessageTemplate
|
|
1883
|
-
|
|
2261
|
+
updateMessageTemplate(updateMessageTemplateRequest?: UpdateMessageTemplateRequest) {
|
|
2262
|
+
const options = {
|
|
1884
2263
|
method: "PUT",
|
|
1885
2264
|
url: "/v2/{project_id}/notifications/message_template/{message_template_id}",
|
|
1886
2265
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -1889,35 +2268,41 @@ var ParamCreater = function () {
|
|
|
1889
2268
|
headers: {},
|
|
1890
2269
|
data: {}
|
|
1891
2270
|
};
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
2271
|
+
const localVarHeaderParameter = {} as any;
|
|
2272
|
+
|
|
2273
|
+
let body: any;
|
|
2274
|
+
|
|
2275
|
+
let messageTemplateId;
|
|
2276
|
+
|
|
1895
2277
|
if (updateMessageTemplateRequest !== null && updateMessageTemplateRequest !== undefined) {
|
|
1896
|
-
if (updateMessageTemplateRequest instanceof
|
|
2278
|
+
if (updateMessageTemplateRequest instanceof UpdateMessageTemplateRequest) {
|
|
1897
2279
|
messageTemplateId = updateMessageTemplateRequest.messageTemplateId;
|
|
1898
|
-
body = updateMessageTemplateRequest.body
|
|
1899
|
-
}
|
|
1900
|
-
else {
|
|
2280
|
+
body = updateMessageTemplateRequest.body
|
|
2281
|
+
} else {
|
|
1901
2282
|
messageTemplateId = updateMessageTemplateRequest['message_template_id'];
|
|
1902
2283
|
body = updateMessageTemplateRequest['body'];
|
|
1903
2284
|
}
|
|
1904
2285
|
}
|
|
2286
|
+
|
|
2287
|
+
|
|
1905
2288
|
if (messageTemplateId === null || messageTemplateId === undefined) {
|
|
1906
|
-
|
|
2289
|
+
throw new RequiredError('messageTemplateId','Required parameter messageTemplateId was null or undefined when calling updateMessageTemplate.');
|
|
1907
2290
|
}
|
|
1908
2291
|
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
2292
|
+
|
|
1909
2293
|
options.data = body !== undefined ? body : {};
|
|
1910
2294
|
options.pathParams = { 'message_template_id': messageTemplateId, };
|
|
1911
2295
|
options.headers = localVarHeaderParameter;
|
|
1912
2296
|
return options;
|
|
1913
2297
|
},
|
|
2298
|
+
|
|
1914
2299
|
/**
|
|
1915
2300
|
* 更新订阅者备注。
|
|
1916
|
-
*
|
|
2301
|
+
*
|
|
1917
2302
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1918
2303
|
*/
|
|
1919
|
-
updateSubscription
|
|
1920
|
-
|
|
2304
|
+
updateSubscription(updateSubscriptionRequest?: UpdateSubscriptionRequest) {
|
|
2305
|
+
const options = {
|
|
1921
2306
|
method: "PUT",
|
|
1922
2307
|
url: "/v2/{project_id}/notifications/topics/{topic_urn}/subscriptions/{subscription_urn}",
|
|
1923
2308
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -1926,44 +2311,51 @@ var ParamCreater = function () {
|
|
|
1926
2311
|
headers: {},
|
|
1927
2312
|
data: {}
|
|
1928
2313
|
};
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
2314
|
+
const localVarHeaderParameter = {} as any;
|
|
2315
|
+
|
|
2316
|
+
let body: any;
|
|
2317
|
+
|
|
2318
|
+
let topicUrn;
|
|
2319
|
+
|
|
2320
|
+
let subscriptionUrn;
|
|
2321
|
+
|
|
1933
2322
|
if (updateSubscriptionRequest !== null && updateSubscriptionRequest !== undefined) {
|
|
1934
|
-
if (updateSubscriptionRequest instanceof
|
|
2323
|
+
if (updateSubscriptionRequest instanceof UpdateSubscriptionRequest) {
|
|
1935
2324
|
topicUrn = updateSubscriptionRequest.topicUrn;
|
|
1936
2325
|
subscriptionUrn = updateSubscriptionRequest.subscriptionUrn;
|
|
1937
|
-
body = updateSubscriptionRequest.body
|
|
1938
|
-
}
|
|
1939
|
-
else {
|
|
2326
|
+
body = updateSubscriptionRequest.body
|
|
2327
|
+
} else {
|
|
1940
2328
|
topicUrn = updateSubscriptionRequest['topic_urn'];
|
|
1941
2329
|
subscriptionUrn = updateSubscriptionRequest['subscription_urn'];
|
|
1942
2330
|
body = updateSubscriptionRequest['body'];
|
|
1943
2331
|
}
|
|
1944
2332
|
}
|
|
2333
|
+
|
|
2334
|
+
|
|
1945
2335
|
if (topicUrn === null || topicUrn === undefined) {
|
|
1946
|
-
|
|
2336
|
+
throw new RequiredError('topicUrn','Required parameter topicUrn was null or undefined when calling updateSubscription.');
|
|
1947
2337
|
}
|
|
1948
2338
|
if (subscriptionUrn === null || subscriptionUrn === undefined) {
|
|
1949
|
-
|
|
2339
|
+
throw new RequiredError('subscriptionUrn','Required parameter subscriptionUrn was null or undefined when calling updateSubscription.');
|
|
1950
2340
|
}
|
|
1951
2341
|
if (body === null || body === undefined) {
|
|
1952
|
-
throw new RequiredError('body',
|
|
2342
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
1953
2343
|
}
|
|
1954
2344
|
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
2345
|
+
|
|
1955
2346
|
options.data = body !== undefined ? body : {};
|
|
1956
|
-
options.pathParams = { 'topic_urn': topicUrn,
|
|
2347
|
+
options.pathParams = { 'topic_urn': topicUrn,'subscription_urn': subscriptionUrn, };
|
|
1957
2348
|
options.headers = localVarHeaderParameter;
|
|
1958
2349
|
return options;
|
|
1959
2350
|
},
|
|
2351
|
+
|
|
1960
2352
|
/**
|
|
1961
2353
|
* 更新显示名。
|
|
1962
|
-
*
|
|
2354
|
+
*
|
|
1963
2355
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1964
2356
|
*/
|
|
1965
|
-
updateTopic
|
|
1966
|
-
|
|
2357
|
+
updateTopic(updateTopicRequest?: UpdateTopicRequest) {
|
|
2358
|
+
const options = {
|
|
1967
2359
|
method: "PUT",
|
|
1968
2360
|
url: "/v2/{project_id}/notifications/topics/{topic_urn}",
|
|
1969
2361
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -1972,38 +2364,44 @@ var ParamCreater = function () {
|
|
|
1972
2364
|
headers: {},
|
|
1973
2365
|
data: {}
|
|
1974
2366
|
};
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
2367
|
+
const localVarHeaderParameter = {} as any;
|
|
2368
|
+
|
|
2369
|
+
let body: any;
|
|
2370
|
+
|
|
2371
|
+
let topicUrn;
|
|
2372
|
+
|
|
1978
2373
|
if (updateTopicRequest !== null && updateTopicRequest !== undefined) {
|
|
1979
|
-
if (updateTopicRequest instanceof
|
|
2374
|
+
if (updateTopicRequest instanceof UpdateTopicRequest) {
|
|
1980
2375
|
topicUrn = updateTopicRequest.topicUrn;
|
|
1981
|
-
body = updateTopicRequest.body
|
|
1982
|
-
}
|
|
1983
|
-
else {
|
|
2376
|
+
body = updateTopicRequest.body
|
|
2377
|
+
} else {
|
|
1984
2378
|
topicUrn = updateTopicRequest['topic_urn'];
|
|
1985
2379
|
body = updateTopicRequest['body'];
|
|
1986
2380
|
}
|
|
1987
2381
|
}
|
|
2382
|
+
|
|
2383
|
+
|
|
1988
2384
|
if (topicUrn === null || topicUrn === undefined) {
|
|
1989
|
-
|
|
2385
|
+
throw new RequiredError('topicUrn','Required parameter topicUrn was null or undefined when calling updateTopic.');
|
|
1990
2386
|
}
|
|
1991
2387
|
if (body === null || body === undefined) {
|
|
1992
|
-
throw new RequiredError('body',
|
|
2388
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
1993
2389
|
}
|
|
1994
2390
|
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
2391
|
+
|
|
1995
2392
|
options.data = body !== undefined ? body : {};
|
|
1996
2393
|
options.pathParams = { 'topic_urn': topicUrn, };
|
|
1997
2394
|
options.headers = localVarHeaderParameter;
|
|
1998
2395
|
return options;
|
|
1999
2396
|
},
|
|
2397
|
+
|
|
2000
2398
|
/**
|
|
2001
2399
|
* 更新主题的策略信息。
|
|
2002
|
-
*
|
|
2400
|
+
*
|
|
2003
2401
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2004
2402
|
*/
|
|
2005
|
-
updateTopicAttribute
|
|
2006
|
-
|
|
2403
|
+
updateTopicAttribute(updateTopicAttributeRequest?: UpdateTopicAttributeRequest) {
|
|
2404
|
+
const options = {
|
|
2007
2405
|
method: "PUT",
|
|
2008
2406
|
url: "/v2/{project_id}/notifications/topics/{topic_urn}/attributes/{name}",
|
|
2009
2407
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -2012,44 +2410,51 @@ var ParamCreater = function () {
|
|
|
2012
2410
|
headers: {},
|
|
2013
2411
|
data: {}
|
|
2014
2412
|
};
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2413
|
+
const localVarHeaderParameter = {} as any;
|
|
2414
|
+
|
|
2415
|
+
let body: any;
|
|
2416
|
+
|
|
2417
|
+
let topicUrn;
|
|
2418
|
+
|
|
2419
|
+
let name;
|
|
2420
|
+
|
|
2019
2421
|
if (updateTopicAttributeRequest !== null && updateTopicAttributeRequest !== undefined) {
|
|
2020
|
-
if (updateTopicAttributeRequest instanceof
|
|
2422
|
+
if (updateTopicAttributeRequest instanceof UpdateTopicAttributeRequest) {
|
|
2021
2423
|
topicUrn = updateTopicAttributeRequest.topicUrn;
|
|
2022
2424
|
name = updateTopicAttributeRequest.name;
|
|
2023
|
-
body = updateTopicAttributeRequest.body
|
|
2024
|
-
}
|
|
2025
|
-
else {
|
|
2425
|
+
body = updateTopicAttributeRequest.body
|
|
2426
|
+
} else {
|
|
2026
2427
|
topicUrn = updateTopicAttributeRequest['topic_urn'];
|
|
2027
2428
|
name = updateTopicAttributeRequest['name'];
|
|
2028
2429
|
body = updateTopicAttributeRequest['body'];
|
|
2029
2430
|
}
|
|
2030
2431
|
}
|
|
2432
|
+
|
|
2433
|
+
|
|
2031
2434
|
if (topicUrn === null || topicUrn === undefined) {
|
|
2032
|
-
|
|
2435
|
+
throw new RequiredError('topicUrn','Required parameter topicUrn was null or undefined when calling updateTopicAttribute.');
|
|
2033
2436
|
}
|
|
2034
2437
|
if (name === null || name === undefined) {
|
|
2035
|
-
|
|
2438
|
+
throw new RequiredError('name','Required parameter name was null or undefined when calling updateTopicAttribute.');
|
|
2036
2439
|
}
|
|
2037
2440
|
if (body === null || body === undefined) {
|
|
2038
|
-
throw new RequiredError('body',
|
|
2441
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
2039
2442
|
}
|
|
2040
2443
|
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
2444
|
+
|
|
2041
2445
|
options.data = body !== undefined ? body : {};
|
|
2042
|
-
options.pathParams = { 'topic_urn': topicUrn,
|
|
2446
|
+
options.pathParams = { 'topic_urn': topicUrn,'name': name, };
|
|
2043
2447
|
options.headers = localVarHeaderParameter;
|
|
2044
2448
|
return options;
|
|
2045
2449
|
},
|
|
2450
|
+
|
|
2046
2451
|
/**
|
|
2047
2452
|
* 创建平台应用。
|
|
2048
|
-
*
|
|
2453
|
+
*
|
|
2049
2454
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2050
2455
|
*/
|
|
2051
|
-
createApplication
|
|
2052
|
-
|
|
2456
|
+
createApplication(createApplicationRequest?: CreateApplicationRequest) {
|
|
2457
|
+
const options = {
|
|
2053
2458
|
method: "POST",
|
|
2054
2459
|
url: "/v2/{project_id}/notifications/applications",
|
|
2055
2460
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -2058,28 +2463,33 @@ var ParamCreater = function () {
|
|
|
2058
2463
|
headers: {},
|
|
2059
2464
|
data: {}
|
|
2060
2465
|
};
|
|
2061
|
-
|
|
2062
|
-
|
|
2466
|
+
const localVarHeaderParameter = {} as any;
|
|
2467
|
+
|
|
2468
|
+
let body: any;
|
|
2469
|
+
|
|
2063
2470
|
if (createApplicationRequest !== null && createApplicationRequest !== undefined) {
|
|
2064
|
-
if (createApplicationRequest instanceof
|
|
2065
|
-
body = createApplicationRequest.body
|
|
2066
|
-
}
|
|
2067
|
-
else {
|
|
2471
|
+
if (createApplicationRequest instanceof CreateApplicationRequest) {
|
|
2472
|
+
body = createApplicationRequest.body
|
|
2473
|
+
} else {
|
|
2068
2474
|
body = createApplicationRequest['body'];
|
|
2069
2475
|
}
|
|
2070
2476
|
}
|
|
2477
|
+
|
|
2478
|
+
|
|
2071
2479
|
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
2480
|
+
|
|
2072
2481
|
options.data = body !== undefined ? body : {};
|
|
2073
2482
|
options.headers = localVarHeaderParameter;
|
|
2074
2483
|
return options;
|
|
2075
2484
|
},
|
|
2485
|
+
|
|
2076
2486
|
/**
|
|
2077
2487
|
* 删除平台应用。
|
|
2078
|
-
*
|
|
2488
|
+
*
|
|
2079
2489
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2080
2490
|
*/
|
|
2081
|
-
deleteApplication
|
|
2082
|
-
|
|
2491
|
+
deleteApplication(deleteApplicationRequest?: DeleteApplicationRequest) {
|
|
2492
|
+
const options = {
|
|
2083
2493
|
method: "DELETE",
|
|
2084
2494
|
url: "/v2/{project_id}/notifications/applications/{application_urn}",
|
|
2085
2495
|
contentType: "application/json",
|
|
@@ -2087,30 +2497,36 @@ var ParamCreater = function () {
|
|
|
2087
2497
|
pathParams: {},
|
|
2088
2498
|
headers: {}
|
|
2089
2499
|
};
|
|
2090
|
-
|
|
2091
|
-
|
|
2500
|
+
const localVarHeaderParameter = {} as any;
|
|
2501
|
+
|
|
2502
|
+
|
|
2503
|
+
let applicationUrn;
|
|
2504
|
+
|
|
2092
2505
|
if (deleteApplicationRequest !== null && deleteApplicationRequest !== undefined) {
|
|
2093
|
-
if (deleteApplicationRequest instanceof
|
|
2506
|
+
if (deleteApplicationRequest instanceof DeleteApplicationRequest) {
|
|
2094
2507
|
applicationUrn = deleteApplicationRequest.applicationUrn;
|
|
2095
|
-
}
|
|
2096
|
-
else {
|
|
2508
|
+
} else {
|
|
2097
2509
|
applicationUrn = deleteApplicationRequest['application_urn'];
|
|
2098
2510
|
}
|
|
2099
2511
|
}
|
|
2512
|
+
|
|
2513
|
+
|
|
2100
2514
|
if (applicationUrn === null || applicationUrn === undefined) {
|
|
2101
|
-
|
|
2515
|
+
throw new RequiredError('applicationUrn','Required parameter applicationUrn was null or undefined when calling deleteApplication.');
|
|
2102
2516
|
}
|
|
2517
|
+
|
|
2103
2518
|
options.pathParams = { 'application_urn': applicationUrn, };
|
|
2104
2519
|
options.headers = localVarHeaderParameter;
|
|
2105
2520
|
return options;
|
|
2106
2521
|
},
|
|
2522
|
+
|
|
2107
2523
|
/**
|
|
2108
2524
|
* 获取应用平台属性。
|
|
2109
|
-
*
|
|
2525
|
+
*
|
|
2110
2526
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2111
2527
|
*/
|
|
2112
|
-
listApplicationAttributes
|
|
2113
|
-
|
|
2528
|
+
listApplicationAttributes(listApplicationAttributesRequest?: ListApplicationAttributesRequest) {
|
|
2529
|
+
const options = {
|
|
2114
2530
|
method: "GET",
|
|
2115
2531
|
url: "/v2/{project_id}/notifications/applications/{application_urn}",
|
|
2116
2532
|
contentType: "application/json",
|
|
@@ -2118,30 +2534,36 @@ var ParamCreater = function () {
|
|
|
2118
2534
|
pathParams: {},
|
|
2119
2535
|
headers: {}
|
|
2120
2536
|
};
|
|
2121
|
-
|
|
2122
|
-
|
|
2537
|
+
const localVarHeaderParameter = {} as any;
|
|
2538
|
+
|
|
2539
|
+
|
|
2540
|
+
let applicationUrn;
|
|
2541
|
+
|
|
2123
2542
|
if (listApplicationAttributesRequest !== null && listApplicationAttributesRequest !== undefined) {
|
|
2124
|
-
if (listApplicationAttributesRequest instanceof
|
|
2543
|
+
if (listApplicationAttributesRequest instanceof ListApplicationAttributesRequest) {
|
|
2125
2544
|
applicationUrn = listApplicationAttributesRequest.applicationUrn;
|
|
2126
|
-
}
|
|
2127
|
-
else {
|
|
2545
|
+
} else {
|
|
2128
2546
|
applicationUrn = listApplicationAttributesRequest['application_urn'];
|
|
2129
2547
|
}
|
|
2130
2548
|
}
|
|
2549
|
+
|
|
2550
|
+
|
|
2131
2551
|
if (applicationUrn === null || applicationUrn === undefined) {
|
|
2132
|
-
|
|
2552
|
+
throw new RequiredError('applicationUrn','Required parameter applicationUrn was null or undefined when calling listApplicationAttributes.');
|
|
2133
2553
|
}
|
|
2554
|
+
|
|
2134
2555
|
options.pathParams = { 'application_urn': applicationUrn, };
|
|
2135
2556
|
options.headers = localVarHeaderParameter;
|
|
2136
2557
|
return options;
|
|
2137
2558
|
},
|
|
2559
|
+
|
|
2138
2560
|
/**
|
|
2139
2561
|
* 查询应用平台列表。
|
|
2140
|
-
*
|
|
2562
|
+
*
|
|
2141
2563
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2142
2564
|
*/
|
|
2143
|
-
listApplications
|
|
2144
|
-
|
|
2565
|
+
listApplications(listApplicationsRequest?: ListApplicationsRequest) {
|
|
2566
|
+
const options = {
|
|
2145
2567
|
method: "GET",
|
|
2146
2568
|
url: "/v2/{project_id}/notifications/applications",
|
|
2147
2569
|
contentType: "application/json",
|
|
@@ -2149,26 +2571,32 @@ var ParamCreater = function () {
|
|
|
2149
2571
|
pathParams: {},
|
|
2150
2572
|
headers: {}
|
|
2151
2573
|
};
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2574
|
+
const localVarHeaderParameter = {} as any;
|
|
2575
|
+
const localVarQueryParameter = {} as any;
|
|
2576
|
+
|
|
2577
|
+
let offset;
|
|
2578
|
+
|
|
2579
|
+
let limit;
|
|
2580
|
+
|
|
2581
|
+
let name;
|
|
2582
|
+
|
|
2583
|
+
let platform;
|
|
2584
|
+
|
|
2158
2585
|
if (listApplicationsRequest !== null && listApplicationsRequest !== undefined) {
|
|
2159
|
-
if (listApplicationsRequest instanceof
|
|
2586
|
+
if (listApplicationsRequest instanceof ListApplicationsRequest) {
|
|
2160
2587
|
offset = listApplicationsRequest.offset;
|
|
2161
2588
|
limit = listApplicationsRequest.limit;
|
|
2162
2589
|
name = listApplicationsRequest.name;
|
|
2163
2590
|
platform = listApplicationsRequest.platform;
|
|
2164
|
-
}
|
|
2165
|
-
else {
|
|
2591
|
+
} else {
|
|
2166
2592
|
offset = listApplicationsRequest['offset'];
|
|
2167
2593
|
limit = listApplicationsRequest['limit'];
|
|
2168
2594
|
name = listApplicationsRequest['name'];
|
|
2169
2595
|
platform = listApplicationsRequest['platform'];
|
|
2170
2596
|
}
|
|
2171
2597
|
}
|
|
2598
|
+
|
|
2599
|
+
|
|
2172
2600
|
if (offset !== null && offset !== undefined) {
|
|
2173
2601
|
localVarQueryParameter['offset'] = offset;
|
|
2174
2602
|
}
|
|
@@ -2181,17 +2609,19 @@ var ParamCreater = function () {
|
|
|
2181
2609
|
if (platform !== null && platform !== undefined) {
|
|
2182
2610
|
localVarQueryParameter['platform'] = platform;
|
|
2183
2611
|
}
|
|
2612
|
+
|
|
2184
2613
|
options.queryParams = localVarQueryParameter;
|
|
2185
2614
|
options.headers = localVarHeaderParameter;
|
|
2186
2615
|
return options;
|
|
2187
2616
|
},
|
|
2617
|
+
|
|
2188
2618
|
/**
|
|
2189
2619
|
* 将消息直发给endpoint设备。
|
|
2190
|
-
*
|
|
2620
|
+
*
|
|
2191
2621
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2192
2622
|
*/
|
|
2193
|
-
publishAppMessage
|
|
2194
|
-
|
|
2623
|
+
publishAppMessage(publishAppMessageRequest?: PublishAppMessageRequest) {
|
|
2624
|
+
const options = {
|
|
2195
2625
|
method: "POST",
|
|
2196
2626
|
url: "/v2/{project_id}/notifications/endpoints/{endpoint_urn}/publish",
|
|
2197
2627
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -2200,35 +2630,41 @@ var ParamCreater = function () {
|
|
|
2200
2630
|
headers: {},
|
|
2201
2631
|
data: {}
|
|
2202
2632
|
};
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2633
|
+
const localVarHeaderParameter = {} as any;
|
|
2634
|
+
|
|
2635
|
+
let body: any;
|
|
2636
|
+
|
|
2637
|
+
let endpointUrn;
|
|
2638
|
+
|
|
2206
2639
|
if (publishAppMessageRequest !== null && publishAppMessageRequest !== undefined) {
|
|
2207
|
-
if (publishAppMessageRequest instanceof
|
|
2640
|
+
if (publishAppMessageRequest instanceof PublishAppMessageRequest) {
|
|
2208
2641
|
endpointUrn = publishAppMessageRequest.endpointUrn;
|
|
2209
|
-
body = publishAppMessageRequest.body
|
|
2210
|
-
}
|
|
2211
|
-
else {
|
|
2642
|
+
body = publishAppMessageRequest.body
|
|
2643
|
+
} else {
|
|
2212
2644
|
endpointUrn = publishAppMessageRequest['endpoint_urn'];
|
|
2213
2645
|
body = publishAppMessageRequest['body'];
|
|
2214
2646
|
}
|
|
2215
2647
|
}
|
|
2648
|
+
|
|
2649
|
+
|
|
2216
2650
|
if (endpointUrn === null || endpointUrn === undefined) {
|
|
2217
|
-
|
|
2651
|
+
throw new RequiredError('endpointUrn','Required parameter endpointUrn was null or undefined when calling publishAppMessage.');
|
|
2218
2652
|
}
|
|
2219
2653
|
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
2654
|
+
|
|
2220
2655
|
options.data = body !== undefined ? body : {};
|
|
2221
2656
|
options.pathParams = { 'endpoint_urn': endpointUrn, };
|
|
2222
2657
|
options.headers = localVarHeaderParameter;
|
|
2223
2658
|
return options;
|
|
2224
2659
|
},
|
|
2660
|
+
|
|
2225
2661
|
/**
|
|
2226
2662
|
* 更新应用平台。
|
|
2227
|
-
*
|
|
2663
|
+
*
|
|
2228
2664
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2229
2665
|
*/
|
|
2230
|
-
updateApplication
|
|
2231
|
-
|
|
2666
|
+
updateApplication(updateApplicationRequest?: UpdateApplicationRequest) {
|
|
2667
|
+
const options = {
|
|
2232
2668
|
method: "PUT",
|
|
2233
2669
|
url: "/v2/{project_id}/notifications/applications/{application_urn}",
|
|
2234
2670
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -2237,35 +2673,41 @@ var ParamCreater = function () {
|
|
|
2237
2673
|
headers: {},
|
|
2238
2674
|
data: {}
|
|
2239
2675
|
};
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2676
|
+
const localVarHeaderParameter = {} as any;
|
|
2677
|
+
|
|
2678
|
+
let body: any;
|
|
2679
|
+
|
|
2680
|
+
let applicationUrn;
|
|
2681
|
+
|
|
2243
2682
|
if (updateApplicationRequest !== null && updateApplicationRequest !== undefined) {
|
|
2244
|
-
if (updateApplicationRequest instanceof
|
|
2683
|
+
if (updateApplicationRequest instanceof UpdateApplicationRequest) {
|
|
2245
2684
|
applicationUrn = updateApplicationRequest.applicationUrn;
|
|
2246
|
-
body = updateApplicationRequest.body
|
|
2247
|
-
}
|
|
2248
|
-
else {
|
|
2685
|
+
body = updateApplicationRequest.body
|
|
2686
|
+
} else {
|
|
2249
2687
|
applicationUrn = updateApplicationRequest['application_urn'];
|
|
2250
2688
|
body = updateApplicationRequest['body'];
|
|
2251
2689
|
}
|
|
2252
2690
|
}
|
|
2691
|
+
|
|
2692
|
+
|
|
2253
2693
|
if (applicationUrn === null || applicationUrn === undefined) {
|
|
2254
|
-
|
|
2694
|
+
throw new RequiredError('applicationUrn','Required parameter applicationUrn was null or undefined when calling updateApplication.');
|
|
2255
2695
|
}
|
|
2256
2696
|
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
2697
|
+
|
|
2257
2698
|
options.data = body !== undefined ? body : {};
|
|
2258
2699
|
options.pathParams = { 'application_urn': applicationUrn, };
|
|
2259
2700
|
options.headers = localVarHeaderParameter;
|
|
2260
2701
|
return options;
|
|
2261
2702
|
},
|
|
2703
|
+
|
|
2262
2704
|
/**
|
|
2263
2705
|
* 创建应用平台的endpoint终端。
|
|
2264
|
-
*
|
|
2706
|
+
*
|
|
2265
2707
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2266
2708
|
*/
|
|
2267
|
-
createApplicationEndpoint
|
|
2268
|
-
|
|
2709
|
+
createApplicationEndpoint(createApplicationEndpointRequest?: CreateApplicationEndpointRequest) {
|
|
2710
|
+
const options = {
|
|
2269
2711
|
method: "POST",
|
|
2270
2712
|
url: "/v2/{project_id}/notifications/applications/{application_urn}/endpoints",
|
|
2271
2713
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -2274,35 +2716,41 @@ var ParamCreater = function () {
|
|
|
2274
2716
|
headers: {},
|
|
2275
2717
|
data: {}
|
|
2276
2718
|
};
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2719
|
+
const localVarHeaderParameter = {} as any;
|
|
2720
|
+
|
|
2721
|
+
let body: any;
|
|
2722
|
+
|
|
2723
|
+
let applicationUrn;
|
|
2724
|
+
|
|
2280
2725
|
if (createApplicationEndpointRequest !== null && createApplicationEndpointRequest !== undefined) {
|
|
2281
|
-
if (createApplicationEndpointRequest instanceof
|
|
2726
|
+
if (createApplicationEndpointRequest instanceof CreateApplicationEndpointRequest) {
|
|
2282
2727
|
applicationUrn = createApplicationEndpointRequest.applicationUrn;
|
|
2283
|
-
body = createApplicationEndpointRequest.body
|
|
2284
|
-
}
|
|
2285
|
-
else {
|
|
2728
|
+
body = createApplicationEndpointRequest.body
|
|
2729
|
+
} else {
|
|
2286
2730
|
applicationUrn = createApplicationEndpointRequest['application_urn'];
|
|
2287
2731
|
body = createApplicationEndpointRequest['body'];
|
|
2288
2732
|
}
|
|
2289
2733
|
}
|
|
2734
|
+
|
|
2735
|
+
|
|
2290
2736
|
if (applicationUrn === null || applicationUrn === undefined) {
|
|
2291
|
-
|
|
2737
|
+
throw new RequiredError('applicationUrn','Required parameter applicationUrn was null or undefined when calling createApplicationEndpoint.');
|
|
2292
2738
|
}
|
|
2293
2739
|
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
2740
|
+
|
|
2294
2741
|
options.data = body !== undefined ? body : {};
|
|
2295
2742
|
options.pathParams = { 'application_urn': applicationUrn, };
|
|
2296
2743
|
options.headers = localVarHeaderParameter;
|
|
2297
2744
|
return options;
|
|
2298
2745
|
},
|
|
2746
|
+
|
|
2299
2747
|
/**
|
|
2300
2748
|
* 删除设备。
|
|
2301
|
-
*
|
|
2749
|
+
*
|
|
2302
2750
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2303
2751
|
*/
|
|
2304
|
-
deleteApplicationEndpoint
|
|
2305
|
-
|
|
2752
|
+
deleteApplicationEndpoint(deleteApplicationEndpointRequest?: DeleteApplicationEndpointRequest) {
|
|
2753
|
+
const options = {
|
|
2306
2754
|
method: "DELETE",
|
|
2307
2755
|
url: "/v2/{project_id}/notifications/endpoints/{endpoint_urn}",
|
|
2308
2756
|
contentType: "application/json",
|
|
@@ -2310,30 +2758,36 @@ var ParamCreater = function () {
|
|
|
2310
2758
|
pathParams: {},
|
|
2311
2759
|
headers: {}
|
|
2312
2760
|
};
|
|
2313
|
-
|
|
2314
|
-
|
|
2761
|
+
const localVarHeaderParameter = {} as any;
|
|
2762
|
+
|
|
2763
|
+
|
|
2764
|
+
let endpointUrn;
|
|
2765
|
+
|
|
2315
2766
|
if (deleteApplicationEndpointRequest !== null && deleteApplicationEndpointRequest !== undefined) {
|
|
2316
|
-
if (deleteApplicationEndpointRequest instanceof
|
|
2767
|
+
if (deleteApplicationEndpointRequest instanceof DeleteApplicationEndpointRequest) {
|
|
2317
2768
|
endpointUrn = deleteApplicationEndpointRequest.endpointUrn;
|
|
2318
|
-
}
|
|
2319
|
-
else {
|
|
2769
|
+
} else {
|
|
2320
2770
|
endpointUrn = deleteApplicationEndpointRequest['endpoint_urn'];
|
|
2321
2771
|
}
|
|
2322
2772
|
}
|
|
2773
|
+
|
|
2774
|
+
|
|
2323
2775
|
if (endpointUrn === null || endpointUrn === undefined) {
|
|
2324
|
-
|
|
2776
|
+
throw new RequiredError('endpointUrn','Required parameter endpointUrn was null or undefined when calling deleteApplicationEndpoint.');
|
|
2325
2777
|
}
|
|
2778
|
+
|
|
2326
2779
|
options.pathParams = { 'endpoint_urn': endpointUrn, };
|
|
2327
2780
|
options.headers = localVarHeaderParameter;
|
|
2328
2781
|
return options;
|
|
2329
2782
|
},
|
|
2783
|
+
|
|
2330
2784
|
/**
|
|
2331
2785
|
* 获取endpoint的属性。
|
|
2332
|
-
*
|
|
2786
|
+
*
|
|
2333
2787
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2334
2788
|
*/
|
|
2335
|
-
listApplicationEndpointAttributes
|
|
2336
|
-
|
|
2789
|
+
listApplicationEndpointAttributes(listApplicationEndpointAttributesRequest?: ListApplicationEndpointAttributesRequest) {
|
|
2790
|
+
const options = {
|
|
2337
2791
|
method: "GET",
|
|
2338
2792
|
url: "/v2/{project_id}/notifications/endpoints/{endpoint_urn}",
|
|
2339
2793
|
contentType: "application/json",
|
|
@@ -2341,30 +2795,36 @@ var ParamCreater = function () {
|
|
|
2341
2795
|
pathParams: {},
|
|
2342
2796
|
headers: {}
|
|
2343
2797
|
};
|
|
2344
|
-
|
|
2345
|
-
|
|
2798
|
+
const localVarHeaderParameter = {} as any;
|
|
2799
|
+
|
|
2800
|
+
|
|
2801
|
+
let endpointUrn;
|
|
2802
|
+
|
|
2346
2803
|
if (listApplicationEndpointAttributesRequest !== null && listApplicationEndpointAttributesRequest !== undefined) {
|
|
2347
|
-
if (listApplicationEndpointAttributesRequest instanceof
|
|
2804
|
+
if (listApplicationEndpointAttributesRequest instanceof ListApplicationEndpointAttributesRequest) {
|
|
2348
2805
|
endpointUrn = listApplicationEndpointAttributesRequest.endpointUrn;
|
|
2349
|
-
}
|
|
2350
|
-
else {
|
|
2806
|
+
} else {
|
|
2351
2807
|
endpointUrn = listApplicationEndpointAttributesRequest['endpoint_urn'];
|
|
2352
2808
|
}
|
|
2353
2809
|
}
|
|
2810
|
+
|
|
2811
|
+
|
|
2354
2812
|
if (endpointUrn === null || endpointUrn === undefined) {
|
|
2355
|
-
|
|
2813
|
+
throw new RequiredError('endpointUrn','Required parameter endpointUrn was null or undefined when calling listApplicationEndpointAttributes.');
|
|
2356
2814
|
}
|
|
2815
|
+
|
|
2357
2816
|
options.pathParams = { 'endpoint_urn': endpointUrn, };
|
|
2358
2817
|
options.headers = localVarHeaderParameter;
|
|
2359
2818
|
return options;
|
|
2360
2819
|
},
|
|
2820
|
+
|
|
2361
2821
|
/**
|
|
2362
2822
|
* 查询平台的endpoint列表。
|
|
2363
|
-
*
|
|
2823
|
+
*
|
|
2364
2824
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2365
2825
|
*/
|
|
2366
|
-
listApplicationEndpoints
|
|
2367
|
-
|
|
2826
|
+
listApplicationEndpoints(listApplicationEndpointsRequest?: ListApplicationEndpointsRequest) {
|
|
2827
|
+
const options = {
|
|
2368
2828
|
method: "GET",
|
|
2369
2829
|
url: "/v2/{project_id}/notifications/applications/{application_urn}/endpoints",
|
|
2370
2830
|
contentType: "application/json",
|
|
@@ -2372,24 +2832,30 @@ var ParamCreater = function () {
|
|
|
2372
2832
|
pathParams: {},
|
|
2373
2833
|
headers: {}
|
|
2374
2834
|
};
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2835
|
+
const localVarHeaderParameter = {} as any;
|
|
2836
|
+
const localVarQueryParameter = {} as any;
|
|
2837
|
+
|
|
2838
|
+
let applicationUrn;
|
|
2839
|
+
|
|
2840
|
+
let offset;
|
|
2841
|
+
|
|
2842
|
+
let limit;
|
|
2843
|
+
|
|
2844
|
+
let enabled;
|
|
2845
|
+
|
|
2846
|
+
let token;
|
|
2847
|
+
|
|
2848
|
+
let userData;
|
|
2849
|
+
|
|
2383
2850
|
if (listApplicationEndpointsRequest !== null && listApplicationEndpointsRequest !== undefined) {
|
|
2384
|
-
if (listApplicationEndpointsRequest instanceof
|
|
2851
|
+
if (listApplicationEndpointsRequest instanceof ListApplicationEndpointsRequest) {
|
|
2385
2852
|
applicationUrn = listApplicationEndpointsRequest.applicationUrn;
|
|
2386
2853
|
offset = listApplicationEndpointsRequest.offset;
|
|
2387
2854
|
limit = listApplicationEndpointsRequest.limit;
|
|
2388
2855
|
enabled = listApplicationEndpointsRequest.enabled;
|
|
2389
2856
|
token = listApplicationEndpointsRequest.token;
|
|
2390
2857
|
userData = listApplicationEndpointsRequest.userData;
|
|
2391
|
-
}
|
|
2392
|
-
else {
|
|
2858
|
+
} else {
|
|
2393
2859
|
applicationUrn = listApplicationEndpointsRequest['application_urn'];
|
|
2394
2860
|
offset = listApplicationEndpointsRequest['offset'];
|
|
2395
2861
|
limit = listApplicationEndpointsRequest['limit'];
|
|
@@ -2398,8 +2864,10 @@ var ParamCreater = function () {
|
|
|
2398
2864
|
userData = listApplicationEndpointsRequest['user_data'];
|
|
2399
2865
|
}
|
|
2400
2866
|
}
|
|
2867
|
+
|
|
2868
|
+
|
|
2401
2869
|
if (applicationUrn === null || applicationUrn === undefined) {
|
|
2402
|
-
|
|
2870
|
+
throw new RequiredError('applicationUrn','Required parameter applicationUrn was null or undefined when calling listApplicationEndpoints.');
|
|
2403
2871
|
}
|
|
2404
2872
|
if (offset !== null && offset !== undefined) {
|
|
2405
2873
|
localVarQueryParameter['offset'] = offset;
|
|
@@ -2416,18 +2884,20 @@ var ParamCreater = function () {
|
|
|
2416
2884
|
if (userData !== null && userData !== undefined) {
|
|
2417
2885
|
localVarQueryParameter['user_data'] = userData;
|
|
2418
2886
|
}
|
|
2887
|
+
|
|
2419
2888
|
options.queryParams = localVarQueryParameter;
|
|
2420
2889
|
options.pathParams = { 'application_urn': applicationUrn, };
|
|
2421
2890
|
options.headers = localVarHeaderParameter;
|
|
2422
2891
|
return options;
|
|
2423
2892
|
},
|
|
2893
|
+
|
|
2424
2894
|
/**
|
|
2425
2895
|
* 更新设备属性。
|
|
2426
|
-
*
|
|
2896
|
+
*
|
|
2427
2897
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2428
2898
|
*/
|
|
2429
|
-
updateApplicationEndpoint
|
|
2430
|
-
|
|
2899
|
+
updateApplicationEndpoint(updateApplicationEndpointRequest?: UpdateApplicationEndpointRequest) {
|
|
2900
|
+
const options = {
|
|
2431
2901
|
method: "PUT",
|
|
2432
2902
|
url: "/v2/{project_id}/notifications/endpoints/{endpoint_urn}",
|
|
2433
2903
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -2436,48 +2906,50 @@ var ParamCreater = function () {
|
|
|
2436
2906
|
headers: {},
|
|
2437
2907
|
data: {}
|
|
2438
2908
|
};
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2909
|
+
const localVarHeaderParameter = {} as any;
|
|
2910
|
+
|
|
2911
|
+
let body: any;
|
|
2912
|
+
|
|
2913
|
+
let endpointUrn;
|
|
2914
|
+
|
|
2442
2915
|
if (updateApplicationEndpointRequest !== null && updateApplicationEndpointRequest !== undefined) {
|
|
2443
|
-
if (updateApplicationEndpointRequest instanceof
|
|
2916
|
+
if (updateApplicationEndpointRequest instanceof UpdateApplicationEndpointRequest) {
|
|
2444
2917
|
endpointUrn = updateApplicationEndpointRequest.endpointUrn;
|
|
2445
|
-
body = updateApplicationEndpointRequest.body
|
|
2446
|
-
}
|
|
2447
|
-
else {
|
|
2918
|
+
body = updateApplicationEndpointRequest.body
|
|
2919
|
+
} else {
|
|
2448
2920
|
endpointUrn = updateApplicationEndpointRequest['endpoint_urn'];
|
|
2449
2921
|
body = updateApplicationEndpointRequest['body'];
|
|
2450
2922
|
}
|
|
2451
2923
|
}
|
|
2924
|
+
|
|
2925
|
+
|
|
2452
2926
|
if (endpointUrn === null || endpointUrn === undefined) {
|
|
2453
|
-
|
|
2927
|
+
throw new RequiredError('endpointUrn','Required parameter endpointUrn was null or undefined when calling updateApplicationEndpoint.');
|
|
2454
2928
|
}
|
|
2455
2929
|
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
2930
|
+
|
|
2456
2931
|
options.data = body !== undefined ? body : {};
|
|
2457
2932
|
options.pathParams = { 'endpoint_urn': endpointUrn, };
|
|
2458
2933
|
options.headers = localVarHeaderParameter;
|
|
2459
2934
|
return options;
|
|
2460
2935
|
},
|
|
2461
|
-
|
|
2936
|
+
|
|
2937
|
+
}
|
|
2462
2938
|
};
|
|
2463
|
-
|
|
2464
|
-
function newClient(client) {
|
|
2939
|
+
|
|
2940
|
+
function newClient(client: HcClient): SmnClient {
|
|
2465
2941
|
return new SmnClient(client);
|
|
2466
2942
|
}
|
|
2943
|
+
|
|
2467
2944
|
/**
|
|
2468
2945
|
*
|
|
2469
2946
|
* @export
|
|
2470
2947
|
* @class RequiredError
|
|
2471
2948
|
* @extends {Error}
|
|
2472
2949
|
*/
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
_this.field = field;
|
|
2478
|
-
_this.name = "RequiredError";
|
|
2479
|
-
return _this;
|
|
2950
|
+
export class RequiredError extends Error {
|
|
2951
|
+
name: "RequiredError" = "RequiredError";
|
|
2952
|
+
constructor(public field: string, msg?: string) {
|
|
2953
|
+
super(msg);
|
|
2480
2954
|
}
|
|
2481
|
-
|
|
2482
|
-
}(Error));
|
|
2483
|
-
exports.RequiredError = RequiredError;
|
|
2955
|
+
}
|