Resource: TenancyUnit
Representation of a tenancy unit.
JSON representation | |
---|---|
{
"name": string,
"service": string,
"consumer": string,
"createTime": string,
"tenantResources": [
{
object ( |
Fields | |
---|---|
name |
Globally unique identifier of this tenancy unit "services/{service}/{collection id}/{resource id}/tenancyUnits/{unit}" |
service |
Output only. Google Cloud API name of the managed service owning this tenancy unit. For example 'serviceconsumermanagement.googleapis.com'. |
consumer |
Cloud resource name of the consumer of this service. For example 'projects/123456'. Note: This field is used in responses only. Any value specified here in a request is ignored. |
createTime |
The time this tenancy unit was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: Note: This field is used in responses only. Any value specified here in a request is ignored. |
tenantResources[] |
Resources constituting the tenancy unit. There can be at most 512 tenant resources in a tenancy unit. |
TenantResource
Resource constituting the TenancyUnit.
JSON representation | |
---|---|
{
"tag": string,
"resource": string,
"status": enum ( |
Fields | |
---|---|
tag |
Unique per single tenancy unit. |
resource |
Identifier of the tenant resource. For cloud projects, it is in the form 'projects/{number}'. For example 'projects/123456'. Note: This field is used in responses only. Any value specified here in a request is ignored. |
status |
Status of tenant resource. |
Status
The status of tenant resources.
Enums | |
---|---|
STATUS_UNSPECIFIED |
Unspecified status is the default unset value. |
PENDING_CREATE |
Creation of the tenant resource is ongoing. |
ACTIVE |
Active resource. |
PENDING_DELETE |
Deletion of the resource is ongoing. |
FAILED |
Tenant resource creation or deletion has failed. |
DELETED |
Tenant resource has been deleted. |
Methods |
|
---|---|
|
Add a new tenant project to the tenancy unit. |
|
Apply a configuration to an existing tenant project. |
|
Attach an existing project to the tenancy unit as a new tenant resource. |
|
Creates a tenancy unit with no tenant resources. |
|
Delete a tenancy unit. |
|
Deletes the specified project resource identified by a tenant resource tag. |
|
Find the tenancy unit for a managed service and service consumer. |
|
Removes the specified project resource identified by a tenant resource tag. |
|
Attempts to undelete a previously deleted tenant project. |