runtime_project_attachments
Creates, updates, deletes, gets or lists a runtime_project_attachments
resource.
Overview
Name | runtime_project_attachments |
Type | Resource |
Id | google.apihub.runtime_project_attachments |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The resource name of a runtime project attachment. Format: "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}". |
createTime | string (google-datetime) | Output only. Create time. |
runtimeProject | string | Required. Immutable. Google cloud project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The resource name of a runtime project attachment. Format: "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}". |
createTime | string (google-datetime) | Output only. Create time. |
runtimeProject | string | Required. Immutable. Google cloud project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , runtimeProjectAttachmentsId | Gets a runtime project attachment. | |
list | select | projectsId , locationsId | pageSize , pageToken , filter , orderBy | List runtime projects attached to the host project. |
create | insert | projectsId , locationsId | runtimeProjectAttachmentId | Attaches a runtime project to the host project. |
delete | delete | projectsId , locationsId , runtimeProjectAttachmentsId | Delete a runtime project attachment in the API Hub. This call will detach the runtime project from the host project. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
projectsId | string | |
runtimeProjectAttachmentsId | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
runtimeProjectAttachmentId | string |
SELECT
examples
- get
- list
Gets a runtime project attachment.
SELECT
name,
createTime,
runtimeProject
FROM google.apihub.runtime_project_attachments
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND runtimeProjectAttachmentsId = '{{ runtimeProjectAttachmentsId }}' -- required;
List runtime projects attached to the host project.
SELECT
name,
createTime,
runtimeProject
FROM google.apihub.runtime_project_attachments
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';
INSERT
examples
- create
- Manifest
Attaches a runtime project to the host project.
INSERT INTO google.apihub.runtime_project_attachments (
data__name,
data__runtimeProject,
projectsId,
locationsId,
runtimeProjectAttachmentId
)
SELECT
'{{ name }}',
'{{ runtimeProject }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ runtimeProjectAttachmentId }}'
RETURNING
name,
createTime,
runtimeProject
;
# Description fields are for documentation purposes
- name: runtime_project_attachments
props:
- name: projectsId
value: string
description: Required parameter for the runtime_project_attachments resource.
- name: locationsId
value: string
description: Required parameter for the runtime_project_attachments resource.
- name: name
value: string
description: >
Identifier. The resource name of a runtime project attachment. Format: "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}".
- name: runtimeProject
value: string
description: >
Required. Immutable. Google cloud project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number.
- name: runtimeProjectAttachmentId
value: string
DELETE
examples
- delete
Delete a runtime project attachment in the API Hub. This call will detach the runtime project from the host project.
DELETE FROM google.apihub.runtime_project_attachments
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND runtimeProjectAttachmentsId = '{{ runtimeProjectAttachmentsId }}' --required;