tenancy_units_project
Creates, updates, deletes, gets or lists a tenancy_units_project
resource.
Overview
Name | tenancy_units_project |
Type | Resource |
Id | google.serviceconsumermanagement.tenancy_units_project |
Fields
The following fields are returned by SELECT
queries:
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
add_project | insert | servicesId , servicesId1 , servicesId2 , tenancyUnitsId | Add a new tenant project to the tenancy unit. There can be a maximum of 1024 tenant projects in a tenancy unit. If there are previously failed AddTenantProject calls, you might need to call RemoveTenantProject first to resolve them before you can make another call to AddTenantProject with the same tag. Operation. | |
remove_project | delete | servicesId , servicesId1 , servicesId2 , tenancyUnitsId | Removes the specified project resource identified by a tenant resource tag. The method removes the project lien with 'TenantManager' origin if that was added. It then attempts to delete the project. If that operation fails, this method also fails. Calls to remove already removed or non-existent tenant project succeed. After the project has been deleted, or if was already in a DELETED state, resource metadata is permanently removed from the tenancy unit. Operation. | |
delete_project | delete | servicesId , servicesId1 , servicesId2 , tenancyUnitsId | Deletes the specified project resource identified by a tenant resource tag. The mothod removes a project lien with a 'TenantManager' origin if that was added. It will then attempt to delete the project. If that operation fails, this method also fails. After the project has been deleted, the tenant resource state is set to DELETED. To permanently remove resource metadata, call the RemoveTenantProject method. New resources with the same tag can't be added if there are existing resources in a DELETED state. Operation. |
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 |
---|---|---|
servicesId | string | |
servicesId1 | string | |
servicesId2 | string | |
tenancyUnitsId | string |
INSERT
examples
- add_project
- Manifest
Add a new tenant project to the tenancy unit. There can be a maximum of 1024 tenant projects in a tenancy unit. If there are previously failed AddTenantProject
calls, you might need to call RemoveTenantProject
first to resolve them before you can make another call to AddTenantProject
with the same tag. Operation.
INSERT INTO google.serviceconsumermanagement.tenancy_units_project (
data__tag,
data__projectConfig,
servicesId,
servicesId1,
servicesId2,
tenancyUnitsId
)
SELECT
'{{ tag }}',
'{{ projectConfig }}',
'{{ servicesId }}',
'{{ servicesId1 }}',
'{{ servicesId2 }}',
'{{ tenancyUnitsId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: tenancy_units_project
props:
- name: servicesId
value: string
description: Required parameter for the tenancy_units_project resource.
- name: servicesId1
value: string
description: Required parameter for the tenancy_units_project resource.
- name: servicesId2
value: string
description: Required parameter for the tenancy_units_project resource.
- name: tenancyUnitsId
value: string
description: Required parameter for the tenancy_units_project resource.
- name: tag
value: string
description: >
Required. Tag of the added project. Must be less than 128 characters. Required.
- name: projectConfig
value: object
description: >
Configuration of the new tenant project to be added to tenancy unit resources.
DELETE
examples
- remove_project
- delete_project
Removes the specified project resource identified by a tenant resource tag. The method removes the project lien with 'TenantManager' origin if that was added. It then attempts to delete the project. If that operation fails, this method also fails. Calls to remove already removed or non-existent tenant project succeed. After the project has been deleted, or if was already in a DELETED state, resource metadata is permanently removed from the tenancy unit. Operation.
DELETE FROM google.serviceconsumermanagement.tenancy_units_project
WHERE servicesId = '{{ servicesId }}' --required
AND servicesId1 = '{{ servicesId1 }}' --required
AND servicesId2 = '{{ servicesId2 }}' --required
AND tenancyUnitsId = '{{ tenancyUnitsId }}' --required;
Deletes the specified project resource identified by a tenant resource tag. The mothod removes a project lien with a 'TenantManager' origin if that was added. It will then attempt to delete the project. If that operation fails, this method also fails. After the project has been deleted, the tenant resource state is set to DELETED. To permanently remove resource metadata, call the RemoveTenantProject
method. New resources with the same tag can't be added if there are existing resources in a DELETED state. Operation.
DELETE FROM google.serviceconsumermanagement.tenancy_units_project
WHERE servicesId = '{{ servicesId }}' --required
AND servicesId1 = '{{ servicesId1 }}' --required
AND servicesId2 = '{{ servicesId2 }}' --required
AND tenancyUnitsId = '{{ tenancyUnitsId }}' --required;