Skip to main content

runtime_project_attachments

Creates, updates, deletes, gets or lists a runtime_project_attachments resource.

Overview

Nameruntime_project_attachments
TypeResource
Idgoogle.apihub.runtime_project_attachments

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name of a runtime project attachment. Format: "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}".
createTimestring (google-datetime)Output only. Create time.
runtimeProjectstringRequired. 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:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, runtimeProjectAttachmentsIdGets a runtime project attachment.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByList runtime projects attached to the host project.
createinsertprojectsId, locationsIdruntimeProjectAttachmentIdAttaches a runtime project to the host project.
deletedeleteprojectsId, locationsId, runtimeProjectAttachmentsIdDelete 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.

NameDatatypeDescription
locationsIdstring
projectsIdstring
runtimeProjectAttachmentsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
runtimeProjectAttachmentIdstring

SELECT examples

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;

INSERT examples

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
;

DELETE examples

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;