Skip to main content

change_requests

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

Overview​

Namechange_requests
TypeResource
Idgoogle.dataplex.change_requests

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The relative resource name of the ChangeRequest, of the form: projects/{project_number}/locations/{location_id}/changeRequests/{change_request_id}
approverstringOutput only. The email address of the user who approved/rejected the ChangeRequest.
authorstringOutput only. The email address of the user who created the ChangeRequest.
changeTypestringOutput only. The type of change represented by the change_payload. This field is derived from the populated field in the change_payload oneof. (CHANGE_TYPE_UNSPECIFIED, CREATE_ENTRY, UPDATE_ENTRY, DELETE_ENTRY, CREATE_ENTRY_LINK, DELETE_ENTRY_LINK, CREATE_GLOSSARY, UPDATE_GLOSSARY, DELETE_GLOSSARY, CREATE_GLOSSARY_CATEGORY, UPDATE_GLOSSARY_CATEGORY, DELETE_GLOSSARY_CATEGORY, CREATE_GLOSSARY_TERM, UPDATE_GLOSSARY_TERM, DELETE_GLOSSARY_TERM, REQUEST_DATA_PRODUCT_ACCESS)
createEntryobjectPayload for creating an Entry. (id: GoogleCloudDataplexV1CreateEntryRequest)
createEntryLinkobjectPayload for creating an EntryLink. (id: GoogleCloudDataplexV1CreateEntryLinkRequest)
createGlossaryobjectPayload for creating a Glossary. (id: GoogleCloudDataplexV1CreateGlossaryRequest)
createGlossaryCategoryobjectPayload for creating a GlossaryCategory. (id: GoogleCloudDataplexV1CreateGlossaryCategoryRequest)
createGlossaryTermobjectPayload for creating a GlossaryTerm. (id: GoogleCloudDataplexV1CreateGlossaryTermRequest)
createTimestring (google-datetime)Output only. The time when the ChangeRequest was created.
dataProductAccessRequestobjectPayload for Data Product access request. (id: GoogleCloudDataplexV1DataProductAccessRequest)
deleteEntryobjectPayload for deleting an Entry. (id: GoogleCloudDataplexV1DeleteEntryRequest)
deleteEntryLinkobjectPayload for deleting an EntryLink. (id: GoogleCloudDataplexV1DeleteEntryLinkRequest)
deleteGlossaryobjectPayload for deleting a Glossary. (id: GoogleCloudDataplexV1DeleteGlossaryRequest)
deleteGlossaryCategoryobjectPayload for deleting a GlossaryCategory. (id: GoogleCloudDataplexV1DeleteGlossaryCategoryRequest)
deleteGlossaryTermobjectPayload for deleting a GlossaryTerm. (id: GoogleCloudDataplexV1DeleteGlossaryTermRequest)
etagstringOptional. This checksum is computed by the service. It can be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
justificationstringOptional. Justification of the ChangeRequest. This should explain why the change is needed or why it should be approved.
labelsobjectOptional. User-defined labels for the ChangeRequest.
rejectionCommentstringOutput only. The reason provided for rejecting the ChangeRequest.
resourcestringOutput only. The full resource name of the target resource to be modified. Example: //dataplex.googleapis.com/projects/my-project/locations/us-central1/entryGroups/my-group/entries/my-entry
reviewerCommentstringOutput only. The comment provided by the reviewer when approving or rejecting the ChangeRequest. Maximum length is 1024 characters.
statestringOutput only. The current state of the ChangeRequest. (STATE_UNSPECIFIED, NEW, APPROVED, REJECTED, EXPIRED, REVOKED)
uidstringOutput only. System generated globally unique ID for the ChangeRequest.
updateEntryobjectPayload for updating an Entry. (id: GoogleCloudDataplexV1UpdateEntryRequest)
updateGlossaryobjectPayload for updating a Glossary. (id: GoogleCloudDataplexV1UpdateGlossaryRequest)
updateGlossaryCategoryobjectPayload for updating a GlossaryCategory. (id: GoogleCloudDataplexV1UpdateGlossaryCategoryRequest)
updateGlossaryTermobjectPayload for updating a GlossaryTerm. (id: GoogleCloudDataplexV1UpdateGlossaryTermRequest)
updateTimestring (google-datetime)Output only. The time when the ChangeRequest was last updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_change_requests_getselectprojectsId, locationsId, changeRequestsIdGets a ChangeRequest.
projects_locations_change_requests_listselectprojectsId, locationsIdfilter, orderBy, pageSize, pageTokenLists ChangeRequests.
projects_locations_change_requests_patchupdateprojectsId, locationsId, changeRequestsIdupdateMaskUpdates a ChangeRequest. Only allowed when the state is NEW.
projects_locations_change_requests_deletedeleteprojectsId, locationsId, changeRequestsIdetagDeletes a ChangeRequest.Behavior depends on the caller's permissions and the resource's state: 1. Callers with dataplex.changeRequests.delete can only delete ChangeRequests in the NEW state. 2. Callers with the dataplex.changeRequests.adminDelete permission can delete ChangeRequests regardless of their state.
projects_locations_change_requests_approveexecprojectsId, locationsId, changeRequestsIdApproves a ChangeRequest.
projects_locations_change_requests_rejectexecprojectsId, locationsId, changeRequestsIdRejects a ChangeRequest.

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
changeRequestsIdstring
locationsIdstring
projectsIdstring
etagstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples​

