Index: discovery/googleapis_beta/cloudresourcemanager__v1beta1.json |
diff --git a/discovery/googleapis_beta/cloudresourcemanager__v1beta1.json b/discovery/googleapis_beta/cloudresourcemanager__v1beta1.json |
index 04c1b7bc01cea7c07af4a000acd86001d246bfcf..118565fc2743399aad4d968d6838309c9d8eca73 100644 |
--- a/discovery/googleapis_beta/cloudresourcemanager__v1beta1.json |
+++ b/discovery/googleapis_beta/cloudresourcemanager__v1beta1.json |
@@ -28,6 +28,16 @@ |
"ownerDomain": "google.com", |
"ownerName": "Google", |
"parameters": { |
+ "uploadType": { |
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "fields": { |
+ "description": "Selector specifying which fields to include in a partial response.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"$.xgafv": { |
"description": "V1 error format.", |
"enum": [ |
@@ -103,130 +113,148 @@ |
"description": "Returns response with indentations and line breaks.", |
"location": "query", |
"type": "boolean" |
- }, |
- "uploadType": { |
- "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
- "location": "query", |
- "type": "string" |
- }, |
- "fields": { |
- "description": "Selector specifying which fields to include in a partial response.", |
- "location": "query", |
- "type": "string" |
} |
}, |
"protocol": "rest", |
"resources": { |
"organizations": { |
"methods": { |
- "list": { |
- "description": "Lists Organization resources that are visible to the user and satisfy\nthe specified filter. This method returns Organizations in an unspecified\norder. New Organizations do not necessarily appear at the end of the list.", |
- "httpMethod": "GET", |
- "id": "cloudresourcemanager.organizations.list", |
- "parameterOrder": [], |
+ "update": { |
+ "description": "Updates an Organization resource identified by the specified resource name.", |
+ "httpMethod": "PUT", |
+ "id": "cloudresourcemanager.organizations.update", |
+ "parameterOrder": [ |
+ "name" |
+ ], |
"parameters": { |
- "pageSize": { |
- "description": "The maximum number of Organizations to return in the response.\nThis field is optional.", |
- "format": "int32", |
- "location": "query", |
- "type": "integer" |
- }, |
- "filter": { |
- "description": "An optional query string used to filter the Organizations to return in\nthe response. Filter rules are case-insensitive.\n\n\nOrganizations may be filtered by `owner.directoryCustomerId` or by\n`domain`, where the domain is a Google for Work domain, for example:\n\n|Filter|Description|\n|------|-----------|\n|owner.directorycustomerid:123456789|Organizations with `owner.directory_customer_id` equal to `123456789`.|\n|domain:google.com|Organizations corresponding to the domain `google.com`.|\n\nThis field is optional.", |
- "location": "query", |
- "type": "string" |
- }, |
- "pageToken": { |
- "description": "A pagination token returned from a previous call to `ListOrganizations`\nthat indicates from where listing should continue.\nThis field is optional.", |
- "location": "query", |
+ "name": { |
+ "description": "Output Only. The resource name of the organization. This is the\norganization's relative path in the API. Its format is\n\"organizations/[organization_id]\". For example, \"organizations/1234\".", |
+ "location": "path", |
+ "pattern": "^organizations/[^/]+$", |
+ "required": true, |
"type": "string" |
} |
}, |
- "path": "v1beta1/organizations", |
+ "path": "v1beta1/{+name}", |
+ "request": { |
+ "$ref": "Organization" |
+ }, |
"response": { |
- "$ref": "ListOrganizationsResponse" |
+ "$ref": "Organization" |
}, |
"scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/cloud-platform.read-only" |
+ "https://www.googleapis.com/auth/cloud-platform" |
] |
}, |
- "setOrgPolicy": { |
- "description": "Updates the specified `Policy` on the resource. Creates a new `Policy` for\nthat `Constraint` on the resource if one does not exist.\n\nNot supplying an `etag` on the request `Policy` results in an unconditional\nwrite of the `Policy`.", |
+ "testIamPermissions": { |
+ "description": "Returns permissions that a caller has on the specified Organization.\nThe `resource` field should be the organization's resource name,\ne.g. \"organizations/123\".", |
"httpMethod": "POST", |
- "id": "cloudresourcemanager.organizations.setOrgPolicy", |
+ "id": "cloudresourcemanager.organizations.testIamPermissions", |
"parameterOrder": [ |
"resource" |
], |
"parameters": { |
"resource": { |
- "description": "Resource name of the resource to attach the `Policy`.", |
+ "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.", |
"location": "path", |
"pattern": "^organizations/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v1beta1/{+resource}:setOrgPolicy", |
+ "path": "v1beta1/{+resource}:testIamPermissions", |
"request": { |
- "$ref": "SetOrgPolicyRequest" |
+ "$ref": "TestIamPermissionsRequest" |
}, |
"response": { |
- "$ref": "OrgPolicy" |
+ "$ref": "TestIamPermissionsResponse" |
}, |
"scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform" |
+ "https://www.googleapis.com/auth/cloud-platform", |
+ "https://www.googleapis.com/auth/cloud-platform.read-only" |
+ ] |
+ }, |
+ "list": { |
+ "description": "Lists Organization resources that are visible to the user and satisfy\nthe specified filter. This method returns Organizations in an unspecified\norder. New Organizations do not necessarily appear at the end of the list.", |
+ "httpMethod": "GET", |
+ "id": "cloudresourcemanager.organizations.list", |
+ "parameterOrder": [], |
+ "parameters": { |
+ "pageToken": { |
+ "description": "A pagination token returned from a previous call to `ListOrganizations`\nthat indicates from where listing should continue.\nThis field is optional.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "pageSize": { |
+ "description": "The maximum number of Organizations to return in the response.\nThis field is optional.", |
+ "format": "int32", |
+ "location": "query", |
+ "type": "integer" |
+ }, |
+ "filter": { |
+ "description": "An optional query string used to filter the Organizations to return in\nthe response. Filter rules are case-insensitive.\n\n\nOrganizations may be filtered by `owner.directoryCustomerId` or by\n`domain`, where the domain is a Google for Work domain, for example:\n\n|Filter|Description|\n|------|-----------|\n|owner.directorycustomerid:123456789|Organizations with `owner.directory_customer_id` equal to `123456789`.|\n|domain:google.com|Organizations corresponding to the domain `google.com`.|\n\nThis field is optional.", |
+ "location": "query", |
+ "type": "string" |
+ } |
+ }, |
+ "path": "v1beta1/organizations", |
+ "response": { |
+ "$ref": "ListOrganizationsResponse" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/cloud-platform", |
+ "https://www.googleapis.com/auth/cloud-platform.read-only" |
] |
}, |
- "clearOrgPolicyV1": { |
- "description": "Clears a `Policy` from a resource.", |
+ "setIamPolicy": { |
+ "description": "Sets the access control policy on an Organization resource. Replaces any\nexisting policy. The `resource` field should be the organization's resource\nname, e.g. \"organizations/123\".", |
"httpMethod": "POST", |
- "id": "cloudresourcemanager.organizations.clearOrgPolicyV1", |
+ "id": "cloudresourcemanager.organizations.setIamPolicy", |
"parameterOrder": [ |
"resource" |
], |
"parameters": { |
"resource": { |
- "description": "Name of the resource for the `Policy` to clear.", |
+ "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.", |
"location": "path", |
"pattern": "^organizations/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v1beta1/{+resource}:clearOrgPolicyV1", |
+ "path": "v1beta1/{+resource}:setIamPolicy", |
"request": { |
- "$ref": "ClearOrgPolicyRequest" |
+ "$ref": "SetIamPolicyRequest" |
}, |
"response": { |
- "$ref": "Empty" |
+ "$ref": "Policy" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform" |
] |
}, |
- "listOrgPolicies": { |
- "description": "Lists all the `Policies` set for a particular resource.", |
+ "getIamPolicy": { |
+ "description": "Gets the access control policy for an Organization resource. May be empty\nif no such policy or resource exists. The `resource` field should be the\norganization's resource name, e.g. \"organizations/123\".", |
"httpMethod": "POST", |
- "id": "cloudresourcemanager.organizations.listOrgPolicies", |
+ "id": "cloudresourcemanager.organizations.getIamPolicy", |
"parameterOrder": [ |
"resource" |
], |
"parameters": { |
"resource": { |
- "description": "Name of the resource to list Policies for.", |
+ "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.", |
"location": "path", |
"pattern": "^organizations/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v1beta1/{+resource}:listOrgPolicies", |
+ "path": "v1beta1/{+resource}:getIamPolicy", |
"request": { |
- "$ref": "ListOrgPoliciesRequest" |
+ "$ref": "GetIamPolicyRequest" |
}, |
"response": { |
- "$ref": "ListOrgPoliciesResponse" |
+ "$ref": "Policy" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform", |
@@ -241,17 +269,17 @@ |
"name" |
], |
"parameters": { |
- "organizationId": { |
- "description": "The id of the Organization resource to fetch.\nThis field is deprecated and will be removed in v1. Use name instead.", |
- "location": "query", |
- "type": "string" |
- }, |
"name": { |
"description": "The resource name of the Organization to fetch, e.g. \"organizations/1234\".", |
"location": "path", |
"pattern": "^organizations/[^/]+$", |
"required": true, |
"type": "string" |
+ }, |
+ "organizationId": { |
+ "description": "The id of the Organization resource to fetch.\nThis field is deprecated and will be removed in v1. Use name instead.", |
+ "location": "query", |
+ "type": "string" |
} |
}, |
"path": "v1beta1/{+name}", |
@@ -262,416 +290,188 @@ |
"https://www.googleapis.com/auth/cloud-platform", |
"https://www.googleapis.com/auth/cloud-platform.read-only" |
] |
- }, |
- "testIamPermissions": { |
- "description": "Returns permissions that a caller has on the specified Organization.\nThe `resource` field should be the organization's resource name,\ne.g. \"organizations/123\".", |
+ } |
+ } |
+ }, |
+ "projects": { |
+ "methods": { |
+ "create": { |
+ "description": "Creates a Project resource.\n\nInitially, the Project resource is owned by its creator exclusively.\nThe creator can later grant permission to others to read or update the\nProject.\n\nSeveral APIs are activated automatically for the Project, including\nGoogle Cloud Storage.", |
"httpMethod": "POST", |
- "id": "cloudresourcemanager.organizations.testIamPermissions", |
- "parameterOrder": [ |
- "resource" |
- ], |
+ "id": "cloudresourcemanager.projects.create", |
+ "parameterOrder": [], |
"parameters": { |
- "resource": { |
- "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.", |
- "location": "path", |
- "pattern": "^organizations/[^/]+$", |
- "required": true, |
- "type": "string" |
+ "useLegacyStack": { |
+ "description": "A safety hatch to opt out of the new reliable project creation process.", |
+ "location": "query", |
+ "type": "boolean" |
} |
}, |
- "path": "v1beta1/{+resource}:testIamPermissions", |
+ "path": "v1beta1/projects", |
"request": { |
- "$ref": "TestIamPermissionsRequest" |
+ "$ref": "Project" |
}, |
"response": { |
- "$ref": "TestIamPermissionsResponse" |
+ "$ref": "Project" |
}, |
"scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/cloud-platform.read-only" |
+ "https://www.googleapis.com/auth/cloud-platform" |
] |
}, |
- "getEffectiveOrgPolicyV1": { |
- "description": "Gets the effective `Policy` on a resource. This is the result of merging\n`Policies` in the resource hierarchy. The returned `Policy` will not have\nan `etag`set because it is a computed `Policy` across multiple resources.", |
+ "setIamPolicy": { |
+ "description": "Sets the IAM access control policy for the specified Project. Replaces\nany existing policy.\n\nThe following constraints apply when using `setIamPolicy()`:\n\n+ Project does not support `allUsers` and `allAuthenticatedUsers` as\n`members` in a `Binding` of a `Policy`.\n\n+ The owner role can be granted only to `user` and `serviceAccount`.\n\n+ Service accounts can be made owners of a project directly\nwithout any restrictions. However, to be added as an owner, a user must be\ninvited via Cloud Platform console and must accept the invitation.\n\n+ A user cannot be granted the owner role using `setIamPolicy()`. The user\nmust be granted the owner role using the Cloud Platform Console and must\nexplicitly accept the invitation.\n\n+ Invitations to grant the owner role cannot be sent using\n`setIamPolicy()`; they must be sent only using the Cloud Platform Console.\n\n+ Membership changes that leave the project without any owners that have\naccepted the Terms of Service (ToS) will be rejected.\n\n+ There must be at least one owner who has accepted the Terms of\nService (ToS) agreement in the policy. Calling `setIamPolicy()` to\nremove the last ToS-accepted owner from the policy will fail. This\nrestriction also applies to legacy projects that no longer have owners\nwho have accepted the ToS. Edits to IAM policies will be rejected until\nthe lack of a ToS-accepting owner is rectified.\n\n+ Calling this method requires enabling the App Engine Admin API.\n\nNote: Removing service accounts from policies or changing their roles\ncan render services completely inoperable. It is important to understand\nhow the service account is being used before removing or updating its\nroles.", |
"httpMethod": "POST", |
- "id": "cloudresourcemanager.organizations.getEffectiveOrgPolicyV1", |
+ "id": "cloudresourcemanager.projects.setIamPolicy", |
"parameterOrder": [ |
"resource" |
], |
"parameters": { |
"resource": { |
- "description": "The name of the resource to start computing the effective `Policy`.", |
+ "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.", |
"location": "path", |
- "pattern": "^organizations/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v1beta1/{+resource}:getEffectiveOrgPolicyV1", |
+ "path": "v1beta1/projects/{resource}:setIamPolicy", |
"request": { |
- "$ref": "GetEffectiveOrgPolicyRequest" |
+ "$ref": "SetIamPolicyRequest" |
}, |
"response": { |
- "$ref": "OrgPolicy" |
+ "$ref": "Policy" |
}, |
"scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/cloud-platform.read-only" |
+ "https://www.googleapis.com/auth/cloud-platform" |
] |
}, |
- "clearOrgPolicy": { |
- "description": "Clears a `Policy` from a resource.", |
+ "getIamPolicy": { |
+ "description": "Returns the IAM access control policy for the specified Project.\nPermission is denied if the policy or the resource does not exist.", |
"httpMethod": "POST", |
- "id": "cloudresourcemanager.organizations.clearOrgPolicy", |
+ "id": "cloudresourcemanager.projects.getIamPolicy", |
"parameterOrder": [ |
"resource" |
], |
"parameters": { |
"resource": { |
- "description": "Name of the resource for the `Policy` to clear.", |
+ "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.", |
"location": "path", |
- "pattern": "^organizations/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v1beta1/{+resource}:clearOrgPolicy", |
+ "path": "v1beta1/projects/{resource}:getIamPolicy", |
"request": { |
- "$ref": "ClearOrgPolicyRequest" |
+ "$ref": "GetIamPolicyRequest" |
}, |
"response": { |
- "$ref": "Empty" |
+ "$ref": "Policy" |
}, |
"scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform" |
+ "https://www.googleapis.com/auth/cloud-platform", |
+ "https://www.googleapis.com/auth/cloud-platform.read-only" |
] |
}, |
- "setIamPolicy": { |
- "description": "Sets the access control policy on an Organization resource. Replaces any\nexisting policy. The `resource` field should be the organization's resource\nname, e.g. \"organizations/123\".", |
+ "undelete": { |
+ "description": "Restores the Project identified by the specified\n`project_id` (for example, `my-project-123`).\nYou can only use this method for a Project that has a lifecycle state of\nDELETE_REQUESTED.\nAfter deletion starts, the Project cannot be restored.\n\nThe caller must have modify permissions for this Project.", |
"httpMethod": "POST", |
- "id": "cloudresourcemanager.organizations.setIamPolicy", |
+ "id": "cloudresourcemanager.projects.undelete", |
"parameterOrder": [ |
- "resource" |
+ "projectId" |
], |
"parameters": { |
- "resource": { |
- "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.", |
+ "projectId": { |
+ "description": "The project ID (for example, `foo-bar-123`).\n\nRequired.", |
"location": "path", |
- "pattern": "^organizations/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v1beta1/{+resource}:setIamPolicy", |
+ "path": "v1beta1/projects/{projectId}:undelete", |
"request": { |
- "$ref": "SetIamPolicyRequest" |
+ "$ref": "UndeleteProjectRequest" |
}, |
"response": { |
- "$ref": "Policy" |
+ "$ref": "Empty" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform" |
] |
}, |
- "listAvailableOrgPolicyConstraints": { |
- "description": "Lists `Constraints` that could be applied on the specified resource.", |
- "httpMethod": "POST", |
- "id": "cloudresourcemanager.organizations.listAvailableOrgPolicyConstraints", |
+ "get": { |
+ "description": "Retrieves the Project identified by the specified\n`project_id` (for example, `my-project-123`).\n\nThe caller must have read permissions for this Project.", |
+ "httpMethod": "GET", |
+ "id": "cloudresourcemanager.projects.get", |
"parameterOrder": [ |
- "resource" |
+ "projectId" |
], |
"parameters": { |
- "resource": { |
- "description": "Name of the resource to list `Constraints` for.", |
+ "projectId": { |
+ "description": "The Project ID (for example, `my-project-123`).\n\nRequired.", |
"location": "path", |
- "pattern": "^organizations/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v1beta1/{+resource}:listAvailableOrgPolicyConstraints", |
- "request": { |
- "$ref": "ListAvailableOrgPolicyConstraintsRequest" |
- }, |
+ "path": "v1beta1/projects/{projectId}", |
"response": { |
- "$ref": "ListAvailableOrgPolicyConstraintsResponse" |
+ "$ref": "Project" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform", |
"https://www.googleapis.com/auth/cloud-platform.read-only" |
] |
}, |
- "getIamPolicy": { |
- "description": "Gets the access control policy for an Organization resource. May be empty\nif no such policy or resource exists. The `resource` field should be the\norganization's resource name, e.g. \"organizations/123\".", |
+ "getAncestry": { |
+ "description": "Gets a list of ancestors in the resource hierarchy for the Project\nidentified by the specified `project_id` (for example, `my-project-123`).\n\nThe caller must have read permissions for this Project.", |
"httpMethod": "POST", |
- "id": "cloudresourcemanager.organizations.getIamPolicy", |
+ "id": "cloudresourcemanager.projects.getAncestry", |
"parameterOrder": [ |
- "resource" |
+ "projectId" |
], |
"parameters": { |
- "resource": { |
- "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.", |
+ "projectId": { |
+ "description": "The Project ID (for example, `my-project-123`).\n\nRequired.", |
"location": "path", |
- "pattern": "^organizations/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v1beta1/{+resource}:getIamPolicy", |
+ "path": "v1beta1/projects/{projectId}:getAncestry", |
"request": { |
- "$ref": "GetIamPolicyRequest" |
+ "$ref": "GetAncestryRequest" |
}, |
"response": { |
- "$ref": "Policy" |
+ "$ref": "GetAncestryResponse" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform", |
"https://www.googleapis.com/auth/cloud-platform.read-only" |
] |
}, |
- "getOrgPolicy": { |
- "description": "Gets a `Policy` on a resource.\n\nIf no `Policy` is set on the resource, a `Policy` is returned with default\nvalues including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The\n`etag` value can be used with `SetOrgPolicy()` to create or update a\n`Policy` during read-modify-write.", |
- "httpMethod": "POST", |
- "id": "cloudresourcemanager.organizations.getOrgPolicy", |
+ "update": { |
+ "description": "Updates the attributes of the Project identified by the specified\n`project_id` (for example, `my-project-123`).\n\nThe caller must have modify permissions for this Project.", |
+ "httpMethod": "PUT", |
+ "id": "cloudresourcemanager.projects.update", |
"parameterOrder": [ |
- "resource" |
+ "projectId" |
], |
"parameters": { |
- "resource": { |
- "description": "Name of the resource the `Policy` is set on.", |
+ "projectId": { |
+ "description": "The project ID (for example, `my-project-123`).\n\nRequired.", |
"location": "path", |
- "pattern": "^organizations/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v1beta1/{+resource}:getOrgPolicy", |
+ "path": "v1beta1/projects/{projectId}", |
"request": { |
- "$ref": "GetOrgPolicyRequest" |
+ "$ref": "Project" |
}, |
"response": { |
- "$ref": "OrgPolicy" |
+ "$ref": "Project" |
}, |
"scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/cloud-platform.read-only" |
- ] |
- }, |
- "getOrgPolicyV1": { |
- "description": "Gets a `Policy` on a resource.\n\nIf no `Policy` is set on the resource, a `Policy` is returned with default\nvalues including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The\n`etag` value can be used with `SetOrgPolicy()` to create or update a\n`Policy` during read-modify-write.", |
- "httpMethod": "POST", |
- "id": "cloudresourcemanager.organizations.getOrgPolicyV1", |
- "parameterOrder": [ |
- "resource" |
- ], |
- "parameters": { |
- "resource": { |
- "description": "Name of the resource the `Policy` is set on.", |
- "location": "path", |
- "pattern": "^organizations/[^/]+$", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "v1beta1/{+resource}:getOrgPolicyV1", |
- "request": { |
- "$ref": "GetOrgPolicyRequest" |
- }, |
- "response": { |
- "$ref": "OrgPolicy" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/cloud-platform.read-only" |
- ] |
- }, |
- "getEffectiveOrgPolicy": { |
- "description": "Gets the effective `Policy` on a resource. This is the result of merging\n`Policies` in the resource hierarchy. The returned `Policy` will not have\nan `etag`set because it is a computed `Policy` across multiple resources.", |
- "httpMethod": "POST", |
- "id": "cloudresourcemanager.organizations.getEffectiveOrgPolicy", |
- "parameterOrder": [ |
- "resource" |
- ], |
- "parameters": { |
- "resource": { |
- "description": "The name of the resource to start computing the effective `Policy`.", |
- "location": "path", |
- "pattern": "^organizations/[^/]+$", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "v1beta1/{+resource}:getEffectiveOrgPolicy", |
- "request": { |
- "$ref": "GetEffectiveOrgPolicyRequest" |
- }, |
- "response": { |
- "$ref": "OrgPolicy" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/cloud-platform.read-only" |
- ] |
- }, |
- "update": { |
- "description": "Updates an Organization resource identified by the specified resource name.", |
- "httpMethod": "PUT", |
- "id": "cloudresourcemanager.organizations.update", |
- "parameterOrder": [ |
- "name" |
- ], |
- "parameters": { |
- "name": { |
- "description": "Output Only. The resource name of the organization. This is the\norganization's relative path in the API. Its format is\n\"organizations/[organization_id]\". For example, \"organizations/1234\".", |
- "location": "path", |
- "pattern": "^organizations/[^/]+$", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "v1beta1/{+name}", |
- "request": { |
- "$ref": "Organization" |
- }, |
- "response": { |
- "$ref": "Organization" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform" |
- ] |
- }, |
- "setOrgPolicyV1": { |
- "description": "Updates the specified `Policy` on the resource. Creates a new `Policy` for\nthat `Constraint` on the resource if one does not exist.\n\nNot supplying an `etag` on the request `Policy` results in an unconditional\nwrite of the `Policy`.", |
- "httpMethod": "POST", |
- "id": "cloudresourcemanager.organizations.setOrgPolicyV1", |
- "parameterOrder": [ |
- "resource" |
- ], |
- "parameters": { |
- "resource": { |
- "description": "Resource name of the resource to attach the `Policy`.", |
- "location": "path", |
- "pattern": "^organizations/[^/]+$", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "v1beta1/{+resource}:setOrgPolicyV1", |
- "request": { |
- "$ref": "SetOrgPolicyRequest" |
- }, |
- "response": { |
- "$ref": "OrgPolicy" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform" |
- ] |
- } |
- } |
- }, |
- "projects": { |
- "methods": { |
- "undelete": { |
- "description": "Restores the Project identified by the specified\n`project_id` (for example, `my-project-123`).\nYou can only use this method for a Project that has a lifecycle state of\nDELETE_REQUESTED.\nAfter deletion starts, the Project cannot be restored.\n\nThe caller must have modify permissions for this Project.", |
- "httpMethod": "POST", |
- "id": "cloudresourcemanager.projects.undelete", |
- "parameterOrder": [ |
- "projectId" |
- ], |
- "parameters": { |
- "projectId": { |
- "description": "The project ID (for example, `foo-bar-123`).\n\nRequired.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "v1beta1/projects/{projectId}:undelete", |
- "request": { |
- "$ref": "UndeleteProjectRequest" |
- }, |
- "response": { |
- "$ref": "Empty" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform" |
- ] |
- }, |
- "get": { |
- "description": "Retrieves the Project identified by the specified\n`project_id` (for example, `my-project-123`).\n\nThe caller must have read permissions for this Project.", |
- "httpMethod": "GET", |
- "id": "cloudresourcemanager.projects.get", |
- "parameterOrder": [ |
- "projectId" |
- ], |
- "parameters": { |
- "projectId": { |
- "description": "The Project ID (for example, `my-project-123`).\n\nRequired.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "v1beta1/projects/{projectId}", |
- "response": { |
- "$ref": "Project" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/cloud-platform.read-only" |
- ] |
- }, |
- "getAncestry": { |
- "description": "Gets a list of ancestors in the resource hierarchy for the Project\nidentified by the specified `project_id` (for example, `my-project-123`).\n\nThe caller must have read permissions for this Project.", |
- "httpMethod": "POST", |
- "id": "cloudresourcemanager.projects.getAncestry", |
- "parameterOrder": [ |
- "projectId" |
- ], |
- "parameters": { |
- "projectId": { |
- "description": "The Project ID (for example, `my-project-123`).\n\nRequired.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "v1beta1/projects/{projectId}:getAncestry", |
- "request": { |
- "$ref": "GetAncestryRequest" |
- }, |
- "response": { |
- "$ref": "GetAncestryResponse" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/cloud-platform.read-only" |
- ] |
- }, |
- "update": { |
- "description": "Updates the attributes of the Project identified by the specified\n`project_id` (for example, `my-project-123`).\n\nThe caller must have modify permissions for this Project.", |
- "httpMethod": "PUT", |
- "id": "cloudresourcemanager.projects.update", |
- "parameterOrder": [ |
- "projectId" |
- ], |
- "parameters": { |
- "projectId": { |
- "description": "The project ID (for example, `my-project-123`).\n\nRequired.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "v1beta1/projects/{projectId}", |
- "request": { |
- "$ref": "Project" |
- }, |
- "response": { |
- "$ref": "Project" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform" |
+ "https://www.googleapis.com/auth/cloud-platform" |
] |
}, |
"testIamPermissions": { |
@@ -730,102 +530,26 @@ |
"id": "cloudresourcemanager.projects.list", |
"parameterOrder": [], |
"parameters": { |
- "pageSize": { |
- "description": "The maximum number of Projects to return in the response.\nThe server can return fewer Projects than requested.\nIf unspecified, server picks an appropriate default.\n\nOptional.", |
- "format": "int32", |
- "location": "query", |
- "type": "integer" |
- }, |
"filter": { |
- "description": "An expression for filtering the results of the request. Filter rules are\ncase insensitive. The fields eligible for filtering are:\n\n+ `name`\n+ `id`\n+ <code>labels.<em>key</em></code> where *key* is the name of a label\n\nSome examples of using labels as filters:\n\n|Filter|Description|\n|------|-----------|\n|name:*|The project has a name.|\n|name:Howl|The project's name is `Howl` or `howl`.|\n|name:HOWL|Equivalent to above.|\n|NAME:howl|Equivalent to above.|\n|labels.color:*|The project has the label `color`.|\n|labels.color:red|The project's label `color` has the value `red`.|\n|labels.color:red labels.size:big|The project's label `color` has the value `red` and its label `size` has the value `big`.\n\nOptional.", |
+ "description": "An expression for filtering the results of the request. Filter rules are\ncase insensitive. The fields eligible for filtering are:\n\n+ `name`\n+ `id`\n+ <code>labels.<em>key</em></code> where *key* is the name of a label\n\nSome examples of using labels as filters:\n\n|Filter|Description|\n|------|-----------|\n|name:how*|The project's name starts with \"how\".|\n|name:Howl|The project's name is `Howl` or `howl`.|\n|name:HOWL|Equivalent to above.|\n|NAME:howl|Equivalent to above.|\n|labels.color:*|The project has the label `color`.|\n|labels.color:red|The project's label `color` has the value `red`.|\n|labels.color:red labels.size:big|The project's label `color` has the\nvalue `red` and its label `size` has the value `big`.\n\nOptional.", |
"location": "query", |
"type": "string" |
}, |
- "pageToken": { |
- "description": "A pagination token returned from a previous call to ListProjects\nthat indicates from where listing should continue.\n\nOptional.", |
- "location": "query", |
- "type": "string" |
- } |
- }, |
- "path": "v1beta1/projects", |
- "response": { |
- "$ref": "ListProjectsResponse" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/cloud-platform.read-only" |
- ] |
- }, |
- "create": { |
- "description": "Creates a Project resource.\n\nInitially, the Project resource is owned by its creator exclusively.\nThe creator can later grant permission to others to read or update the\nProject.\n\nSeveral APIs are activated automatically for the Project, including\nGoogle Cloud Storage.", |
- "httpMethod": "POST", |
- "id": "cloudresourcemanager.projects.create", |
- "parameterOrder": [], |
- "parameters": { |
- "useLegacyStack": { |
- "description": "A safety hatch to opt out of the new reliable project creation process.", |
- "location": "query", |
- "type": "boolean" |
- } |
- }, |
- "path": "v1beta1/projects", |
- "request": { |
- "$ref": "Project" |
- }, |
- "response": { |
- "$ref": "Project" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform" |
- ] |
- }, |
- "setIamPolicy": { |
- "description": "Sets the IAM access control policy for the specified Project. Replaces\nany existing policy.\n\nThe following constraints apply when using `setIamPolicy()`:\n\n+ Project does not support `allUsers` and `allAuthenticatedUsers` as\n`members` in a `Binding` of a `Policy`.\n\n+ The owner role can be granted only to `user` and `serviceAccount`.\n\n+ Service accounts can be made owners of a project directly\nwithout any restrictions. However, to be added as an owner, a user must be\ninvited via Cloud Platform console and must accept the invitation.\n\n+ A user cannot be granted the owner role using `setIamPolicy()`. The user\nmust be granted the owner role using the Cloud Platform Console and must\nexplicitly accept the invitation.\n\n+ Invitations to grant the owner role cannot be sent using\n`setIamPolicy()`; they must be sent only using the Cloud Platform Console.\n\n+ Membership changes that leave the project without any owners that have\naccepted the Terms of Service (ToS) will be rejected.\n\n+ There must be at least one owner who has accepted the Terms of\nService (ToS) agreement in the policy. Calling `setIamPolicy()` to\nremove the last ToS-accepted owner from the policy will fail. This\nrestriction also applies to legacy projects that no longer have owners\nwho have accepted the ToS. Edits to IAM policies will be rejected until\nthe lack of a ToS-accepting owner is rectified.\n\n+ Calling this method requires enabling the App Engine Admin API.\n\nNote: Removing service accounts from policies or changing their roles\ncan render services completely inoperable. It is important to understand\nhow the service account is being used before removing or updating its\nroles.", |
- "httpMethod": "POST", |
- "id": "cloudresourcemanager.projects.setIamPolicy", |
- "parameterOrder": [ |
- "resource" |
- ], |
- "parameters": { |
- "resource": { |
- "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "v1beta1/projects/{resource}:setIamPolicy", |
- "request": { |
- "$ref": "SetIamPolicyRequest" |
- }, |
- "response": { |
- "$ref": "Policy" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform" |
- ] |
- }, |
- "getIamPolicy": { |
- "description": "Returns the IAM access control policy for the specified Project.\nPermission is denied if the policy or the resource does not exist.", |
- "httpMethod": "POST", |
- "id": "cloudresourcemanager.projects.getIamPolicy", |
- "parameterOrder": [ |
- "resource" |
- ], |
- "parameters": { |
- "resource": { |
- "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.", |
- "location": "path", |
- "required": true, |
+ "pageToken": { |
+ "description": "A pagination token returned from a previous call to ListProjects\nthat indicates from where listing should continue.\n\nOptional.", |
+ "location": "query", |
"type": "string" |
+ }, |
+ "pageSize": { |
+ "description": "The maximum number of Projects to return in the response.\nThe server can return fewer Projects than requested.\nIf unspecified, server picks an appropriate default.\n\nOptional.", |
+ "format": "int32", |
+ "location": "query", |
+ "type": "integer" |
} |
}, |
- "path": "v1beta1/projects/{resource}:getIamPolicy", |
- "request": { |
- "$ref": "GetIamPolicyRequest" |
- }, |
+ "path": "v1beta1/projects", |
"response": { |
- "$ref": "Policy" |
+ "$ref": "ListProjectsResponse" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform", |
@@ -835,184 +559,67 @@ |
} |
} |
}, |
- "revision": "20170324", |
+ "revision": "20170412", |
"rootUrl": "https://cloudresourcemanager.googleapis.com/", |
"schemas": { |
- "SetIamPolicyRequest": { |
- "description": "Request message for `SetIamPolicy` method.", |
- "id": "SetIamPolicyRequest", |
- "properties": { |
- "policy": { |
- "$ref": "Policy", |
- "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of\nthe policy is limited to a few 10s of KB. An empty policy is a\nvalid policy but certain Cloud Platform services (such as Projects)\nmight reject them." |
- }, |
- "updateMask": { |
- "description": "OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only\nthe fields in the mask will be modified. If no mask is provided, the\nfollowing default mask is used:\npaths: \"bindings, etag\"\nThis field is only used by Cloud IAM.", |
- "format": "google-fieldmask", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "Empty": { |
- "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", |
- "id": "Empty", |
+ "GetAncestryRequest": { |
+ "description": "The request sent to the\nGetAncestry\nmethod.", |
+ "id": "GetAncestryRequest", |
"properties": {}, |
"type": "object" |
}, |
- "Organization": { |
- "description": "The root node in the resource hierarchy to which a particular entity's\n(e.g., company) resources belong.", |
- "id": "Organization", |
+ "Project": { |
+ "description": "A Project is a high-level Google Cloud Platform entity. It is a\ncontainer for ACLs, APIs, App Engine Apps, VMs, and other\nGoogle Cloud Platform resources.", |
+ "id": "Project", |
"properties": { |
- "owner": { |
- "$ref": "OrganizationOwner", |
- "description": "The owner of this Organization. The owner should be specified on\ncreation. Once set, it cannot be changed.\nThis field is required." |
- }, |
- "name": { |
- "description": "Output Only. The resource name of the organization. This is the\norganization's relative path in the API. Its format is\n\"organizations/[organization_id]\". For example, \"organizations/1234\".", |
- "type": "string" |
- }, |
- "organizationId": { |
- "description": "An immutable id for the Organization that is assigned on creation. This\nshould be omitted when creating a new Organization.\nThis field is read-only.\nThis field is deprecated and will be removed in v1. Use name instead.", |
- "type": "string" |
- }, |
"lifecycleState": { |
- "description": "The organization's current lifecycle state. Assigned by the server.\n@OutputOnly", |
+ "description": "The Project lifecycle state.\n\nRead-only.", |
"enum": [ |
"LIFECYCLE_STATE_UNSPECIFIED", |
"ACTIVE", |
- "DELETE_REQUESTED" |
+ "DELETE_REQUESTED", |
+ "DELETE_IN_PROGRESS" |
], |
"enumDescriptions": [ |
- "Unspecified state. This is only useful for distinguishing unset values.", |
+ "Unspecified state. This is only used/useful for distinguishing\nunset values.", |
"The normal and active state.", |
- "The organization has been marked for deletion by the user." |
+ "The project has been marked for deletion by the user\n(by invoking DeleteProject)\nor by the system (Google Cloud Platform).\nThis can generally be reversed by invoking UndeleteProject.", |
+ "This lifecycle state is no longer used and is not returned by the API." |
], |
"type": "string" |
}, |
- "displayName": { |
- "description": "A friendly string to be used to refer to the Organization in the UI.\nAssigned by the server, set to the primary domain of the G Suite\ncustomer that owns the organization.\n@OutputOnly", |
- "type": "string" |
- }, |
- "creationTime": { |
- "description": "Timestamp when the Organization was created. Assigned by the server.\n@OutputOnly", |
- "format": "google-datetime", |
+ "projectNumber": { |
+ "description": "The number uniquely identifying the project.\n\nExample: <code>415104041262</code>\nRead-only.", |
+ "format": "int64", |
"type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "ListAvailableOrgPolicyConstraintsResponse": { |
- "description": "The response returned from the ListAvailableOrgPolicyConstraints method.\nReturns all `Constraints` that could be set at this level of the hierarchy\n(contrast with the response from `ListPolicies`, which returns all policies\nwhich are set).", |
- "id": "ListAvailableOrgPolicyConstraintsResponse", |
- "properties": { |
- "constraints": { |
- "description": "The collection of constraints that are settable on the request resource.", |
- "items": { |
- "$ref": "Constraint" |
- }, |
- "type": "array" |
}, |
- "nextPageToken": { |
- "description": "Page token used to retrieve the next page. This is currently not used.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "ListPolicy": { |
- "description": "Used in `policy_type` to specify how `list_policy` behaves at this\nresource.\n\nA `ListPolicy` can define specific values that are allowed or denied by\nsetting either the `allowed_values` or `denied_values` fields. It can also\nbe used to allow or deny all values, by setting the `all_values` field. If\n`all_values` is `ALL_VALUES_UNSPECIFIED`, exactly one of `allowed_values`\nor `denied_values` must be set (attempting to set both or neither will\nresult in a failed request). If `all_values` is set to either `ALLOW` or\n`DENY`, `allowed_values` and `denied_values` must be unset.", |
- "id": "ListPolicy", |
- "properties": { |
- "deniedValues": { |
- "description": "List of values denied at this resource. Can only be set if no values are\nset for `allowed_values` and `all_values` is set to\n`ALL_VALUES_UNSPECIFIED`.", |
- "items": { |
- "type": "string" |
- }, |
- "type": "array" |
+ "parent": { |
+ "$ref": "ResourceId", |
+ "description": "An optional reference to a parent Resource.\n\nThe only supported parent type is \"organization\". Once set, the parent\ncannot be modified. The `parent` can be set on creation or using the\n`UpdateProject` method; the end user must have the\n`resourcemanager.projects.create` permission on the parent.\n\nRead-write." |
}, |
- "allValues": { |
- "description": "The policy all_values state.", |
- "enum": [ |
- "ALL_VALUES_UNSPECIFIED", |
- "ALLOW", |
- "DENY" |
- ], |
- "enumDescriptions": [ |
- "Indicates that either allowed_values or denied_values must be set.", |
- "A policy with this set allows all values.", |
- "A policy with this set denies all values." |
- ], |
+ "createTime": { |
+ "description": "Creation time.\n\nRead-only.", |
+ "format": "google-datetime", |
"type": "string" |
}, |
- "allowedValues": { |
- "description": "List of values allowed at this resource. an only be set if no values are\nset for `denied_values` and `all_values` is set to\n`ALL_VALUES_UNSPECIFIED`.", |
- "items": { |
+ "labels": { |
+ "additionalProperties": { |
"type": "string" |
}, |
- "type": "array" |
+ "description": "The labels associated with this Project.\n\nLabel keys must be between 1 and 63 characters long and must conform\nto the following regular expression: \\[a-z\\](\\[-a-z0-9\\]*\\[a-z0-9\\])?.\n\nLabel values must be between 0 and 63 characters long and must conform\nto the regular expression (\\[a-z\\](\\[-a-z0-9\\]*\\[a-z0-9\\])?)?.\n\nNo more than 256 labels can be associated with a given resource.\n\nClients should store labels in a representation such as JSON that does not\ndepend on specific characters being disallowed.\n\nExample: <code>\"environment\" : \"dev\"</code>\nRead-write.", |
+ "type": "object" |
}, |
- "suggestedValue": { |
- "description": "Optional. The Google Cloud Console will try to default to a configuration\nthat matches the value specified in this `Policy`. If `suggested_value`\nis not set, it will inherit the value specified higher in the hierarchy,\nunless `inherit_from_parent` is `false`.", |
+ "name": { |
+ "description": "The user-assigned display name of the Project.\nIt must be 4 to 30 characters.\nAllowed characters are: lowercase and uppercase letters, numbers,\nhyphen, single-quote, double-quote, space, and exclamation point.\n\nExample: <code>My Project</code>\nRead-write.", |
"type": "string" |
}, |
- "inheritFromParent": { |
- "description": "Determines the inheritance behavior for this `Policy`.\n\nBy default, a `ListPolicy` set at a resource supercedes any `Policy` set\nanywhere up the resource hierarchy. However, if `inherit_from_parent` is\nset to `true`, then the values from the effective `Policy` of the parent\nresource are inherited, meaning the values set in this `Policy` are\nadded to the values inherited up the hierarchy.\n\nSetting `Policy` hierarchies that inherit both allowed values and denied\nvalues isn't recommended in most circumstances to keep the configuration\nsimple and understandable. However, it is possible to set a `Policy` with\n`allowed_values` set that inherits a `Policy` with `denied_values` set.\nIn this case, the values that are allowed must be in `allowed_values` and\nnot present in `denied_values`.\n\nFor example, suppose you have a `Constraint`\n`constraints/serviceuser.services`, which has a `constraint_type` of\n`list_constraint`, and with `constraint_default` set to `ALLOW`.\nSuppose that at the Organization level, a `Policy` is applied that\nrestricts the allowed API activations to {`E1`, `E2`}. Then, if a\n`Policy` is applied to a project below the Organization that has\n`inherit_from_parent` set to `false` and field all_values set to DENY,\nthen an attempt to activate any API will be denied.\n\nThe following examples demonstrate different possible layerings:\n\nExample 1 (no inherited values):\n `organizations/foo` has a `Policy` with values:\n {allowed_values: “E1” allowed_values:”E2”}\n ``projects/bar`` has `inherit_from_parent` `false` and values:\n {allowed_values: \"E3\" allowed_values: \"E4\"}\nThe accepted values at `organizations/foo` are `E1`, `E2`.\nThe accepted values at `projects/bar` are `E3`, and `E4`.\n\nExample 2 (inherited values):\n `organizations/foo` has a `Policy` with values:\n {allowed_values: “E1” allowed_values:”E2”}\n `projects/bar` has a `Policy` with values:\n {value: “E3” value: ”E4” inherit_from_parent: true}\nThe accepted values at `organizations/foo` are `E1`, `E2`.\nThe accepted values at `projects/bar` are `E1`, `E2`, `E3`, and `E4`.\n\nExample 3 (inheriting both allowed and denied values):\n `organizations/foo` has a `Policy` with values:\n {allowed_values: \"E1\" allowed_values: \"E2\"}\n `projects/bar` has a `Policy` with:\n {denied_values: \"E1\"}\nThe accepted values at `organizations/foo` are `E1`, `E2`.\nThe value accepted at `projects/bar` is `E2`.\n\nExample 4 (RestoreDefault):\n `organizations/foo` has a `Policy` with values:\n {allowed_values: “E1” allowed_values:”E2”}\n `projects/bar` has a `Policy` with values:\n {RestoreDefault: {}}\nThe accepted values at `organizations/foo` are `E1`, `E2`.\nThe accepted values at `projects/bar` are either all or none depending on\nthe value of `constraint_default` (if `ALLOW`, all; if\n`DENY`, none).\n\nExample 5 (no policy inherits parent policy):\n `organizations/foo` has no `Policy` set.\n `projects/bar` has no `Policy` set.\nThe accepted values at both levels are either all or none depending on\nthe value of `constraint_default` (if `ALLOW`, all; if\n`DENY`, none).\n\nExample 6 (ListConstraint allowing all):\n `organizations/foo` has a `Policy` with values:\n {allowed_values: “E1” allowed_values: ”E2”}\n `projects/bar` has a `Policy` with:\n {all: ALLOW}\nThe accepted values at `organizations/foo` are `E1`, E2`.\nAny value is accepted at `projects/bar`.\n\nExample 7 (ListConstraint allowing none):\n `organizations/foo` has a `Policy` with values:\n {allowed_values: “E1” allowed_values: ”E2”}\n `projects/bar` has a `Policy` with:\n {all: DENY}\nThe accepted values at `organizations/foo` are `E1`, E2`.\nNo value is accepted at `projects/bar`.", |
- "type": "boolean" |
- } |
- }, |
- "type": "object" |
- }, |
- "GetAncestryResponse": { |
- "description": "Response from the GetAncestry method.", |
- "id": "GetAncestryResponse", |
- "properties": { |
- "ancestor": { |
- "description": "Ancestors are ordered from bottom to top of the resource hierarchy. The\nfirst ancestor is the project itself, followed by the project's parent,\netc.", |
- "items": { |
- "$ref": "Ancestor" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "AuditLogConfig": { |
- "description": "Provides the configuration for logging a type of permissions.\nExample:\n\n {\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:foo@gmail.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\",\n }\n ]\n }\n\nThis enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting\nfoo@gmail.com from DATA_READ logging.", |
- "id": "AuditLogConfig", |
- "properties": { |
- "logType": { |
- "description": "The log type that this config enables.", |
- "enum": [ |
- "LOG_TYPE_UNSPECIFIED", |
- "ADMIN_READ", |
- "DATA_WRITE", |
- "DATA_READ" |
- ], |
- "enumDescriptions": [ |
- "Default case. Should never be this.", |
- "Admin reads. Example: CloudIAM getIamPolicy", |
- "Data writes. Example: CloudSQL Users create", |
- "Data reads. Example: CloudSQL Users list" |
- ], |
+ "projectId": { |
+ "description": "The unique, user-assigned ID of the Project.\nIt must be 6 to 30 lowercase letters, digits, or hyphens.\nIt must start with a letter.\nTrailing hyphens are prohibited.\n\nExample: <code>tokyo-rain-123</code>\nRead-only after creation.", |
"type": "string" |
- }, |
- "exemptedMembers": { |
- "description": "Specifies the identities that do not cause logging for this type of\npermission.\nFollows the same format of Binding.members.", |
- "items": { |
- "type": "string" |
- }, |
- "type": "array" |
} |
}, |
"type": "object" |
}, |
- "GetAncestryRequest": { |
- "description": "The request sent to the\nGetAncestry\nmethod.", |
- "id": "GetAncestryRequest", |
- "properties": {}, |
- "type": "object" |
- }, |
"TestIamPermissionsRequest": { |
"description": "Request message for `TestIamPermissions` method.", |
"id": "TestIamPermissionsRequest", |
@@ -1027,26 +634,20 @@ |
}, |
"type": "object" |
}, |
- "ListAvailableOrgPolicyConstraintsRequest": { |
- "description": "The request sent to the [ListAvailableOrgPolicyConstraints]\ngoogle.cloud.OrgPolicy.v1.ListAvailableOrgPolicyConstraints] method.", |
- "id": "ListAvailableOrgPolicyConstraintsRequest", |
- "properties": { |
- "pageSize": { |
- "description": "Size of the pages to be returned. This is currently unsupported and will\nbe ignored. The server may at any point start using this field to limit\npage size.", |
- "format": "int32", |
- "type": "integer" |
- }, |
- "pageToken": { |
- "description": "Page token used to retrieve the next page. This is currently unsupported\nand will be ignored. The server may at any point start using this field.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
"Policy": { |
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\",\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam).", |
"id": "Policy", |
"properties": { |
+ "etag": { |
+ "description": "`etag` is used for optimistic concurrency control as a way to help\nprevent simultaneous updates of a policy from overwriting each other.\nIt is strongly suggested that systems make use of the `etag` in the\nread-modify-write cycle to perform policy updates in order to avoid race\nconditions: An `etag` is returned in the response to `getIamPolicy`, and\nsystems are expected to put that etag in the request to `setIamPolicy` to\nensure that their change will be applied to the same version of the policy.\n\nIf no `etag` is provided in the call to `setIamPolicy`, then the existing\npolicy is overwritten blindly.", |
+ "format": "byte", |
+ "type": "string" |
+ }, |
+ "version": { |
+ "description": "Version of the `Policy`. The default version is 0.", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
"auditConfigs": { |
"description": "Specifies cloud audit logging configuration for this policy.", |
"items": { |
@@ -1060,16 +661,6 @@ |
"$ref": "Binding" |
}, |
"type": "array" |
- }, |
- "etag": { |
- "description": "`etag` is used for optimistic concurrency control as a way to help\nprevent simultaneous updates of a policy from overwriting each other.\nIt is strongly suggested that systems make use of the `etag` in the\nread-modify-write cycle to perform policy updates in order to avoid race\nconditions: An `etag` is returned in the response to `getIamPolicy`, and\nsystems are expected to put that etag in the request to `setIamPolicy` to\nensure that their change will be applied to the same version of the policy.\n\nIf no `etag` is provided in the call to `setIamPolicy`, then the existing\npolicy is overwritten blindly.", |
- "format": "byte", |
- "type": "string" |
- }, |
- "version": { |
- "description": "Version of the `Policy`. The default version is 0.", |
- "format": "int32", |
- "type": "integer" |
} |
}, |
"type": "object" |
@@ -1107,62 +698,97 @@ |
}, |
"type": "object" |
}, |
+ "FolderOperationError": { |
+ "description": "A classification of the Folder Operation error.", |
+ "id": "FolderOperationError", |
+ "properties": { |
+ "errorMessageId": { |
+ "description": "The type of operation error experienced.", |
+ "enum": [ |
+ "ERROR_TYPE_UNSPECIFIED", |
+ "FOLDER_HEIGHT_VIOLATION", |
+ "MAX_CHILD_FOLDERS_VIOLATION", |
+ "FOLDER_NAME_UNIQUENESS_VIOLATION", |
+ "RESOURCE_DELETED", |
+ "PARENT_DELETED", |
+ "CYCLE_INTRODUCED_ERROR", |
+ "FOLDER_BEING_MOVED", |
+ "FOLDER_TO_DELETE_NON_EMPTY", |
+ "DELETED_FOLDER_HEIGHT_VIOLATION" |
+ ], |
+ "enumDescriptions": [ |
+ "The error type was unrecognized or unspecified.", |
+ "The attempted action would violate the max folder depth constraint.", |
+ "The attempted action would violate the max child folders constraint.", |
+ "The attempted action would violate the locally-unique folder\ndisplay_name constraint.", |
+ "The resource being moved has been deleted.", |
+ "The resource a folder was being added to has been deleted.", |
+ "The attempted action would introduce cycle in resource path.", |
+ "The attempted action would move a folder that is already being moved.", |
+ "The folder the caller is trying to delete contains active resources.", |
+ "The attempted action would violate the max deleted folder depth\nconstraint." |
+ ], |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
"ResourceId": { |
"description": "A container to reference an id for any resource type. A `resource` in Google\nCloud Platform is a generic term for something you (a developer) may want to\ninteract with through one of our API's. Some examples are an App Engine app,\na Compute Engine instance, a Cloud SQL database, and so on.", |
"id": "ResourceId", |
"properties": { |
- "type": { |
- "description": "Required field representing the resource type this id is for.\nAt present, the valid types are \"project\" and \"organization\".", |
- "type": "string" |
- }, |
"id": { |
"description": "Required field for the type-specific id. This should correspond to the id\nused in the type-specific API's.", |
"type": "string" |
+ }, |
+ "type": { |
+ "description": "Required field representing the resource type this id is for.\nAt present, the valid types are \"project\" and \"organization\".", |
+ "type": "string" |
} |
}, |
"type": "object" |
}, |
- "GetEffectiveOrgPolicyRequest": { |
- "description": "The request sent to the GetEffectiveOrgPolicy method.", |
- "id": "GetEffectiveOrgPolicyRequest", |
+ "AuditConfig": { |
+ "description": "Specifies the audit configuration for a service.\nThe configuration determines which permission types are logged, and what\nidentities, if any, are exempted from logging.\nAn AuditConfig must have one or more AuditLogConfigs.\n\nIf there are AuditConfigs for both `allServices` and a specific service,\nthe union of the two AuditConfigs is used for that service: the log_types\nspecified in each AuditConfig are enabled, and the exempted_members in each\nAuditConfig are exempted.\n\nExample Policy with multiple AuditConfigs:\n\n {\n \"audit_configs\": [\n {\n \"service\": \"allServices\"\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:foo@gmail.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\",\n },\n {\n \"log_type\": \"ADMIN_READ\",\n }\n ]\n },\n {\n \"service\": \"fooservice.googleapis.com\"\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n },\n {\n \"log_type\": \"DATA_WRITE\",\n \"exempted_members\": [\n \"user:bar@gmail.com\"\n ]\n }\n ]\n }\n ]\n }\n\nFor fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ\nlogging. It also exempts foo@gmail.com from DATA_READ logging, and\nbar@gmail.com from DATA_WRITE logging.", |
+ "id": "AuditConfig", |
"properties": { |
- "constraint": { |
- "description": "The name of the `Constraint` to compute the effective `Policy`.", |
+ "service": { |
+ "description": "Specifies a service that will be enabled for audit logging.\nFor example, `storage.googleapis.com`, `cloudsql.googleapis.com`.\n`allServices` is a special value that covers all services.", |
"type": "string" |
+ }, |
+ "auditLogConfigs": { |
+ "description": "The configuration for logging of each type of permission.\nNext ID: 4", |
+ "items": { |
+ "$ref": "AuditLogConfig" |
+ }, |
+ "type": "array" |
} |
}, |
"type": "object" |
}, |
- "ListOrgPoliciesRequest": { |
- "description": "The request sent to the ListOrgPolicies method.", |
- "id": "ListOrgPoliciesRequest", |
+ "Ancestor": { |
+ "description": "Identifying information for a single ancestor of a project.", |
+ "id": "Ancestor", |
"properties": { |
- "pageToken": { |
- "description": "Page token used to retrieve the next page. This is currently unsupported\nand will be ignored. The server may at any point start using this field.", |
- "type": "string" |
- }, |
- "pageSize": { |
- "description": "Size of the pages to be returned. This is currently unsupported and will\nbe ignored. The server may at any point start using this field to limit\npage size.", |
- "format": "int32", |
- "type": "integer" |
+ "resourceId": { |
+ "$ref": "ResourceId", |
+ "description": "Resource id of the ancestor." |
} |
}, |
"type": "object" |
}, |
- "AuditConfig": { |
- "description": "Specifies the audit configuration for a service.\nThe configuration determines which permission types are logged, and what\nidentities, if any, are exempted from logging.\nAn AuditConifg must have one or more AuditLogConfigs.\n\nIf there are AuditConfigs for both `allServices` and a specific service,\nthe union of the two AuditConfigs is used for that service: the log_types\nspecified in each AuditConfig are enabled, and the exempted_members in each\nAuditConfig are exempted.\nExample Policy with multiple AuditConfigs:\n{\n \"audit_configs\": [\n {\n \"service\": \"allServices\"\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:foo@gmail.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\",\n },\n {\n \"log_type\": \"ADMIN_READ\",\n }\n ]\n },\n {\n \"service\": \"fooservice@googleapis.com\"\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n },\n {\n \"log_type\": \"DATA_WRITE\",\n \"exempted_members\": [\n \"user:bar@gmail.com\"\n ]\n }\n ]\n }\n ]\n}\nFor fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ\nlogging. It also exempts foo@gmail.com from DATA_READ logging, and\nbar@gmail.com from DATA_WRITE logging.", |
- "id": "AuditConfig", |
+ "SetIamPolicyRequest": { |
+ "description": "Request message for `SetIamPolicy` method.", |
+ "id": "SetIamPolicyRequest", |
"properties": { |
- "service": { |
- "description": "Specifies a service that will be enabled for audit logging.\nFor example, `storage.googleapis.com`, `cloudsql.googleapis.com`.\n`allServices` is a special value that covers all services.", |
- "type": "string" |
+ "policy": { |
+ "$ref": "Policy", |
+ "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of\nthe policy is limited to a few 10s of KB. An empty policy is a\nvalid policy but certain Cloud Platform services (such as Projects)\nmight reject them." |
}, |
- "auditLogConfigs": { |
- "description": "The configuration for logging of each type of permission.\nNext ID: 4", |
- "items": { |
- "$ref": "AuditLogConfig" |
- }, |
- "type": "array" |
+ "updateMask": { |
+ "description": "OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only\nthe fields in the mask will be modified. If no mask is provided, the\nfollowing default mask is used:\npaths: \"bindings, etag\"\nThis field is only used by Cloud IAM.", |
+ "format": "google-fieldmask", |
+ "type": "string" |
} |
}, |
"type": "object" |
@@ -1171,62 +797,16 @@ |
"description": "The response returned from the `ListOrganizations` method.", |
"id": "ListOrganizationsResponse", |
"properties": { |
+ "nextPageToken": { |
+ "description": "A pagination token to be used to retrieve the next page of results. If the\nresult is too large to fit within the page size specified in the request,\nthis field will be set with a token that can be used to fetch the next page\nof results. If this field is empty, it indicates that this response\ncontains the last page of results.", |
+ "type": "string" |
+ }, |
"organizations": { |
"description": "The list of Organizations that matched the list query, possibly paginated.", |
"items": { |
"$ref": "Organization" |
}, |
"type": "array" |
- }, |
- "nextPageToken": { |
- "description": "A pagination token to be used to retrieve the next page of results. If the\nresult is too large to fit within the page size specified in the request,\nthis field will be set with a token that can be used to fetch the next page\nof results. If this field is empty, it indicates that this response\ncontains the last page of results.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "Constraint": { |
- "description": "A `Constraint` describes a way in which a resource's configuration can be\nrestricted. For example, it controls which cloud services can be activated\nacross an organization, or whether a Compute Engine instance can have\nserial port connections established. `Constraints` can be configured by the\norganization's policy adminstrator to fit the needs of the organzation by\nsetting Policies for `Constraints` at different locations in the\norganization's resource hierarchy. Policies are inherited down the resource\nhierarchy from higher levels, but can also be overridden. For details about\nthe inheritance rules please read about\nPolicies.\n\n`Constraints` have a default behavior determined by the `constraint_default`\nfield, which is the enforcement behavior that is used in the absence of a\n`Policy` being defined or inherited for the resource in question.", |
- "id": "Constraint", |
- "properties": { |
- "description": { |
- "description": "Detailed description of what this `Constraint` controls as well as how and\nwhere it is enforced.\n\nMutable.", |
- "type": "string" |
- }, |
- "displayName": { |
- "description": "The human readable name.\n\nMutable.", |
- "type": "string" |
- }, |
- "booleanConstraint": { |
- "$ref": "BooleanConstraint", |
- "description": "Defines this constraint as being a BooleanConstraint." |
- }, |
- "constraintDefault": { |
- "description": "The evaluation behavior of this constraint in the absense of 'Policy'.", |
- "enum": [ |
- "CONSTRAINT_DEFAULT_UNSPECIFIED", |
- "ALLOW", |
- "DENY" |
- ], |
- "enumDescriptions": [ |
- "This is only used for distinguishing unset values and should never be\nused.", |
- "Indicate that all values are allowed for list constraints.\nIndicate that enforcement is off for boolean constraints.", |
- "Indicate that all values are denied for list constraints.\nIndicate that enforcement is on for boolean constraints." |
- ], |
- "type": "string" |
- }, |
- "name": { |
- "description": "Immutable value, required to globally be unique. For example,\n`constraints/serviceuser.services`", |
- "type": "string" |
- }, |
- "version": { |
- "description": "Version of the `Constraint`. Default version is 0;", |
- "format": "int32", |
- "type": "integer" |
- }, |
- "listConstraint": { |
- "$ref": "ListConstraint", |
- "description": "Defines this constraint as being a ListConstraint." |
} |
}, |
"type": "object" |
@@ -1249,34 +829,49 @@ |
}, |
"type": "object" |
}, |
- "RestoreDefault": { |
- "description": "Ignores policies set above this resource and restores the\n`constraint_default` enforcement behavior of the specific `Constraint` at\nthis resource.\n\nSuppose that `constraint_default` is set to `ALLOW` for the\n`Constraint` `constraints/serviceuser.services`. Suppose that organization\nfoo.com sets a `Policy` at their Organization resource node that restricts\nthe allowed service activations to deny all service activations. They\ncould then set a `Policy` with the `policy_type` `restore_default` on\nseveral experimental projects, restoring the `constraint_default`\nenforcement of the `Constraint` for only those projects, allowing those\nprojects to have all services activated.", |
- "id": "RestoreDefault", |
+ "Empty": { |
+ "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", |
+ "id": "Empty", |
"properties": {}, |
"type": "object" |
}, |
- "GetOrgPolicyRequest": { |
- "description": "The request sent to the GetOrgPolicy method.", |
- "id": "GetOrgPolicyRequest", |
+ "Organization": { |
+ "description": "The root node in the resource hierarchy to which a particular entity's\n(e.g., company) resources belong.", |
+ "id": "Organization", |
"properties": { |
- "constraint": { |
- "description": "Name of the `Constraint` to get the `Policy`.", |
+ "organizationId": { |
+ "description": "An immutable id for the Organization that is assigned on creation. This\nshould be omitted when creating a new Organization.\nThis field is read-only.\nThis field is deprecated and will be removed in v1. Use name instead.", |
"type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "ClearOrgPolicyRequest": { |
- "description": "The request sent to the ClearOrgPolicy method.", |
- "id": "ClearOrgPolicyRequest", |
- "properties": { |
- "etag": { |
- "description": "The current version, for concurrency control. Not sending an `etag`\nwill cause the `Policy` to be cleared blindly.", |
- "format": "byte", |
+ }, |
+ "lifecycleState": { |
+ "description": "The organization's current lifecycle state. Assigned by the server.\n@OutputOnly", |
+ "enum": [ |
+ "LIFECYCLE_STATE_UNSPECIFIED", |
+ "ACTIVE", |
+ "DELETE_REQUESTED" |
+ ], |
+ "enumDescriptions": [ |
+ "Unspecified state. This is only useful for distinguishing unset values.", |
+ "The normal and active state.", |
+ "The organization has been marked for deletion by the user." |
+ ], |
+ "type": "string" |
+ }, |
+ "displayName": { |
+ "description": "A friendly string to be used to refer to the Organization in the UI.\nAssigned by the server, set to the primary domain of the G Suite\ncustomer that owns the organization.\n@OutputOnly", |
+ "type": "string" |
+ }, |
+ "creationTime": { |
+ "description": "Timestamp when the Organization was created. Assigned by the server.\n@OutputOnly", |
+ "format": "google-datetime", |
"type": "string" |
}, |
- "constraint": { |
- "description": "Name of the `Constraint` of the `Policy` to clear.", |
+ "owner": { |
+ "$ref": "OrganizationOwner", |
+ "description": "The owner of this Organization. The owner should be specified on\ncreation. Once set, it cannot be changed.\nThis field is required." |
+ }, |
+ "name": { |
+ "description": "Output Only. The resource name of the organization. This is the\norganization's relative path in the API. Its format is\n\"organizations/[organization_id]\". For example, \"organizations/1234\".", |
"type": "string" |
} |
}, |
@@ -1308,12 +903,6 @@ |
}, |
"type": "object" |
}, |
- "BooleanConstraint": { |
- "description": "A `Constraint` that is either enforced or not.\n\nFor example a constraint `constraints/compute.disableSerialPortAccess`.\nIf it is enforced on a VM instance, serial port connections will not be\nopened to that instance.", |
- "id": "BooleanConstraint", |
- "properties": {}, |
- "type": "object" |
- }, |
"TestIamPermissionsResponse": { |
"description": "Response message for `TestIamPermissions` method.", |
"id": "TestIamPermissionsResponse", |
@@ -1334,6 +923,20 @@ |
"properties": {}, |
"type": "object" |
}, |
+ "GetAncestryResponse": { |
+ "description": "Response from the GetAncestry method.", |
+ "id": "GetAncestryResponse", |
+ "properties": { |
+ "ancestor": { |
+ "description": "Ancestors are ordered from bottom to top of the resource hierarchy. The\nfirst ancestor is the project itself, followed by the project's parent,\netc.", |
+ "items": { |
+ "$ref": "Ancestor" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
"OrganizationOwner": { |
"description": "The entity that owns an Organization. The lifetime of the Organization and\nall of its descendants are bound to the `OrganizationOwner`. If the\n`OrganizationOwner` is deleted, the Organization and all its descendants will\nbe deleted.", |
"id": "OrganizationOwner", |
@@ -1363,190 +966,35 @@ |
}, |
"type": "object" |
}, |
- "Project": { |
- "description": "A Project is a high-level Google Cloud Platform entity. It is a\ncontainer for ACLs, APIs, App Engine Apps, VMs, and other\nGoogle Cloud Platform resources.", |
- "id": "Project", |
- "properties": { |
- "labels": { |
- "additionalProperties": { |
- "type": "string" |
- }, |
- "description": "The labels associated with this Project.\n\nLabel keys must be between 1 and 63 characters long and must conform\nto the following regular expression: \\[a-z\\](\\[-a-z0-9\\]*\\[a-z0-9\\])?.\n\nLabel values must be between 0 and 63 characters long and must conform\nto the regular expression (\\[a-z\\](\\[-a-z0-9\\]*\\[a-z0-9\\])?)?.\n\nNo more than 256 labels can be associated with a given resource.\n\nClients should store labels in a representation such as JSON that does not\ndepend on specific characters being disallowed.\n\nExample: <code>\"environment\" : \"dev\"</code>\nRead-write.", |
- "type": "object" |
- }, |
- "createTime": { |
- "description": "Creation time.\n\nRead-only.", |
- "format": "google-datetime", |
- "type": "string" |
- }, |
- "name": { |
- "description": "The user-assigned display name of the Project.\nIt must be 4 to 30 characters.\nAllowed characters are: lowercase and uppercase letters, numbers,\nhyphen, single-quote, double-quote, space, and exclamation point.\n\nExample: <code>My Project</code>\nRead-write.", |
- "type": "string" |
- }, |
- "projectId": { |
- "description": "The unique, user-assigned ID of the Project.\nIt must be 6 to 30 lowercase letters, digits, or hyphens.\nIt must start with a letter.\nTrailing hyphens are prohibited.\n\nExample: <code>tokyo-rain-123</code>\nRead-only after creation.", |
- "type": "string" |
- }, |
- "lifecycleState": { |
- "description": "The Project lifecycle state.\n\nRead-only.", |
- "enum": [ |
- "LIFECYCLE_STATE_UNSPECIFIED", |
- "ACTIVE", |
- "DELETE_REQUESTED", |
- "DELETE_IN_PROGRESS" |
- ], |
- "enumDescriptions": [ |
- "Unspecified state. This is only used/useful for distinguishing\nunset values.", |
- "The normal and active state.", |
- "The project has been marked for deletion by the user\n(by invoking DeleteProject)\nor by the system (Google Cloud Platform).\nThis can generally be reversed by invoking UndeleteProject.", |
- "This lifecycle state is no longer used and is not returned by the API." |
- ], |
- "type": "string" |
- }, |
- "projectNumber": { |
- "description": "The number uniquely identifying the project.\n\nExample: <code>415104041262</code>\nRead-only.", |
- "format": "int64", |
- "type": "string" |
- }, |
- "parent": { |
- "$ref": "ResourceId", |
- "description": "An optional reference to a parent Resource.\n\nThe only supported parent type is \"organization\". Once set, the parent\ncannot be modified. The `parent` can be set on creation or using the\n`UpdateProject` method; the end user must have the\n`resourcemanager.projects.create` permission on the parent.\n\nRead-write." |
- } |
- }, |
- "type": "object" |
- }, |
- "ListOrgPoliciesResponse": { |
- "description": "The response returned from the ListOrgPolicies method. It will be empty\nif no `Policies` are set on the resource.", |
- "id": "ListOrgPoliciesResponse", |
+ "AuditLogConfig": { |
+ "description": "Provides the configuration for logging a type of permissions.\nExample:\n\n {\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:foo@gmail.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\",\n }\n ]\n }\n\nThis enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting\nfoo@gmail.com from DATA_READ logging.", |
+ "id": "AuditLogConfig", |
"properties": { |
- "policies": { |
- "description": "The `Policies` that are set on the resource. It will be empty if no\n`Policies` are set.", |
+ "exemptedMembers": { |
+ "description": "Specifies the identities that do not cause logging for this type of\npermission.\nFollows the same format of Binding.members.", |
"items": { |
- "$ref": "OrgPolicy" |
+ "type": "string" |
}, |
"type": "array" |
}, |
- "nextPageToken": { |
- "description": "Page token used to retrieve the next page. This is currently not used, but\nthe server may at any point start supplying a valid token.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "FolderOperationError": { |
- "description": "A classification of the Folder Operation error.", |
- "id": "FolderOperationError", |
- "properties": { |
- "errorMessageId": { |
- "description": "The type of operation error experienced.", |
+ "logType": { |
+ "description": "The log type that this config enables.", |
"enum": [ |
- "ERROR_TYPE_UNSPECIFIED", |
- "FOLDER_HEIGHT_VIOLATION", |
- "MAX_CHILD_FOLDERS_VIOLATION", |
- "FOLDER_NAME_UNIQUENESS_VIOLATION", |
- "RESOURCE_DELETED", |
- "PARENT_DELETED", |
- "CYCLE_INTRODUCED_ERROR", |
- "FOLDER_BEING_MOVED", |
- "FOLDER_TO_DELETE_NON_EMPTY" |
+ "LOG_TYPE_UNSPECIFIED", |
+ "ADMIN_READ", |
+ "DATA_WRITE", |
+ "DATA_READ" |
], |
"enumDescriptions": [ |
- "The error type was unrecognized or unspecified.", |
- "The attempted action would violate the max folder depth constraint.", |
- "The attempted action would violate the max child folders constraint.", |
- "The attempted action would violate the locally-unique folder\ndisplay_name constraint.", |
- "The resource being moved has been deleted.", |
- "The resource a folder was being added to has been deleted.", |
- "The attempted action would introduce cycle in resource path.", |
- "The attempted action would move a folder that is already being moved.", |
- "The folder the caller is trying to delete contains active resources." |
+ "Default case. Should never be this.", |
+ "Admin reads. Example: CloudIAM getIamPolicy", |
+ "Data writes. Example: CloudSQL Users create", |
+ "Data reads. Example: CloudSQL Users list" |
], |
"type": "string" |
} |
}, |
"type": "object" |
- }, |
- "OrgPolicy": { |
- "description": "Defines a Cloud Organization `Policy` which is used to specify `Constraints`\nfor configurations of Cloud Platform resources.", |
- "id": "OrgPolicy", |
- "properties": { |
- "version": { |
- "description": "Version of the `Policy`. Default version is 0;", |
- "format": "int32", |
- "type": "integer" |
- }, |
- "restoreDefault": { |
- "$ref": "RestoreDefault", |
- "description": "Restores the default behavior of the constraint; independent of\n`Constraint` type." |
- }, |
- "listPolicy": { |
- "$ref": "ListPolicy", |
- "description": "List of values either allowed or disallowed." |
- }, |
- "etag": { |
- "description": "An opaque tag indicating the current version of the `Policy`, used for\nconcurrency control.\n\nWhen the `Policy` is returned from either a `GetPolicy` or a\n`ListOrgPolicy` request, this `etag` indicates the version of the current\n`Policy` to use when executing a read-modify-write loop.\n\nWhen the `Policy` is returned from a `GetEffectivePolicy` request, the\n`etag` will be unset.\n\nWhen the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value\nthat was returned from a `GetOrgPolicy` request as part of a\nread-modify-write loop for concurrency control. Not setting the `etag`in a\n`SetOrgPolicy` request will result in an unconditional write of the\n`Policy`.", |
- "format": "byte", |
- "type": "string" |
- }, |
- "constraint": { |
- "description": "The name of the `Constraint` the `Policy` is configuring, for example,\n`constraints/serviceuser.services`.\n\nImmutable after creation.", |
- "type": "string" |
- }, |
- "booleanPolicy": { |
- "$ref": "BooleanPolicy", |
- "description": "For boolean `Constraints`, whether to enforce the `Constraint` or not." |
- }, |
- "updateTime": { |
- "description": "The time stamp the `Policy` was previously updated. This is set by the\nserver, not specified by the caller, and represents the last time a call to\n`SetOrgPolicy` was made for that `Policy`. Any value set by the client will\nbe ignored.", |
- "format": "google-datetime", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "BooleanPolicy": { |
- "description": "Used in `policy_type` to specify how `boolean_policy` will behave at this\nresource.", |
- "id": "BooleanPolicy", |
- "properties": { |
- "enforced": { |
- "description": "If `true`, then the `Policy` is enforced. If `false`, then any\nconfiguration is acceptable.\n\nSuppose you have a `Constraint` `constraints/compute.disableSerialPortAccess`\nwith `constraint_default` set to `ALLOW`. A `Policy` for that\n`Constraint` exhibits the following behavior:\n - If the `Policy` at this resource has enforced set to `false`, serial\n port connection attempts will be allowed.\n - If the `Policy` at this resource has enforced set to `true`, serial\n port connection attempts will be refused.\n - If the `Policy` at this resource is `RestoreDefault`, serial port\n connection attempts will be allowed.\n - If no `Policy` is set at this resource or anywhere higher in the\n resource hierarchy, serial port connection attempts will be allowed.\n - If no `Policy` is set at this resource, but one exists higher in the\n resource hierarchy, the behavior is as if the`Policy` were set at\n this resource.\n\nThe following examples demonstrate the different possible layerings:\n\nExample 1 (nearest `Constraint` wins):\n `organizations/foo` has a `Policy` with:\n {enforced: false}\n `projects/bar` has no `Policy` set.\nThe constraint at `projects/bar` and `organizations/foo` will not be\nenforced.\n\nExample 2 (enforcement gets replaced):\n `organizations/foo` has a `Policy` with:\n {enforced: false}\n `projects/bar` has a `Policy` with:\n {enforced: true}\nThe constraint at `organizations/foo` is not enforced.\nThe constraint at `projects/bar` is enforced.\n\nExample 3 (RestoreDefault):\n `organizations/foo` has a `Policy` with:\n {enforced: true}\n `projects/bar` has a `Policy` with:\n {RestoreDefault: {}}\nThe constraint at `organizations/foo` is enforced.\nThe constraint at `projects/bar` is not enforced, because\n`constraint_default` for the `Constraint` is `ALLOW`.", |
- "type": "boolean" |
- } |
- }, |
- "type": "object" |
- }, |
- "Ancestor": { |
- "description": "Identifying information for a single ancestor of a project.", |
- "id": "Ancestor", |
- "properties": { |
- "resourceId": { |
- "$ref": "ResourceId", |
- "description": "Resource id of the ancestor." |
- } |
- }, |
- "type": "object" |
- }, |
- "ListConstraint": { |
- "description": "A `Constraint` that allows or disallows a list of string values, which are\nconfigured by an Organization's policy administrator with a `Policy`.", |
- "id": "ListConstraint", |
- "properties": { |
- "suggestedValue": { |
- "description": "Optional. The Google Cloud Console will try to default to a configuration\nthat matches the value specified in this `Constraint`.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "SetOrgPolicyRequest": { |
- "description": "The request sent to the SetOrgPolicyRequest method.", |
- "id": "SetOrgPolicyRequest", |
- "properties": { |
- "policy": { |
- "$ref": "OrgPolicy", |
- "description": "`Policy` to set on the resource." |
- } |
- }, |
- "type": "object" |
} |
}, |
"servicePath": "", |