Skip to content

Commit 08c0fea

Browse files
Update Curation.yaml
1 parent b4c3b4c commit 08c0fea

File tree

2 files changed

+123
-122
lines changed

2 files changed

+123
-122
lines changed

.ci/infra/terraform/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ module "project-services" {
201201
"alloydb.googleapis.com",
202202
"analyticshub.googleapis.com",
203203
"apigateway.googleapis.com",
204+
"apihub.googleapis.com",
204205
"apikeys.googleapis.com",
205206
"appengine.googleapis.com",
206207
"appengineflex.googleapis.com",

mmv1/products/apihub/Curation.yaml

Lines changed: 122 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ create_url: projects/{{project}}/locations/{{location}}/curations?curationId={{c
2121
update_verb: PATCH
2222
id_format: projects/{{project}}/locations/{{location}}/curations/{{curation_id}}
2323
import_format:
24-
- projects/{{project}}/locations/{{location}}/curations/{{curation_id}}
24+
- projects/{{project}}/locations/{{location}}/curations/{{curation_id}}
2525
autogen_async: true
2626
autogen_status: Q3VyYXRpb24=
2727
examples:
@@ -31,133 +31,133 @@ examples:
3131
curation_id: 'test'
3232
external_providers: ["time"]
3333
parameters:
34-
- name: location
35-
type: String
36-
description: Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
37-
immutable: true
38-
url_param_only: true
39-
required: true
40-
- name: curationId
41-
type: String
42-
description: |-
43-
The ID to use for the curation resource, which will become the final
44-
component of the curations's resource name. This field is optional.
34+
- name: location
35+
type: String
36+
description: Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
37+
immutable: true
38+
url_param_only: true
39+
required: true
40+
- name: curationId
41+
type: String
42+
description: |-
43+
The ID to use for the curation resource, which will become the final
44+
component of the curations's resource name. This field is optional.
4545
46-
* If provided, the same will be used. The service will throw an error if
47-
the specified ID is already used by another curation resource in the API
48-
hub.
49-
* If not provided, a system generated ID will be used.
46+
* If provided, the same will be used. The service will throw an error if
47+
the specified ID is already used by another curation resource in the API
48+
hub.
49+
* If not provided, a system generated ID will be used.
5050
51-
This value should be 4-500 characters, and valid characters
52-
are /a-z[0-9]-_/.
53-
immutable: true
54-
url_param_only: true
55-
required: true
51+
This value should be 4-500 characters, and valid characters
52+
are /a-z[0-9]-_/.
53+
immutable: true
54+
url_param_only: true
55+
required: true
5656
properties:
57-
- name: name
58-
type: String
59-
description: |-
60-
Identifier. The name of the curation.
57+
- name: name
58+
type: String
59+
description: |-
60+
Identifier. The name of the curation.
6161
62-
Format:
63-
`projects/{project}/locations/{location}/curations/{curation}`
64-
output: true
65-
- name: displayName
66-
type: String
67-
description: The display name of the curation.
68-
required: true
69-
- name: endpoint
70-
type: NestedObject
71-
description: |-
72-
The endpoint to be triggered for curation.
73-
The endpoint will be invoked with a request payload containing
74-
ApiMetadata.
75-
Response should contain curated data in the form of
76-
ApiMetadata.
77-
required: true
78-
immutable: true
79-
properties:
80-
- name: applicationIntegrationEndpointDetails
62+
Format:
63+
`projects/{project}/locations/{location}/curations/{curation}`
64+
output: true
65+
- name: displayName
66+
type: String
67+
description: The display name of the curation.
68+
required: true
69+
- name: endpoint
8170
type: NestedObject
8271
description: |-
83-
The details of the Application Integration endpoint to be triggered for
84-
curation.
72+
The endpoint to be triggered for curation.
73+
The endpoint will be invoked with a request payload containing
74+
ApiMetadata.
75+
Response should contain curated data in the form of
76+
ApiMetadata.
8577
required: true
8678
immutable: true
8779
properties:
88-
- name: triggerId
89-
type: String
90-
description: The API trigger ID of the Application Integration workflow.
91-
required: true
92-
immutable: true
93-
- name: uri
94-
type: String
95-
description: |-
96-
The endpoint URI should be a valid REST URI for triggering an Application
97-
Integration.
98-
Format:
99-
`https://integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute`
100-
or
101-
`https://{location}-integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute`
102-
required: true
103-
immutable: true
104-
- name: lastExecutionState
105-
type: String
106-
description: |-
107-
The last execution state of the curation.
108-
Possible values:
109-
LAST_EXECUTION_STATE_UNSPECIFIED
110-
SUCCEEDED
111-
FAILED
112-
output: true
113-
- name: lastExecutionErrorMessage
114-
type: String
115-
description: |-
116-
Error message describing the failure, if any, during the last execution of
117-
the curation.
118-
output: true
119-
- name: description
120-
type: String
121-
description: The description of the curation.
122-
- name: pluginInstanceActions
123-
type: Array
124-
description: |-
125-
The plugin instances and associated actions that are using the curation.
126-
Note: A particular curation could be used by multiple plugin instances or
127-
multiple actions in a plugin instance.
128-
output: true
129-
item_type:
130-
type: NestedObject
131-
properties:
132-
- name: pluginInstance
133-
type: String
134-
description: |-
135-
Plugin instance that is using the curation.
136-
Format is
137-
`projects/{project}/locations/{locati on}/plugins/{plugin}/instances/{instance}`
138-
output: true
139-
- name: actionId
140-
type: String
141-
description: |-
142-
The action ID that is using the curation.
143-
This should map to one of the action IDs specified
144-
in action configs in the plugin.
145-
output: true
146-
- name: lastExecutionErrorCode
147-
type: String
148-
description: |-
149-
The error code of the last execution of the curation. The error code is
150-
populated only when the last execution state is failed.
151-
Possible values:
152-
ERROR_CODE_UNSPECIFIED
153-
INTERNAL_ERROR
154-
UNAUTHORIZED
155-
output: true
156-
- name: createTime
157-
type: String
158-
description: The time at which the curation was created.
159-
output: true
160-
- name: updateTime
161-
type: String
162-
description: The time at which the curation was last updated.
163-
output: true
80+
- name: applicationIntegrationEndpointDetails
81+
type: NestedObject
82+
description: |-
83+
The details of the Application Integration endpoint to be triggered for
84+
curation.
85+
required: true
86+
immutable: true
87+
properties:
88+
- name: triggerId
89+
type: String
90+
description: The API trigger ID of the Application Integration workflow.
91+
required: true
92+
immutable: true
93+
- name: uri
94+
type: String
95+
description: |-
96+
The endpoint URI should be a valid REST URI for triggering an Application
97+
Integration.
98+
Format:
99+
`https://integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute`
100+
or
101+
`https://{location}-integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute`
102+
required: true
103+
immutable: true
104+
- name: lastExecutionState
105+
type: String
106+
description: |-
107+
The last execution state of the curation.
108+
Possible values:
109+
LAST_EXECUTION_STATE_UNSPECIFIED
110+
SUCCEEDED
111+
FAILED
112+
output: true
113+
- name: lastExecutionErrorMessage
114+
type: String
115+
description: |-
116+
Error message describing the failure, if any, during the last execution of
117+
the curation.
118+
output: true
119+
- name: description
120+
type: String
121+
description: The description of the curation.
122+
- name: pluginInstanceActions
123+
type: Array
124+
description: |-
125+
The plugin instances and associated actions that are using the curation.
126+
Note: A particular curation could be used by multiple plugin instances or
127+
multiple actions in a plugin instance.
128+
output: true
129+
item_type:
130+
type: NestedObject
131+
properties:
132+
- name: pluginInstance
133+
type: String
134+
description: |-
135+
Plugin instance that is using the curation.
136+
Format is
137+
`projects/{project}/locations/{locati on}/plugins/{plugin}/instances/{instance}`
138+
output: true
139+
- name: actionId
140+
type: String
141+
description: |-
142+
The action ID that is using the curation.
143+
This should map to one of the action IDs specified
144+
in action configs in the plugin.
145+
output: true
146+
- name: lastExecutionErrorCode
147+
type: String
148+
description: |-
149+
The error code of the last execution of the curation. The error code is
150+
populated only when the last execution state is failed.
151+
Possible values:
152+
ERROR_CODE_UNSPECIFIED
153+
INTERNAL_ERROR
154+
UNAUTHORIZED
155+
output: true
156+
- name: createTime
157+
type: String
158+
description: The time at which the curation was created.
159+
output: true
160+
- name: updateTime
161+
type: String
162+
description: The time at which the curation was last updated.
163+
output: true

0 commit comments

Comments
 (0)