| OLD | NEW |
| 1 { | 1 { |
| 2 "auth": { | 2 "auth": { |
| 3 "oauth2": { | 3 "oauth2": { |
| 4 "scopes": { | 4 "scopes": { |
| 5 "https://www.googleapis.com/auth/source.read_only": { |
| 6 "description": "View the contents of your source code reposi
tories" |
| 7 }, |
| 8 "https://www.googleapis.com/auth/source.read_write": { |
| 9 "description": "Manage the contents of your source code repo
sitories" |
| 10 }, |
| 5 "https://www.googleapis.com/auth/cloud-platform": { | 11 "https://www.googleapis.com/auth/cloud-platform": { |
| 6 "description": "View and manage your data across Google Clou
d Platform services" | 12 "description": "View and manage your data across Google Clou
d Platform services" |
| 7 } | 13 } |
| 8 } | 14 } |
| 9 } | 15 } |
| 10 }, | 16 }, |
| 11 "basePath": "", | 17 "basePath": "", |
| 12 "baseUrl": "https://sourcerepo.googleapis.com/", | 18 "baseUrl": "https://sourcerepo.googleapis.com/", |
| 13 "batchPath": "batch", | 19 "batchPath": "batch", |
| 14 "canonicalName": "Cloud Source Repositories", | 20 "canonicalName": "Cloud Source Repositories", |
| 15 "description": "Access source code repositories hosted by Google.", | 21 "description": "Access source code repositories hosted by Google.", |
| 16 "discoveryVersion": "v1", | 22 "discoveryVersion": "v1", |
| 17 "documentationLink": "https://cloud.google.com/source-repositories/docs/apis
", | 23 "documentationLink": "https://cloud.google.com/source-repositories/docs/apis
", |
| 18 "icons": { | 24 "icons": { |
| 19 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 25 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 20 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 26 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 21 }, | 27 }, |
| 22 "id": "sourcerepo:v1", | 28 "id": "sourcerepo:v1", |
| 23 "kind": "discovery#restDescription", | 29 "kind": "discovery#restDescription", |
| 24 "name": "sourcerepo", | 30 "name": "sourcerepo", |
| 25 "ownerDomain": "google.com", | 31 "ownerDomain": "google.com", |
| 26 "ownerName": "Google", | 32 "ownerName": "Google", |
| 27 "parameters": { | 33 "parameters": { |
| 34 "upload_protocol": { |
| 35 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 36 "location": "query", |
| 37 "type": "string" |
| 38 }, |
| 39 "prettyPrint": { |
| 40 "default": "true", |
| 41 "description": "Returns response with indentations and line breaks."
, |
| 42 "location": "query", |
| 43 "type": "boolean" |
| 44 }, |
| 28 "fields": { | 45 "fields": { |
| 29 "description": "Selector specifying which fields to include in a par
tial response.", | 46 "description": "Selector specifying which fields to include in a par
tial response.", |
| 30 "location": "query", | 47 "location": "query", |
| 31 "type": "string" | 48 "type": "string" |
| 32 }, | 49 }, |
| 33 "uploadType": { | 50 "uploadType": { |
| 34 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | 51 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 35 "location": "query", | 52 "location": "query", |
| 36 "type": "string" | 53 "type": "string" |
| 37 }, | 54 }, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 62 "proto" | 79 "proto" |
| 63 ], | 80 ], |
| 64 "enumDescriptions": [ | 81 "enumDescriptions": [ |
| 65 "Responses with Content-Type of application/json", | 82 "Responses with Content-Type of application/json", |
| 66 "Media download with context-dependent Content-Type", | 83 "Media download with context-dependent Content-Type", |
| 67 "Responses with Content-Type of application/x-protobuf" | 84 "Responses with Content-Type of application/x-protobuf" |
| 68 ], | 85 ], |
| 69 "location": "query", | 86 "location": "query", |
| 70 "type": "string" | 87 "type": "string" |
| 71 }, | 88 }, |
| 89 "access_token": { |
| 90 "description": "OAuth access token.", |
| 91 "location": "query", |
| 92 "type": "string" |
| 93 }, |
| 72 "key": { | 94 "key": { |
| 73 "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.", | 95 "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.", |
| 74 "location": "query", | 96 "location": "query", |
| 75 "type": "string" | 97 "type": "string" |
| 76 }, | 98 }, |
| 77 "access_token": { | |
| 78 "description": "OAuth access token.", | |
| 79 "location": "query", | |
| 80 "type": "string" | |
| 81 }, | |
| 82 "quotaUser": { | 99 "quotaUser": { |
| 83 "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.", | 100 "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.", |
| 84 "location": "query", | 101 "location": "query", |
| 85 "type": "string" | 102 "type": "string" |
| 86 }, | 103 }, |
| 87 "pp": { | 104 "pp": { |
| 88 "default": "true", | 105 "default": "true", |
| 89 "description": "Pretty-print response.", | 106 "description": "Pretty-print response.", |
| 90 "location": "query", | 107 "location": "query", |
| 91 "type": "boolean" | 108 "type": "boolean" |
| 92 }, | 109 }, |
| 93 "oauth_token": { | 110 "oauth_token": { |
| 94 "description": "OAuth 2.0 token for the current user.", | 111 "description": "OAuth 2.0 token for the current user.", |
| 95 "location": "query", | 112 "location": "query", |
| 96 "type": "string" | 113 "type": "string" |
| 97 }, | 114 }, |
| 98 "bearer_token": { | 115 "bearer_token": { |
| 99 "description": "OAuth bearer token.", | 116 "description": "OAuth bearer token.", |
| 100 "location": "query", | 117 "location": "query", |
| 101 "type": "string" | 118 "type": "string" |
| 102 }, | |
| 103 "upload_protocol": { | |
| 104 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | |
| 105 "location": "query", | |
| 106 "type": "string" | |
| 107 }, | |
| 108 "prettyPrint": { | |
| 109 "default": "true", | |
| 110 "description": "Returns response with indentations and line breaks."
, | |
| 111 "location": "query", | |
| 112 "type": "boolean" | |
| 113 } | 119 } |
| 114 }, | 120 }, |
| 115 "protocol": "rest", | 121 "protocol": "rest", |
| 116 "resources": { | 122 "resources": { |
| 117 "projects": { | 123 "projects": { |
| 118 "resources": { | 124 "resources": { |
| 119 "repos": { | 125 "repos": { |
| 120 "methods": { | 126 "methods": { |
| 127 "setIamPolicy": { |
| 128 "description": "Sets the access control policy on th
e specified resource. Replaces any\nexisting policy.", |
| 129 "httpMethod": "POST", |
| 130 "id": "sourcerepo.projects.repos.setIamPolicy", |
| 131 "parameterOrder": [ |
| 132 "resource" |
| 133 ], |
| 134 "parameters": { |
| 135 "resource": { |
| 136 "description": "REQUIRED: The resource for w
hich the policy is being specified.\nSee the operation documentation for the app
ropriate value for this field.", |
| 137 "location": "path", |
| 138 "pattern": "^projects/[^/]+/repos/.+$", |
| 139 "required": true, |
| 140 "type": "string" |
| 141 } |
| 142 }, |
| 143 "path": "v1/{+resource}:setIamPolicy", |
| 144 "request": { |
| 145 "$ref": "SetIamPolicyRequest" |
| 146 }, |
| 147 "response": { |
| 148 "$ref": "Policy" |
| 149 }, |
| 150 "scopes": [ |
| 151 "https://www.googleapis.com/auth/cloud-platform"
, |
| 152 "https://www.googleapis.com/auth/source.read_onl
y", |
| 153 "https://www.googleapis.com/auth/source.read_wri
te" |
| 154 ] |
| 155 }, |
| 156 "create": { |
| 157 "description": "Creates a repo in the given project
with the given name.\n\nIf the named repository already exists, `CreateRepo` ret
urns\n`ALREADY_EXISTS`.", |
| 158 "httpMethod": "POST", |
| 159 "id": "sourcerepo.projects.repos.create", |
| 160 "parameterOrder": [ |
| 161 "parent" |
| 162 ], |
| 163 "parameters": { |
| 164 "parent": { |
| 165 "description": "The project in which to crea
te the repo. Values are of the form\n`projects/<project>`.", |
| 166 "location": "path", |
| 167 "pattern": "^projects/[^/]+$", |
| 168 "required": true, |
| 169 "type": "string" |
| 170 } |
| 171 }, |
| 172 "path": "v1/{+parent}/repos", |
| 173 "request": { |
| 174 "$ref": "Repo" |
| 175 }, |
| 176 "response": { |
| 177 "$ref": "Repo" |
| 178 }, |
| 179 "scopes": [ |
| 180 "https://www.googleapis.com/auth/cloud-platform"
, |
| 181 "https://www.googleapis.com/auth/source.read_onl
y", |
| 182 "https://www.googleapis.com/auth/source.read_wri
te" |
| 183 ] |
| 184 }, |
| 185 "getIamPolicy": { |
| 186 "description": "Gets the access control policy for a
resource.\nReturns an empty policy if the resource exists and does not have a p
olicy\nset.", |
| 187 "httpMethod": "GET", |
| 188 "id": "sourcerepo.projects.repos.getIamPolicy", |
| 189 "parameterOrder": [ |
| 190 "resource" |
| 191 ], |
| 192 "parameters": { |
| 193 "resource": { |
| 194 "description": "REQUIRED: The resource for w
hich the policy is being requested.\nSee the operation documentation for the app
ropriate value for this field.", |
| 195 "location": "path", |
| 196 "pattern": "^projects/[^/]+/repos/.+$", |
| 197 "required": true, |
| 198 "type": "string" |
| 199 } |
| 200 }, |
| 201 "path": "v1/{+resource}:getIamPolicy", |
| 202 "response": { |
| 203 "$ref": "Policy" |
| 204 }, |
| 205 "scopes": [ |
| 206 "https://www.googleapis.com/auth/cloud-platform"
, |
| 207 "https://www.googleapis.com/auth/source.read_onl
y", |
| 208 "https://www.googleapis.com/auth/source.read_wri
te" |
| 209 ] |
| 210 }, |
| 211 "get": { |
| 212 "description": "Returns information about a repo.", |
| 213 "httpMethod": "GET", |
| 214 "id": "sourcerepo.projects.repos.get", |
| 215 "parameterOrder": [ |
| 216 "name" |
| 217 ], |
| 218 "parameters": { |
| 219 "name": { |
| 220 "description": "The name of the requested re
pository. Values are of the form\n`projects/<project>/repos/<repo>`.", |
| 221 "location": "path", |
| 222 "pattern": "^projects/[^/]+/repos/.+$", |
| 223 "required": true, |
| 224 "type": "string" |
| 225 } |
| 226 }, |
| 227 "path": "v1/{+name}", |
| 228 "response": { |
| 229 "$ref": "Repo" |
| 230 }, |
| 231 "scopes": [ |
| 232 "https://www.googleapis.com/auth/cloud-platform"
, |
| 233 "https://www.googleapis.com/auth/source.read_onl
y", |
| 234 "https://www.googleapis.com/auth/source.read_wri
te" |
| 235 ] |
| 236 }, |
| 121 "testIamPermissions": { | 237 "testIamPermissions": { |
| 122 "description": "Returns permissions that a caller ha
s on the specified resource.\nIf the resource does not exist, this will return a
n empty set of\npermissions, not a NOT_FOUND error.", | 238 "description": "Returns permissions that a caller ha
s on the specified resource.\nIf the resource does not exist, this will return a
n empty set of\npermissions, not a NOT_FOUND error.", |
| 123 "httpMethod": "POST", | 239 "httpMethod": "POST", |
| 124 "id": "sourcerepo.projects.repos.testIamPermissions"
, | 240 "id": "sourcerepo.projects.repos.testIamPermissions"
, |
| 125 "parameterOrder": [ | 241 "parameterOrder": [ |
| 126 "resource" | 242 "resource" |
| 127 ], | 243 ], |
| 128 "parameters": { | 244 "parameters": { |
| 129 "resource": { | 245 "resource": { |
| 130 "description": "REQUIRED: The resource for w
hich the policy detail is being requested.\nSee the operation documentation for
the appropriate value for this field.", | 246 "description": "REQUIRED: The resource for w
hich the policy detail is being requested.\nSee the operation documentation for
the appropriate value for this field.", |
| 131 "location": "path", | 247 "location": "path", |
| 132 "pattern": "^projects/[^/]+/repos/.+$", | 248 "pattern": "^projects/[^/]+/repos/.+$", |
| 133 "required": true, | 249 "required": true, |
| 134 "type": "string" | 250 "type": "string" |
| 135 } | 251 } |
| 136 }, | 252 }, |
| 137 "path": "v1/{+resource}:testIamPermissions", | 253 "path": "v1/{+resource}:testIamPermissions", |
| 138 "request": { | 254 "request": { |
| 139 "$ref": "TestIamPermissionsRequest" | 255 "$ref": "TestIamPermissionsRequest" |
| 140 }, | 256 }, |
| 141 "response": { | 257 "response": { |
| 142 "$ref": "TestIamPermissionsResponse" | 258 "$ref": "TestIamPermissionsResponse" |
| 143 }, | 259 }, |
| 144 "scopes": [ | 260 "scopes": [ |
| 145 "https://www.googleapis.com/auth/cloud-platform" | 261 "https://www.googleapis.com/auth/cloud-platform"
, |
| 262 "https://www.googleapis.com/auth/source.read_onl
y", |
| 263 "https://www.googleapis.com/auth/source.read_wri
te" |
| 146 ] | 264 ] |
| 147 }, | 265 }, |
| 148 "delete": { | 266 "delete": { |
| 149 "description": "Deletes a repo.", | 267 "description": "Deletes a repo.", |
| 150 "httpMethod": "DELETE", | 268 "httpMethod": "DELETE", |
| 151 "id": "sourcerepo.projects.repos.delete", | 269 "id": "sourcerepo.projects.repos.delete", |
| 152 "parameterOrder": [ | 270 "parameterOrder": [ |
| 153 "name" | 271 "name" |
| 154 ], | 272 ], |
| 155 "parameters": { | 273 "parameters": { |
| 156 "name": { | 274 "name": { |
| 157 "description": "The name of the repo to dele
te. Values are of the form\n`projects/<project>/repos/<repo>`.", | 275 "description": "The name of the repo to dele
te. Values are of the form\n`projects/<project>/repos/<repo>`.", |
| 158 "location": "path", | 276 "location": "path", |
| 159 "pattern": "^projects/[^/]+/repos/.+$", | 277 "pattern": "^projects/[^/]+/repos/.+$", |
| 160 "required": true, | 278 "required": true, |
| 161 "type": "string" | 279 "type": "string" |
| 162 } | 280 } |
| 163 }, | 281 }, |
| 164 "path": "v1/{+name}", | 282 "path": "v1/{+name}", |
| 165 "response": { | 283 "response": { |
| 166 "$ref": "Empty" | 284 "$ref": "Empty" |
| 167 }, | 285 }, |
| 168 "scopes": [ | 286 "scopes": [ |
| 169 "https://www.googleapis.com/auth/cloud-platform" | 287 "https://www.googleapis.com/auth/cloud-platform"
, |
| 288 "https://www.googleapis.com/auth/source.read_onl
y", |
| 289 "https://www.googleapis.com/auth/source.read_wri
te" |
| 170 ] | 290 ] |
| 171 }, | 291 }, |
| 172 "list": { | 292 "list": { |
| 173 "description": "Returns all repos belonging to a pro
ject.", | 293 "description": "Returns all repos belonging to a pro
ject. The sizes of the repos are\nnot set by ListRepos. To get the size of a re
po, use GetRepo.", |
| 174 "httpMethod": "GET", | 294 "httpMethod": "GET", |
| 175 "id": "sourcerepo.projects.repos.list", | 295 "id": "sourcerepo.projects.repos.list", |
| 176 "parameterOrder": [ | 296 "parameterOrder": [ |
| 177 "name" | 297 "name" |
| 178 ], | 298 ], |
| 179 "parameters": { | 299 "parameters": { |
| 180 "name": { | 300 "name": { |
| 181 "description": "The project ID whose repos s
hould be listed. Values are of the form\n`projects/<project>`.", | 301 "description": "The project ID whose repos s
hould be listed. Values are of the form\n`projects/<project>`.", |
| 182 "location": "path", | 302 "location": "path", |
| 183 "pattern": "^projects/[^/]+$", | 303 "pattern": "^projects/[^/]+$", |
| (...skipping 10 matching lines...) Expand all Loading... |
| 194 "format": "int32", | 314 "format": "int32", |
| 195 "location": "query", | 315 "location": "query", |
| 196 "type": "integer" | 316 "type": "integer" |
| 197 } | 317 } |
| 198 }, | 318 }, |
| 199 "path": "v1/{+name}/repos", | 319 "path": "v1/{+name}/repos", |
| 200 "response": { | 320 "response": { |
| 201 "$ref": "ListReposResponse" | 321 "$ref": "ListReposResponse" |
| 202 }, | 322 }, |
| 203 "scopes": [ | 323 "scopes": [ |
| 204 "https://www.googleapis.com/auth/cloud-platform" | 324 "https://www.googleapis.com/auth/cloud-platform"
, |
| 205 ] | 325 "https://www.googleapis.com/auth/source.read_onl
y", |
| 206 }, | 326 "https://www.googleapis.com/auth/source.read_wri
te" |
| 207 "create": { | |
| 208 "description": "Creates a repo in the given project
with the given name..\n\nIf the named repository already exists, `CreateRepo` re
turns\n`ALREADY_EXISTS`.", | |
| 209 "httpMethod": "POST", | |
| 210 "id": "sourcerepo.projects.repos.create", | |
| 211 "parameterOrder": [ | |
| 212 "parent" | |
| 213 ], | |
| 214 "parameters": { | |
| 215 "parent": { | |
| 216 "description": "The project in which to crea
te the repo. Values are of the form\n`projects/<project>`.", | |
| 217 "location": "path", | |
| 218 "pattern": "^projects/[^/]+$", | |
| 219 "required": true, | |
| 220 "type": "string" | |
| 221 } | |
| 222 }, | |
| 223 "path": "v1/{+parent}/repos", | |
| 224 "request": { | |
| 225 "$ref": "Repo" | |
| 226 }, | |
| 227 "response": { | |
| 228 "$ref": "Repo" | |
| 229 }, | |
| 230 "scopes": [ | |
| 231 "https://www.googleapis.com/auth/cloud-platform" | |
| 232 ] | |
| 233 }, | |
| 234 "setIamPolicy": { | |
| 235 "description": "Sets the access control policy on th
e specified resource. Replaces any\nexisting policy.", | |
| 236 "httpMethod": "POST", | |
| 237 "id": "sourcerepo.projects.repos.setIamPolicy", | |
| 238 "parameterOrder": [ | |
| 239 "resource" | |
| 240 ], | |
| 241 "parameters": { | |
| 242 "resource": { | |
| 243 "description": "REQUIRED: The resource for w
hich the policy is being specified.\nSee the operation documentation for the app
ropriate value for this field.", | |
| 244 "location": "path", | |
| 245 "pattern": "^projects/[^/]+/repos/.+$", | |
| 246 "required": true, | |
| 247 "type": "string" | |
| 248 } | |
| 249 }, | |
| 250 "path": "v1/{+resource}:setIamPolicy", | |
| 251 "request": { | |
| 252 "$ref": "SetIamPolicyRequest" | |
| 253 }, | |
| 254 "response": { | |
| 255 "$ref": "Policy" | |
| 256 }, | |
| 257 "scopes": [ | |
| 258 "https://www.googleapis.com/auth/cloud-platform" | |
| 259 ] | |
| 260 }, | |
| 261 "getIamPolicy": { | |
| 262 "description": "Gets the access control policy for a
resource.\nReturns an empty policy if the resource exists and does not have a p
olicy\nset.", | |
| 263 "httpMethod": "GET", | |
| 264 "id": "sourcerepo.projects.repos.getIamPolicy", | |
| 265 "parameterOrder": [ | |
| 266 "resource" | |
| 267 ], | |
| 268 "parameters": { | |
| 269 "resource": { | |
| 270 "description": "REQUIRED: The resource for w
hich the policy is being requested.\nSee the operation documentation for the app
ropriate value for this field.", | |
| 271 "location": "path", | |
| 272 "pattern": "^projects/[^/]+/repos/.+$", | |
| 273 "required": true, | |
| 274 "type": "string" | |
| 275 } | |
| 276 }, | |
| 277 "path": "v1/{+resource}:getIamPolicy", | |
| 278 "response": { | |
| 279 "$ref": "Policy" | |
| 280 }, | |
| 281 "scopes": [ | |
| 282 "https://www.googleapis.com/auth/cloud-platform" | |
| 283 ] | |
| 284 }, | |
| 285 "get": { | |
| 286 "description": "Returns information about a repo.", | |
| 287 "httpMethod": "GET", | |
| 288 "id": "sourcerepo.projects.repos.get", | |
| 289 "parameterOrder": [ | |
| 290 "name" | |
| 291 ], | |
| 292 "parameters": { | |
| 293 "name": { | |
| 294 "description": "The name of the requested re
pository. Values are of the form\n`projects/<project>/repos/<repo>`.", | |
| 295 "location": "path", | |
| 296 "pattern": "^projects/[^/]+/repos/.+$", | |
| 297 "required": true, | |
| 298 "type": "string" | |
| 299 } | |
| 300 }, | |
| 301 "path": "v1/{+name}", | |
| 302 "response": { | |
| 303 "$ref": "Repo" | |
| 304 }, | |
| 305 "scopes": [ | |
| 306 "https://www.googleapis.com/auth/cloud-platform" | |
| 307 ] | 327 ] |
| 308 } | 328 } |
| 309 } | 329 } |
| 310 } | 330 } |
| 311 } | 331 } |
| 312 } | 332 } |
| 313 }, | 333 }, |
| 314 "revision": "20170502", | 334 "revision": "20170528", |
| 315 "rootUrl": "https://sourcerepo.googleapis.com/", | 335 "rootUrl": "https://sourcerepo.googleapis.com/", |
| 316 "schemas": { | 336 "schemas": { |
| 337 "AuditLogConfig": { |
| 338 "description": "Provides the configuration for logging a type of per
missions.\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.", |
| 339 "id": "AuditLogConfig", |
| 340 "properties": { |
| 341 "exemptedMembers": { |
| 342 "description": "Specifies the identities that do not cause l
ogging for this type of\npermission.\nFollows the same format of Binding.members
.", |
| 343 "items": { |
| 344 "type": "string" |
| 345 }, |
| 346 "type": "array" |
| 347 }, |
| 348 "logType": { |
| 349 "description": "The log type that this config enables.", |
| 350 "enum": [ |
| 351 "LOG_TYPE_UNSPECIFIED", |
| 352 "ADMIN_READ", |
| 353 "DATA_WRITE", |
| 354 "DATA_READ" |
| 355 ], |
| 356 "enumDescriptions": [ |
| 357 "Default case. Should never be this.", |
| 358 "Admin reads. Example: CloudIAM getIamPolicy", |
| 359 "Data writes. Example: CloudSQL Users create", |
| 360 "Data reads. Example: CloudSQL Users list" |
| 361 ], |
| 362 "type": "string" |
| 363 } |
| 364 }, |
| 365 "type": "object" |
| 366 }, |
| 367 "Rule": { |
| 368 "description": "A rule to be applied in a Policy.", |
| 369 "id": "Rule", |
| 370 "properties": { |
| 371 "description": { |
| 372 "description": "Human-readable description of the rule.", |
| 373 "type": "string" |
| 374 }, |
| 375 "conditions": { |
| 376 "description": "Additional restrictions that must be met", |
| 377 "items": { |
| 378 "$ref": "Condition" |
| 379 }, |
| 380 "type": "array" |
| 381 }, |
| 382 "logConfig": { |
| 383 "description": "The config returned to callers of tech.iam.I
AM.CheckPolicy for any entries\nthat match the LOG action.", |
| 384 "items": { |
| 385 "$ref": "LogConfig" |
| 386 }, |
| 387 "type": "array" |
| 388 }, |
| 389 "in": { |
| 390 "description": "If one or more 'in' clauses are specified, t
he rule matches if\nthe PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these
entries.", |
| 391 "items": { |
| 392 "type": "string" |
| 393 }, |
| 394 "type": "array" |
| 395 }, |
| 396 "permissions": { |
| 397 "description": "A permission is a string of form '<service>.
<resource type>.<verb>'\n(e.g., 'storage.buckets.list'). A value of '*' matches
all permissions,\nand a verb part of '*' (e.g., 'storage.buckets.*') matches all
verbs.", |
| 398 "items": { |
| 399 "type": "string" |
| 400 }, |
| 401 "type": "array" |
| 402 }, |
| 403 "action": { |
| 404 "description": "Required", |
| 405 "enum": [ |
| 406 "NO_ACTION", |
| 407 "ALLOW", |
| 408 "ALLOW_WITH_LOG", |
| 409 "DENY", |
| 410 "DENY_WITH_LOG", |
| 411 "LOG" |
| 412 ], |
| 413 "enumDescriptions": [ |
| 414 "Default no action.", |
| 415 "Matching 'Entries' grant access.", |
| 416 "Matching 'Entries' grant access and the caller promises
to log\nthe request per the returned log_configs.", |
| 417 "Matching 'Entries' deny access.", |
| 418 "Matching 'Entries' deny access and the caller promises
to log\nthe request per the returned log_configs.", |
| 419 "Matching 'Entries' tell IAM.Check callers to generate l
ogs." |
| 420 ], |
| 421 "type": "string" |
| 422 }, |
| 423 "notIn": { |
| 424 "description": "If one or more 'not_in' clauses are specifie
d, the rule matches\nif the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entri
es.\nThe format for in and not_in entries is the same as for members in a\nBindi
ng (see google/iam/v1/policy.proto).", |
| 425 "items": { |
| 426 "type": "string" |
| 427 }, |
| 428 "type": "array" |
| 429 } |
| 430 }, |
| 431 "type": "object" |
| 432 }, |
| 317 "LogConfig": { | 433 "LogConfig": { |
| 318 "description": "Specifies what kind of log the caller must write", | 434 "description": "Specifies what kind of log the caller must write", |
| 319 "id": "LogConfig", | 435 "id": "LogConfig", |
| 320 "properties": { | 436 "properties": { |
| 437 "cloudAudit": { |
| 438 "$ref": "CloudAuditOptions", |
| 439 "description": "Cloud audit options." |
| 440 }, |
| 321 "counter": { | 441 "counter": { |
| 322 "$ref": "CounterOptions", | 442 "$ref": "CounterOptions", |
| 323 "description": "Counter options." | 443 "description": "Counter options." |
| 324 }, | 444 }, |
| 325 "dataAccess": { | 445 "dataAccess": { |
| 326 "$ref": "DataAccessOptions", | 446 "$ref": "DataAccessOptions", |
| 327 "description": "Data access options." | 447 "description": "Data access options." |
| 328 }, | |
| 329 "cloudAudit": { | |
| 330 "$ref": "CloudAuditOptions", | |
| 331 "description": "Cloud audit options." | |
| 332 } | 448 } |
| 333 }, | 449 }, |
| 334 "type": "object" | 450 "type": "object" |
| 335 }, | 451 }, |
| 336 "TestIamPermissionsRequest": { | 452 "TestIamPermissionsRequest": { |
| 337 "description": "Request message for `TestIamPermissions` method.", | 453 "description": "Request message for `TestIamPermissions` method.", |
| 338 "id": "TestIamPermissionsRequest", | 454 "id": "TestIamPermissionsRequest", |
| 339 "properties": { | 455 "properties": { |
| 340 "permissions": { | 456 "permissions": { |
| 341 "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).", | 457 "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).", |
| 342 "items": { | 458 "items": { |
| 343 "type": "string" | 459 "type": "string" |
| 344 }, | 460 }, |
| 345 "type": "array" | 461 "type": "array" |
| 346 } | 462 } |
| 347 }, | 463 }, |
| 348 "type": "object" | 464 "type": "object" |
| 349 }, | 465 }, |
| 350 "Policy": { | 466 "Policy": { |
| 351 "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).", | 467 "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).", |
| 352 "id": "Policy", | 468 "id": "Policy", |
| 353 "properties": { | 469 "properties": { |
| 354 "etag": { | |
| 355 "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.", | |
| 356 "format": "byte", | |
| 357 "type": "string" | |
| 358 }, | |
| 359 "iamOwned": { | |
| 360 "type": "boolean" | |
| 361 }, | |
| 362 "rules": { | |
| 363 "description": "If more than one rule is specified, the rule
s are applied in the following\nmanner:\n- All matching LOG rules are always app
lied.\n- If any DENY/DENY_WITH_LOG rule matches, permission is denied.\n Loggin
g will be applied if one or more matching rule requires logging.\n- Otherwise, i
f any ALLOW/ALLOW_WITH_LOG rule matches, permission is\n granted.\n Logging wi
ll be applied if one or more matching rule requires logging.\n- Otherwise, if no
rule applies, permission is denied.", | |
| 364 "items": { | |
| 365 "$ref": "Rule" | |
| 366 }, | |
| 367 "type": "array" | |
| 368 }, | |
| 369 "version": { | 470 "version": { |
| 370 "description": "Version of the `Policy`. The default version
is 0.", | 471 "description": "Version of the `Policy`. The default version
is 0.", |
| 371 "format": "int32", | 472 "format": "int32", |
| 372 "type": "integer" | 473 "type": "integer" |
| 373 }, | 474 }, |
| 374 "auditConfigs": { | 475 "auditConfigs": { |
| 375 "description": "Specifies cloud audit logging configuration
for this policy.", | 476 "description": "Specifies cloud audit logging configuration
for this policy.", |
| 376 "items": { | 477 "items": { |
| 377 "$ref": "AuditConfig" | 478 "$ref": "AuditConfig" |
| 378 }, | 479 }, |
| 379 "type": "array" | 480 "type": "array" |
| 380 }, | 481 }, |
| 381 "bindings": { | 482 "bindings": { |
| 382 "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.", | 483 "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.", |
| 383 "items": { | 484 "items": { |
| 384 "$ref": "Binding" | 485 "$ref": "Binding" |
| 385 }, | 486 }, |
| 386 "type": "array" | 487 "type": "array" |
| 488 }, |
| 489 "etag": { |
| 490 "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.", |
| 491 "format": "byte", |
| 492 "type": "string" |
| 493 }, |
| 494 "iamOwned": { |
| 495 "type": "boolean" |
| 496 }, |
| 497 "rules": { |
| 498 "description": "If more than one rule is specified, the rule
s are applied in the following\nmanner:\n- All matching LOG rules are always app
lied.\n- If any DENY/DENY_WITH_LOG rule matches, permission is denied.\n Loggin
g will be applied if one or more matching rule requires logging.\n- Otherwise, i
f any ALLOW/ALLOW_WITH_LOG rule matches, permission is\n granted.\n Logging wi
ll be applied if one or more matching rule requires logging.\n- Otherwise, if no
rule applies, permission is denied.", |
| 499 "items": { |
| 500 "$ref": "Rule" |
| 501 }, |
| 502 "type": "array" |
| 387 } | 503 } |
| 388 }, | 504 }, |
| 389 "type": "object" | 505 "type": "object" |
| 390 }, | 506 }, |
| 391 "DataAccessOptions": { | 507 "DataAccessOptions": { |
| 392 "description": "Write a Data Access (Gin) log", | 508 "description": "Write a Data Access (Gin) log", |
| 393 "id": "DataAccessOptions", | 509 "id": "DataAccessOptions", |
| 394 "properties": {}, | 510 "properties": {}, |
| 395 "type": "object" | 511 "type": "object" |
| 396 }, | 512 }, |
| 397 "AuditConfig": { | 513 "AuditConfig": { |
| 398 "description": "Specifies the audit configuration for a service.\nTh
e configuration determines which permission types are logged, and what\nidentiti
es, if any, are exempted from logging.\nAn AuditConfig must have one or more Aud
itLogConfigs.\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_t
ypes\nspecified in each AuditConfig are enabled, and the exempted_members in eac
h\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 \"lo
g_type\": \"ADMIN_READ\",\n }\n ]\n },\n {\n
\"service\": \"fooservice.googleapis.com\"\n \"audit_log_config
s\": [\n {\n \"log_type\": \"DATA_READ\",\n }
,\n {\n \"log_type\": \"DATA_WRITE\",\n \"e
xempted_members\": [\n \"user:bar@gmail.com\"\n ]\n
}\n ]\n }\n ]\n }\n\nFor fooservice, this pol
icy enables DATA_READ, DATA_WRITE and ADMIN_READ\nlogging. It also exempts foo@g
mail.com from DATA_READ logging, and\nbar@gmail.com from DATA_WRITE logging.", | 514 "description": "Specifies the audit configuration for a service.\nTh
e configuration determines which permission types are logged, and what\nidentiti
es, if any, are exempted from logging.\nAn AuditConfig must have one or more Aud
itLogConfigs.\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_t
ypes\nspecified in each AuditConfig are enabled, and the exempted_members in eac
h\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 \"lo
g_type\": \"ADMIN_READ\",\n }\n ]\n },\n {\n
\"service\": \"fooservice.googleapis.com\"\n \"audit_log_config
s\": [\n {\n \"log_type\": \"DATA_READ\",\n }
,\n {\n \"log_type\": \"DATA_WRITE\",\n \"e
xempted_members\": [\n \"user:bar@gmail.com\"\n ]\n
}\n ]\n }\n ]\n }\n\nFor fooservice, this pol
icy enables DATA_READ, DATA_WRITE and ADMIN_READ\nlogging. It also exempts foo@g
mail.com from DATA_READ logging, and\nbar@gmail.com from DATA_WRITE logging.", |
| 399 "id": "AuditConfig", | 515 "id": "AuditConfig", |
| 400 "properties": { | 516 "properties": { |
| 401 "service": { | |
| 402 "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.", | |
| 403 "type": "string" | |
| 404 }, | |
| 405 "auditLogConfigs": { | 517 "auditLogConfigs": { |
| 406 "description": "The configuration for logging of each type o
f permission.\nNext ID: 4", | 518 "description": "The configuration for logging of each type o
f permission.\nNext ID: 4", |
| 407 "items": { | 519 "items": { |
| 408 "$ref": "AuditLogConfig" | 520 "$ref": "AuditLogConfig" |
| 409 }, | 521 }, |
| 410 "type": "array" | 522 "type": "array" |
| 411 }, | 523 }, |
| 412 "exemptedMembers": { | 524 "exemptedMembers": { |
| 413 "items": { | 525 "items": { |
| 414 "type": "string" | 526 "type": "string" |
| 415 }, | 527 }, |
| 416 "type": "array" | 528 "type": "array" |
| 529 }, |
| 530 "service": { |
| 531 "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.", |
| 532 "type": "string" |
| 417 } | 533 } |
| 418 }, | 534 }, |
| 419 "type": "object" | 535 "type": "object" |
| 420 }, | 536 }, |
| 421 "SetIamPolicyRequest": { | 537 "SetIamPolicyRequest": { |
| 422 "description": "Request message for `SetIamPolicy` method.", | 538 "description": "Request message for `SetIamPolicy` method.", |
| 423 "id": "SetIamPolicyRequest", | 539 "id": "SetIamPolicyRequest", |
| 424 "properties": { | 540 "properties": { |
| 425 "policy": { | |
| 426 "$ref": "Policy", | |
| 427 "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." | |
| 428 }, | |
| 429 "updateMask": { | 541 "updateMask": { |
| 430 "description": "OPTIONAL: A FieldMask specifying which field
s 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.", | 542 "description": "OPTIONAL: A FieldMask specifying which field
s 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.", |
| 431 "format": "google-fieldmask", | 543 "format": "google-fieldmask", |
| 432 "type": "string" | 544 "type": "string" |
| 545 }, |
| 546 "policy": { |
| 547 "$ref": "Policy", |
| 548 "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." |
| 433 } | 549 } |
| 434 }, | 550 }, |
| 435 "type": "object" | 551 "type": "object" |
| 436 }, | 552 }, |
| 437 "CloudAuditOptions": { | 553 "CloudAuditOptions": { |
| 438 "description": "Write a Cloud Audit log", | 554 "description": "Write a Cloud Audit log", |
| 439 "id": "CloudAuditOptions", | 555 "id": "CloudAuditOptions", |
| 440 "properties": {}, | 556 "properties": { |
| 557 "logName": { |
| 558 "description": "The log_name to populate in the Cloud Audit
Record.", |
| 559 "enum": [ |
| 560 "UNSPECIFIED_LOG_NAME", |
| 561 "ADMIN_ACTIVITY", |
| 562 "DATA_ACCESS" |
| 563 ], |
| 564 "enumDescriptions": [ |
| 565 "Default. Should not be used.", |
| 566 "Corresponds to \"cloudaudit.googleapis.com/activity\"", |
| 567 "Corresponds to \"cloudaudit.googleapis.com/data_access\
"" |
| 568 ], |
| 569 "type": "string" |
| 570 } |
| 571 }, |
| 441 "type": "object" | 572 "type": "object" |
| 442 }, | 573 }, |
| 443 "Binding": { | 574 "Binding": { |
| 444 "description": "Associates `members` with a `role`.", | 575 "description": "Associates `members` with a `role`.", |
| 445 "id": "Binding", | 576 "id": "Binding", |
| 446 "properties": { | 577 "properties": { |
| 447 "members": { | 578 "members": { |
| 448 "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", | 579 "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\n* `domain:{domain}`: A Google Apps domain name that repre
sents all the\n users of that domain. For example, `google.com` or `example.co
m`.\n\n", |
| 449 "items": { | 580 "items": { |
| 450 "type": "string" | 581 "type": "string" |
| 451 }, | 582 }, |
| 452 "type": "array" | 583 "type": "array" |
| 453 }, | 584 }, |
| 454 "role": { | 585 "role": { |
| 455 "description": "Role that is assigned to `members`.\nFor exa
mple, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired", | 586 "description": "Role that is assigned to `members`.\nFor exa
mple, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired", |
| 456 "type": "string" | 587 "type": "string" |
| 457 } | 588 } |
| 458 }, | 589 }, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 481 "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 `{}`.", | 612 "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 `{}`.", |
| 482 "id": "Empty", | 613 "id": "Empty", |
| 483 "properties": {}, | 614 "properties": {}, |
| 484 "type": "object" | 615 "type": "object" |
| 485 }, | 616 }, |
| 486 "Repo": { | 617 "Repo": { |
| 487 "description": "A repository (or repo) is a Git repository storing v
ersioned source content.", | 618 "description": "A repository (or repo) is a Git repository storing v
ersioned source content.", |
| 488 "id": "Repo", | 619 "id": "Repo", |
| 489 "properties": { | 620 "properties": { |
| 490 "name": { | 621 "name": { |
| 491 "description": "Resource name of the repository, of the form
\n`projects/<project>/repos/<repo>`.", | 622 "description": "Resource name of the repository, of the form
\n`projects/<project>/repos/<repo>`. The repo name may contain slashes.\neg, `p
rojects/myproject/repos/name/with/slash`", |
| 492 "type": "string" | 623 "type": "string" |
| 493 }, | 624 }, |
| 494 "mirrorConfig": { | 625 "mirrorConfig": { |
| 495 "$ref": "MirrorConfig", | 626 "$ref": "MirrorConfig", |
| 496 "description": "How this repository mirrors a repository man
aged by another service." | 627 "description": "How this repository mirrors a repository man
aged by another service." |
| 497 }, | 628 }, |
| 498 "url": { | 629 "url": { |
| 499 "description": "URL to clone the repository from Google Clou
d Source Repositories.", | 630 "description": "URL to clone the repository from Google Clou
d Source Repositories.", |
| 500 "type": "string" | 631 "type": "string" |
| 501 }, | 632 }, |
| 502 "size": { | 633 "size": { |
| 503 "description": "The disk usage of the repo, in bytes.\nOnly
returned by GetRepo.", | 634 "description": "The disk usage of the repo, in bytes.\nOnly
returned by GetRepo.", |
| 504 "format": "int64", | 635 "format": "int64", |
| 505 "type": "string" | 636 "type": "string" |
| 506 } | 637 } |
| 507 }, | 638 }, |
| 508 "type": "object" | 639 "type": "object" |
| 509 }, | 640 }, |
| 510 "TestIamPermissionsResponse": { | |
| 511 "description": "Response message for `TestIamPermissions` method.", | |
| 512 "id": "TestIamPermissionsResponse", | |
| 513 "properties": { | |
| 514 "permissions": { | |
| 515 "description": "A subset of `TestPermissionsRequest.permissi
ons` that the caller is\nallowed.", | |
| 516 "items": { | |
| 517 "type": "string" | |
| 518 }, | |
| 519 "type": "array" | |
| 520 } | |
| 521 }, | |
| 522 "type": "object" | |
| 523 }, | |
| 524 "ListReposResponse": { | 641 "ListReposResponse": { |
| 525 "description": "Response for ListRepos.", | 642 "description": "Response for ListRepos. The size is not set in the
returned repositories.", |
| 526 "id": "ListReposResponse", | 643 "id": "ListReposResponse", |
| 527 "properties": { | 644 "properties": { |
| 528 "nextPageToken": { | |
| 529 "description": "If non-empty, additional repositories exist
within the project. These\ncan be retrieved by including this value in the next
ListReposRequest's\npage_token field.", | |
| 530 "type": "string" | |
| 531 }, | |
| 532 "repos": { | 645 "repos": { |
| 533 "description": "The listed repos.", | 646 "description": "The listed repos.", |
| 534 "items": { | 647 "items": { |
| 535 "$ref": "Repo" | 648 "$ref": "Repo" |
| 536 }, | 649 }, |
| 537 "type": "array" | 650 "type": "array" |
| 651 }, |
| 652 "nextPageToken": { |
| 653 "description": "If non-empty, additional repositories exist
within the project. These\ncan be retrieved by including this value in the next
ListReposRequest's\npage_token field.", |
| 654 "type": "string" |
| 538 } | 655 } |
| 539 }, | 656 }, |
| 540 "type": "object" | 657 "type": "object" |
| 541 }, | 658 }, |
| 542 "Condition": { | 659 "Condition": { |
| 543 "description": "A condition to be met.", | 660 "description": "A condition to be met.", |
| 544 "id": "Condition", | 661 "id": "Condition", |
| 545 "properties": { | 662 "properties": { |
| 546 "svc": { | |
| 547 "description": "Trusted attributes discharged by the service
.", | |
| 548 "type": "string" | |
| 549 }, | |
| 550 "sys": { | |
| 551 "description": "Trusted attributes supplied by any service t
hat owns resources and uses\nthe IAM system for access control.", | |
| 552 "enum": [ | |
| 553 "NO_ATTR", | |
| 554 "REGION", | |
| 555 "SERVICE", | |
| 556 "NAME", | |
| 557 "IP" | |
| 558 ], | |
| 559 "enumDescriptions": [ | |
| 560 "Default non-attribute type", | |
| 561 "Region of the resource", | |
| 562 "Service name", | |
| 563 "Resource name", | |
| 564 "IP address of the caller" | |
| 565 ], | |
| 566 "type": "string" | |
| 567 }, | |
| 568 "value": { | |
| 569 "description": "DEPRECATED. Use 'values' instead.", | |
| 570 "type": "string" | |
| 571 }, | |
| 572 "iam": { | 663 "iam": { |
| 573 "description": "Trusted attributes supplied by the IAM syste
m.", | 664 "description": "Trusted attributes supplied by the IAM syste
m.", |
| 574 "enum": [ | 665 "enum": [ |
| 575 "NO_ATTR", | 666 "NO_ATTR", |
| 576 "AUTHORITY", | 667 "AUTHORITY", |
| 577 "ATTRIBUTION", | 668 "ATTRIBUTION", |
| 578 "APPROVER", | 669 "APPROVER", |
| 579 "JUSTIFICATION_TYPE" | 670 "JUSTIFICATION_TYPE" |
| 580 ], | 671 ], |
| 581 "enumDescriptions": [ | 672 "enumDescriptions": [ |
| (...skipping 24 matching lines...) Expand all Loading... |
| 606 ], | 697 ], |
| 607 "enumDescriptions": [ | 698 "enumDescriptions": [ |
| 608 "Default no-op.", | 699 "Default no-op.", |
| 609 "DEPRECATED. Use IN instead.", | 700 "DEPRECATED. Use IN instead.", |
| 610 "DEPRECATED. Use NOT_IN instead.", | 701 "DEPRECATED. Use NOT_IN instead.", |
| 611 "The condition is true if the subject (or any element of
it if it is\na set) matches any of the supplied values.", | 702 "The condition is true if the subject (or any element of
it if it is\na set) matches any of the supplied values.", |
| 612 "The condition is true if the subject (or every element
of it if it is\na set) matches none of the supplied values.", | 703 "The condition is true if the subject (or every element
of it if it is\na set) matches none of the supplied values.", |
| 613 "Subject is discharged" | 704 "Subject is discharged" |
| 614 ], | 705 ], |
| 615 "type": "string" | 706 "type": "string" |
| 707 }, |
| 708 "svc": { |
| 709 "description": "Trusted attributes discharged by the service
.", |
| 710 "type": "string" |
| 711 }, |
| 712 "sys": { |
| 713 "description": "Trusted attributes supplied by any service t
hat owns resources and uses\nthe IAM system for access control.", |
| 714 "enum": [ |
| 715 "NO_ATTR", |
| 716 "REGION", |
| 717 "SERVICE", |
| 718 "NAME", |
| 719 "IP" |
| 720 ], |
| 721 "enumDescriptions": [ |
| 722 "Default non-attribute type", |
| 723 "Region of the resource", |
| 724 "Service name", |
| 725 "Resource name", |
| 726 "IP address of the caller" |
| 727 ], |
| 728 "type": "string" |
| 729 }, |
| 730 "value": { |
| 731 "description": "DEPRECATED. Use 'values' instead.", |
| 732 "type": "string" |
| 733 } |
| 734 }, |
| 735 "type": "object" |
| 736 }, |
| 737 "TestIamPermissionsResponse": { |
| 738 "description": "Response message for `TestIamPermissions` method.", |
| 739 "id": "TestIamPermissionsResponse", |
| 740 "properties": { |
| 741 "permissions": { |
| 742 "description": "A subset of `TestPermissionsRequest.permissi
ons` that the caller is\nallowed.", |
| 743 "items": { |
| 744 "type": "string" |
| 745 }, |
| 746 "type": "array" |
| 616 } | 747 } |
| 617 }, | 748 }, |
| 618 "type": "object" | 749 "type": "object" |
| 619 }, | 750 }, |
| 620 "CounterOptions": { | 751 "CounterOptions": { |
| 621 "description": "Options for counters", | 752 "description": "Options for counters", |
| 622 "id": "CounterOptions", | 753 "id": "CounterOptions", |
| 623 "properties": { | 754 "properties": { |
| 624 "metric": { | 755 "metric": { |
| 625 "description": "The metric to update.", | 756 "description": "The metric to update.", |
| 626 "type": "string" | 757 "type": "string" |
| 627 }, | 758 }, |
| 628 "field": { | 759 "field": { |
| 629 "description": "The field value to attribute.", | 760 "description": "The field value to attribute.", |
| 630 "type": "string" | 761 "type": "string" |
| 631 } | 762 } |
| 632 }, | 763 }, |
| 633 "type": "object" | 764 "type": "object" |
| 634 }, | |
| 635 "AuditLogConfig": { | |
| 636 "description": "Provides the configuration for logging a type of per
missions.\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.", | |
| 637 "id": "AuditLogConfig", | |
| 638 "properties": { | |
| 639 "exemptedMembers": { | |
| 640 "description": "Specifies the identities that do not cause l
ogging for this type of\npermission.\nFollows the same format of Binding.members
.", | |
| 641 "items": { | |
| 642 "type": "string" | |
| 643 }, | |
| 644 "type": "array" | |
| 645 }, | |
| 646 "logType": { | |
| 647 "description": "The log type that this config enables.", | |
| 648 "enum": [ | |
| 649 "LOG_TYPE_UNSPECIFIED", | |
| 650 "ADMIN_READ", | |
| 651 "DATA_WRITE", | |
| 652 "DATA_READ" | |
| 653 ], | |
| 654 "enumDescriptions": [ | |
| 655 "Default case. Should never be this.", | |
| 656 "Admin reads. Example: CloudIAM getIamPolicy", | |
| 657 "Data writes. Example: CloudSQL Users create", | |
| 658 "Data reads. Example: CloudSQL Users list" | |
| 659 ], | |
| 660 "type": "string" | |
| 661 } | |
| 662 }, | |
| 663 "type": "object" | |
| 664 }, | |
| 665 "Rule": { | |
| 666 "description": "A rule to be applied in a Policy.", | |
| 667 "id": "Rule", | |
| 668 "properties": { | |
| 669 "description": { | |
| 670 "description": "Human-readable description of the rule.", | |
| 671 "type": "string" | |
| 672 }, | |
| 673 "conditions": { | |
| 674 "description": "Additional restrictions that must be met", | |
| 675 "items": { | |
| 676 "$ref": "Condition" | |
| 677 }, | |
| 678 "type": "array" | |
| 679 }, | |
| 680 "logConfig": { | |
| 681 "description": "The config returned to callers of tech.iam.I
AM.CheckPolicy for any entries\nthat match the LOG action.", | |
| 682 "items": { | |
| 683 "$ref": "LogConfig" | |
| 684 }, | |
| 685 "type": "array" | |
| 686 }, | |
| 687 "in": { | |
| 688 "description": "If one or more 'in' clauses are specified, t
he rule matches if\nthe PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these
entries.", | |
| 689 "items": { | |
| 690 "type": "string" | |
| 691 }, | |
| 692 "type": "array" | |
| 693 }, | |
| 694 "permissions": { | |
| 695 "description": "A permission is a string of form '<service>.
<resource type>.<verb>'\n(e.g., 'storage.buckets.list'). A value of '*' matches
all permissions,\nand a verb part of '*' (e.g., 'storage.buckets.*') matches all
verbs.", | |
| 696 "items": { | |
| 697 "type": "string" | |
| 698 }, | |
| 699 "type": "array" | |
| 700 }, | |
| 701 "action": { | |
| 702 "description": "Required", | |
| 703 "enum": [ | |
| 704 "NO_ACTION", | |
| 705 "ALLOW", | |
| 706 "ALLOW_WITH_LOG", | |
| 707 "DENY", | |
| 708 "DENY_WITH_LOG", | |
| 709 "LOG" | |
| 710 ], | |
| 711 "enumDescriptions": [ | |
| 712 "Default no action.", | |
| 713 "Matching 'Entries' grant access.", | |
| 714 "Matching 'Entries' grant access and the caller promises
to log\nthe request per the returned log_configs.", | |
| 715 "Matching 'Entries' deny access.", | |
| 716 "Matching 'Entries' deny access and the caller promises
to log\nthe request per the returned log_configs.", | |
| 717 "Matching 'Entries' tell IAM.Check callers to generate l
ogs." | |
| 718 ], | |
| 719 "type": "string" | |
| 720 }, | |
| 721 "notIn": { | |
| 722 "description": "If one or more 'not_in' clauses are specifie
d, the rule matches\nif the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entri
es.\nThe format for in and not_in entries is the same as for members in a\nBindi
ng (see google/iam/v1/policy.proto).", | |
| 723 "items": { | |
| 724 "type": "string" | |
| 725 }, | |
| 726 "type": "array" | |
| 727 } | |
| 728 }, | |
| 729 "type": "object" | |
| 730 } | 765 } |
| 731 }, | 766 }, |
| 732 "servicePath": "", | 767 "servicePath": "", |
| 733 "title": "Cloud Source Repositories API", | 768 "title": "Cloud Source Repositories API", |
| 734 "version": "v1" | 769 "version": "v1" |
| 735 } | 770 } |
| OLD | NEW |