Skip to content

Commit

Permalink
Generated Darabonba for marketplaceIntl-2022-12-30.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Mar 4, 2025
1 parent 463bb06 commit 7850c0d
Show file tree
Hide file tree
Showing 7 changed files with 210 additions and 9 deletions.
14 changes: 7 additions & 7 deletions marketplaceintl-20221230/Teafile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"scope": "alibabacloud",
"name": "marketplaceIntl20221230",
"version": "1.0.9",
"version": "1.0.10",
"main": "./main.tea",
"maintainers": [
{
Expand All @@ -23,12 +23,12 @@
}
},
"releases": {
"java": "com.aliyun:marketplaceintl20221230:1.1.4",
"go": "github.com/alibabacloud-go/marketplaceintl-20221230/client:v1.0.2",
"csharp": "AlibabaCloud.SDK.MarketplaceIntl20221230:1.0.2",
"ts": "@alicloud/marketplaceintl20221230:1.1.2",
"php": "alibabacloud/marketplaceintl-20221230:1.0.2",
"python": "alibabacloud_marketplaceintl20221230:1.0.2",
"java": "com.aliyun:marketplaceintl20221230:1.2.0",
"go": "github.com/alibabacloud-go/marketplaceintl-20221230/client:v1.1.0",
"csharp": "AlibabaCloud.SDK.MarketplaceIntl20221230:1.1.0",
"ts": "@alicloud/marketplaceintl20221230:1.2.0",
"php": "alibabacloud/marketplaceintl-20221230:1.1.0",
"python": "alibabacloud_marketplaceintl20221230:1.1.0",
"python2": "alibabacloud_marketplaceintl20221230_py2:0.0.1",
"swift": "alibabacloud-sdk-swift/marketplaceintl-20221230:1.0.0"
},
Expand Down
3 changes: 2 additions & 1 deletion marketplaceintl-20221230/api-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "2022-12-30",
"apiDoc": {
"hasDoc": [
"PushMeteringData"
"PushMeteringData",
"NoticeInstanceUser"
],
"noDoc": []
},
Expand Down
1 change: 1 addition & 0 deletions marketplaceintl-20221230/async/api-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "2022-12-30",
"apiDoc": {
"hasDoc": [
"NoticeInstanceUser",
"PushMeteringData"
],
"noDoc": []
Expand Down
38 changes: 38 additions & 0 deletions marketplaceintl-20221230/async/main.dara
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,44 @@ function close(): void {
@handler.close();
}

model NoticeInstanceUserRequest {
instanceId?: long(name='InstanceId', example='5000000264872', position='Body'),
noticeParam?: string(name='NoticeParam', position='Body'),
noticeType?: long(name='NoticeType', example='1', position='Body'),
}

model NoticeInstanceUserResponseBody = {
accessDeniedDetail?: {
authAction?: string(name='AuthAction'),
authPrincipalDisplayName?: string(name='AuthPrincipalDisplayName'),
authPrincipalOwnerId?: string(name='AuthPrincipalOwnerId'),
authPrincipalType?: string(name='AuthPrincipalType'),
encodedDiagnosticMessage?: string(name='EncodedDiagnosticMessage'),
noPermissionType?: string(name='NoPermissionType'),
policyType?: string(name='PolicyType'),
}(name='AccessDeniedDetail'),
code?: string(name='Code', example='200'),
message?: string(name='Message', example='Instance 5723f7ee-952d-411f-94f4-b942a550d9b8 does not exist.'),
requestId?: string(name='RequestId', example='A6A33748-D573-593C-A3BC-593E33D68311'),
result?: boolean(name='Result', example='True'),
success?: boolean(name='Success', example='True'),
}

model NoticeInstanceUserResponse = {
headers?: map[string]string(name='headers'),
statusCode?: int32(name='statusCode'),
body?: NoticeInstanceUserResponseBody(name='body'),
}

/**
* @param request the request parameters of NoticeInstanceUser NoticeInstanceUserRequest
* @return NoticeInstanceUserResponse
*/
async function noticeInstanceUser(request: NoticeInstanceUserRequest): NoticeInstanceUserResponse {
@handler.validateRequestModel(request);
return @handler.do('RPC', 'NoticeInstanceUser', 'POST', '/', 'json', true, 'form', request);
}

model PushMeteringDataRequest {
gmtCreate?: string(name='GmtCreate', example='2023-01-11 10:31:00', position='Body'),
meteringData?: [
Expand Down
80 changes: 80 additions & 0 deletions marketplaceintl-20221230/main.tea
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,86 @@ function getEndpoint(productId: string, regionId: string, endpointRule: string,
return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
}

model NoticeInstanceUserRequest {
instanceId?: long(name='InstanceId', example='5000000264872'),
noticeParam?: string(name='NoticeParam'),
noticeType?: long(name='NoticeType', example='1'),
}

model NoticeInstanceUserResponseBody = {
accessDeniedDetail?: {
authAction?: string(name='AuthAction'),
authPrincipalDisplayName?: string(name='AuthPrincipalDisplayName'),
authPrincipalOwnerId?: string(name='AuthPrincipalOwnerId'),
authPrincipalType?: string(name='AuthPrincipalType'),
encodedDiagnosticMessage?: string(name='EncodedDiagnosticMessage'),
noPermissionType?: string(name='NoPermissionType'),
policyType?: string(name='PolicyType'),
}(name='AccessDeniedDetail'),
code?: string(name='Code', example='200'),
message?: string(name='Message', example='Instance 5723f7ee-952d-411f-94f4-b942a550d9b8 does not exist.'),
requestId?: string(name='RequestId', example='A6A33748-D573-593C-A3BC-593E33D68311'),
result?: boolean(name='Result', example='True'),
success?: boolean(name='Success', example='True'),
}

model NoticeInstanceUserResponse = {
headers?: map[string]string(name='headers'),
statusCode?: int32(name='statusCode'),
body?: NoticeInstanceUserResponseBody(name='body'),
}

/**
* @summary isv推送实例消息给用户
*
* @param request NoticeInstanceUserRequest
* @param runtime runtime options for this request RuntimeOptions
* @return NoticeInstanceUserResponse
*/
async function noticeInstanceUserWithOptions(request: NoticeInstanceUserRequest, runtime: Util.RuntimeOptions): NoticeInstanceUserResponse {
Util.validateModel(request);
var body : map[string]any = {};
if (!Util.isUnset(request.instanceId)) {
body['InstanceId'] = request.instanceId;
}
if (!Util.isUnset(request.noticeParam)) {
body['NoticeParam'] = request.noticeParam;
}
if (!Util.isUnset(request.noticeType)) {
body['NoticeType'] = request.noticeType;
}
var req = new OpenApi.OpenApiRequest{
body = OpenApiUtil.parseToMap(body),
};
var params = new OpenApi.Params{
action = 'NoticeInstanceUser',
version = '2022-12-30',
protocol = 'HTTPS',
pathname = '/',
method = 'POST',
authType = 'AK',
style = 'RPC',
reqBodyType = 'formData',
bodyType = 'json',
};
if (Util.isUnset(@signatureVersion) || !Util.equalString(@signatureVersion, 'v4')) {
return callApi(params, req, runtime);
} else {
return execute(params, req, runtime);
}
}

/**
* @summary isv推送实例消息给用户
*
* @param request NoticeInstanceUserRequest
* @return NoticeInstanceUserResponse
*/
async function noticeInstanceUser(request: NoticeInstanceUserRequest): NoticeInstanceUserResponse {
var runtime = new Util.RuntimeOptions{};
return noticeInstanceUserWithOptions(request, runtime);
}

model PushMeteringDataRequest {
gmtCreate?: string(name='GmtCreate', example='2023-01-11 10:31:00'),
meteringData?: [
Expand Down
3 changes: 2 additions & 1 deletion marketplaceintl-20221230/v2/api-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "2022-12-30",
"apiDoc": {
"hasDoc": [
"PushMeteringData"
"PushMeteringData",
"NoticeInstanceUser"
],
"noDoc": []
},
Expand Down
80 changes: 80 additions & 0 deletions marketplaceintl-20221230/v2/main.tea
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,86 @@ function getEndpoint(productId: string, regionId: string, endpointRule: string,
return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
}

model NoticeInstanceUserRequest {
instanceId?: long(name='InstanceId', example='5000000264872'),
noticeParam?: string(name='NoticeParam'),
noticeType?: long(name='NoticeType', example='1'),
}

model NoticeInstanceUserResponseBody = {
accessDeniedDetail?: {
authAction?: string(name='AuthAction'),
authPrincipalDisplayName?: string(name='AuthPrincipalDisplayName'),
authPrincipalOwnerId?: string(name='AuthPrincipalOwnerId'),
authPrincipalType?: string(name='AuthPrincipalType'),
encodedDiagnosticMessage?: string(name='EncodedDiagnosticMessage'),
noPermissionType?: string(name='NoPermissionType'),
policyType?: string(name='PolicyType'),
}(name='AccessDeniedDetail'),
code?: string(name='Code', example='200'),
message?: string(name='Message', example='Instance 5723f7ee-952d-411f-94f4-b942a550d9b8 does not exist.'),
requestId?: string(name='RequestId', example='A6A33748-D573-593C-A3BC-593E33D68311'),
result?: boolean(name='Result', example='True'),
success?: boolean(name='Success', example='True'),
}

model NoticeInstanceUserResponse = {
headers?: map[string]string(name='headers'),
statusCode?: int32(name='statusCode'),
body?: NoticeInstanceUserResponseBody(name='body'),
}

/**
* @summary isv推送实例消息给用户
*
* @param request NoticeInstanceUserRequest
* @param runtime runtime options for this request RuntimeOptions
* @return NoticeInstanceUserResponse
*/
async function noticeInstanceUserWithOptions(request: NoticeInstanceUserRequest, runtime: $RuntimeOptions): NoticeInstanceUserResponse {
request.validate();
var body : map[string]any = {};
if (!$isNull(request.instanceId)) {
body['InstanceId'] = request.instanceId;
}
if (!$isNull(request.noticeParam)) {
body['NoticeParam'] = request.noticeParam;
}
if (!$isNull(request.noticeType)) {
body['NoticeType'] = request.noticeType;
}
var req = new OpenApiUtil.OpenApiRequest{
body = OpenApiUtil.parseToMap(body),
};
var params = new OpenApiUtil.Params{
action = 'NoticeInstanceUser',
version = '2022-12-30',
protocol = 'HTTPS',
pathname = '/',
method = 'POST',
authType = 'AK',
style = 'RPC',
reqBodyType = 'formData',
bodyType = 'json',
};
if ($isNull(@signatureVersion) || @signatureVersion != 'v4') {
return callApi(params, req, runtime);
} else {
return execute(params, req, runtime);
}
}

/**
* @summary isv推送实例消息给用户
*
* @param request NoticeInstanceUserRequest
* @return NoticeInstanceUserResponse
*/
async function noticeInstanceUser(request: NoticeInstanceUserRequest): NoticeInstanceUserResponse {
var runtime = new $RuntimeOptions{};
return noticeInstanceUserWithOptions(request, runtime);
}

model PushMeteringDataRequest {
gmtCreate?: string(name='GmtCreate', example='2023-01-11 10:31:00'),
meteringData?: [
Expand Down

0 comments on commit 7850c0d

Please sign in to comment.