OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
| 5 "https://www.googleapis.com/auth/cloud-platform.read-only": { |
| 6 "description": "View your data across Google Cloud Platform
services" |
| 7 }, |
5 "https://www.googleapis.com/auth/cloud-platform": { | 8 "https://www.googleapis.com/auth/cloud-platform": { |
6 "description": "View and manage your data across Google Clou
d Platform services" | 9 "description": "View and manage your data across Google Clou
d Platform services" |
7 }, | |
8 "https://www.googleapis.com/auth/cloud-platform.read-only": { | |
9 "description": "View your data across Google Cloud Platform
services" | |
10 } | 10 } |
11 } | 11 } |
12 } | 12 } |
13 }, | 13 }, |
14 "basePath": "", | 14 "basePath": "", |
15 "baseUrl": "https://cloudresourcemanager.googleapis.com/", | 15 "baseUrl": "https://cloudresourcemanager.googleapis.com/", |
16 "batchPath": "batch", | 16 "batchPath": "batch", |
17 "canonicalName": "Cloud Resource Manager", | 17 "canonicalName": "Cloud Resource Manager", |
18 "description": "The Google Cloud Resource Manager API provides methods for c
reating, reading, and updating project metadata.", | 18 "description": "The Google Cloud Resource Manager API provides methods for c
reating, reading, and updating project metadata.", |
19 "discoveryVersion": "v1", | 19 "discoveryVersion": "v1", |
20 "documentationLink": "https://cloud.google.com/resource-manager", | 20 "documentationLink": "https://cloud.google.com/resource-manager", |
21 "icons": { | 21 "icons": { |
22 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 22 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
23 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 23 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
24 }, | 24 }, |
25 "id": "cloudresourcemanager:v1beta1", | 25 "id": "cloudresourcemanager:v1beta1", |
26 "kind": "discovery#restDescription", | 26 "kind": "discovery#restDescription", |
27 "name": "cloudresourcemanager", | 27 "name": "cloudresourcemanager", |
28 "ownerDomain": "google.com", | 28 "ownerDomain": "google.com", |
29 "ownerName": "Google", | 29 "ownerName": "Google", |
30 "parameters": { | 30 "parameters": { |
31 "access_token": { | |
32 "description": "OAuth access token.", | |
33 "location": "query", | |
34 "type": "string" | |
35 }, | |
36 "prettyPrint": { | |
37 "default": "true", | |
38 "description": "Returns response with indentations and line breaks."
, | |
39 "location": "query", | |
40 "type": "boolean" | |
41 }, | |
42 "key": { | |
43 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", | |
44 "location": "query", | |
45 "type": "string" | |
46 }, | |
47 "quotaUser": { | |
48 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", | |
49 "location": "query", | |
50 "type": "string" | |
51 }, | |
52 "pp": { | |
53 "default": "true", | |
54 "description": "Pretty-print response.", | |
55 "location": "query", | |
56 "type": "boolean" | |
57 }, | |
58 "fields": { | 31 "fields": { |
59 "description": "Selector specifying which fields to include in a par
tial response.", | 32 "description": "Selector specifying which fields to include in a par
tial response.", |
60 "location": "query", | 33 "location": "query", |
61 "type": "string" | 34 "type": "string" |
62 }, | 35 }, |
| 36 "uploadType": { |
| 37 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 38 "location": "query", |
| 39 "type": "string" |
| 40 }, |
| 41 "$.xgafv": { |
| 42 "description": "V1 error format.", |
| 43 "enum": [ |
| 44 "1", |
| 45 "2" |
| 46 ], |
| 47 "enumDescriptions": [ |
| 48 "v1 error format", |
| 49 "v2 error format" |
| 50 ], |
| 51 "location": "query", |
| 52 "type": "string" |
| 53 }, |
| 54 "callback": { |
| 55 "description": "JSONP", |
| 56 "location": "query", |
| 57 "type": "string" |
| 58 }, |
63 "alt": { | 59 "alt": { |
64 "default": "json", | 60 "default": "json", |
65 "description": "Data format for response.", | 61 "description": "Data format for response.", |
66 "enum": [ | 62 "enum": [ |
67 "json", | 63 "json", |
68 "media", | 64 "media", |
69 "proto" | 65 "proto" |
70 ], | 66 ], |
71 "enumDescriptions": [ | 67 "enumDescriptions": [ |
72 "Responses with Content-Type of application/json", | 68 "Responses with Content-Type of application/json", |
73 "Media download with context-dependent Content-Type", | 69 "Media download with context-dependent Content-Type", |
74 "Responses with Content-Type of application/x-protobuf" | 70 "Responses with Content-Type of application/x-protobuf" |
75 ], | 71 ], |
76 "location": "query", | 72 "location": "query", |
77 "type": "string" | 73 "type": "string" |
78 }, | 74 }, |
79 "$.xgafv": { | 75 "access_token": { |
80 "description": "V1 error format.", | 76 "description": "OAuth access token.", |
81 "enum": [ | |
82 "1", | |
83 "2" | |
84 ], | |
85 "enumDescriptions": [ | |
86 "v1 error format", | |
87 "v2 error format" | |
88 ], | |
89 "location": "query", | 77 "location": "query", |
90 "type": "string" | 78 "type": "string" |
91 }, | 79 }, |
92 "callback": { | 80 "key": { |
93 "description": "JSONP", | 81 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
94 "location": "query", | 82 "location": "query", |
95 "type": "string" | 83 "type": "string" |
96 }, | 84 }, |
| 85 "quotaUser": { |
| 86 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
| 87 "location": "query", |
| 88 "type": "string" |
| 89 }, |
| 90 "pp": { |
| 91 "default": "true", |
| 92 "description": "Pretty-print response.", |
| 93 "location": "query", |
| 94 "type": "boolean" |
| 95 }, |
97 "oauth_token": { | 96 "oauth_token": { |
98 "description": "OAuth 2.0 token for the current user.", | 97 "description": "OAuth 2.0 token for the current user.", |
99 "location": "query", | 98 "location": "query", |
100 "type": "string" | 99 "type": "string" |
101 }, | 100 }, |
102 "uploadType": { | |
103 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | |
104 "location": "query", | |
105 "type": "string" | |
106 }, | |
107 "bearer_token": { | 101 "bearer_token": { |
108 "description": "OAuth bearer token.", | 102 "description": "OAuth bearer token.", |
109 "location": "query", | 103 "location": "query", |
110 "type": "string" | 104 "type": "string" |
111 }, | 105 }, |
112 "upload_protocol": { | 106 "upload_protocol": { |
113 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 107 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
114 "location": "query", | 108 "location": "query", |
115 "type": "string" | 109 "type": "string" |
| 110 }, |
| 111 "prettyPrint": { |
| 112 "default": "true", |
| 113 "description": "Returns response with indentations and line breaks."
, |
| 114 "location": "query", |
| 115 "type": "boolean" |
116 } | 116 } |
117 }, | 117 }, |
118 "protocol": "rest", | 118 "protocol": "rest", |
119 "resources": { | 119 "resources": { |
| 120 "organizations": { |
| 121 "methods": { |
| 122 "getIamPolicy": { |
| 123 "description": "Gets the access control policy for an Organi
zation resource. May be empty\nif no such policy or resource exists. The `resour
ce` field should be the\norganization's resource name, e.g. \"organizations/123\
".", |
| 124 "httpMethod": "POST", |
| 125 "id": "cloudresourcemanager.organizations.getIamPolicy", |
| 126 "parameterOrder": [ |
| 127 "resource" |
| 128 ], |
| 129 "parameters": { |
| 130 "resource": { |
| 131 "description": "REQUIRED: The resource for which the
policy is being requested.\n`resource` is usually specified as a path. For exam
ple, a Project\nresource is specified as `projects/{project}`.", |
| 132 "location": "path", |
| 133 "pattern": "^organizations/[^/]+$", |
| 134 "required": true, |
| 135 "type": "string" |
| 136 } |
| 137 }, |
| 138 "path": "v1beta1/{+resource}:getIamPolicy", |
| 139 "request": { |
| 140 "$ref": "GetIamPolicyRequest" |
| 141 }, |
| 142 "response": { |
| 143 "$ref": "Policy" |
| 144 }, |
| 145 "scopes": [ |
| 146 "https://www.googleapis.com/auth/cloud-platform", |
| 147 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" |
| 148 ] |
| 149 }, |
| 150 "get": { |
| 151 "description": "Fetches an Organization resource identified
by the specified resource name.", |
| 152 "httpMethod": "GET", |
| 153 "id": "cloudresourcemanager.organizations.get", |
| 154 "parameterOrder": [ |
| 155 "name" |
| 156 ], |
| 157 "parameters": { |
| 158 "organizationId": { |
| 159 "description": "The id of the Organization resource
to fetch.\nThis field is deprecated and will be removed in v1. Use name instead.
", |
| 160 "location": "query", |
| 161 "type": "string" |
| 162 }, |
| 163 "name": { |
| 164 "description": "The resource name of the Organizatio
n to fetch, e.g. \"organizations/1234\".", |
| 165 "location": "path", |
| 166 "pattern": "^organizations/[^/]+$", |
| 167 "required": true, |
| 168 "type": "string" |
| 169 } |
| 170 }, |
| 171 "path": "v1beta1/{+name}", |
| 172 "response": { |
| 173 "$ref": "Organization" |
| 174 }, |
| 175 "scopes": [ |
| 176 "https://www.googleapis.com/auth/cloud-platform", |
| 177 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" |
| 178 ] |
| 179 }, |
| 180 "update": { |
| 181 "description": "Updates an Organization resource identified
by the specified resource name.", |
| 182 "httpMethod": "PUT", |
| 183 "id": "cloudresourcemanager.organizations.update", |
| 184 "parameterOrder": [ |
| 185 "name" |
| 186 ], |
| 187 "parameters": { |
| 188 "name": { |
| 189 "description": "Output Only. The resource name of th
e organization. This is the\norganization's relative path in the API. Its format
is\n\"organizations/[organization_id]\". For example, \"organizations/1234\".", |
| 190 "location": "path", |
| 191 "pattern": "^organizations/[^/]+$", |
| 192 "required": true, |
| 193 "type": "string" |
| 194 } |
| 195 }, |
| 196 "path": "v1beta1/{+name}", |
| 197 "request": { |
| 198 "$ref": "Organization" |
| 199 }, |
| 200 "response": { |
| 201 "$ref": "Organization" |
| 202 }, |
| 203 "scopes": [ |
| 204 "https://www.googleapis.com/auth/cloud-platform" |
| 205 ] |
| 206 }, |
| 207 "testIamPermissions": { |
| 208 "description": "Returns permissions that a caller has on the
specified Organization.\nThe `resource` field should be the organization's reso
urce name,\ne.g. \"organizations/123\".", |
| 209 "httpMethod": "POST", |
| 210 "id": "cloudresourcemanager.organizations.testIamPermissions
", |
| 211 "parameterOrder": [ |
| 212 "resource" |
| 213 ], |
| 214 "parameters": { |
| 215 "resource": { |
| 216 "description": "REQUIRED: The resource for which the
policy detail is being requested.\n`resource` is usually specified as a path. F
or example, a Project\nresource is specified as `projects/{project}`.", |
| 217 "location": "path", |
| 218 "pattern": "^organizations/[^/]+$", |
| 219 "required": true, |
| 220 "type": "string" |
| 221 } |
| 222 }, |
| 223 "path": "v1beta1/{+resource}:testIamPermissions", |
| 224 "request": { |
| 225 "$ref": "TestIamPermissionsRequest" |
| 226 }, |
| 227 "response": { |
| 228 "$ref": "TestIamPermissionsResponse" |
| 229 }, |
| 230 "scopes": [ |
| 231 "https://www.googleapis.com/auth/cloud-platform", |
| 232 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" |
| 233 ] |
| 234 }, |
| 235 "list": { |
| 236 "description": "Lists Organization resources that are visibl
e to the user and satisfy\nthe specified filter. This method returns Organizatio
ns in an unspecified\norder. New Organizations do not necessarily appear at the
end of the list.", |
| 237 "httpMethod": "GET", |
| 238 "id": "cloudresourcemanager.organizations.list", |
| 239 "parameterOrder": [], |
| 240 "parameters": { |
| 241 "filter": { |
| 242 "description": "An optional query string used to fil
ter the Organizations to return in\nthe response. Filter rules are case-insensit
ive.\n\n\nOrganizations may be filtered by `owner.directoryCustomerId` or by\n`d
omain`, where the domain is a Google for Work domain, for example:\n\n|Filter|De
scription|\n|------|-----------|\n|owner.directorycustomerid:123456789|Organizat
ions with `owner.directory_customer_id` equal to `123456789`.|\n|domain:google.c
om|Organizations corresponding to the domain `google.com`.|\n\nThis field is opt
ional.", |
| 243 "location": "query", |
| 244 "type": "string" |
| 245 }, |
| 246 "pageToken": { |
| 247 "description": "A pagination token returned from a p
revious call to `ListOrganizations`\nthat indicates from where listing should co
ntinue.\nThis field is optional.", |
| 248 "location": "query", |
| 249 "type": "string" |
| 250 }, |
| 251 "pageSize": { |
| 252 "description": "The maximum number of Organizations
to return in the response.\nThis field is optional.", |
| 253 "format": "int32", |
| 254 "location": "query", |
| 255 "type": "integer" |
| 256 } |
| 257 }, |
| 258 "path": "v1beta1/organizations", |
| 259 "response": { |
| 260 "$ref": "ListOrganizationsResponse" |
| 261 }, |
| 262 "scopes": [ |
| 263 "https://www.googleapis.com/auth/cloud-platform", |
| 264 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" |
| 265 ] |
| 266 }, |
| 267 "setIamPolicy": { |
| 268 "description": "Sets the access control policy on an Organiz
ation resource. Replaces any\nexisting policy. The `resource` field should be th
e organization's resource\nname, e.g. \"organizations/123\".", |
| 269 "httpMethod": "POST", |
| 270 "id": "cloudresourcemanager.organizations.setIamPolicy", |
| 271 "parameterOrder": [ |
| 272 "resource" |
| 273 ], |
| 274 "parameters": { |
| 275 "resource": { |
| 276 "description": "REQUIRED: The resource for which the
policy is being specified.\n`resource` is usually specified as a path. For exam
ple, a Project\nresource is specified as `projects/{project}`.", |
| 277 "location": "path", |
| 278 "pattern": "^organizations/[^/]+$", |
| 279 "required": true, |
| 280 "type": "string" |
| 281 } |
| 282 }, |
| 283 "path": "v1beta1/{+resource}:setIamPolicy", |
| 284 "request": { |
| 285 "$ref": "SetIamPolicyRequest" |
| 286 }, |
| 287 "response": { |
| 288 "$ref": "Policy" |
| 289 }, |
| 290 "scopes": [ |
| 291 "https://www.googleapis.com/auth/cloud-platform" |
| 292 ] |
| 293 } |
| 294 } |
| 295 }, |
120 "projects": { | 296 "projects": { |
121 "methods": { | 297 "methods": { |
122 "getAncestry": { | 298 "delete": { |
123 "description": "Gets a list of ancestors in the resource hie
rarchy for the Project\nidentified by the specified `project_id` (for example, `
my-project-123`).\n\nThe caller must have read permissions for this Project.", | 299 "description": "Marks the Project identified by the specifie
d\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 s
tate of\nACTIVE.\n\nThis method changes the Project's lifecycle state from\nACTI
VE\nto DELETE_REQUESTED.\nThe deletion starts at an unspecified time, at which p
oint 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 permi
ssions for this Project.", |
124 "httpMethod": "POST", | 300 "httpMethod": "DELETE", |
125 "id": "cloudresourcemanager.projects.getAncestry", | 301 "id": "cloudresourcemanager.projects.delete", |
126 "parameterOrder": [ | 302 "parameterOrder": [ |
127 "projectId" | 303 "projectId" |
128 ], | 304 ], |
129 "parameters": { | 305 "parameters": { |
130 "projectId": { | 306 "projectId": { |
131 "description": "The Project ID (for example, `my-pro
ject-123`).\n\nRequired.", | 307 "description": "The Project ID (for example, `foo-ba
r-123`).\n\nRequired.", |
132 "location": "path", | 308 "location": "path", |
133 "required": true, | 309 "required": true, |
134 "type": "string" | 310 "type": "string" |
135 } | 311 } |
136 }, | 312 }, |
137 "path": "v1beta1/projects/{projectId}:getAncestry", | 313 "path": "v1beta1/projects/{projectId}", |
138 "request": { | |
139 "$ref": "GetAncestryRequest" | |
140 }, | |
141 "response": { | |
142 "$ref": "GetAncestryResponse" | |
143 }, | |
144 "scopes": [ | |
145 "https://www.googleapis.com/auth/cloud-platform", | |
146 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" | |
147 ] | |
148 }, | |
149 "getIamPolicy": { | |
150 "description": "Returns the IAM access control policy for th
e specified Project.\nPermission is denied if the policy or the resource does no
t exist.", | |
151 "httpMethod": "POST", | |
152 "id": "cloudresourcemanager.projects.getIamPolicy", | |
153 "parameterOrder": [ | |
154 "resource" | |
155 ], | |
156 "parameters": { | |
157 "resource": { | |
158 "description": "REQUIRED: The resource for which the
policy is being requested.\n`resource` is usually specified as a path. For exam
ple, a Project\nresource is specified as `projects/{project}`.", | |
159 "location": "path", | |
160 "required": true, | |
161 "type": "string" | |
162 } | |
163 }, | |
164 "path": "v1beta1/projects/{resource}:getIamPolicy", | |
165 "request": { | |
166 "$ref": "GetIamPolicyRequest" | |
167 }, | |
168 "response": { | |
169 "$ref": "Policy" | |
170 }, | |
171 "scopes": [ | |
172 "https://www.googleapis.com/auth/cloud-platform", | |
173 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" | |
174 ] | |
175 }, | |
176 "undelete": { | |
177 "description": "Restores the Project identified by the speci
fied\n`project_id` (for example, `my-project-123`).\nYou can only use this metho
d 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 permissi
ons for this Project.", | |
178 "httpMethod": "POST", | |
179 "id": "cloudresourcemanager.projects.undelete", | |
180 "parameterOrder": [ | |
181 "projectId" | |
182 ], | |
183 "parameters": { | |
184 "projectId": { | |
185 "description": "The project ID (for example, `foo-ba
r-123`).\n\nRequired.", | |
186 "location": "path", | |
187 "required": true, | |
188 "type": "string" | |
189 } | |
190 }, | |
191 "path": "v1beta1/projects/{projectId}:undelete", | |
192 "request": { | |
193 "$ref": "UndeleteProjectRequest" | |
194 }, | |
195 "response": { | 314 "response": { |
196 "$ref": "Empty" | 315 "$ref": "Empty" |
197 }, | 316 }, |
198 "scopes": [ | 317 "scopes": [ |
199 "https://www.googleapis.com/auth/cloud-platform" | 318 "https://www.googleapis.com/auth/cloud-platform" |
200 ] | 319 ] |
201 }, | 320 }, |
202 "list": { | 321 "list": { |
203 "description": "Lists Projects that are visible to the user
and satisfy the\nspecified filter. This method returns Projects in an unspecifie
d order.\nNew Projects do not necessarily appear at the end of the list.", | 322 "description": "Lists Projects that are visible to the user
and satisfy the\nspecified filter. This method returns Projects in an unspecifie
d order.\nNew Projects do not necessarily appear at the end of the list.", |
204 "httpMethod": "GET", | 323 "httpMethod": "GET", |
205 "id": "cloudresourcemanager.projects.list", | 324 "id": "cloudresourcemanager.projects.list", |
206 "parameterOrder": [], | 325 "parameterOrder": [], |
207 "parameters": { | 326 "parameters": { |
| 327 "pageToken": { |
| 328 "description": "A pagination token returned from a p
revious call to ListProjects\nthat indicates from where listing should continue.
\n\nOptional.", |
| 329 "location": "query", |
| 330 "type": "string" |
| 331 }, |
208 "pageSize": { | 332 "pageSize": { |
209 "description": "The maximum number of Projects to re
turn in the response.\nThe server can return fewer Projects than requested.\nIf
unspecified, server picks an appropriate default.\n\nOptional.", | 333 "description": "The maximum number of Projects to re
turn in the response.\nThe server can return fewer Projects than requested.\nIf
unspecified, server picks an appropriate default.\n\nOptional.", |
210 "format": "int32", | 334 "format": "int32", |
211 "location": "query", | 335 "location": "query", |
212 "type": "integer" | 336 "type": "integer" |
213 }, | 337 }, |
214 "filter": { | 338 "filter": { |
215 "description": "An expression for filtering the resu
lts 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 *k
ey* is the name of a label\n\nSome examples of using labels as filters:\n\n|Filt
er|Description|\n|------|-----------|\n|name:*|The project has a name.|\n|name:H
owl|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 `col
or`.|\n|labels.color:red|The project's label `color` has the value `red`.|\n|lab
els.color:red label.size:big|The project's label `color` has the value `red
` and its label `size` has the value `big`.\n\nOptional.", | 339 "description": "An expression for filtering the resu
lts 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 *k
ey* is the name of a label\n\nSome examples of using labels as filters:\n\n|Filt
er|Description|\n|------|-----------|\n|name:*|The project has a name.|\n|name:H
owl|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 `col
or`.|\n|labels.color:red|The project's label `color` has the value `red`.|\n|lab
els.color:red label.size:big|The project's label `color` has the value `red
` and its label `size` has the value `big`.\n\nOptional.", |
216 "location": "query", | 340 "location": "query", |
217 "type": "string" | 341 "type": "string" |
218 }, | |
219 "pageToken": { | |
220 "description": "A pagination token returned from a p
revious call to ListProjects\nthat indicates from where listing should continue.
\n\nOptional.", | |
221 "location": "query", | |
222 "type": "string" | |
223 } | 342 } |
224 }, | 343 }, |
225 "path": "v1beta1/projects", | 344 "path": "v1beta1/projects", |
226 "response": { | 345 "response": { |
227 "$ref": "ListProjectsResponse" | 346 "$ref": "ListProjectsResponse" |
228 }, | 347 }, |
229 "scopes": [ | 348 "scopes": [ |
230 "https://www.googleapis.com/auth/cloud-platform", | 349 "https://www.googleapis.com/auth/cloud-platform", |
231 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" | 350 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" |
232 ] | 351 ] |
233 }, | 352 }, |
234 "get": { | |
235 "description": "Retrieves the Project identified by the spec
ified\n`project_id` (for example, `my-project-123`).\n\nThe caller must have rea
d permissions for this Project.", | |
236 "httpMethod": "GET", | |
237 "id": "cloudresourcemanager.projects.get", | |
238 "parameterOrder": [ | |
239 "projectId" | |
240 ], | |
241 "parameters": { | |
242 "projectId": { | |
243 "description": "The Project ID (for example, `my-pro
ject-123`).\n\nRequired.", | |
244 "location": "path", | |
245 "required": true, | |
246 "type": "string" | |
247 } | |
248 }, | |
249 "path": "v1beta1/projects/{projectId}", | |
250 "response": { | |
251 "$ref": "Project" | |
252 }, | |
253 "scopes": [ | |
254 "https://www.googleapis.com/auth/cloud-platform", | |
255 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" | |
256 ] | |
257 }, | |
258 "update": { | |
259 "description": "Updates the attributes of the Project identi
fied by the specified\n`project_id` (for example, `my-project-123`).\n\nThe call
er must have modify permissions for this Project.", | |
260 "httpMethod": "PUT", | |
261 "id": "cloudresourcemanager.projects.update", | |
262 "parameterOrder": [ | |
263 "projectId" | |
264 ], | |
265 "parameters": { | |
266 "projectId": { | |
267 "description": "The project ID (for example, `my-pro
ject-123`).\n\nRequired.", | |
268 "location": "path", | |
269 "required": true, | |
270 "type": "string" | |
271 } | |
272 }, | |
273 "path": "v1beta1/projects/{projectId}", | |
274 "request": { | |
275 "$ref": "Project" | |
276 }, | |
277 "response": { | |
278 "$ref": "Project" | |
279 }, | |
280 "scopes": [ | |
281 "https://www.googleapis.com/auth/cloud-platform" | |
282 ] | |
283 }, | |
284 "create": { | |
285 "description": "Creates a Project resource.\n\nInitially, th
e Project resource is owned by its creator exclusively.\nThe creator can later g
rant permission to others to read or update the\nProject.\n\nSeveral APIs are ac
tivated automatically for the Project, including\nGoogle Cloud Storage.", | |
286 "httpMethod": "POST", | |
287 "id": "cloudresourcemanager.projects.create", | |
288 "parameterOrder": [], | |
289 "parameters": { | |
290 "useLegacyStack": { | |
291 "description": "A safety hatch to opt out of the new
reliable project creation process.", | |
292 "location": "query", | |
293 "type": "boolean" | |
294 } | |
295 }, | |
296 "path": "v1beta1/projects", | |
297 "request": { | |
298 "$ref": "Project" | |
299 }, | |
300 "response": { | |
301 "$ref": "Project" | |
302 }, | |
303 "scopes": [ | |
304 "https://www.googleapis.com/auth/cloud-platform" | |
305 ] | |
306 }, | |
307 "setIamPolicy": { | 353 "setIamPolicy": { |
308 "description": "Sets the IAM access control policy for the s
pecified Project. Replaces\nany existing policy.\n\nThe following constraints ap
ply when using `setIamPolicy()`:\n\n+ Project does not support `allUsers` and `a
llAuthenticatedUsers` 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 mus
t accept the invitation.\n\n+ A user cannot be granted the owner role using `set
IamPolicy()`. The user\nmust be granted the owner role using the Cloud Platform
Console and must\nexplicitly accept the invitation.\n\n+ Invitations to grant th
e owner role cannot be sent using `setIamPolicy()`;\nthey must be sent only usin
g the Cloud Platform Console.\n\n+ Membership changes that leave the project wit
hout 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 (T
oS) agreement in the policy. Calling `setIamPolicy()` to\nto remove the last ToS
-accepted owner from the policy will fail. This\nrestriction also applies to leg
acy 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 serv
ices completely inoperable. It is important to understand\nhow the service accou
nt is being used before removing or updating its roles.", | 354 "description": "Sets the IAM access control policy for the s
pecified Project. Replaces\nany existing policy.\n\nThe following constraints ap
ply when using `setIamPolicy()`:\n\n+ Project does not support `allUsers` and `a
llAuthenticatedUsers` 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 mus
t accept the invitation.\n\n+ A user cannot be granted the owner role using `set
IamPolicy()`. The user\nmust be granted the owner role using the Cloud Platform
Console and must\nexplicitly accept the invitation.\n\n+ Invitations to grant th
e owner role cannot be sent using `setIamPolicy()`;\nthey must be sent only usin
g the Cloud Platform Console.\n\n+ Membership changes that leave the project wit
hout 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 (T
oS) agreement in the policy. Calling `setIamPolicy()` to\nto remove the last ToS
-accepted owner from the policy will fail. This\nrestriction also applies to leg
acy 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 serv
ices completely inoperable. It is important to understand\nhow the service accou
nt is being used before removing or updating its roles.", |
309 "httpMethod": "POST", | 355 "httpMethod": "POST", |
310 "id": "cloudresourcemanager.projects.setIamPolicy", | 356 "id": "cloudresourcemanager.projects.setIamPolicy", |
311 "parameterOrder": [ | 357 "parameterOrder": [ |
312 "resource" | 358 "resource" |
313 ], | 359 ], |
314 "parameters": { | 360 "parameters": { |
315 "resource": { | 361 "resource": { |
316 "description": "REQUIRED: The resource for which the
policy is being specified.\n`resource` is usually specified as a path. For exam
ple, a Project\nresource is specified as `projects/{project}`.", | 362 "description": "REQUIRED: The resource for which the
policy is being specified.\n`resource` is usually specified as a path. For exam
ple, a Project\nresource is specified as `projects/{project}`.", |
317 "location": "path", | 363 "location": "path", |
318 "required": true, | 364 "required": true, |
319 "type": "string" | 365 "type": "string" |
320 } | 366 } |
321 }, | 367 }, |
322 "path": "v1beta1/projects/{resource}:setIamPolicy", | 368 "path": "v1beta1/projects/{resource}:setIamPolicy", |
323 "request": { | 369 "request": { |
324 "$ref": "SetIamPolicyRequest" | 370 "$ref": "SetIamPolicyRequest" |
325 }, | 371 }, |
326 "response": { | 372 "response": { |
327 "$ref": "Policy" | 373 "$ref": "Policy" |
328 }, | 374 }, |
329 "scopes": [ | 375 "scopes": [ |
330 "https://www.googleapis.com/auth/cloud-platform" | 376 "https://www.googleapis.com/auth/cloud-platform" |
331 ] | 377 ] |
332 }, | 378 }, |
333 "delete": { | 379 "create": { |
334 "description": "Marks the Project identified by the specifie
d\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 s
tate of\nACTIVE.\n\nThis method changes the Project's lifecycle state from\nACTI
VE\nto DELETE_REQUESTED.\nThe deletion starts at an unspecified time, at which p
oint 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 permi
ssions for this Project.", | 380 "description": "Creates a Project resource.\n\nInitially, th
e Project resource is owned by its creator exclusively.\nThe creator can later g
rant permission to others to read or update the\nProject.\n\nSeveral APIs are ac
tivated automatically for the Project, including\nGoogle Cloud Storage.", |
335 "httpMethod": "DELETE", | 381 "httpMethod": "POST", |
336 "id": "cloudresourcemanager.projects.delete", | 382 "id": "cloudresourcemanager.projects.create", |
337 "parameterOrder": [ | 383 "parameterOrder": [], |
338 "projectId" | |
339 ], | |
340 "parameters": { | 384 "parameters": { |
341 "projectId": { | 385 "useLegacyStack": { |
342 "description": "The Project ID (for example, `foo-ba
r-123`).\n\nRequired.", | 386 "description": "A safety hatch to opt out of the new
reliable project creation process.", |
343 "location": "path", | 387 "location": "query", |
344 "required": true, | 388 "type": "boolean" |
345 "type": "string" | |
346 } | 389 } |
347 }, | 390 }, |
348 "path": "v1beta1/projects/{projectId}", | 391 "path": "v1beta1/projects", |
| 392 "request": { |
| 393 "$ref": "Project" |
| 394 }, |
349 "response": { | 395 "response": { |
350 "$ref": "Empty" | 396 "$ref": "Project" |
351 }, | 397 }, |
352 "scopes": [ | 398 "scopes": [ |
353 "https://www.googleapis.com/auth/cloud-platform" | 399 "https://www.googleapis.com/auth/cloud-platform" |
354 ] | 400 ] |
355 }, | 401 }, |
356 "testIamPermissions": { | 402 "getIamPolicy": { |
357 "description": "Returns permissions that a caller has on the
specified Project.", | 403 "description": "Returns the IAM access control policy for th
e specified Project.\nPermission is denied if the policy or the resource does no
t exist.", |
358 "httpMethod": "POST", | 404 "httpMethod": "POST", |
359 "id": "cloudresourcemanager.projects.testIamPermissions", | 405 "id": "cloudresourcemanager.projects.getIamPolicy", |
360 "parameterOrder": [ | 406 "parameterOrder": [ |
361 "resource" | 407 "resource" |
362 ], | 408 ], |
363 "parameters": { | |
364 "resource": { | |
365 "description": "REQUIRED: The resource for which the
policy detail is being requested.\n`resource` is usually specified as a path. F
or example, a Project\nresource is specified as `projects/{project}`.", | |
366 "location": "path", | |
367 "required": true, | |
368 "type": "string" | |
369 } | |
370 }, | |
371 "path": "v1beta1/projects/{resource}:testIamPermissions", | |
372 "request": { | |
373 "$ref": "TestIamPermissionsRequest" | |
374 }, | |
375 "response": { | |
376 "$ref": "TestIamPermissionsResponse" | |
377 }, | |
378 "scopes": [ | |
379 "https://www.googleapis.com/auth/cloud-platform", | |
380 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" | |
381 ] | |
382 } | |
383 } | |
384 }, | |
385 "organizations": { | |
386 "methods": { | |
387 "getIamPolicy": { | |
388 "description": "Gets the access control policy for an Organi
zation resource. May be empty\nif no such policy or resource exists. The `resour
ce` field should be the\norganization's resource name, e.g. \"organizations/123\
".", | |
389 "httpMethod": "POST", | |
390 "id": "cloudresourcemanager.organizations.getIamPolicy", | |
391 "parameterOrder": [ | |
392 "resource" | |
393 ], | |
394 "parameters": { | 409 "parameters": { |
395 "resource": { | 410 "resource": { |
396 "description": "REQUIRED: The resource for which the
policy is being requested.\n`resource` is usually specified as a path. For exam
ple, a Project\nresource is specified as `projects/{project}`.", | 411 "description": "REQUIRED: The resource for which the
policy is being requested.\n`resource` is usually specified as a path. For exam
ple, a Project\nresource is specified as `projects/{project}`.", |
397 "location": "path", | 412 "location": "path", |
398 "pattern": "^organizations/[^/]+$", | |
399 "required": true, | 413 "required": true, |
400 "type": "string" | 414 "type": "string" |
401 } | 415 } |
402 }, | 416 }, |
403 "path": "v1beta1/{+resource}:getIamPolicy", | 417 "path": "v1beta1/projects/{resource}:getIamPolicy", |
404 "request": { | 418 "request": { |
405 "$ref": "GetIamPolicyRequest" | 419 "$ref": "GetIamPolicyRequest" |
406 }, | 420 }, |
407 "response": { | 421 "response": { |
408 "$ref": "Policy" | 422 "$ref": "Policy" |
409 }, | 423 }, |
410 "scopes": [ | 424 "scopes": [ |
411 "https://www.googleapis.com/auth/cloud-platform", | 425 "https://www.googleapis.com/auth/cloud-platform", |
412 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" | 426 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" |
413 ] | 427 ] |
414 }, | 428 }, |
415 "list": { | 429 "get": { |
416 "description": "Lists Organization resources that are visibl
e to the user and satisfy\nthe specified filter. This method returns Organizatio
ns in an unspecified\norder. New Organizations do not necessarily appear at the
end of the list.", | 430 "description": "Retrieves the Project identified by the spec
ified\n`project_id` (for example, `my-project-123`).\n\nThe caller must have rea
d permissions for this Project.", |
417 "httpMethod": "GET", | 431 "httpMethod": "GET", |
418 "id": "cloudresourcemanager.organizations.list", | 432 "id": "cloudresourcemanager.projects.get", |
419 "parameterOrder": [], | 433 "parameterOrder": [ |
| 434 "projectId" |
| 435 ], |
420 "parameters": { | 436 "parameters": { |
421 "pageSize": { | 437 "projectId": { |
422 "description": "The maximum number of Organizations
to return in the response.\nThis field is optional.", | 438 "description": "The Project ID (for example, `my-pro
ject-123`).\n\nRequired.", |
423 "format": "int32", | 439 "location": "path", |
424 "location": "query", | 440 "required": true, |
425 "type": "integer" | |
426 }, | |
427 "filter": { | |
428 "description": "An optional query string used to fil
ter the Organizations to return in\nthe response. Filter rules are case-insensit
ive.\n\n\nOrganizations may be filtered by `owner.directoryCustomerId` or by\n`d
omain`, where the domain is a Google for Work domain, for example:\n\n|Filter|De
scription|\n|------|-----------|\n|owner.directorycustomerid:123456789|Organizat
ions with `owner.directory_customer_id` equal to `123456789`.|\n|domain:google.c
om|Organizations corresponding to the domain `google.com`.|\n\nThis field is opt
ional.", | |
429 "location": "query", | |
430 "type": "string" | |
431 }, | |
432 "pageToken": { | |
433 "description": "A pagination token returned from a p
revious call to `ListOrganizations`\nthat indicates from where listing should co
ntinue.\nThis field is optional.", | |
434 "location": "query", | |
435 "type": "string" | 441 "type": "string" |
436 } | 442 } |
437 }, | 443 }, |
438 "path": "v1beta1/organizations", | 444 "path": "v1beta1/projects/{projectId}", |
439 "response": { | 445 "response": { |
440 "$ref": "ListOrganizationsResponse" | 446 "$ref": "Project" |
441 }, | 447 }, |
442 "scopes": [ | 448 "scopes": [ |
443 "https://www.googleapis.com/auth/cloud-platform", | 449 "https://www.googleapis.com/auth/cloud-platform", |
444 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" | 450 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" |
445 ] | 451 ] |
446 }, | 452 }, |
447 "get": { | 453 "undelete": { |
448 "description": "Fetches an Organization resource identified
by the specified resource name.", | 454 "description": "Restores the Project identified by the speci
fied\n`project_id` (for example, `my-project-123`).\nYou can only use this metho
d 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 permissi
ons for this Project.", |
449 "httpMethod": "GET", | 455 "httpMethod": "POST", |
450 "id": "cloudresourcemanager.organizations.get", | 456 "id": "cloudresourcemanager.projects.undelete", |
451 "parameterOrder": [ | 457 "parameterOrder": [ |
452 "name" | 458 "projectId" |
453 ], | 459 ], |
454 "parameters": { | 460 "parameters": { |
455 "name": { | 461 "projectId": { |
456 "description": "The resource name of the Organizatio
n to fetch, e.g. \"organizations/1234\".", | 462 "description": "The project ID (for example, `foo-ba
r-123`).\n\nRequired.", |
457 "location": "path", | 463 "location": "path", |
458 "pattern": "^organizations/[^/]+$", | |
459 "required": true, | 464 "required": true, |
460 "type": "string" | 465 "type": "string" |
461 }, | |
462 "organizationId": { | |
463 "description": "The id of the Organization resource
to fetch.\nThis field is deprecated and will be removed in v1. Use name instead.
", | |
464 "location": "query", | |
465 "type": "string" | |
466 } | 466 } |
467 }, | 467 }, |
468 "path": "v1beta1/{+name}", | 468 "path": "v1beta1/projects/{projectId}:undelete", |
| 469 "request": { |
| 470 "$ref": "UndeleteProjectRequest" |
| 471 }, |
469 "response": { | 472 "response": { |
470 "$ref": "Organization" | 473 "$ref": "Empty" |
| 474 }, |
| 475 "scopes": [ |
| 476 "https://www.googleapis.com/auth/cloud-platform" |
| 477 ] |
| 478 }, |
| 479 "update": { |
| 480 "description": "Updates the attributes of the Project identi
fied by the specified\n`project_id` (for example, `my-project-123`).\n\nThe call
er must have modify permissions for this Project.", |
| 481 "httpMethod": "PUT", |
| 482 "id": "cloudresourcemanager.projects.update", |
| 483 "parameterOrder": [ |
| 484 "projectId" |
| 485 ], |
| 486 "parameters": { |
| 487 "projectId": { |
| 488 "description": "The project ID (for example, `my-pro
ject-123`).\n\nRequired.", |
| 489 "location": "path", |
| 490 "required": true, |
| 491 "type": "string" |
| 492 } |
| 493 }, |
| 494 "path": "v1beta1/projects/{projectId}", |
| 495 "request": { |
| 496 "$ref": "Project" |
| 497 }, |
| 498 "response": { |
| 499 "$ref": "Project" |
| 500 }, |
| 501 "scopes": [ |
| 502 "https://www.googleapis.com/auth/cloud-platform" |
| 503 ] |
| 504 }, |
| 505 "getAncestry": { |
| 506 "description": "Gets a list of ancestors in the resource hie
rarchy for the Project\nidentified by the specified `project_id` (for example, `
my-project-123`).\n\nThe caller must have read permissions for this Project.", |
| 507 "httpMethod": "POST", |
| 508 "id": "cloudresourcemanager.projects.getAncestry", |
| 509 "parameterOrder": [ |
| 510 "projectId" |
| 511 ], |
| 512 "parameters": { |
| 513 "projectId": { |
| 514 "description": "The Project ID (for example, `my-pro
ject-123`).\n\nRequired.", |
| 515 "location": "path", |
| 516 "required": true, |
| 517 "type": "string" |
| 518 } |
| 519 }, |
| 520 "path": "v1beta1/projects/{projectId}:getAncestry", |
| 521 "request": { |
| 522 "$ref": "GetAncestryRequest" |
| 523 }, |
| 524 "response": { |
| 525 "$ref": "GetAncestryResponse" |
471 }, | 526 }, |
472 "scopes": [ | 527 "scopes": [ |
473 "https://www.googleapis.com/auth/cloud-platform", | 528 "https://www.googleapis.com/auth/cloud-platform", |
474 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" | 529 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" |
475 ] | 530 ] |
476 }, | 531 }, |
477 "update": { | 532 "testIamPermissions": { |
478 "description": "Updates an Organization resource identified
by the specified resource name.", | 533 "description": "Returns permissions that a caller has on the
specified Project.", |
479 "httpMethod": "PUT", | |
480 "id": "cloudresourcemanager.organizations.update", | |
481 "parameterOrder": [ | |
482 "name" | |
483 ], | |
484 "parameters": { | |
485 "name": { | |
486 "description": "Output Only. The resource name of th
e organization. This is the\norganization's relative path in the API. Its format
is\n\"organizations/[organization_id]\". For example, \"organizations/1234\".", | |
487 "location": "path", | |
488 "pattern": "^organizations/[^/]+$", | |
489 "required": true, | |
490 "type": "string" | |
491 } | |
492 }, | |
493 "path": "v1beta1/{+name}", | |
494 "request": { | |
495 "$ref": "Organization" | |
496 }, | |
497 "response": { | |
498 "$ref": "Organization" | |
499 }, | |
500 "scopes": [ | |
501 "https://www.googleapis.com/auth/cloud-platform" | |
502 ] | |
503 }, | |
504 "setIamPolicy": { | |
505 "description": "Sets the access control policy on an Organiz
ation resource. Replaces any\nexisting policy. The `resource` field should be th
e organization's resource\nname, e.g. \"organizations/123\".", | |
506 "httpMethod": "POST", | 534 "httpMethod": "POST", |
507 "id": "cloudresourcemanager.organizations.setIamPolicy", | 535 "id": "cloudresourcemanager.projects.testIamPermissions", |
508 "parameterOrder": [ | 536 "parameterOrder": [ |
509 "resource" | 537 "resource" |
510 ], | 538 ], |
511 "parameters": { | |
512 "resource": { | |
513 "description": "REQUIRED: The resource for which the
policy is being specified.\n`resource` is usually specified as a path. For exam
ple, a Project\nresource is specified as `projects/{project}`.", | |
514 "location": "path", | |
515 "pattern": "^organizations/[^/]+$", | |
516 "required": true, | |
517 "type": "string" | |
518 } | |
519 }, | |
520 "path": "v1beta1/{+resource}:setIamPolicy", | |
521 "request": { | |
522 "$ref": "SetIamPolicyRequest" | |
523 }, | |
524 "response": { | |
525 "$ref": "Policy" | |
526 }, | |
527 "scopes": [ | |
528 "https://www.googleapis.com/auth/cloud-platform" | |
529 ] | |
530 }, | |
531 "testIamPermissions": { | |
532 "description": "Returns permissions that a caller has on the
specified Organization.\nThe `resource` field should be the organization's reso
urce name,\ne.g. \"organizations/123\".", | |
533 "httpMethod": "POST", | |
534 "id": "cloudresourcemanager.organizations.testIamPermissions
", | |
535 "parameterOrder": [ | |
536 "resource" | |
537 ], | |
538 "parameters": { | 539 "parameters": { |
539 "resource": { | 540 "resource": { |
540 "description": "REQUIRED: The resource for which the
policy detail is being requested.\n`resource` is usually specified as a path. F
or example, a Project\nresource is specified as `projects/{project}`.", | 541 "description": "REQUIRED: The resource for which the
policy detail is being requested.\n`resource` is usually specified as a path. F
or example, a Project\nresource is specified as `projects/{project}`.", |
541 "location": "path", | 542 "location": "path", |
542 "pattern": "^organizations/[^/]+$", | |
543 "required": true, | 543 "required": true, |
544 "type": "string" | 544 "type": "string" |
545 } | 545 } |
546 }, | 546 }, |
547 "path": "v1beta1/{+resource}:testIamPermissions", | 547 "path": "v1beta1/projects/{resource}:testIamPermissions", |
548 "request": { | 548 "request": { |
549 "$ref": "TestIamPermissionsRequest" | 549 "$ref": "TestIamPermissionsRequest" |
550 }, | 550 }, |
551 "response": { | 551 "response": { |
552 "$ref": "TestIamPermissionsResponse" | 552 "$ref": "TestIamPermissionsResponse" |
553 }, | 553 }, |
554 "scopes": [ | 554 "scopes": [ |
555 "https://www.googleapis.com/auth/cloud-platform", | 555 "https://www.googleapis.com/auth/cloud-platform", |
556 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" | 556 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" |
557 ] | 557 ] |
558 } | 558 } |
559 } | 559 } |
560 } | 560 } |
561 }, | 561 }, |
562 "revision": "20170118", | 562 "revision": "20170206", |
563 "rootUrl": "https://cloudresourcemanager.googleapis.com/", | 563 "rootUrl": "https://cloudresourcemanager.googleapis.com/", |
564 "schemas": { | 564 "schemas": { |
565 "FolderOperationError": { | |
566 "description": "A classification of the Folder Operation error.", | |
567 "id": "FolderOperationError", | |
568 "properties": { | |
569 "errorMessageId": { | |
570 "description": "The type of operation error experienced.", | |
571 "enum": [ | |
572 "ERROR_TYPE_UNSPECIFIED", | |
573 "FOLDER_HEIGHT_VIOLATION", | |
574 "MAX_CHILD_FOLDERS_VIOLATION", | |
575 "FOLDER_NAME_UNIQUENESS_VIOLATION", | |
576 "RESOURCE_DELETED", | |
577 "PARENT_DELETED", | |
578 "CYCLE_INTRODUCED_ERROR", | |
579 "FOLDER_ALREADY_BEING_MOVED", | |
580 "FOLDER_TO_DELETE_NON_EMPTY" | |
581 ], | |
582 "enumDescriptions": [ | |
583 "The error type was unrecognized or unspecified.", | |
584 "The attempted action would violate the max folder depth
constraint.", | |
585 "The attempted action would violate the max child folder
s constraint.", | |
586 "The attempted action would violate the locally-unique f
older\ndisplay_name constraint.", | |
587 "The resource being moved has been deleted.", | |
588 "The resource a folder was being added to has been delet
ed.", | |
589 "The attempted action would introduce cycle in resource
path.", | |
590 "The attempted action would move a folder that is alread
y being moved.", | |
591 "The folder the caller is trying to delete contains acti
ve resources." | |
592 ], | |
593 "type": "string" | |
594 } | |
595 }, | |
596 "type": "object" | |
597 }, | |
598 "ListProjectsResponse": { | |
599 "description": "A page of the response received from the\nListProjec
ts\nmethod.\n\nA paginated response where more pages are available has\n`next_pa
ge_token` set. This token can be used in a subsequent request to\nretrieve the n
ext request page.", | |
600 "id": "ListProjectsResponse", | |
601 "properties": { | |
602 "projects": { | |
603 "description": "The list of Projects that matched the list f
ilter. This list can\nbe paginated.", | |
604 "items": { | |
605 "$ref": "Project" | |
606 }, | |
607 "type": "array" | |
608 }, | |
609 "nextPageToken": { | |
610 "description": "Pagination token.\n\nIf the result set is to
o large to fit in a single response, this token\nis returned. It encodes the pos
ition 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 `ne
xt_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."
, | |
611 "type": "string" | |
612 } | |
613 }, | |
614 "type": "object" | |
615 }, | |
616 "UndeleteProjectRequest": { | 565 "UndeleteProjectRequest": { |
617 "description": "The request sent to the UndeleteProject\nmethod.", | 566 "description": "The request sent to the UndeleteProject\nmethod.", |
618 "id": "UndeleteProjectRequest", | 567 "id": "UndeleteProjectRequest", |
619 "properties": {}, | 568 "properties": {}, |
620 "type": "object" | 569 "type": "object" |
621 }, | 570 }, |
622 "FolderOperation": { | |
623 "description": "Metadata describing a long running folder operation"
, | |
624 "id": "FolderOperation", | |
625 "properties": { | |
626 "displayName": { | |
627 "description": "The display name of the folder.", | |
628 "type": "string" | |
629 }, | |
630 "sourceParent": { | |
631 "description": "The resource name of the folder's parent.\nO
nly applicable when the operation_type is MOVE.", | |
632 "type": "string" | |
633 }, | |
634 "destinationParent": { | |
635 "description": "The resource name of the folder or organizat
ion we are either creating\nthe folder under or moving the folder to.", | |
636 "type": "string" | |
637 }, | |
638 "operationType": { | |
639 "description": "The type of this operation.", | |
640 "enum": [ | |
641 "OPERATION_TYPE_UNSPECIFIED", | |
642 "CREATE", | |
643 "MOVE" | |
644 ], | |
645 "enumDescriptions": [ | |
646 "Operation type not specified.", | |
647 "A create folder operation.", | |
648 "A move folder operation." | |
649 ], | |
650 "type": "string" | |
651 } | |
652 }, | |
653 "type": "object" | |
654 }, | |
655 "GetIamPolicyRequest": { | |
656 "description": "Request message for `GetIamPolicy` method.", | |
657 "id": "GetIamPolicyRequest", | |
658 "properties": {}, | |
659 "type": "object" | |
660 }, | |
661 "SetIamPolicyRequest": { | |
662 "description": "Request message for `SetIamPolicy` method.", | |
663 "id": "SetIamPolicyRequest", | |
664 "properties": { | |
665 "policy": { | |
666 "$ref": "Policy", | |
667 "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 emp
ty policy is a\nvalid policy but certain Cloud Platform services (such as Projec
ts)\nmight reject them." | |
668 } | |
669 }, | |
670 "type": "object" | |
671 }, | |
672 "TestIamPermissionsResponse": { | |
673 "description": "Response message for `TestIamPermissions` method.", | |
674 "id": "TestIamPermissionsResponse", | |
675 "properties": { | |
676 "permissions": { | |
677 "description": "A subset of `TestPermissionsRequest.permissi
ons` that the caller is\nallowed.", | |
678 "items": { | |
679 "type": "string" | |
680 }, | |
681 "type": "array" | |
682 } | |
683 }, | |
684 "type": "object" | |
685 }, | |
686 "Organization": { | 571 "Organization": { |
687 "description": "The root node in the resource hierarchy to which a p
articular entity's\n(e.g., company) resources belong.", | 572 "description": "The root node in the resource hierarchy to which a p
articular entity's\n(e.g., company) resources belong.", |
688 "id": "Organization", | 573 "id": "Organization", |
689 "properties": { | 574 "properties": { |
| 575 "owner": { |
| 576 "$ref": "OrganizationOwner", |
| 577 "description": "The owner of this Organization. The owner sh
ould be specified on\ncreation. Once set, it cannot be changed.\nThis field is r
equired." |
| 578 }, |
| 579 "name": { |
| 580 "description": "Output Only. The resource name of the organi
zation. This is the\norganization's relative path in the API. Its format is\n\"o
rganizations/[organization_id]\". For example, \"organizations/1234\".", |
| 581 "type": "string" |
| 582 }, |
| 583 "organizationId": { |
| 584 "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.", |
| 585 "type": "string" |
| 586 }, |
690 "lifecycleState": { | 587 "lifecycleState": { |
691 "description": "The organization's current lifecycle state.
Assigned by the server.\n@OutputOnly", | 588 "description": "The organization's current lifecycle state.
Assigned by the server.\n@OutputOnly", |
692 "enum": [ | 589 "enum": [ |
693 "LIFECYCLE_STATE_UNSPECIFIED", | 590 "LIFECYCLE_STATE_UNSPECIFIED", |
694 "ACTIVE", | 591 "ACTIVE", |
695 "DELETE_REQUESTED" | 592 "DELETE_REQUESTED" |
696 ], | 593 ], |
697 "enumDescriptions": [ | 594 "enumDescriptions": [ |
698 "Unspecified state. This is only useful for distinguish
ing unset values.", | 595 "Unspecified state. This is only useful for distinguish
ing unset values.", |
699 "The normal and active state.", | 596 "The normal and active state.", |
700 "The organization has been marked for deletion by the us
er." | 597 "The organization has been marked for deletion by the us
er." |
701 ], | 598 ], |
702 "type": "string" | 599 "type": "string" |
703 }, | 600 }, |
704 "displayName": { | 601 "displayName": { |
705 "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 Go
ogle For Work\ncustomer that owns this organization.\n@OutputOnly", | 602 "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 Go
ogle For Work\ncustomer that owns this organization.\n@OutputOnly", |
706 "type": "string" | 603 "type": "string" |
707 }, | 604 }, |
708 "organizationId": { | |
709 "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.", | |
710 "type": "string" | |
711 }, | |
712 "name": { | |
713 "description": "Output Only. The resource name of the organi
zation. This is the\norganization's relative path in the API. Its format is\n\"o
rganizations/[organization_id]\". For example, \"organizations/1234\".", | |
714 "type": "string" | |
715 }, | |
716 "creationTime": { | 605 "creationTime": { |
717 "description": "Timestamp when the Organization was created.
Assigned by the server.\n@OutputOnly", | 606 "description": "Timestamp when the Organization was created.
Assigned by the server.\n@OutputOnly", |
718 "format": "google-datetime", | 607 "format": "google-datetime", |
719 "type": "string" | 608 "type": "string" |
720 }, | |
721 "owner": { | |
722 "$ref": "OrganizationOwner", | |
723 "description": "The owner of this Organization. The owner sh
ould be specified on\ncreation. Once set, it cannot be changed.\nThis field is r
equired." | |
724 } | 609 } |
725 }, | 610 }, |
726 "type": "object" | 611 "type": "object" |
727 }, | |
728 "Policy": { | |
729 "description": "Defines an Identity and Access Management (IAM) poli
cy. 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,\nG
oogle domains, and service accounts. A `role` is a named list of permissions\nde
fined 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.gserviceaccoun
t.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).", | |
730 "id": "Policy", | |
731 "properties": { | |
732 "bindings": { | |
733 "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.", | |
734 "items": { | |
735 "$ref": "Binding" | |
736 }, | |
737 "type": "array" | |
738 }, | |
739 "etag": { | |
740 "description": "`etag` is used for optimistic concurrency co
ntrol as a way to help\nprevent simultaneous updates of a policy from overwritin
g each other.\nIt is strongly suggested that systems make use of the `etag` in t
he\nread-modify-write cycle to perform policy updates in order to avoid race\nco
nditions: 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 t
heir change will be applied to the same version of the policy.\n\nIf no `etag` i
s provided in the call to `setIamPolicy`, then the existing\npolicy is overwritt
en blindly.", | |
741 "format": "byte", | |
742 "type": "string" | |
743 }, | |
744 "version": { | |
745 "description": "Version of the `Policy`. The default version
is 0.", | |
746 "format": "int32", | |
747 "type": "integer" | |
748 } | |
749 }, | |
750 "type": "object" | |
751 }, | 612 }, |
752 "ProjectCreationStatus": { | 613 "ProjectCreationStatus": { |
753 "description": "A status object which is used as the `metadata` fiel
d for the Operation\nreturned by CreateProject. It provides insight for when sig
nificant phases of\nProject creation have completed.", | 614 "description": "A status object which is used as the `metadata` fiel
d for the Operation\nreturned by CreateProject. It provides insight for when sig
nificant phases of\nProject creation have completed.", |
754 "id": "ProjectCreationStatus", | 615 "id": "ProjectCreationStatus", |
755 "properties": { | 616 "properties": { |
756 "ready": { | 617 "ready": { |
757 "description": "True if the project creation process is comp
lete.", | 618 "description": "True if the project creation process is comp
lete.", |
758 "type": "boolean" | 619 "type": "boolean" |
759 }, | 620 }, |
760 "gettable": { | |
761 "description": "True if the project can be retrieved using G
etProject. No other operations\non the project are guaranteed to work until the
project creation is\ncomplete.", | |
762 "type": "boolean" | |
763 }, | |
764 "createTime": { | 621 "createTime": { |
765 "description": "Creation time of the project creation workfl
ow.", | 622 "description": "Creation time of the project creation workfl
ow.", |
766 "format": "google-datetime", | 623 "format": "google-datetime", |
767 "type": "string" | 624 "type": "string" |
| 625 }, |
| 626 "gettable": { |
| 627 "description": "True if the project can be retrieved using G
etProject. No other operations\non the project are guaranteed to work until the
project creation is\ncomplete.", |
| 628 "type": "boolean" |
768 } | 629 } |
769 }, | 630 }, |
770 "type": "object" | 631 "type": "object" |
771 }, | 632 }, |
772 "TestIamPermissionsRequest": { | 633 "GetIamPolicyRequest": { |
773 "description": "Request message for `TestIamPermissions` method.", | 634 "description": "Request message for `GetIamPolicy` method.", |
774 "id": "TestIamPermissionsRequest", | 635 "id": "GetIamPolicyRequest", |
| 636 "properties": {}, |
| 637 "type": "object" |
| 638 }, |
| 639 "TestIamPermissionsResponse": { |
| 640 "description": "Response message for `TestIamPermissions` method.", |
| 641 "id": "TestIamPermissionsResponse", |
775 "properties": { | 642 "properties": { |
776 "permissions": { | 643 "permissions": { |
777 "description": "The set of permissions to check for the `res
ource`. Permissions with\nwildcards (such as '*' or 'storage.*') are not allowed
. For more\ninformation see\n[IAM Overview](https://cloud.google.com/iam/docs/ov
erview#permissions).", | 644 "description": "A subset of `TestPermissionsRequest.permissi
ons` that the caller is\nallowed.", |
778 "items": { | 645 "items": { |
779 "type": "string" | 646 "type": "string" |
780 }, | 647 }, |
781 "type": "array" | 648 "type": "array" |
782 } | 649 } |
783 }, | 650 }, |
784 "type": "object" | 651 "type": "object" |
785 }, | 652 }, |
786 "ListOrganizationsResponse": { | |
787 "description": "The response returned from the `ListOrganizations` m
ethod.", | |
788 "id": "ListOrganizationsResponse", | |
789 "properties": { | |
790 "organizations": { | |
791 "description": "The list of Organizations that matched the l
ist query, possibly paginated.", | |
792 "items": { | |
793 "$ref": "Organization" | |
794 }, | |
795 "type": "array" | |
796 }, | |
797 "nextPageToken": { | |
798 "description": "A pagination token to be used to retrieve th
e 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 th
is response\ncontains the last page of results.", | |
799 "type": "string" | |
800 } | |
801 }, | |
802 "type": "object" | |
803 }, | |
804 "GetAncestryRequest": { | |
805 "description": "The request sent to the\nGetAncestry\nmethod.", | |
806 "id": "GetAncestryRequest", | |
807 "properties": {}, | |
808 "type": "object" | |
809 }, | |
810 "GetAncestryResponse": { | 653 "GetAncestryResponse": { |
811 "description": "Response from the GetAncestry method.", | 654 "description": "Response from the GetAncestry method.", |
812 "id": "GetAncestryResponse", | 655 "id": "GetAncestryResponse", |
813 "properties": { | 656 "properties": { |
814 "ancestor": { | 657 "ancestor": { |
815 "description": "Ancestors are ordered from bottom to top of
the resource hierarchy. The\nfirst ancestor is the project itself, followed by t
he project's parent,\netc.", | 658 "description": "Ancestors are ordered from bottom to top of
the resource hierarchy. The\nfirst ancestor is the project itself, followed by t
he project's parent,\netc.", |
816 "items": { | 659 "items": { |
817 "$ref": "Ancestor" | 660 "$ref": "Ancestor" |
818 }, | 661 }, |
819 "type": "array" | 662 "type": "array" |
820 } | 663 } |
821 }, | 664 }, |
822 "type": "object" | 665 "type": "object" |
823 }, | 666 }, |
824 "Empty": { | 667 "OrganizationOwner": { |
825 "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 i
t as the request\nor the response type of an API method. For instance:\n\n se
rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty
);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", | 668 "description": "The entity that owns an Organization. The lifetime o
f the Organization and\nall of its descendants are bound to the `OrganizationOwn
er`. If the\n`OrganizationOwner` is deleted, the Organization and all its descen
dants will\nbe deleted.", |
826 "id": "Empty", | 669 "id": "OrganizationOwner", |
827 "properties": {}, | |
828 "type": "object" | |
829 }, | |
830 "Ancestor": { | |
831 "description": "Identifying information for a single ancestor of a p
roject.", | |
832 "id": "Ancestor", | |
833 "properties": { | 670 "properties": { |
834 "resourceId": { | 671 "directoryCustomerId": { |
835 "$ref": "ResourceId", | 672 "description": "The Google for Work customer id used in the
Directory API.", |
836 "description": "Resource id of the ancestor." | 673 "type": "string" |
837 } | 674 } |
838 }, | 675 }, |
839 "type": "object" | 676 "type": "object" |
840 }, | 677 }, |
841 "ResourceId": { | 678 "ListProjectsResponse": { |
842 "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 ar
e an AppEngine app,\na Compute Engine instance, a Cloud SQL database, and so on.
", | 679 "description": "A page of the response received from the\nListProjec
ts\nmethod.\n\nA paginated response where more pages are available has\n`next_pa
ge_token` set. This token can be used in a subsequent request to\nretrieve the n
ext request page.", |
843 "id": "ResourceId", | 680 "id": "ListProjectsResponse", |
844 "properties": { | 681 "properties": { |
845 "type": { | 682 "projects": { |
846 "description": "Required field representing the resource typ
e this id is for.\nAt present, the valid types are \"project\" and \"organizatio
n\".", | 683 "description": "The list of Projects that matched the list f
ilter. This list can\nbe paginated.", |
847 "type": "string" | 684 "items": { |
| 685 "$ref": "Project" |
| 686 }, |
| 687 "type": "array" |
848 }, | 688 }, |
849 "id": { | 689 "nextPageToken": { |
850 "description": "Required field for the type-specific id. Thi
s should correspond to the id\nused in the type-specific API's.", | 690 "description": "Pagination token.\n\nIf the result set is to
o large to fit in a single response, this token\nis returned. It encodes the pos
ition 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 `ne
xt_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."
, |
851 "type": "string" | 691 "type": "string" |
852 } | 692 } |
853 }, | 693 }, |
854 "type": "object" | 694 "type": "object" |
855 }, | 695 }, |
| 696 "GetAncestryRequest": { |
| 697 "description": "The request sent to the\nGetAncestry\nmethod.", |
| 698 "id": "GetAncestryRequest", |
| 699 "properties": {}, |
| 700 "type": "object" |
| 701 }, |
856 "Project": { | 702 "Project": { |
857 "description": "A Project is a high-level Google Cloud Platform enti
ty. It is a\ncontainer for ACLs, APIs, AppEngine Apps, VMs, and other\nGoogle C
loud Platform resources.", | 703 "description": "A Project is a high-level Google Cloud Platform enti
ty. It is a\ncontainer for ACLs, APIs, AppEngine Apps, VMs, and other\nGoogle C
loud Platform resources.", |
858 "id": "Project", | 704 "id": "Project", |
859 "properties": { | 705 "properties": { |
860 "parent": { | 706 "name": { |
861 "$ref": "ResourceId", | 707 "description": "The user-assigned display name of the Projec
t.\nIt must be 4 to 30 characters.\nAllowed characters are: lowercase and upperc
ase letters, numbers,\nhyphen, single-quote, double-quote, space, and exclamatio
n point.\n\nExample: <code>My Project</code>\nRead-write.", |
862 "description": "An optional reference to a parent Resource.\
n\nThe only supported parent type is \"organization\". Once set, the parent\ncan
not be modified. The `parent` can be set on creation or using the\n`UpdateProjec
t` method; the end user must have the\n`resourcemanager.projects.create` permiss
ion on the parent.\n\nRead-write." | 708 "type": "string" |
863 }, | 709 }, |
864 "labels": { | 710 "projectId": { |
865 "additionalProperties": { | 711 "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</co
de>\nRead-only after creation.", |
866 "type": "string" | 712 "type": "string" |
867 }, | |
868 "description": "The labels associated with this Project.\n\n
Label keys must be between 1 and 63 characters long and must conform\nto the fol
lowing regular expression: \\[a-z\\](\\[-a-z0-9\\]*\\[a-z0-9\\])?.\n\nLabel valu
es must be between 0 and 63 characters long and must conform\nto the regular exp
ression (\\[a-z\\](\\[-a-z0-9\\]*\\[a-z0-9\\])?)?.\n\nNo more than 256 labels ca
n be associated with a given resource.\n\nClients should store labels in a repre
sentation such as JSON that does not\ndepend on specific characters being disall
owed.\n\nExample: <code>\"environment\" : \"dev\"</code>\nRead-write.", | |
869 "type": "object" | |
870 }, | 713 }, |
871 "lifecycleState": { | 714 "lifecycleState": { |
872 "description": "The Project lifecycle state.\n\nRead-only.", | 715 "description": "The Project lifecycle state.\n\nRead-only.", |
873 "enum": [ | 716 "enum": [ |
874 "LIFECYCLE_STATE_UNSPECIFIED", | 717 "LIFECYCLE_STATE_UNSPECIFIED", |
875 "ACTIVE", | 718 "ACTIVE", |
876 "DELETE_REQUESTED", | 719 "DELETE_REQUESTED", |
877 "DELETE_IN_PROGRESS" | 720 "DELETE_IN_PROGRESS" |
878 ], | 721 ], |
879 "enumDescriptions": [ | 722 "enumDescriptions": [ |
880 "Unspecified state. This is only used/useful for distin
guishing\nunset values.", | 723 "Unspecified state. This is only used/useful for distin
guishing\nunset values.", |
881 "The normal and active state.", | 724 "The normal and active state.", |
882 "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.", | 725 "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.", |
883 "This lifecycle state is no longer used and is not retur
ned by the API." | 726 "This lifecycle state is no longer used and is not retur
ned by the API." |
884 ], | 727 ], |
885 "type": "string" | 728 "type": "string" |
886 }, | 729 }, |
887 "createTime": { | |
888 "description": "Creation time.\n\nRead-only.", | |
889 "format": "google-datetime", | |
890 "type": "string" | |
891 }, | |
892 "name": { | |
893 "description": "The user-assigned display name of the Projec
t.\nIt must be 4 to 30 characters.\nAllowed characters are: lowercase and upperc
ase letters, numbers,\nhyphen, single-quote, double-quote, space, and exclamatio
n point.\n\nExample: <code>My Project</code>\nRead-write.", | |
894 "type": "string" | |
895 }, | |
896 "projectNumber": { | 730 "projectNumber": { |
897 "description": "The number uniquely identifying the project.
\n\nExample: <code>415104041262</code>\nRead-only.", | 731 "description": "The number uniquely identifying the project.
\n\nExample: <code>415104041262</code>\nRead-only.", |
898 "format": "int64", | 732 "format": "int64", |
899 "type": "string" | 733 "type": "string" |
900 }, | 734 }, |
901 "projectId": { | 735 "parent": { |
902 "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</co
de>\nRead-only after creation.", | 736 "$ref": "ResourceId", |
| 737 "description": "An optional reference to a parent Resource.\
n\nThe only supported parent type is \"organization\". Once set, the parent\ncan
not be modified. The `parent` can be set on creation or using the\n`UpdateProjec
t` method; the end user must have the\n`resourcemanager.projects.create` permiss
ion on the parent.\n\nRead-write." |
| 738 }, |
| 739 "labels": { |
| 740 "additionalProperties": { |
| 741 "type": "string" |
| 742 }, |
| 743 "description": "The labels associated with this Project.\n\n
Label keys must be between 1 and 63 characters long and must conform\nto the fol
lowing regular expression: \\[a-z\\](\\[-a-z0-9\\]*\\[a-z0-9\\])?.\n\nLabel valu
es must be between 0 and 63 characters long and must conform\nto the regular exp
ression (\\[a-z\\](\\[-a-z0-9\\]*\\[a-z0-9\\])?)?.\n\nNo more than 256 labels ca
n be associated with a given resource.\n\nClients should store labels in a repre
sentation such as JSON that does not\ndepend on specific characters being disall
owed.\n\nExample: <code>\"environment\" : \"dev\"</code>\nRead-write.", |
| 744 "type": "object" |
| 745 }, |
| 746 "createTime": { |
| 747 "description": "Creation time.\n\nRead-only.", |
| 748 "format": "google-datetime", |
903 "type": "string" | 749 "type": "string" |
904 } | 750 } |
905 }, | 751 }, |
906 "type": "object" | 752 "type": "object" |
| 753 }, |
| 754 "TestIamPermissionsRequest": { |
| 755 "description": "Request message for `TestIamPermissions` method.", |
| 756 "id": "TestIamPermissionsRequest", |
| 757 "properties": { |
| 758 "permissions": { |
| 759 "description": "The set of permissions to check for the `res
ource`. Permissions with\nwildcards (such as '*' or 'storage.*') are not allowed
. For more\ninformation see\n[IAM Overview](https://cloud.google.com/iam/docs/ov
erview#permissions).", |
| 760 "items": { |
| 761 "type": "string" |
| 762 }, |
| 763 "type": "array" |
| 764 } |
| 765 }, |
| 766 "type": "object" |
| 767 }, |
| 768 "Policy": { |
| 769 "description": "Defines an Identity and Access Management (IAM) poli
cy. 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,\nG
oogle domains, and service accounts. A `role` is a named list of permissions\nde
fined 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.gserviceaccoun
t.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).", |
| 770 "id": "Policy", |
| 771 "properties": { |
| 772 "etag": { |
| 773 "description": "`etag` is used for optimistic concurrency co
ntrol as a way to help\nprevent simultaneous updates of a policy from overwritin
g each other.\nIt is strongly suggested that systems make use of the `etag` in t
he\nread-modify-write cycle to perform policy updates in order to avoid race\nco
nditions: 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 t
heir change will be applied to the same version of the policy.\n\nIf no `etag` i
s provided in the call to `setIamPolicy`, then the existing\npolicy is overwritt
en blindly.", |
| 774 "format": "byte", |
| 775 "type": "string" |
| 776 }, |
| 777 "version": { |
| 778 "description": "Version of the `Policy`. The default version
is 0.", |
| 779 "format": "int32", |
| 780 "type": "integer" |
| 781 }, |
| 782 "bindings": { |
| 783 "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.", |
| 784 "items": { |
| 785 "$ref": "Binding" |
| 786 }, |
| 787 "type": "array" |
| 788 } |
| 789 }, |
| 790 "type": "object" |
| 791 }, |
| 792 "FolderOperation": { |
| 793 "description": "Metadata describing a long running folder operation"
, |
| 794 "id": "FolderOperation", |
| 795 "properties": { |
| 796 "operationType": { |
| 797 "description": "The type of this operation.", |
| 798 "enum": [ |
| 799 "OPERATION_TYPE_UNSPECIFIED", |
| 800 "CREATE", |
| 801 "MOVE" |
| 802 ], |
| 803 "enumDescriptions": [ |
| 804 "Operation type not specified.", |
| 805 "A create folder operation.", |
| 806 "A move folder operation." |
| 807 ], |
| 808 "type": "string" |
| 809 }, |
| 810 "displayName": { |
| 811 "description": "The display name of the folder.", |
| 812 "type": "string" |
| 813 }, |
| 814 "sourceParent": { |
| 815 "description": "The resource name of the folder's parent.\nO
nly applicable when the operation_type is MOVE.", |
| 816 "type": "string" |
| 817 }, |
| 818 "destinationParent": { |
| 819 "description": "The resource name of the folder or organizat
ion we are either creating\nthe folder under or moving the folder to.", |
| 820 "type": "string" |
| 821 } |
| 822 }, |
| 823 "type": "object" |
| 824 }, |
| 825 "FolderOperationError": { |
| 826 "description": "A classification of the Folder Operation error.", |
| 827 "id": "FolderOperationError", |
| 828 "properties": { |
| 829 "errorMessageId": { |
| 830 "description": "The type of operation error experienced.", |
| 831 "enum": [ |
| 832 "ERROR_TYPE_UNSPECIFIED", |
| 833 "FOLDER_HEIGHT_VIOLATION", |
| 834 "MAX_CHILD_FOLDERS_VIOLATION", |
| 835 "FOLDER_NAME_UNIQUENESS_VIOLATION", |
| 836 "RESOURCE_DELETED", |
| 837 "PARENT_DELETED", |
| 838 "CYCLE_INTRODUCED_ERROR", |
| 839 "FOLDER_ALREADY_BEING_MOVED", |
| 840 "FOLDER_TO_DELETE_NON_EMPTY" |
| 841 ], |
| 842 "enumDescriptions": [ |
| 843 "The error type was unrecognized or unspecified.", |
| 844 "The attempted action would violate the max folder depth
constraint.", |
| 845 "The attempted action would violate the max child folder
s constraint.", |
| 846 "The attempted action would violate the locally-unique f
older\ndisplay_name constraint.", |
| 847 "The resource being moved has been deleted.", |
| 848 "The resource a folder was being added to has been delet
ed.", |
| 849 "The attempted action would introduce cycle in resource
path.", |
| 850 "The attempted action would move a folder that is alread
y being moved.", |
| 851 "The folder the caller is trying to delete contains acti
ve resources." |
| 852 ], |
| 853 "type": "string" |
| 854 } |
| 855 }, |
| 856 "type": "object" |
| 857 }, |
| 858 "ResourceId": { |
| 859 "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 ar
e an AppEngine app,\na Compute Engine instance, a Cloud SQL database, and so on.
", |
| 860 "id": "ResourceId", |
| 861 "properties": { |
| 862 "type": { |
| 863 "description": "Required field representing the resource typ
e this id is for.\nAt present, the valid types are \"project\" and \"organizatio
n\".", |
| 864 "type": "string" |
| 865 }, |
| 866 "id": { |
| 867 "description": "Required field for the type-specific id. Thi
s should correspond to the id\nused in the type-specific API's.", |
| 868 "type": "string" |
| 869 } |
| 870 }, |
| 871 "type": "object" |
| 872 }, |
| 873 "Ancestor": { |
| 874 "description": "Identifying information for a single ancestor of a p
roject.", |
| 875 "id": "Ancestor", |
| 876 "properties": { |
| 877 "resourceId": { |
| 878 "$ref": "ResourceId", |
| 879 "description": "Resource id of the ancestor." |
| 880 } |
| 881 }, |
| 882 "type": "object" |
| 883 }, |
| 884 "ListOrganizationsResponse": { |
| 885 "description": "The response returned from the `ListOrganizations` m
ethod.", |
| 886 "id": "ListOrganizationsResponse", |
| 887 "properties": { |
| 888 "nextPageToken": { |
| 889 "description": "A pagination token to be used to retrieve th
e 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 th
is response\ncontains the last page of results.", |
| 890 "type": "string" |
| 891 }, |
| 892 "organizations": { |
| 893 "description": "The list of Organizations that matched the l
ist query, possibly paginated.", |
| 894 "items": { |
| 895 "$ref": "Organization" |
| 896 }, |
| 897 "type": "array" |
| 898 } |
| 899 }, |
| 900 "type": "object" |
| 901 }, |
| 902 "SetIamPolicyRequest": { |
| 903 "description": "Request message for `SetIamPolicy` method.", |
| 904 "id": "SetIamPolicyRequest", |
| 905 "properties": { |
| 906 "policy": { |
| 907 "$ref": "Policy", |
| 908 "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 emp
ty policy is a\nvalid policy but certain Cloud Platform services (such as Projec
ts)\nmight reject them." |
| 909 } |
| 910 }, |
| 911 "type": "object" |
907 }, | 912 }, |
908 "Binding": { | 913 "Binding": { |
909 "description": "Associates `members` with a `role`.", | 914 "description": "Associates `members` with a `role`.", |
910 "id": "Binding", | 915 "id": "Binding", |
911 "properties": { | 916 "properties": { |
912 "members": { | 917 "members": { |
913 "description": "Specifies the identities requesting access f
or a Cloud Platform resource.\n`members` can have the following values:\n\n* `al
lUsers`: A special identifier that represents anyone who is\n on the internet;
with or without a Google account.\n\n* `allAuthenticatedUsers`: A special ident
ifier 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 spec
ific 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:{e
mailid}`: An email address that represents a Google group.\n For example, `adm
ins@example.com`.\n\n* `domain:{domain}`: A Google Apps domain name that represe
nts all the\n users of that domain. For example, `google.com` or `example.com`
.\n\n", | 918 "description": "Specifies the identities requesting access f
or a Cloud Platform resource.\n`members` can have the following values:\n\n* `al
lUsers`: A special identifier that represents anyone who is\n on the internet;
with or without a Google account.\n\n* `allAuthenticatedUsers`: A special ident
ifier 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 spec
ific 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:{e
mailid}`: An email address that represents a Google group.\n For example, `adm
ins@example.com`.\n\n* `domain:{domain}`: A Google Apps domain name that represe
nts all the\n users of that domain. For example, `google.com` or `example.com`
.\n\n", |
914 "items": { | 919 "items": { |
915 "type": "string" | 920 "type": "string" |
916 }, | 921 }, |
917 "type": "array" | 922 "type": "array" |
918 }, | 923 }, |
919 "role": { | 924 "role": { |
920 "description": "Role that is assigned to `members`.\nFor exa
mple, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired", | 925 "description": "Role that is assigned to `members`.\nFor exa
mple, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired", |
921 "type": "string" | 926 "type": "string" |
922 } | 927 } |
923 }, | 928 }, |
924 "type": "object" | 929 "type": "object" |
925 }, | 930 }, |
926 "OrganizationOwner": { | 931 "Empty": { |
927 "description": "The entity that owns an Organization. The lifetime o
f the Organization and\nall of its descendants are bound to the `OrganizationOwn
er`. If the\n`OrganizationOwner` is deleted, the Organization and all its descen
dants will\nbe deleted.", | 932 "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 i
t as the request\nor the response type of an API method. For instance:\n\n se
rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty
);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", |
928 "id": "OrganizationOwner", | 933 "id": "Empty", |
929 "properties": { | 934 "properties": {}, |
930 "directoryCustomerId": { | |
931 "description": "The Google for Work customer id used in the
Directory API.", | |
932 "type": "string" | |
933 } | |
934 }, | |
935 "type": "object" | 935 "type": "object" |
936 } | 936 } |
937 }, | 937 }, |
938 "servicePath": "", | 938 "servicePath": "", |
939 "title": "Google Cloud Resource Manager API", | 939 "title": "Google Cloud Resource Manager API", |
940 "version": "v1beta1" | 940 "version": "v1beta1" |
941 } | 941 } |
OLD | NEW |