ShareSettings

The share setting for reservations and sole tenancy node groups.

JSON representation
{
  "shareType": enum (ShareType),
  "projects": [
    string
  ],
  "projectMap": {
    string: {
      object (ProjectConfig)
    },
    ...
  },
  "folderMap": {
    string: {
      object (FolderConfig)
    },
    ...
  }
}
Fields
shareType

enum (ShareType)

Type of sharing for this shared-reservation

projects[]

string

A List of Project names to specify consumer projects for this shared-reservation. This is only valid when shareType's value is SPECIFIC_PROJECTS.

projectMap

map (key: string, value: object (ProjectConfig))

A map of project id and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS.

folderMap

map (key: string, value: object (FolderConfig))

A map of folder id and folder config to specify consumer projects for this shared-reservation. This is only valid when shareType's value is DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS. Folder id should be a string of number, and without "folders/" prefix.

ShareType

Possible scope in which the reservation can be shared. More granularity can be added in future.

Enums
SHARE_TYPE_UNSPECIFIED Default value. This value is unused.
ORGANIZATION Shared-reservation is open to entire Organization
SPECIFIC_PROJECTS Shared-reservation is open to specific projects
LOCAL Default value.
DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS Shared-reservation is open to direct child projects of specific folders.

ProjectConfig

Config for each project in the share settings.

JSON representation
{
  "projectId": string
}
Fields
projectId

string

The project ID, should be same as the key of this project config in the parent map.

FolderConfig

Config for each folder in the share settings.

JSON representation
{
  "folderId": string
}
Fields
folderId

string

The folder ID, should be same as the key of this folder config in the parent map. Folder id should be a string of number, and without "folders/" prefix.