Gets a ChangeRequest.

SELECT
name,
approver,
author,
changeType,
createEntry,
createEntryLink,
createGlossary,
createGlossaryCategory,
createGlossaryTerm,
createTime,
dataProductAccessRequest,
deleteEntry,
deleteEntryLink,
deleteGlossary,
deleteGlossaryCategory,
deleteGlossaryTerm,
etag,
justification,
labels,
rejectionComment,
resource,
reviewerComment,
state,
uid,
updateEntry,
updateGlossary,
updateGlossaryCategory,
updateGlossaryTerm,
updateTime
FROM google.dataplex.change_requests
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND changeRequestsId = '{{ changeRequestsId }}' -- required
;

UPDATE examples​

Updates a ChangeRequest. Only allowed when the state is NEW.

UPDATE google.dataplex.change_requests
SET
data__createEntry = '{{ createEntry }}',
data__createEntryLink = '{{ createEntryLink }}',
data__createGlossary = '{{ createGlossary }}',
data__createGlossaryCategory = '{{ createGlossaryCategory }}',
data__createGlossaryTerm = '{{ createGlossaryTerm }}',
data__dataProductAccessRequest = '{{ dataProductAccessRequest }}',
data__deleteEntry = '{{ deleteEntry }}',
data__deleteEntryLink = '{{ deleteEntryLink }}',
data__deleteGlossary = '{{ deleteGlossary }}',
data__deleteGlossaryCategory = '{{ deleteGlossaryCategory }}',
data__deleteGlossaryTerm = '{{ deleteGlossaryTerm }}',
data__etag = '{{ etag }}',
data__justification = '{{ justification }}',
data__labels = '{{ labels }}',
data__name = '{{ name }}',
data__updateEntry = '{{ updateEntry }}',
data__updateGlossary = '{{ updateGlossary }}',
data__updateGlossaryCategory = '{{ updateGlossaryCategory }}',
data__updateGlossaryTerm = '{{ updateGlossaryTerm }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND changeRequestsId = '{{ changeRequestsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
approver,
author,
changeType,
createEntry,
createEntryLink,
createGlossary,
createGlossaryCategory,
createGlossaryTerm,
createTime,
dataProductAccessRequest,
deleteEntry,
deleteEntryLink,
deleteGlossary,
deleteGlossaryCategory,
deleteGlossaryTerm,
etag,
justification,
labels,
rejectionComment,
resource,
reviewerComment,
state,
uid,
updateEntry,
updateGlossary,
updateGlossaryCategory,
updateGlossaryTerm,
updateTime;

DELETE examples​

Deletes a ChangeRequest.Behavior depends on the caller's permissions and the resource's state: 1. Callers with dataplex.changeRequests.delete can only delete ChangeRequests in the NEW state. 2. Callers with the dataplex.changeRequests.adminDelete permission can delete ChangeRequests regardless of their state.

DELETE FROM google.dataplex.change_requests
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND changeRequestsId = '{{ changeRequestsId }}' --required
AND etag = '{{ etag }}'
;

Lifecycle Methods​

Approves a ChangeRequest.

EXEC google.dataplex.change_requests.projects_locations_change_requests_approve
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@changeRequestsId='{{ changeRequestsId }}' --required
@@json=
'{
"comment": "{{ comment }}",
"etag": "{{ etag }}"
}'
;