restic/vendor/google.golang.org/api/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json

1021 lines
49 KiB
JSON
Raw Normal View History

2017-08-05 18:17:15 +00:00
{
"id": "cloudresourcemanager:v1beta1",
"documentationLink": "https://cloud.google.com/resource-manager",
"revision": "20170927",
2017-09-21 15:48:45 +00:00
"discoveryVersion": "v1",
"schemas": {
"Binding": {
"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\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"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"role": {
"description": "Role that is assigned to `members`.\nFor example, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired",
"type": "string"
2017-08-05 18:17:15 +00:00
}
2017-09-21 15:48:45 +00:00
},
"id": "Binding",
"description": "Associates `members` with a `role`.",
"type": "object"
2017-09-21 15:48:45 +00:00
},
"Empty": {
"properties": {},
"id": "Empty",
2017-09-21 15:48:45 +00:00
"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 `{}`.",
"type": "object"
},
"UndeleteProjectRequest": {
2017-09-21 15:48:45 +00:00
"properties": {},
"id": "UndeleteProjectRequest",
"description": "The request sent to the UndeleteProject\nmethod.",
"type": "object"
2017-09-21 15:48:45 +00:00
},
"Organization": {
"description": "The root node in the resource hierarchy to which a particular entity's\n(e.g., company) resources belong.",
"type": "object",
"properties": {
"lifecycleState": {
"enum": [
"LIFECYCLE_STATE_UNSPECIFIED",
"ACTIVE",
"DELETE_REQUESTED"
2017-09-13 12:09:48 +00:00
],
2017-09-21 15:48:45 +00:00
"description": "The organization's current lifecycle state. Assigned by the server.\n@OutputOnly",
"type": "string",
"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."
]
2017-09-13 12:09:48 +00:00
},
2017-09-21 15:48:45 +00:00
"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"
2017-09-13 12:09:48 +00:00
},
2017-09-21 15:48:45 +00:00
"creationTime": {
"format": "google-datetime",
"description": "Timestamp when the Organization was created. Assigned by the server.\n@OutputOnly",
"type": "string"
2017-09-13 12:09:48 +00:00
},
2017-09-21 15:48:45 +00:00
"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."
2017-09-21 15:48:45 +00:00
},
"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"
}
},
"id": "Organization"
},
"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.",
"type": "object",
"properties": {
"ready": {
"description": "True if the project creation process is complete.",
"type": "boolean"
},
"gettable": {
"description": "True if the project can be retrieved using GetProject. No other operations\non the project are guaranteed to work until the project creation is\ncomplete.",
"type": "boolean"
},
"createTime": {
"format": "google-datetime",
"description": "Creation time of the project creation workflow.",
"type": "string"
}
},
"id": "ProjectCreationStatus"
},
"GetIamPolicyRequest": {
"properties": {},
"id": "GetIamPolicyRequest",
"description": "Request message for `GetIamPolicy` method.",
"type": "object"
2017-09-21 15:48:45 +00:00
},
"TestIamPermissionsResponse": {
"properties": {
"permissions": {
"description": "A subset of `TestPermissionsRequest.permissions` that the caller is\nallowed.",
"items": {
"type": "string"
2017-09-13 12:09:48 +00:00
},
2017-09-21 15:48:45 +00:00
"type": "array"
}
},
"id": "TestIamPermissionsResponse",
"description": "Response message for `TestIamPermissions` method.",
"type": "object"
},
"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"
}
},
"id": "GetAncestryResponse",
"description": "Response from the GetAncestry method.",
"type": "object"
2017-09-21 15:48:45 +00:00
},
"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.",
"type": "object",
"properties": {
"directoryCustomerId": {
"description": "The Google for Work customer id used in the Directory API.",
"type": "string"
}
},
"id": "OrganizationOwner"
},
"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.",
2017-09-21 15:48:45 +00:00
"type": "object",
"properties": {
"exemptedMembers": {
"description": "Specifies the identities that do not cause logging for this type of\npermission.\nFollows the same format of Binding.members.",
2017-09-21 15:48:45 +00:00
"items": {
"type": "string"
2017-09-13 12:09:48 +00:00
},
2017-09-21 15:48:45 +00:00
"type": "array"
},
2017-09-21 15:48:45 +00:00
"logType": {
"enumDescriptions": [
"Default case. Should never be this.",
"Admin reads. Example: CloudIAM getIamPolicy",
"Data writes. Example: CloudSQL Users create",
"Data reads. Example: CloudSQL Users list"
2017-09-13 12:09:48 +00:00
],
2017-09-21 15:48:45 +00:00
"enum": [
"LOG_TYPE_UNSPECIFIED",
"ADMIN_READ",
"DATA_WRITE",
"DATA_READ"
],
"description": "The log type that this config enables.",
"type": "string"
2017-09-21 15:48:45 +00:00
}
},
"id": "AuditLogConfig"
2017-09-21 15:48:45 +00:00
},
"ListProjectsResponse": {
"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.",
"type": "object",
2017-09-21 15:48:45 +00:00
"properties": {
"projects": {
"description": "The list of Projects that matched the list filter. This list can\nbe paginated.",
"items": {
"$ref": "Project"
2017-09-13 12:09:48 +00:00
},
2017-09-21 15:48:45 +00:00
"type": "array"
2017-09-13 12:09:48 +00:00
},
2017-09-21 15:48:45 +00:00
"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"
}
},
"id": "ListProjectsResponse"
2017-09-21 15:48:45 +00:00
},
"GetAncestryRequest": {
"properties": {},
"id": "GetAncestryRequest",
"description": "The request sent to the\nGetAncestry\nmethod.",
"type": "object"
2017-09-21 15:48:45 +00:00
},
"Project": {
"properties": {
"lifecycleState": {
"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."
2017-09-13 12:09:48 +00:00
],
2017-09-21 15:48:45 +00:00
"enum": [
"LIFECYCLE_STATE_UNSPECIFIED",
"ACTIVE",
"DELETE_REQUESTED",
"DELETE_IN_PROGRESS"
],
"description": "The Project lifecycle state.\n\nRead-only.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"projectNumber": {
"format": "int64",
"description": "The number uniquely identifying the project.\n\nExample: \u003ccode\u003e415104041262\u003c/code\u003e\nRead-only.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"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."
},
"createTime": {
"format": "google-datetime",
"description": "Creation time.\n\nRead-only.",
"type": "string"
2017-09-13 12:09:48 +00:00
},
2017-09-21 15:48:45 +00:00
"labels": {
"additionalProperties": {
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"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: \u003ccode\u003e\"environment\" : \"dev\"\u003c/code\u003e\nRead-write.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"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: \u003ccode\u003eMy Project\u003c/code\u003e\nRead-write.",
"type": "string"
2017-09-21 15:48:45 +00:00
},
"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: \u003ccode\u003etokyo-rain-123\u003c/code\u003e\nRead-only after creation.",
"type": "string"
2017-09-13 12:09:48 +00:00
}
},
"id": "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.",
"type": "object"
2017-09-13 12:09:48 +00:00
},
2017-09-21 15:48:45 +00:00
"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"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"type": "array"
}
},
"id": "TestIamPermissionsRequest",
"description": "Request message for `TestIamPermissions` method.",
"type": "object"
},
"FolderOperation": {
"description": "Metadata describing a long running folder operation",
"type": "object",
"properties": {
"operationType": {
"enumDescriptions": [
"Operation type not specified.",
"A create folder operation.",
"A move folder operation."
],
"enum": [
"OPERATION_TYPE_UNSPECIFIED",
"CREATE",
"MOVE"
],
"description": "The type of this operation.",
"type": "string"
},
"sourceParent": {
"description": "The resource name of the folder's parent.\nOnly applicable when the operation_type is MOVE.",
"type": "string"
},
"displayName": {
"description": "The display name of the folder.",
"type": "string"
},
"destinationParent": {
"description": "The resource name of the folder or organization we are either creating\nthe folder under or moving the folder to.",
"type": "string"
}
},
"id": "FolderOperation"
},
"Policy": {
"properties": {
"etag": {
"format": "byte",
"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.",
"type": "string"
},
2017-09-21 15:48:45 +00:00
"version": {
"format": "int32",
"description": "Version of the `Policy`. The default version is 0.",
"type": "integer"
},
"auditConfigs": {
"description": "Specifies cloud audit logging configuration for this policy.",
"items": {
"$ref": "AuditConfig"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"type": "array"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"bindings": {
"description": "Associates a list of `members` to a `role`.\n`bindings` with no members will result in an error.",
"items": {
"$ref": "Binding"
},
"type": "array"
}
},
"id": "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).",
"type": "object"
},
"FolderOperationError": {
"properties": {
"errorMessageId": {
"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."
],
"enum": [
"ERROR_TYPE_UNSPECIFIED",
"ACTIVE_FOLDER_HEIGHT_VIOLATION",
"MAX_CHILD_FOLDERS_VIOLATION",
"FOLDER_NAME_UNIQUENESS_VIOLATION",
"RESOURCE_DELETED_VIOLATION",
"PARENT_DELETED_VIOLATION",
"CYCLE_INTRODUCED_VIOLATION",
"FOLDER_BEING_MOVED_VIOLATION",
"FOLDER_TO_DELETE_NON_EMPTY_VIOLATION",
"DELETED_FOLDER_HEIGHT_VIOLATION"
],
"description": "The type of operation error experienced.",
2017-09-21 15:48:45 +00:00
"type": "string"
}
},
"id": "FolderOperationError",
"description": "A classification of the Folder Operation error.",
"type": "object"
2017-09-21 15:48:45 +00:00
},
"ResourceId": {
"properties": {
"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\", \"folder\", and \"organization\".",
"type": "string"
2017-09-21 15:48:45 +00:00
}
},
"id": "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.",
"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 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.",
"type": "object",
"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"
},
"auditLogConfigs": {
"description": "The configuration for logging of each type of permission.\nNext ID: 4",
"items": {
"$ref": "AuditLogConfig"
},
"type": "array"
}
},
"id": "AuditConfig"
},
"Ancestor": {
"properties": {
"resourceId": {
"description": "Resource id of the ancestor.",
"$ref": "ResourceId"
}
},
"id": "Ancestor",
2017-09-21 15:48:45 +00:00
"description": "Identifying information for a single ancestor of a project.",
"type": "object"
},
"SetIamPolicyRequest": {
"description": "Request message for `SetIamPolicy` method.",
2017-09-21 15:48:45 +00:00
"type": "object",
"properties": {
"updateMask": {
"format": "google-fieldmask",
"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.",
"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."
2017-09-21 15:48:45 +00:00
}
},
"id": "SetIamPolicyRequest"
2017-09-21 15:48:45 +00:00
},
"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"
}
},
"id": "ListOrganizationsResponse",
"description": "The response returned from the `ListOrganizations` method.",
"type": "object"
2017-09-21 15:48:45 +00:00
}
},
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"protocol": "rest",
"canonicalName": "Cloud Resource Manager",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform.read-only": {
"description": "View your data across Google Cloud Platform services"
},
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
2017-09-21 15:48:45 +00:00
}
}
}
},
"rootUrl": "https://cloudresourcemanager.googleapis.com/",
"ownerDomain": "google.com",
"name": "cloudresourcemanager",
"batchPath": "batch",
"fullyEncodeReservedExpansion": true,
"title": "Google Cloud Resource Manager API",
"ownerName": "Google",
"resources": {
"projects": {
"methods": {
"setIamPolicy": {
"id": "cloudresourcemanager.projects.setIamPolicy",
"path": "v1beta1/projects/{resource}: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+ If the project is not part of an organization, there must be at least\none owner who has accepted the Terms of Service (ToS) agreement in the\npolicy. Calling `setIamPolicy()` to remove the last ToS-accepted owner\nfrom the policy will fail. This restriction also applies to legacy\nprojects that no longer have owners who have accepted the ToS. Edits to\nIAM policies will be rejected until the lack of a ToS-accepting owner is\nrectified.\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.",
2017-08-05 18:17:15 +00:00
"request": {
"$ref": "SetIamPolicyRequest"
2017-08-05 18:17:15 +00:00
},
"response": {
2017-09-13 12:09:48 +00:00
"$ref": "Policy"
2017-08-05 18:17:15 +00:00
},
"parameterOrder": [
2017-09-13 12:09:48 +00:00
"resource"
2017-08-05 18:17:15 +00:00
],
2017-09-13 12:09:48 +00:00
"httpMethod": "POST",
2017-08-05 18:17:15 +00:00
"parameters": {
2017-09-13 12:09:48 +00:00
"resource": {
"location": "path",
"description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
2017-08-05 18:17:15 +00:00
"type": "string",
"required": true
2017-08-05 18:17:15 +00:00
}
},
2017-09-21 15:48:45 +00:00
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
2017-09-21 15:48:45 +00:00
],
"flatPath": "v1beta1/projects/{resource}:setIamPolicy"
2017-09-13 12:09:48 +00:00
},
"create": {
"response": {
"$ref": "Project"
2017-08-05 18:17:15 +00:00
},
"parameterOrder": [],
2017-09-21 15:48:45 +00:00
"httpMethod": "POST",
"parameters": {
"useLegacyStack": {
"description": "A safety hatch to opt out of the new reliable project creation process.",
"type": "boolean",
"location": "query"
}
2017-09-21 15:48:45 +00:00
},
2017-08-05 18:17:15 +00:00
"scopes": [
2017-09-21 15:48:45 +00:00
"https://www.googleapis.com/auth/cloud-platform"
2017-08-05 18:17:15 +00:00
],
"flatPath": "v1beta1/projects",
"id": "cloudresourcemanager.projects.create",
"path": "v1beta1/projects",
"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.",
"request": {
"$ref": "Project"
}
},
"getIamPolicy": {
"description": "Returns the IAM access control policy for the specified Project.\nPermission is denied if the policy or the resource does not exist.",
"request": {
"$ref": "GetIamPolicyRequest"
},
"response": {
"$ref": "Policy"
},
"parameterOrder": [
"resource"
],
"httpMethod": "POST",
2017-08-05 18:17:15 +00:00
"parameters": {
"resource": {
2017-09-13 12:09:48 +00:00
"location": "path",
"description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
2017-09-21 15:48:45 +00:00
"type": "string",
"required": true
2017-08-05 18:17:15 +00:00
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"
],
"flatPath": "v1beta1/projects/{resource}:getIamPolicy",
"id": "cloudresourcemanager.projects.getIamPolicy",
"path": "v1beta1/projects/{resource}:getIamPolicy"
2017-08-05 18:17:15 +00:00
},
"get": {
2017-09-21 15:48:45 +00:00
"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.",
2017-08-05 18:17:15 +00:00
"response": {
2017-09-21 15:48:45 +00:00
"$ref": "Project"
2017-08-05 18:17:15 +00:00
},
"parameterOrder": [
2017-09-21 15:48:45 +00:00
"projectId"
2017-08-05 18:17:15 +00:00
],
2017-09-13 12:09:48 +00:00
"httpMethod": "GET",
"parameters": {
"projectId": {
"location": "path",
"description": "The Project ID (for example, `my-project-123`).\n\nRequired.",
"type": "string",
"required": true
}
},
2017-09-21 15:48:45 +00:00
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"
],
"flatPath": "v1beta1/projects/{projectId}",
"id": "cloudresourcemanager.projects.get",
"path": "v1beta1/projects/{projectId}"
},
"undelete": {
"path": "v1beta1/projects/{projectId}:undelete",
"id": "cloudresourcemanager.projects.undelete",
"request": {
"$ref": "UndeleteProjectRequest"
},
"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",
"parameterOrder": [
"projectId"
],
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
2017-08-05 18:17:15 +00:00
"parameters": {
2017-09-21 15:48:45 +00:00
"projectId": {
"description": "The project ID (for example, `foo-bar-123`).\n\nRequired.",
2017-08-05 18:17:15 +00:00
"type": "string",
"required": true,
"location": "path"
2017-08-05 18:17:15 +00:00
}
},
"flatPath": "v1beta1/projects/{projectId}:undelete"
2017-09-21 15:48:45 +00:00
},
"getAncestry": {
"id": "cloudresourcemanager.projects.getAncestry",
"path": "v1beta1/projects/{projectId}: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.",
2017-09-21 15:48:45 +00:00
"request": {
"$ref": "GetAncestryRequest"
},
"response": {
"$ref": "GetAncestryResponse"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"parameterOrder": [
"projectId"
],
"httpMethod": "POST",
"parameters": {
"projectId": {
"location": "path",
"description": "The Project ID (for example, `my-project-123`).\n\nRequired.",
"type": "string",
"required": true
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"
],
"flatPath": "v1beta1/projects/{projectId}:getAncestry"
2017-09-13 12:09:48 +00:00
},
"update": {
2017-08-05 18:17:15 +00:00
"response": {
2017-09-21 15:48:45 +00:00
"$ref": "Project"
2017-08-05 18:17:15 +00:00
},
"parameterOrder": [
"projectId"
2017-08-05 18:17:15 +00:00
],
"httpMethod": "PUT",
2017-08-05 18:17:15 +00:00
"parameters": {
2017-09-21 15:48:45 +00:00
"projectId": {
2017-09-13 12:09:48 +00:00
"location": "path",
2017-09-21 15:48:45 +00:00
"description": "The project ID (for example, `my-project-123`).\n\nRequired.",
"type": "string",
"required": true
2017-08-05 18:17:15 +00:00
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
2017-09-21 15:48:45 +00:00
"flatPath": "v1beta1/projects/{projectId}",
"id": "cloudresourcemanager.projects.update",
"path": "v1beta1/projects/{projectId}",
"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.",
2017-08-05 18:17:15 +00:00
"request": {
2017-09-21 15:48:45 +00:00
"$ref": "Project"
}
2017-09-13 12:09:48 +00:00
},
"testIamPermissions": {
2017-09-21 15:48:45 +00:00
"id": "cloudresourcemanager.projects.testIamPermissions",
"path": "v1beta1/projects/{resource}:testIamPermissions",
2017-09-13 12:09:48 +00:00
"request": {
"$ref": "TestIamPermissionsRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"description": "Returns permissions that a caller has on the specified Project.",
2017-09-13 12:09:48 +00:00
"response": {
"$ref": "TestIamPermissionsResponse"
},
"parameterOrder": [
"resource"
],
"httpMethod": "POST",
2017-09-21 15:48:45 +00:00
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"
],
2017-08-05 18:17:15 +00:00
"parameters": {
2017-09-13 12:09:48 +00:00
"resource": {
2017-09-21 15:48:45 +00:00
"location": "path",
2017-09-13 12:09:48 +00:00
"description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
2017-08-05 18:17:15 +00:00
"type": "string",
2017-09-21 15:48:45 +00:00
"required": true
2017-08-05 18:17:15 +00:00
}
},
2017-09-21 15:48:45 +00:00
"flatPath": "v1beta1/projects/{resource}:testIamPermissions"
2017-09-13 12:09:48 +00:00
},
2017-09-21 15:48:45 +00:00
"delete": {
"httpMethod": "DELETE",
2017-09-21 15:48:45 +00:00
"response": {
"$ref": "Empty"
2017-09-13 12:09:48 +00:00
},
2017-09-21 15:48:45 +00:00
"parameterOrder": [
"projectId"
2017-09-13 12:09:48 +00:00
],
2017-09-21 15:48:45 +00:00
"parameters": {
"projectId": {
"location": "path",
"description": "The Project ID (for example, `foo-bar-123`).\n\nRequired.",
"type": "string",
"required": true
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
2017-09-13 12:09:48 +00:00
],
2017-09-21 15:48:45 +00:00
"flatPath": "v1beta1/projects/{projectId}",
"path": "v1beta1/projects/{projectId}",
"id": "cloudresourcemanager.projects.delete",
2017-09-21 15:48:45 +00:00
"description": "Marks the Project identified by the specified\n`project_id` (for example, `my-project-123`) for deletion.\nThis method will only affect the Project if the following criteria are met:\n\n+ The Project does not have a billing account associated with it.\n+ The Project has a lifecycle state of\nACTIVE.\n\nThis method changes the Project's lifecycle state from\nACTIVE\nto DELETE_REQUESTED.\nThe deletion starts at an unspecified time, at which point the project is\nno longer accessible.\n\nUntil the deletion completes, you can check the lifecycle state\nchecked by retrieving the Project with GetProject,\nand the Project remains visible to ListProjects.\nHowever, you cannot update the project.\n\nAfter the deletion completes, the Project is not retrievable by\nthe GetProject and\nListProjects methods.\n\nThe caller must have modify permissions for this Project."
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"list": {
"id": "cloudresourcemanager.projects.list",
"path": "v1beta1/projects",
"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.",
2017-09-21 15:48:45 +00:00
"parameterOrder": [],
"httpMethod": "GET",
2017-09-21 15:48:45 +00:00
"response": {
"$ref": "ListProjectsResponse"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"
],
"parameters": {
"filter": {
"location": "query",
"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+ \u003ccode\u003elabels.\u003cem\u003ekey\u003c/em\u003e\u003c/code\u003e 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 value `red` and its label `size` has the value `big`.\n\nIf you specify a filter that has both `parent.type` and `parent.id`, then\nthe `resourcemanager.projects.list` permission is checked on the parent.\nIf the user has this permission, all projects under the parent will be\nreturned after remaining filters have been applied. If the user lacks this\npermission, then all projects for which the user has the\n`resourcemanager.projects.get` permission will be returned after remaining\nfilters have been applied. If no filter is specified, the call will return\nprojects for which the user has `resourcemanager.projects.get` permissions.\n\nOptional.",
"type": "string"
},
"pageToken": {
"location": "query",
"description": "A pagination token returned from a previous call to ListProjects\nthat indicates from where listing should continue.\n\nOptional.",
"type": "string"
},
"pageSize": {
"format": "int32",
"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.",
"type": "integer",
"location": "query"
}
2017-08-05 18:17:15 +00:00
},
"flatPath": "v1beta1/projects"
}
}
},
"organizations": {
"methods": {
2017-09-21 15:48:45 +00:00
"setIamPolicy": {
"id": "cloudresourcemanager.organizations.setIamPolicy",
"path": "v1beta1/{+resource}:setIamPolicy",
2017-09-21 15:48:45 +00:00
"request": {
"$ref": "SetIamPolicyRequest"
},
"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\".",
2017-09-21 15:48:45 +00:00
"response": {
"$ref": "Policy"
},
"parameterOrder": [
"resource"
2017-08-05 18:17:15 +00:00
],
2017-09-21 15:48:45 +00:00
"httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
2017-08-05 18:17:15 +00:00
],
2017-09-21 15:48:45 +00:00
"parameters": {
"resource": {
"pattern": "^organizations/[^/]+$",
"location": "path",
2017-09-21 15:48:45 +00:00
"description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
"type": "string",
"required": true
2017-09-21 15:48:45 +00:00
}
2017-08-05 18:17:15 +00:00
},
"flatPath": "v1beta1/organizations/{organizationsId}:setIamPolicy"
2017-08-05 18:17:15 +00:00
},
"getIamPolicy": {
2017-09-21 15:48:45 +00:00
"httpMethod": "POST",
"parameterOrder": [
"resource"
2017-08-05 18:17:15 +00:00
],
"response": {
"$ref": "Policy"
},
2017-09-21 15:48:45 +00:00
"parameters": {
"resource": {
"description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
2017-09-21 15:48:45 +00:00
"type": "string",
"required": true,
"pattern": "^organizations/[^/]+$",
"location": "path"
2017-09-21 15:48:45 +00:00
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"
],
"flatPath": "v1beta1/organizations/{organizationsId}:getIamPolicy",
"path": "v1beta1/{+resource}:getIamPolicy",
"id": "cloudresourcemanager.organizations.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\".",
"request": {
"$ref": "GetIamPolicyRequest"
}
2017-09-13 12:09:48 +00:00
},
"get": {
"path": "v1beta1/{+name}",
"id": "cloudresourcemanager.organizations.get",
"description": "Fetches an Organization resource identified by the specified resource name.",
2017-09-21 15:48:45 +00:00
"httpMethod": "GET",
"response": {
"$ref": "Organization"
2017-09-21 15:48:45 +00:00
},
"parameterOrder": [
"name"
],
2017-09-21 15:48:45 +00:00
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"
],
"parameters": {
"name": {
"description": "The resource name of the Organization to fetch, e.g. \"organizations/1234\".",
2017-09-21 15:48:45 +00:00
"type": "string",
"required": true,
"pattern": "^organizations/[^/]+$",
"location": "path"
2017-09-21 15:48:45 +00:00
},
"organizationId": {
"location": "query",
"description": "The id of the Organization resource to fetch.\nThis field is deprecated and will be removed in v1. Use name instead.",
"type": "string"
2017-09-21 15:48:45 +00:00
}
},
"flatPath": "v1beta1/organizations/{organizationsId}"
2017-09-13 12:09:48 +00:00
},
"update": {
"httpMethod": "PUT",
2017-09-21 15:48:45 +00:00
"parameterOrder": [
"name"
2017-09-21 15:48:45 +00:00
],
"response": {
"$ref": "Organization"
},
2017-09-21 15:48:45 +00:00
"parameters": {
"name": {
2017-09-21 15:48:45 +00:00
"pattern": "^organizations/[^/]+$",
"location": "path",
"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",
"required": true
2017-09-21 15:48:45 +00:00
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"flatPath": "v1beta1/organizations/{organizationsId}",
"path": "v1beta1/{+name}",
"id": "cloudresourcemanager.organizations.update",
"description": "Updates an Organization resource identified by the specified resource name.",
2017-09-21 15:48:45 +00:00
"request": {
"$ref": "Organization"
}
},
"testIamPermissions": {
2017-09-21 15:48:45 +00:00
"response": {
"$ref": "TestIamPermissionsResponse"
2017-09-21 15:48:45 +00:00
},
"parameterOrder": [
"resource"
],
"httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"
],
"parameters": {
"resource": {
"pattern": "^organizations/[^/]+$",
"location": "path",
"description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
2017-09-21 15:48:45 +00:00
"type": "string",
"required": true
}
},
"flatPath": "v1beta1/organizations/{organizationsId}:testIamPermissions",
"id": "cloudresourcemanager.organizations.testIamPermissions",
"path": "v1beta1/{+resource}:testIamPermissions",
"request": {
"$ref": "TestIamPermissionsRequest"
},
"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\"."
2017-09-13 12:09:48 +00:00
},
"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",
2017-09-21 15:48:45 +00:00
"response": {
"$ref": "ListOrganizationsResponse"
2017-09-21 15:48:45 +00:00
},
"parameterOrder": [],
2017-09-21 15:48:45 +00:00
"parameters": {
"pageToken": {
"location": "query",
"description": "A pagination token returned from a previous call to `ListOrganizations`\nthat indicates from where listing should continue.\nThis field is optional.",
"type": "string"
2017-09-21 15:48:45 +00:00
},
"pageSize": {
"format": "int32",
"description": "The maximum number of Organizations to return in the response.\nThis field is optional.",
"type": "integer",
"location": "query"
},
"filter": {
2017-09-21 15:48:45 +00:00
"location": "query",
"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.",
"type": "string"
2017-09-21 15:48:45 +00:00
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"
],
"flatPath": "v1beta1/organizations",
"path": "v1beta1/organizations",
"id": "cloudresourcemanager.organizations.list"
2017-09-13 12:09:48 +00:00
}
2017-09-21 15:48:45 +00:00
}
}
},
"parameters": {
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string",
"location": "query"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"prettyPrint": {
"location": "query",
2017-09-21 15:48:45 +00:00
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"fields": {
"location": "query",
"description": "Selector specifying which fields to include in a partial response.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string",
"location": "query"
},
"$.xgafv": {
"enum": [
"1",
"2"
],
"description": "V1 error format.",
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query"
},
"callback": {
"location": "query",
"description": "JSONP",
2017-09-21 15:48:45 +00:00
"type": "string"
},
"alt": {
"description": "Data format for response.",
"default": "json",
"enum": [
"json",
"media",
"proto"
],
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query"
},
"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.",
"type": "string",
"location": "query"
},
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
},
"quotaUser": {
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string",
"location": "query"
},
"pp": {
"description": "Pretty-print response.",
"default": "true",
"type": "boolean",
2017-09-21 15:48:45 +00:00
"location": "query"
},
"bearer_token": {
"location": "query",
2017-09-21 15:48:45 +00:00
"description": "OAuth bearer token.",
"type": "string"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
2017-09-21 15:48:45 +00:00
"version": "v1beta1",
"baseUrl": "https://cloudresourcemanager.googleapis.com/",
"servicePath": "",
"description": "The Google Cloud Resource Manager API provides methods for creating, reading, and updating project metadata.",
"kind": "discovery#restDescription",
"basePath": ""
2017-08-05 18:17:15 +00:00
}