Skip to content

Commit

Permalink
chore: Update schema json and API files based-on v1.56.0 (#3467)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiChangkuo authored Sep 28, 2023
1 parent e7a8c8b commit 7fe169c
Show file tree
Hide file tree
Showing 14 changed files with 316 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ info:
description: Use this data source to get the list of RMS assignment package templates.
host: myhuaweicloud.com
tags:
- name: RMS
- name: Config
servers:
- url: https://rms.myhuaweicloud.com
paths:
/v1/resource-manager/conformance-packs/templates:
GET:
tag: RMS
tag: Config
operationId: GetTemplates
x-ref-api: GET /v1/resource-manager/conformance-packs/templates
24 changes: 24 additions & 0 deletions docs/api/resource_huaweicloud_eg_event_subscription.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
info:
version:
title: resource_huaweicloud_eg_event_subscription
description:
schemes:
- https
host: huaweicloud.com
tags:
- name: EG
paths:
/v1/{project_id}/subscriptions/{subscriptionId}:
delete:
tag: EG
operationId: Delete
get:
tag: EG
operationId: Get
put:
tag: EG
operationId: Update
/v1/{project_id}/subscriptions:
post:
tag: EG
operationId: Create
27 changes: 27 additions & 0 deletions docs/api/resource_huaweicloud_lts_notification_template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
info:
title: resource_huaweicloud_lts_notification_template
description: 'Manages a LTS notification template resource within HuaweiCloud. '
host: myhuaweicloud.com
tags:
- name: LTS
servers:
- url: https://lts.myhuaweicloud.com
paths:
/v2/{project_id}/{domain_id}/lts/events/notification/template/{id}:
GET:
tag: LTS
operationId: GetNotificationTemplate
x-ref-api: GET /v2/{project_id}/{domain_id}/lts/events/notification/template/{id}
/v2/{project_id}/{domain_id}/lts/events/notification/templates:
DELETE:
tag: LTS
operationId: DeleteNotificationTemplate
x-ref-api: DELETE /v2/{project_id}/{domain_id}/lts/events/notification/templates
POST:
tag: LTS
operationId: CreateNotificationTemplate
x-ref-api: POST /v2/{project_id}/{domain_id}/lts/events/notification/templates
PUT:
tag: LTS
operationId: UpdateNotificationTemplate
x-ref-api: PUT /v2/{project_id}/{domain_id}/lts/events/notification/templates
20 changes: 20 additions & 0 deletions docs/api/resource_huaweicloud_lts_search_criteria.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
info:
version: v1.xx.y
title: resource_huaweicloud_lts_search_criteria
description:
schemes:
- https
host: huaweicloud.com
tags:
- name: LTS
paths:
/v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criterias:
post:
tag: LTS
operationId: CreateSearchCriterias
get:
tag: LTS
operationId: ListCriterias
delete:
tag: LTS
operationId: DeleteSearchCriterias
10 changes: 5 additions & 5 deletions docs/api/resource_huaweicloud_rms_advanced_query.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ info:
description: Manages a RMS advanced query resource within HuaweiCloud.
host: myhuaweicloud.com
tags:
- name: RMS
- name: Config
servers:
- url: https://rms.myhuaweicloud.com
paths:
/v1/resource-manager/domains/{domain_id}/stored-queries:
POST:
tag: RMS
tag: Config
operationId: CreateAdvancedQuery
x-ref-api: POST /v1/resource-manager/domains/{domain_id}/stored-queries
/v1/resource-manager/domains/{domain_id}/stored-queries/{query_id}:
DELETE:
tag: RMS
tag: Config
operationId: DeleteAdvancedQuery
x-ref-api: DELETE /v1/resource-manager/domains/{domain_id}/stored-queries/{query_id}
GET:
tag: RMS
tag: Config
operationId: GetAdvancedQuery
x-ref-api: GET /v1/resource-manager/domains/{domain_id}/stored-queries/{query_id}
PUT:
tag: RMS
tag: Config
operationId: UpdateAdvancedQuery
x-ref-api: PUT /v1/resource-manager/domains/{domain_id}/stored-queries/{query_id}
8 changes: 4 additions & 4 deletions docs/api/resource_huaweicloud_rms_assignment_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ info:
description: Manages a RMS assignment package resource within HuaweiCloud.
host: myhuaweicloud.com
tags:
- name: RMS
- name: Config
servers:
- url: https://rms.myhuaweicloud.com
paths:
/v1/resource-manager/domains/{domain_id}/conformance-packs:
POST:
tag: RMS
tag: Config
operationId: CreateAssignmentPackage
x-ref-api: POST /v1/resource-manager/domains/{domain_id}/conformance-packs
/v1/resource-manager/domains/{domain_id}/conformance-packs/{id}:
DELETE:
tag: RMS
tag: Config
operationId: DeleteAssignmentPackage
x-ref-api: DELETE /v1/resource-manager/domains/{domain_id}/conformance-packs/{id}
GET:
tag: RMS
tag: Config
operationId: GetAssignmentPackage
x-ref-api: GET /v1/resource-manager/domains/{domain_id}/conformance-packs/{id}
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ info:
description: Manages a RMS aggregation authorization resource within HuaweiCloud.
host: myhuaweicloud.com
tags:
- name: RMS
- name: Config
servers:
- url: https://rms.myhuaweicloud.com
paths:
/v1/resource-manager/domains/{domain_id}/aggregations/aggregation-authorization:
GET:
tag: RMS
tag: Config
operationId: GetAggregationAuth
x-ref-api: GET /v1/resource-manager/domains/{domain_id}/aggregations/aggregation-authorization
PUT:
tag: RMS
tag: Config
operationId: CreateAggregationAuth
x-ref-api: PUT /v1/resource-manager/domains/{domain_id}/aggregations/aggregation-authorization
/v1/resource-manager/domains/{domain_id}/aggregations/aggregation-authorization/{id}:
DELETE:
tag: RMS
tag: Config
operationId: DeleteAggregationAuth
x-ref-api: DELETE /v1/resource-manager/domains/{domain_id}/aggregations/aggregation-authorization/{id}
10 changes: 5 additions & 5 deletions docs/api/resource_huaweicloud_rms_resource_aggregator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ info:
description: Manages a RMS aggregator resource within HuaweiCloud.
host: myhuaweicloud.com
tags:
- name: RMS
- name: Config
servers:
- url: https://rms.myhuaweicloud.com
paths:
/v1/resource-manager/domains/{domain_id}/aggregators:
PUT:
tag: RMS
tag: Config
operationId: CreateAggregator
x-ref-api: PUT /v1/resource-manager/domains/{domain_id}/aggregators
/v1/resource-manager/domains/{domain_id}/aggregators/{id}:
DELETE:
tag: RMS
tag: Config
operationId: DeleteAggregator
x-ref-api: DELETE /v1/resource-manager/domains/{domain_id}/aggregators/{id}
GET:
tag: RMS
tag: Config
operationId: GetAggregator
x-ref-api: GET /v1/resource-manager/domains/{domain_id}/aggregators/{id}
PUT:
tag: RMS
tag: Config
operationId: UpdateAggregator
x-ref-api: PUT /v1/resource-manager/domains/{domain_id}/aggregators/{id}
8 changes: 4 additions & 4 deletions docs/api/resource_huaweicloud_rms_resource_recorder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ info:
description: Manages a RMS recorder resource within HuaweiCloud.
host: myhuaweicloud.com
tags:
- name: RMS
- name: Config
servers:
- url: https://rms.myhuaweicloud.com
paths:
/v1/resource-manager/domains/{domain_id}/tracker-config:
DELETE:
tag: RMS
tag: Config
operationId: DeleteRecorder
x-ref-api: DELETE /v1/resource-manager/domains/{domain_id}/tracker-config
GET:
tag: RMS
tag: Config
operationId: GetRecorder
x-ref-api: GET /v1/resource-manager/domains/{domain_id}/tracker-config
PUT:
tag: RMS
tag: Config
operationId: CreateRecorder
x-ref-api: PUT /v1/resource-manager/domains/{domain_id}/tracker-config
1 change: 1 addition & 0 deletions docs/api/resource_huaweicloud_vpc_eip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ paths:
get:
tag: EIP
operationId: Get
/v2.0/{project_id}/bandwidths/{ID}:
put:
tag: EIP
operationId: Update
Expand Down
134 changes: 134 additions & 0 deletions docs/json/resources/eg_event_subscription.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
{
"provider_schemas": {
"huaweicloud/huaweicloud": {
"resource_schemas": {
"huaweicloud_eg_event_subscription": {
"block": {
"attributes": {
"channel_id": {
"type": "string",
"description": "The channel ID to which the event subscription belongs.",
"required": true,
"forcenew": true
},
"created_at": {
"type": "string",
"description": "The creation time of the event subscription.",
"computed": true
},
"description": {
"type": "string",
"description": "The description of the event subscription.",
"optional": true
},
"id": {
"type": "string",
"computed": true
},
"name": {
"type": "string",
"description": "The name of the event subscription.",
"required": true,
"forcenew": true
},
"region": {
"type": "string",
"description": "The region where the event subscription is located.",
"computed": true
},
"status": {
"type": "string",
"description": "The status of the event subscription.",
"computed": true
},
"updated_at": {
"type": "string",
"description": "The latest update time of the event subscription.",
"computed": true
}
},
"block_types": {
"sources": {
"block": {
"attributes": {
"filter_rule": {
"type": "string",
"description": "The filter rule of the event source",
"required": true
},
"name": {
"type": "string",
"description": "The name of the event source.",
"required": true
},
"provider_type": {
"type": "string",
"description": "The provider type of the event source.",
"required": true
}
},
"description": "The list of the event sources."
},
"nesting_mode": "list",
"min_items": 1,
"max_items": 1
},
"targets": {
"block": {
"attributes": {
"connection_id": {
"type": "string",
"description": "The connection ID of the EG event target.",
"optional": true
},
"dead_letter_queue": {
"type": "string",
"description": "The specified queue to which failure events sent, in JSON format.",
"optional": true,
"computed": true
},
"detail": {
"type": "string",
"description": "The configuration detail of the event target, in JSON format.",
"required": true
},
"detail_name": {
"type": "string",
"description": "The name (key) of the target configuration detail.",
"required": true
},
"name": {
"type": "string",
"description": "The name of the event target.",
"required": true
},
"provider_type": {
"type": "string",
"description": "The provider type of the event target.",
"required": true
},
"transform": {
"type": "string",
"description": "The transform configuration of the event target, in JSON format.",
"required": true
}
},
"description": "The list of the event targets."
},
"nesting_mode": "list",
"min_items": 1
}
}
},
"product": {
"short": "EG",
"name": "EventGrid",
"catalog": "Middleware",
"name_cn": "事件网格",
"catalog_cn": "应用中间件"
}
}
}
}
}
}
20 changes: 20 additions & 0 deletions docs/json/resources/fgs_function.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,26 @@
"optional": true,
"computed": true
},
"log_group_id": {
"type": "string",
"optional": true,
"computed": true
},
"log_group_name": {
"type": "string",
"optional": true,
"computed": true
},
"log_stream_id": {
"type": "string",
"optional": true,
"computed": true
},
"log_stream_name": {
"type": "string",
"optional": true,
"computed": true
},
"max_instance_num": {
"type": "string",
"optional": true,
Expand Down
Loading

0 comments on commit 7fe169c

Please sign in to comment.