Index: discovery/googleapis/cloudresourcemanager__v1.json |
diff --git a/discovery/googleapis/cloudresourcemanager__v1.json b/discovery/googleapis/cloudresourcemanager__v1.json |
index 6438ff85c51ea8b63f7a09922ac52ca0ce8559bb..23eda69e33b93f29ea97a0bfdf81e6bd66cb0781 100644 |
--- a/discovery/googleapis/cloudresourcemanager__v1.json |
+++ b/discovery/googleapis/cloudresourcemanager__v1.json |
@@ -49,6 +49,11 @@ |
"location": "query", |
"type": "string" |
}, |
+ "callback": { |
+ "description": "JSONP", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"$.xgafv": { |
"description": "V1 error format.", |
"enum": [ |
@@ -62,11 +67,6 @@ |
"location": "query", |
"type": "string" |
}, |
- "callback": { |
- "description": "JSONP", |
- "location": "query", |
- "type": "string" |
- }, |
"alt": { |
"default": "json", |
"description": "Data format for response.", |
@@ -83,13 +83,13 @@ |
"location": "query", |
"type": "string" |
}, |
- "key": { |
- "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
+ "access_token": { |
+ "description": "OAuth access token.", |
"location": "query", |
"type": "string" |
}, |
- "access_token": { |
- "description": "OAuth access token.", |
+ "key": { |
+ "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
"location": "query", |
"type": "string" |
}, |
@@ -104,13 +104,13 @@ |
"location": "query", |
"type": "boolean" |
}, |
- "oauth_token": { |
- "description": "OAuth 2.0 token for the current user.", |
+ "bearer_token": { |
+ "description": "OAuth bearer token.", |
"location": "query", |
"type": "string" |
}, |
- "bearer_token": { |
- "description": "OAuth bearer token.", |
+ "oauth_token": { |
+ "description": "OAuth 2.0 token for the current user.", |
"location": "query", |
"type": "string" |
} |
@@ -119,6 +119,58 @@ |
"resources": { |
"organizations": { |
"methods": { |
+ "get": { |
+ "description": "Fetches an Organization resource identified by the specified resource name.", |
+ "httpMethod": "GET", |
+ "id": "cloudresourcemanager.organizations.get", |
+ "parameterOrder": [ |
+ "name" |
+ ], |
+ "parameters": { |
+ "name": { |
+ "description": "The resource name of the Organization to fetch, e.g. \"organizations/1234\".", |
+ "location": "path", |
+ "pattern": "^organizations/[^/]+$", |
+ "required": true, |
+ "type": "string" |
+ } |
+ }, |
+ "path": "v1/{+name}", |
+ "response": { |
+ "$ref": "Organization" |
+ }, |
+ "scopes": [ |
+ "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\".", |
+ "httpMethod": "POST", |
+ "id": "cloudresourcemanager.organizations.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", |
+ "pattern": "^organizations/[^/]+$", |
+ "required": true, |
+ "type": "string" |
+ } |
+ }, |
+ "path": "v1/{+resource}:setIamPolicy", |
+ "request": { |
+ "$ref": "SetIamPolicyRequest" |
+ }, |
+ "response": { |
+ "$ref": "Policy" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/cloud-platform" |
+ ] |
+ }, |
"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", |
@@ -128,7 +180,7 @@ |
], |
"parameters": { |
"resource": { |
- "description": "REQUIRED: The resource for which the policy detail is being requested.\n`resource` is usually specified as a path. For example, a Project\nresource is specified as `projects/{project}`.", |
+ "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, |
@@ -156,7 +208,7 @@ |
], |
"parameters": { |
"resource": { |
- "description": "REQUIRED: The resource for which the policy is being requested.\n`resource` is usually specified as a path. For example, a Project\nresource is specified as `projects/{project}`.", |
+ "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, |
@@ -192,57 +244,84 @@ |
"https://www.googleapis.com/auth/cloud-platform", |
"https://www.googleapis.com/auth/cloud-platform.read-only" |
] |
- }, |
- "get": { |
- "description": "Fetches an Organization resource identified by the specified resource name.", |
+ } |
+ } |
+ }, |
+ "liens": { |
+ "methods": { |
+ "list": { |
+ "description": "List all Liens applied to the `parent` resource.\n\nCallers of this method will require permission on the `parent` resource.\nFor example, a Lien with a `parent` of `projects/1234` requires permission\n`resourcemanager.projects.get`.", |
"httpMethod": "GET", |
- "id": "cloudresourcemanager.organizations.get", |
- "parameterOrder": [ |
- "name" |
- ], |
+ "id": "cloudresourcemanager.liens.list", |
+ "parameterOrder": [], |
"parameters": { |
- "name": { |
- "description": "The resource name of the Organization to fetch, e.g. \"organizations/1234\".", |
- "location": "path", |
- "pattern": "^organizations/[^/]+$", |
- "required": true, |
+ "parent": { |
+ "description": "The name of the resource to list all attached Liens.\nFor example, `projects/1234`.", |
+ "location": "query", |
"type": "string" |
+ }, |
+ "pageToken": { |
+ "description": "The `next_page_token` value returned from a previous List request, if any.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "pageSize": { |
+ "description": "The maximum number of items to return. This is a suggestion for the server.", |
+ "format": "int32", |
+ "location": "query", |
+ "type": "integer" |
} |
}, |
- "path": "v1/{+name}", |
+ "path": "v1/liens", |
"response": { |
- "$ref": "Organization" |
+ "$ref": "ListLiensResponse" |
}, |
"scopes": [ |
"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\".", |
+ "create": { |
+ "description": "Create a Lien which applies to the resource denoted by the `parent` field.\n\nCallers of this method will require permission on the `parent` resource.\nFor example, applying to `projects/1234` requires permission\n`resourcemanager.projects.updateLiens`.\n\nNOTE: Some resources may limit the number of Liens which may be applied.", |
"httpMethod": "POST", |
- "id": "cloudresourcemanager.organizations.setIamPolicy", |
+ "id": "cloudresourcemanager.liens.create", |
+ "parameterOrder": [], |
+ "parameters": {}, |
+ "path": "v1/liens", |
+ "request": { |
+ "$ref": "Lien" |
+ }, |
+ "response": { |
+ "$ref": "Lien" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/cloud-platform", |
+ "https://www.googleapis.com/auth/cloud-platform.read-only" |
+ ] |
+ }, |
+ "delete": { |
+ "description": "Delete a Lien by `name`.\n\nCallers of this method will require permission on the `parent` resource.\nFor example, a Lien with a `parent` of `projects/1234` requires permission\n`resourcemanager.projects.updateLiens`.", |
+ "httpMethod": "DELETE", |
+ "id": "cloudresourcemanager.liens.delete", |
"parameterOrder": [ |
- "resource" |
+ "name" |
], |
"parameters": { |
- "resource": { |
- "description": "REQUIRED: The resource for which the policy is being specified.\n`resource` is usually specified as a path. For example, a Project\nresource is specified as `projects/{project}`.", |
+ "name": { |
+ "description": "The name/identifier of the Lien to delete.", |
"location": "path", |
- "pattern": "^organizations/[^/]+$", |
+ "pattern": "^liens/.+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v1/{+resource}:setIamPolicy", |
- "request": { |
- "$ref": "SetIamPolicyRequest" |
- }, |
+ "path": "v1/{+name}", |
"response": { |
- "$ref": "Policy" |
+ "$ref": "Empty" |
}, |
"scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform" |
+ "https://www.googleapis.com/auth/cloud-platform", |
+ "https://www.googleapis.com/auth/cloud-platform.read-only" |
] |
} |
} |
@@ -278,6 +357,108 @@ |
}, |
"projects": { |
"methods": { |
+ "list": { |
+ "description": "Lists Projects that are visible to the user and satisfy the\nspecified filter. This method returns Projects in an unspecified order.\nNew Projects do not necessarily appear at the end of the list.", |
+ "httpMethod": "GET", |
+ "id": "cloudresourcemanager.projects.list", |
+ "parameterOrder": [], |
+ "parameters": { |
+ "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 label.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" |
+ }, |
+ "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": "v1/projects", |
+ "response": { |
+ "$ref": "ListProjectsResponse" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/cloud-platform", |
+ "https://www.googleapis.com/auth/cloud-platform.read-only" |
+ ] |
+ }, |
+ "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()`;\nthey 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\nto remove 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": "v1/projects/{resource}:setIamPolicy", |
+ "request": { |
+ "$ref": "SetIamPolicyRequest" |
+ }, |
+ "response": { |
+ "$ref": "Policy" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/cloud-platform" |
+ ] |
+ }, |
+ "create": { |
+ "description": "Request that a new Project be created. The result is an Operation which\ncan be used to track the creation process. It is automatically deleted\nafter a few hours, so there is no need to call DeleteOperation.\n\nOur SLO permits Project creation to take up to 30 seconds at the 90th\npercentile. As of 2016-08-29, we are observing 6 seconds 50th percentile\nlatency. 95th percentile latency is around 11 seconds. We recommend\npolling at the 5th second with an exponential backoff.", |
+ "httpMethod": "POST", |
+ "id": "cloudresourcemanager.projects.create", |
+ "parameterOrder": [], |
+ "parameters": {}, |
+ "path": "v1/projects", |
+ "request": { |
+ "$ref": "Project" |
+ }, |
+ "response": { |
+ "$ref": "Operation" |
+ }, |
+ "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, |
+ "type": "string" |
+ } |
+ }, |
+ "path": "v1/projects/{resource}:getIamPolicy", |
+ "request": { |
+ "$ref": "GetIamPolicyRequest" |
+ }, |
+ "response": { |
+ "$ref": "Policy" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/cloud-platform", |
+ "https://www.googleapis.com/auth/cloud-platform.read-only" |
+ ] |
+ }, |
"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", |
@@ -390,7 +571,7 @@ |
], |
"parameters": { |
"resource": { |
- "description": "REQUIRED: The resource for which the policy detail is being requested.\n`resource` is usually specified as a path. For example, a Project\nresource is specified as `projects/{project}`.", |
+ "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", |
"required": true, |
"type": "string" |
@@ -430,122 +611,208 @@ |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform" |
] |
+ } |
+ } |
+ } |
+ }, |
+ "revision": "20170227", |
+ "rootUrl": "https://cloudresourcemanager.googleapis.com/", |
+ "schemas": { |
+ "Organization": { |
+ "description": "The root node in the resource hierarchy to which a particular entity's\n(e.g., company) resources belong.", |
+ "id": "Organization", |
+ "properties": { |
+ "creationTime": { |
+ "description": "Timestamp when the Organization was created. Assigned by the server.\n@OutputOnly", |
+ "format": "google-datetime", |
+ "type": "string" |
}, |
- "list": { |
- "description": "Lists Projects that are visible to the user and satisfy the\nspecified filter. This method returns Projects in an unspecified order.\nNew Projects do not necessarily appear at the end of the list.", |
- "httpMethod": "GET", |
- "id": "cloudresourcemanager.projects.list", |
- "parameterOrder": [], |
- "parameters": { |
- "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 label.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" |
- }, |
- "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": "v1/projects", |
- "response": { |
- "$ref": "ListProjectsResponse" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/cloud-platform.read-only" |
- ] |
+ "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." |
}, |
- "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()`;\nthey 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\nto remove 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" |
+ "lifecycleState": { |
+ "description": "The organization's current lifecycle state. Assigned by the server.\n@OutputOnly", |
+ "enum": [ |
+ "LIFECYCLE_STATE_UNSPECIFIED", |
+ "ACTIVE", |
+ "DELETE_REQUESTED" |
], |
- "parameters": { |
- "resource": { |
- "description": "REQUIRED: The resource for which the policy is being specified.\n`resource` is usually specified as a path. For example, a Project\nresource is specified as `projects/{project}`.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "v1/projects/{resource}:setIamPolicy", |
- "request": { |
- "$ref": "SetIamPolicyRequest" |
- }, |
- "response": { |
- "$ref": "Policy" |
+ "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" |
+ }, |
+ "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" |
+ }, |
+ "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" |
+ } |
+ }, |
+ "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" |
}, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform" |
- ] |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "SearchOrganizationsRequest": { |
+ "description": "The request sent to the `SearchOrganizations` method.", |
+ "id": "SearchOrganizationsRequest", |
+ "properties": { |
+ "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\n`owner.directory_customer_id` equal to `123456789`.|\n|domain:google.com|Organizations corresponding to the domain `google.com`.|\n\nThis field is optional.", |
+ "type": "string" |
}, |
- "create": { |
- "description": "Request that a new Project be created. The result is an Operation which\ncan be used to track the creation process. It is automatically deleted\nafter a few hours, so there is no need to call DeleteOperation.\n\nOur SLO permits Project creation to take up to 30 seconds at the 90th\npercentile. As of 2016-08-29, we are observing 6 seconds 50th percentile\nlatency. 95th percentile latency is around 11 seconds. We recommend\npolling at the 5th second with an exponential backoff.", |
- "httpMethod": "POST", |
- "id": "cloudresourcemanager.projects.create", |
- "parameterOrder": [], |
- "parameters": {}, |
- "path": "v1/projects", |
- "request": { |
- "$ref": "Project" |
+ "pageToken": { |
+ "description": "A pagination token returned from a previous call to `SearchOrganizations`\nthat indicates from where listing should continue.\nThis field is optional.", |
+ "type": "string" |
+ }, |
+ "pageSize": { |
+ "description": "The maximum number of Organizations to return in the response.\nThis field is optional.", |
+ "format": "int32", |
+ "type": "integer" |
+ } |
+ }, |
+ "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", |
+ "properties": { |
+ "permissions": { |
+ "description": "The set of permissions to check for the `resource`. Permissions with\nwildcards (such as '*' or 'storage.*') are not allowed. For more\ninformation see\n[IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", |
+ "items": { |
+ "type": "string" |
}, |
- "response": { |
- "$ref": "Operation" |
+ "type": "array" |
+ } |
+ }, |
+ "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" |
+ }, |
+ "bindings": { |
+ "description": "Associates a list of `members` to a `role`.\nMultiple `bindings` must not be specified for the same `role`.\n`bindings` with no members will result in an error.", |
+ "items": { |
+ "$ref": "Binding" |
}, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform" |
- ] |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "FolderOperation": { |
+ "description": "Metadata describing a long running folder operation", |
+ "id": "FolderOperation", |
+ "properties": { |
+ "destinationParent": { |
+ "description": "The resource name of the folder or organization we are either creating\nthe folder under or moving the folder to.", |
+ "type": "string" |
}, |
- "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" |
+ "operationType": { |
+ "description": "The type of this operation.", |
+ "enum": [ |
+ "OPERATION_TYPE_UNSPECIFIED", |
+ "CREATE", |
+ "MOVE" |
], |
- "parameters": { |
- "resource": { |
- "description": "REQUIRED: The resource for which the policy is being requested.\n`resource` is usually specified as a path. For example, a Project\nresource is specified as `projects/{project}`.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "v1/projects/{resource}:getIamPolicy", |
- "request": { |
- "$ref": "GetIamPolicyRequest" |
- }, |
- "response": { |
- "$ref": "Policy" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/cloud-platform.read-only" |
- ] |
+ "enumDescriptions": [ |
+ "Operation type not specified.", |
+ "A create folder operation.", |
+ "A move folder operation." |
+ ], |
+ "type": "string" |
+ }, |
+ "displayName": { |
+ "description": "The display name of the folder.", |
+ "type": "string" |
+ }, |
+ "sourceParent": { |
+ "description": "The resource name of the folder's parent.\nOnly applicable when the operation_type is MOVE.", |
+ "type": "string" |
} |
- } |
- } |
- }, |
- "revision": "20170206", |
- "rootUrl": "https://cloudresourcemanager.googleapis.com/", |
- "schemas": { |
- "SetIamPolicyRequest": { |
- "description": "Request message for `SetIamPolicy` method.", |
- "id": "SetIamPolicyRequest", |
+ }, |
+ "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": { |
- "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." |
+ "type": { |
+ "description": "Required field representing the resource type this id is for.\nAt present, the valid types are: \"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": "object" |
+ }, |
+ "Operation": { |
+ "description": "This resource represents a long-running operation that is the result of a\nnetwork API call.", |
+ "id": "Operation", |
+ "properties": { |
+ "metadata": { |
+ "additionalProperties": { |
+ "description": "Properties of the object. Contains field @type with type URL.", |
+ "type": "any" |
+ }, |
+ "description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.", |
+ "type": "object" |
+ }, |
+ "done": { |
+ "description": "If the value is `false`, it means the operation is still in progress.\nIf true, the operation is completed, and either `error` or `response` is\navailable.", |
+ "type": "boolean" |
+ }, |
+ "response": { |
+ "additionalProperties": { |
+ "description": "Properties of the object. Contains field @type with type URL.", |
+ "type": "any" |
+ }, |
+ "description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.", |
+ "type": "object" |
+ }, |
+ "name": { |
+ "description": "The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should have the format of `operations/some/unique/name`.", |
+ "type": "string" |
+ }, |
+ "error": { |
+ "$ref": "Status", |
+ "description": "The error result of the operation in case of failure or cancellation." |
} |
}, |
"type": "object" |
@@ -577,74 +844,48 @@ |
}, |
"type": "object" |
}, |
- "Binding": { |
- "description": "Associates `members` with a `role`.", |
- "id": "Binding", |
+ "ListLiensResponse": { |
+ "description": "The response message for Liens.ListLiens.", |
+ "id": "ListLiensResponse", |
"properties": { |
- "members": { |
- "description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` or `joe@example.com`.\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n", |
+ "nextPageToken": { |
+ "description": "Token to retrieve the next page of results, or empty if there are no more\nresults in the list.", |
+ "type": "string" |
+ }, |
+ "liens": { |
+ "description": "A list of Liens.", |
"items": { |
- "type": "string" |
+ "$ref": "Lien" |
}, |
"type": "array" |
- }, |
- "role": { |
- "description": "Role that is assigned to `members`.\nFor example, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired", |
- "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", |
- "properties": {}, |
- "type": "object" |
- }, |
- "UndeleteProjectRequest": { |
- "description": "The request sent to the UndeleteProject\nmethod.", |
- "id": "UndeleteProjectRequest", |
- "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", |
- "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." |
- }, |
- "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" |
- }, |
- "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" |
- }, |
- "displayName": { |
- "description": "A friendly string to be used to refer to the Organization in the UI.\nAssigned by the server, set to the firm name of the Google For Work\ncustomer that owns this organization.\n@OutputOnly", |
+ }, |
+ "type": "object" |
+ }, |
+ "Binding": { |
+ "description": "Associates `members` with a `role`.", |
+ "id": "Binding", |
+ "properties": { |
+ "role": { |
+ "description": "Role that is assigned to `members`.\nFor example, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired", |
"type": "string" |
}, |
- "creationTime": { |
- "description": "Timestamp when the Organization was created. Assigned by the server.\n@OutputOnly", |
- "format": "google-datetime", |
- "type": "string" |
+ "members": { |
+ "description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` or `joe@example.com`.\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "type": "array" |
} |
}, |
"type": "object" |
}, |
+ "UndeleteProjectRequest": { |
+ "description": "The request sent to the UndeleteProject\nmethod.", |
+ "id": "UndeleteProjectRequest", |
+ "properties": {}, |
+ "type": "object" |
+ }, |
"ProjectCreationStatus": { |
"description": "A status object which is used as the `metadata` field for the Operation\nreturned by CreateProject. It provides insight for when significant phases of\nProject creation have completed.", |
"id": "ProjectCreationStatus", |
@@ -665,34 +906,20 @@ |
}, |
"type": "object" |
}, |
- "TestIamPermissionsResponse": { |
- "description": "Response message for `TestIamPermissions` method.", |
- "id": "TestIamPermissionsResponse", |
- "properties": { |
- "permissions": { |
- "description": "A subset of `TestPermissionsRequest.permissions` that the caller is\nallowed.", |
- "items": { |
- "type": "string" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
"GetIamPolicyRequest": { |
"description": "Request message for `GetIamPolicy` method.", |
"id": "GetIamPolicyRequest", |
"properties": {}, |
"type": "object" |
}, |
- "GetAncestryResponse": { |
- "description": "Response from the GetAncestry method.", |
- "id": "GetAncestryResponse", |
+ "TestIamPermissionsResponse": { |
+ "description": "Response message for `TestIamPermissions` method.", |
+ "id": "TestIamPermissionsResponse", |
"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.", |
+ "permissions": { |
+ "description": "A subset of `TestPermissionsRequest.permissions` that the caller is\nallowed.", |
"items": { |
- "$ref": "Ancestor" |
+ "type": "string" |
}, |
"type": "array" |
} |
@@ -714,50 +941,44 @@ |
"description": "A page of the response received from the\nListProjects\nmethod.\n\nA paginated response where more pages are available has\n`next_page_token` set. This token can be used in a subsequent request to\nretrieve the next request page.", |
"id": "ListProjectsResponse", |
"properties": { |
+ "nextPageToken": { |
+ "description": "Pagination token.\n\nIf the result set is too large to fit in a single response, this token\nis returned. It encodes the position of the current result cursor.\nFeeding this value into a new list request with the `page_token` parameter\ngives the next page of the results.\n\nWhen `next_page_token` is not filled in, there is no next page and\nthe list returned is the last page in the result set.\n\nPagination tokens have a limited lifetime.", |
+ "type": "string" |
+ }, |
"projects": { |
"description": "The list of Projects that matched the list filter. This list can\nbe paginated.", |
"items": { |
"$ref": "Project" |
}, |
"type": "array" |
- }, |
- "nextPageToken": { |
- "description": "Pagination token.\n\nIf the result set is too large to fit in a single response, this token\nis returned. It encodes the position of the current result cursor.\nFeeding this value into a new list request with the `page_token` parameter\ngives the next page of the results.\n\nWhen `next_page_token` is not filled in, there is no next page and\nthe list returned is the last page in the result set.\n\nPagination tokens have a limited lifetime.", |
- "type": "string" |
} |
}, |
"type": "object" |
}, |
- "SearchOrganizationsRequest": { |
- "description": "The request sent to the `SearchOrganizations` method.", |
- "id": "SearchOrganizationsRequest", |
+ "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": { |
- "pageSize": { |
- "description": "The maximum number of Organizations to return in the response.\nThis field is optional.", |
- "format": "int32", |
- "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\n`owner.directory_customer_id` equal to `123456789`.|\n|domain:google.com|Organizations corresponding to the domain `google.com`.|\n\nThis field is optional.", |
+ "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" |
}, |
- "pageToken": { |
- "description": "A pagination token returned from a previous call to `SearchOrganizations`\nthat indicates from where listing should continue.\nThis field is optional.", |
+ "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\nDeleteProject)\nor by the system (Google Cloud Platform).\nThis can generally be reversed by invoking UndeleteProject.", |
+ "This lifecycle state is no longer used and not returned by the API." |
+ ], |
"type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "GetAncestryRequest": { |
- "description": "The request sent to the\nGetAncestry\nmethod.", |
- "id": "GetAncestryRequest", |
- "properties": {}, |
- "type": "object" |
- }, |
- "Project": { |
- "description": "A Project is a high-level Google Cloud Platform entity. It is a\ncontainer for ACLs, APIs, AppEngine Apps, VMs, and other\nGoogle Cloud Platform resources.", |
- "id": "Project", |
- "properties": { |
+ }, |
"projectNumber": { |
"description": "The number uniquely identifying the project.\n\nExample: <code>415104041262</code>\nRead-only.", |
"format": "int64", |
@@ -767,6 +988,11 @@ |
"$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." |
}, |
+ "createTime": { |
+ "description": "Creation time.\n\nRead-only.", |
+ "format": "google-datetime", |
+ "type": "string" |
+ }, |
"labels": { |
"additionalProperties": { |
"type": "string" |
@@ -774,34 +1000,9 @@ |
"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\nDeleteProject)\nor by the system (Google Cloud Platform).\nThis can generally be reversed by invoking UndeleteProject.", |
- "This lifecycle state is no longer used and not returned by the API." |
- ], |
- "type": "string" |
} |
}, |
"type": "object" |
@@ -824,20 +1025,6 @@ |
}, |
"type": "object" |
}, |
- "TestIamPermissionsRequest": { |
- "description": "Request message for `TestIamPermissions` method.", |
- "id": "TestIamPermissionsRequest", |
- "properties": { |
- "permissions": { |
- "description": "The set of permissions to check for the `resource`. Permissions with\nwildcards (such as '*' or 'storage.*') are not allowed. For more\ninformation see\n[IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", |
- "items": { |
- "type": "string" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
"FolderOperationError": { |
"description": "A classification of the Folder Operation error.", |
"id": "FolderOperationError", |
@@ -871,122 +1058,67 @@ |
}, |
"type": "object" |
}, |
- "FolderOperation": { |
- "description": "Metadata describing a long running folder operation", |
- "id": "FolderOperation", |
+ "Lien": { |
+ "description": "A Lien represents an encumbrance on the actions that can be performed on a\nresource.", |
+ "id": "Lien", |
"properties": { |
- "displayName": { |
- "description": "The display name of the folder.", |
+ "parent": { |
+ "description": "A reference to the resource this Lien is attached to. The server will\nvalidate the parent against those for which Liens are supported.\n\nExample: `projects/1234`", |
"type": "string" |
}, |
- "sourceParent": { |
- "description": "The resource name of the folder's parent.\nOnly applicable when the operation_type is MOVE.", |
+ "createTime": { |
+ "description": "The creation time of this Lien.", |
+ "format": "google-datetime", |
"type": "string" |
}, |
- "destinationParent": { |
- "description": "The resource name of the folder or organization we are either creating\nthe folder under or moving the folder to.", |
+ "name": { |
+ "description": "A system-generated unique identifier for this Lien.\n\nExample: `liens/1234abcd`", |
"type": "string" |
}, |
- "operationType": { |
- "description": "The type of this operation.", |
- "enum": [ |
- "OPERATION_TYPE_UNSPECIFIED", |
- "CREATE", |
- "MOVE" |
- ], |
- "enumDescriptions": [ |
- "Operation type not specified.", |
- "A create folder operation.", |
- "A move folder operation." |
- ], |
- "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", |
+ "reason": { |
+ "description": "Concise user-visible strings indicating why an action cannot be performed\non a resource. Maximum lenth of 200 characters.\n\nExample: 'Holds production API key'", |
"type": "string" |
}, |
- "version": { |
- "description": "Version of the `Policy`. The default version is 0.", |
- "format": "int32", |
- "type": "integer" |
+ "origin": { |
+ "description": "A stable, user-visible/meaningful string identifying the origin of the\nLien, intended to be inspected programmatically. Maximum length of 200\ncharacters.\n\nExample: 'compute.googleapis.com'", |
+ "type": "string" |
}, |
- "bindings": { |
- "description": "Associates a list of `members` to a `role`.\nMultiple `bindings` must not be specified for the same `role`.\n`bindings` with no members will result in an error.", |
+ "restrictions": { |
+ "description": "The types of operations which should be blocked as a result of this Lien.\nEach value should correspond to an IAM permission. The server will\nvalidate the permissions against those for which Liens are supported.\n\nAn empty list is meaningless and will be rejected.\n\nExample: ['resourcemanager.projects.delete']", |
"items": { |
- "$ref": "Binding" |
+ "type": "string" |
}, |
"type": "array" |
} |
}, |
"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 AppEngine app,\na Compute Engine instance, a Cloud SQL database, and so on.", |
- "id": "ResourceId", |
+ "Ancestor": { |
+ "description": "Identifying information for a single ancestor of a project.", |
+ "id": "Ancestor", |
"properties": { |
- "type": { |
- "description": "Required field representing the resource type this id is for.\nAt present, the only valid type is \"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" |
+ "resourceId": { |
+ "$ref": "ResourceId", |
+ "description": "Resource id of the ancestor." |
} |
}, |
"type": "object" |
}, |
- "Operation": { |
- "description": "This resource represents a long-running operation that is the result of a\nnetwork API call.", |
- "id": "Operation", |
+ "SetIamPolicyRequest": { |
+ "description": "Request message for `SetIamPolicy` method.", |
+ "id": "SetIamPolicyRequest", |
"properties": { |
- "error": { |
- "$ref": "Status", |
- "description": "The error result of the operation in case of failure or cancellation." |
- }, |
- "metadata": { |
- "additionalProperties": { |
- "description": "Properties of the object. Contains field @type with type URL.", |
- "type": "any" |
- }, |
- "description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.", |
- "type": "object" |
- }, |
- "done": { |
- "description": "If the value is `false`, it means the operation is still in progress.\nIf true, the operation is completed, and either `error` or `response` is\navailable.", |
- "type": "boolean" |
- }, |
- "response": { |
- "additionalProperties": { |
- "description": "Properties of the object. Contains field @type with type URL.", |
- "type": "any" |
- }, |
- "description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.", |
- "type": "object" |
- }, |
- "name": { |
- "description": "The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should have the format of `operations/some/unique/name`.", |
- "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." |
} |
}, |
"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." |
- } |
- }, |
+ "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" |
} |
}, |