| OLD | NEW |
| 1 { | 1 { |
| 2 "auth": { | 2 "auth": { |
| 3 "oauth2": { | 3 "oauth2": { |
| 4 "scopes": { | 4 "scopes": { |
| 5 "https://www.googleapis.com/auth/source.read_write": { | 5 "https://www.googleapis.com/auth/source.read_write": { |
| 6 "description": "Manage the contents of your source code repo
sitories" | 6 "description": "Manage the contents of your source code repo
sitories" |
| 7 }, | 7 }, |
| 8 "https://www.googleapis.com/auth/cloud-platform": { | 8 "https://www.googleapis.com/auth/cloud-platform": { |
| 9 "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" |
| 10 }, | 10 }, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 "icons": { | 24 "icons": { |
| 25 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 25 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 26 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 26 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 27 }, | 27 }, |
| 28 "id": "sourcerepo:v1", | 28 "id": "sourcerepo:v1", |
| 29 "kind": "discovery#restDescription", | 29 "kind": "discovery#restDescription", |
| 30 "name": "sourcerepo", | 30 "name": "sourcerepo", |
| 31 "ownerDomain": "google.com", | 31 "ownerDomain": "google.com", |
| 32 "ownerName": "Google", | 32 "ownerName": "Google", |
| 33 "parameters": { | 33 "parameters": { |
| 34 "bearer_token": { | |
| 35 "description": "OAuth bearer token.", | |
| 36 "location": "query", | |
| 37 "type": "string" | |
| 38 }, | |
| 39 "oauth_token": { | |
| 40 "description": "OAuth 2.0 token for the current user.", | |
| 41 "location": "query", | |
| 42 "type": "string" | |
| 43 }, | |
| 44 "upload_protocol": { | 34 "upload_protocol": { |
| 45 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 35 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 46 "location": "query", | 36 "location": "query", |
| 47 "type": "string" | 37 "type": "string" |
| 48 }, | 38 }, |
| 49 "prettyPrint": { | 39 "prettyPrint": { |
| 50 "default": "true", | 40 "default": "true", |
| 51 "description": "Returns response with indentations and line breaks."
, | 41 "description": "Returns response with indentations and line breaks."
, |
| 52 "location": "query", | 42 "location": "query", |
| 53 "type": "boolean" | 43 "type": "boolean" |
| 54 }, | 44 }, |
| 45 "fields": { |
| 46 "description": "Selector specifying which fields to include in a par
tial response.", |
| 47 "location": "query", |
| 48 "type": "string" |
| 49 }, |
| 55 "uploadType": { | 50 "uploadType": { |
| 56 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | 51 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 57 "location": "query", | 52 "location": "query", |
| 58 "type": "string" | 53 "type": "string" |
| 59 }, | 54 }, |
| 60 "fields": { | 55 "callback": { |
| 61 "description": "Selector specifying which fields to include in a par
tial response.", | 56 "description": "JSONP", |
| 62 "location": "query", | 57 "location": "query", |
| 63 "type": "string" | 58 "type": "string" |
| 64 }, | 59 }, |
| 65 "$.xgafv": { | 60 "$.xgafv": { |
| 66 "description": "V1 error format.", | 61 "description": "V1 error format.", |
| 67 "enum": [ | 62 "enum": [ |
| 68 "1", | 63 "1", |
| 69 "2" | 64 "2" |
| 70 ], | 65 ], |
| 71 "enumDescriptions": [ | 66 "enumDescriptions": [ |
| 72 "v1 error format", | 67 "v1 error format", |
| 73 "v2 error format" | 68 "v2 error format" |
| 74 ], | 69 ], |
| 75 "location": "query", | 70 "location": "query", |
| 76 "type": "string" | 71 "type": "string" |
| 77 }, | 72 }, |
| 78 "callback": { | |
| 79 "description": "JSONP", | |
| 80 "location": "query", | |
| 81 "type": "string" | |
| 82 }, | |
| 83 "alt": { | 73 "alt": { |
| 84 "default": "json", | 74 "default": "json", |
| 85 "description": "Data format for response.", | 75 "description": "Data format for response.", |
| 86 "enum": [ | 76 "enum": [ |
| 87 "json", | 77 "json", |
| 88 "media", | 78 "media", |
| 89 "proto" | 79 "proto" |
| 90 ], | 80 ], |
| 91 "enumDescriptions": [ | 81 "enumDescriptions": [ |
| 92 "Responses with Content-Type of application/json", | 82 "Responses with Content-Type of application/json", |
| 93 "Media download with context-dependent Content-Type", | 83 "Media download with context-dependent Content-Type", |
| 94 "Responses with Content-Type of application/x-protobuf" | 84 "Responses with Content-Type of application/x-protobuf" |
| 95 ], | 85 ], |
| 96 "location": "query", | 86 "location": "query", |
| 97 "type": "string" | 87 "type": "string" |
| 98 }, | 88 }, |
| 89 "key": { |
| 90 "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.", |
| 91 "location": "query", |
| 92 "type": "string" |
| 93 }, |
| 99 "access_token": { | 94 "access_token": { |
| 100 "description": "OAuth access token.", | 95 "description": "OAuth access token.", |
| 101 "location": "query", | 96 "location": "query", |
| 102 "type": "string" | 97 "type": "string" |
| 103 }, | 98 }, |
| 104 "key": { | |
| 105 "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.", | |
| 106 "location": "query", | |
| 107 "type": "string" | |
| 108 }, | |
| 109 "quotaUser": { | 99 "quotaUser": { |
| 110 "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.", |
| 111 "location": "query", | 101 "location": "query", |
| 112 "type": "string" | 102 "type": "string" |
| 113 }, | 103 }, |
| 114 "pp": { | 104 "pp": { |
| 115 "default": "true", | 105 "default": "true", |
| 116 "description": "Pretty-print response.", | 106 "description": "Pretty-print response.", |
| 117 "location": "query", | 107 "location": "query", |
| 118 "type": "boolean" | 108 "type": "boolean" |
| 109 }, |
| 110 "oauth_token": { |
| 111 "description": "OAuth 2.0 token for the current user.", |
| 112 "location": "query", |
| 113 "type": "string" |
| 114 }, |
| 115 "bearer_token": { |
| 116 "description": "OAuth bearer token.", |
| 117 "location": "query", |
| 118 "type": "string" |
| 119 } | 119 } |
| 120 }, | 120 }, |
| 121 "protocol": "rest", | 121 "protocol": "rest", |
| 122 "resources": { | 122 "resources": { |
| 123 "projects": { | 123 "projects": { |
| 124 "resources": { | 124 "resources": { |
| 125 "repos": { | 125 "repos": { |
| 126 "methods": { | 126 "methods": { |
| 127 "testIamPermissions": { |
| 128 "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.", |
| 129 "httpMethod": "POST", |
| 130 "id": "sourcerepo.projects.repos.testIamPermissions"
, |
| 131 "parameterOrder": [ |
| 132 "resource" |
| 133 ], |
| 134 "parameters": { |
| 135 "resource": { |
| 136 "description": "REQUIRED: The resource for w
hich the policy detail is being requested.\nSee the operation documentation for
the appropriate value for this field.", |
| 137 "location": "path", |
| 138 "pattern": "^projects/[^/]+/repos/.+$", |
| 139 "required": true, |
| 140 "type": "string" |
| 141 } |
| 142 }, |
| 143 "path": "v1/{+resource}:testIamPermissions", |
| 144 "request": { |
| 145 "$ref": "TestIamPermissionsRequest" |
| 146 }, |
| 147 "response": { |
| 148 "$ref": "TestIamPermissionsResponse" |
| 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 }, |
| 127 "delete": { | 156 "delete": { |
| 128 "description": "Deletes a repo.", | 157 "description": "Deletes a repo.", |
| 129 "httpMethod": "DELETE", | 158 "httpMethod": "DELETE", |
| 130 "id": "sourcerepo.projects.repos.delete", | 159 "id": "sourcerepo.projects.repos.delete", |
| 131 "parameterOrder": [ | 160 "parameterOrder": [ |
| 132 "name" | 161 "name" |
| 133 ], | 162 ], |
| 134 "parameters": { | 163 "parameters": { |
| 135 "name": { | 164 "name": { |
| 136 "description": "The name of the repo to dele
te. Values are of the form\n`projects/<project>/repos/<repo>`.", | 165 "description": "The name of the repo to dele
te. Values are of the form\n`projects/<project>/repos/<repo>`.", |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 }, | 318 }, |
| 290 "path": "v1/{+name}", | 319 "path": "v1/{+name}", |
| 291 "response": { | 320 "response": { |
| 292 "$ref": "Repo" | 321 "$ref": "Repo" |
| 293 }, | 322 }, |
| 294 "scopes": [ | 323 "scopes": [ |
| 295 "https://www.googleapis.com/auth/cloud-platform"
, | 324 "https://www.googleapis.com/auth/cloud-platform"
, |
| 296 "https://www.googleapis.com/auth/source.read_onl
y", | 325 "https://www.googleapis.com/auth/source.read_onl
y", |
| 297 "https://www.googleapis.com/auth/source.read_wri
te" | 326 "https://www.googleapis.com/auth/source.read_wri
te" |
| 298 ] | 327 ] |
| 299 }, | |
| 300 "testIamPermissions": { | |
| 301 "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.", | |
| 302 "httpMethod": "POST", | |
| 303 "id": "sourcerepo.projects.repos.testIamPermissions"
, | |
| 304 "parameterOrder": [ | |
| 305 "resource" | |
| 306 ], | |
| 307 "parameters": { | |
| 308 "resource": { | |
| 309 "description": "REQUIRED: The resource for w
hich the policy detail is being requested.\nSee the operation documentation for
the appropriate value for this field.", | |
| 310 "location": "path", | |
| 311 "pattern": "^projects/[^/]+/repos/.+$", | |
| 312 "required": true, | |
| 313 "type": "string" | |
| 314 } | |
| 315 }, | |
| 316 "path": "v1/{+resource}:testIamPermissions", | |
| 317 "request": { | |
| 318 "$ref": "TestIamPermissionsRequest" | |
| 319 }, | |
| 320 "response": { | |
| 321 "$ref": "TestIamPermissionsResponse" | |
| 322 }, | |
| 323 "scopes": [ | |
| 324 "https://www.googleapis.com/auth/cloud-platform"
, | |
| 325 "https://www.googleapis.com/auth/source.read_onl
y", | |
| 326 "https://www.googleapis.com/auth/source.read_wri
te" | |
| 327 ] | |
| 328 } | 328 } |
| 329 } | 329 } |
| 330 } | 330 } |
| 331 } | 331 } |
| 332 } | 332 } |
| 333 }, | 333 }, |
| 334 "revision": "20170528", | 334 "revision": "20170528", |
| 335 "rootUrl": "https://sourcerepo.googleapis.com/", | 335 "rootUrl": "https://sourcerepo.googleapis.com/", |
| 336 "schemas": { | 336 "schemas": { |
| 337 "Binding": { |
| 338 "description": "Associates `members` with a `role`.", |
| 339 "id": "Binding", |
| 340 "properties": { |
| 341 "members": { |
| 342 "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", |
| 343 "items": { |
| 344 "type": "string" |
| 345 }, |
| 346 "type": "array" |
| 347 }, |
| 348 "role": { |
| 349 "description": "Role that is assigned to `members`.\nFor exa
mple, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired", |
| 350 "type": "string" |
| 351 } |
| 352 }, |
| 353 "type": "object" |
| 354 }, |
| 355 "MirrorConfig": { |
| 356 "description": "Configuration to automatically mirror a repository f
rom another\nhosting service, for example GitHub or BitBucket.", |
| 357 "id": "MirrorConfig", |
| 358 "properties": { |
| 359 "url": { |
| 360 "description": "URL of the main repository at the other host
ing service.", |
| 361 "type": "string" |
| 362 }, |
| 363 "webhookId": { |
| 364 "description": "ID of the webhook listening to updates to tr
igger mirroring.\nRemoving this webook from the other hosting service will stop\
nGoogle Cloud Source Repositories from receiving notifications,\nand thereby dis
abling mirroring.", |
| 365 "type": "string" |
| 366 }, |
| 367 "deployKeyId": { |
| 368 "description": "ID of the SSH deploy key at the other hostin
g service.\nRemoving this key from the other service would deauthorize\nGoogle C
loud Source Repositories from mirroring.", |
| 369 "type": "string" |
| 370 } |
| 371 }, |
| 372 "type": "object" |
| 373 }, |
| 374 "Empty": { |
| 375 "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 `{}`.", |
| 376 "id": "Empty", |
| 377 "properties": {}, |
| 378 "type": "object" |
| 379 }, |
| 380 "Repo": { |
| 381 "description": "A repository (or repo) is a Git repository storing v
ersioned source content.", |
| 382 "id": "Repo", |
| 383 "properties": { |
| 384 "url": { |
| 385 "description": "URL to clone the repository from Google Clou
d Source Repositories.", |
| 386 "type": "string" |
| 387 }, |
| 388 "size": { |
| 389 "description": "The disk usage of the repo, in bytes.\nOnly
returned by GetRepo.", |
| 390 "format": "int64", |
| 391 "type": "string" |
| 392 }, |
| 393 "name": { |
| 394 "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`", |
| 395 "type": "string" |
| 396 }, |
| 397 "mirrorConfig": { |
| 398 "$ref": "MirrorConfig", |
| 399 "description": "How this repository mirrors a repository man
aged by another service." |
| 400 } |
| 401 }, |
| 402 "type": "object" |
| 403 }, |
| 337 "Condition": { | 404 "Condition": { |
| 338 "description": "A condition to be met.", | 405 "description": "A condition to be met.", |
| 339 "id": "Condition", | 406 "id": "Condition", |
| 340 "properties": { | 407 "properties": { |
| 408 "value": { |
| 409 "description": "DEPRECATED. Use 'values' instead.", |
| 410 "type": "string" |
| 411 }, |
| 341 "sys": { | 412 "sys": { |
| 342 "description": "Trusted attributes supplied by any service t
hat owns resources and uses\nthe IAM system for access control.", | 413 "description": "Trusted attributes supplied by any service t
hat owns resources and uses\nthe IAM system for access control.", |
| 343 "enum": [ | 414 "enum": [ |
| 344 "NO_ATTR", | 415 "NO_ATTR", |
| 345 "REGION", | 416 "REGION", |
| 346 "SERVICE", | 417 "SERVICE", |
| 347 "NAME", | 418 "NAME", |
| 348 "IP" | 419 "IP" |
| 349 ], | 420 ], |
| 350 "enumDescriptions": [ | 421 "enumDescriptions": [ |
| 351 "Default non-attribute type", | 422 "Default non-attribute type", |
| 352 "Region of the resource", | 423 "Region of the resource", |
| 353 "Service name", | 424 "Service name", |
| 354 "Resource name", | 425 "Resource name", |
| 355 "IP address of the caller" | 426 "IP address of the caller" |
| 356 ], | 427 ], |
| 357 "type": "string" | 428 "type": "string" |
| 358 }, | 429 }, |
| 359 "value": { | 430 "values": { |
| 360 "description": "DEPRECATED. Use 'values' instead.", | 431 "description": "The objects of the condition. This is mutual
ly exclusive with 'value'.", |
| 361 "type": "string" | 432 "items": { |
| 433 "type": "string" |
| 434 }, |
| 435 "type": "array" |
| 362 }, | 436 }, |
| 363 "iam": { | 437 "iam": { |
| 364 "description": "Trusted attributes supplied by the IAM syste
m.", | 438 "description": "Trusted attributes supplied by the IAM syste
m.", |
| 365 "enum": [ | 439 "enum": [ |
| 366 "NO_ATTR", | 440 "NO_ATTR", |
| 367 "AUTHORITY", | 441 "AUTHORITY", |
| 368 "ATTRIBUTION", | 442 "ATTRIBUTION", |
| 369 "APPROVER", | 443 "APPROVER", |
| 370 "JUSTIFICATION_TYPE" | 444 "JUSTIFICATION_TYPE" |
| 371 ], | 445 ], |
| 372 "enumDescriptions": [ | 446 "enumDescriptions": [ |
| 373 "Default non-attribute.", | 447 "Default non-attribute.", |
| 374 "Either principal or (if present) authority selector.", | 448 "Either principal or (if present) authority selector.", |
| 375 "The principal (even if an authority selector is present
), which\nmust only be used for attribution, not authorization.", | 449 "The principal (even if an authority selector is present
), which\nmust only be used for attribution, not authorization.", |
| 376 "An approver (distinct from the requester) that has auth
orized this\nrequest.\nWhen used with IN, the condition indicates that one of th
e approvers\nassociated with the request matches the specified principal, or is
a\nmember of the specified group. Approvers can only grant additional\naccess, a
nd are thus only used in a strictly positive context\n(e.g. ALLOW/IN or DENY/NOT
_IN).\nSee: go/rpc-security-policy-dynamicauth.", | 450 "An approver (distinct from the requester) that has auth
orized this\nrequest.\nWhen used with IN, the condition indicates that one of th
e approvers\nassociated with the request matches the specified principal, or is
a\nmember of the specified group. Approvers can only grant additional\naccess, a
nd are thus only used in a strictly positive context\n(e.g. ALLOW/IN or DENY/NOT
_IN).\nSee: go/rpc-security-policy-dynamicauth.", |
| 377 "What types of justifications have been supplied with th
is request.\nString values should match enum names from tech.iam.JustificationTy
pe,\ne.g. \"MANUAL_STRING\". It is not permitted to grant access based on\nthe *
absence* of a justification, so justification conditions can only\nbe used in a
\"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN).\n\nMultiple justifications
, e.g., a Buganizer ID and a manually-entered\nreason, are normal and supported.
" | 451 "What types of justifications have been supplied with th
is request.\nString values should match enum names from tech.iam.JustificationTy
pe,\ne.g. \"MANUAL_STRING\". It is not permitted to grant access based on\nthe *
absence* of a justification, so justification conditions can only\nbe used in a
\"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN).\n\nMultiple justifications
, e.g., a Buganizer ID and a manually-entered\nreason, are normal and supported.
" |
| 378 ], | 452 ], |
| 379 "type": "string" | 453 "type": "string" |
| 380 }, | 454 }, |
| 381 "values": { | |
| 382 "description": "The objects of the condition. This is mutual
ly exclusive with 'value'.", | |
| 383 "items": { | |
| 384 "type": "string" | |
| 385 }, | |
| 386 "type": "array" | |
| 387 }, | |
| 388 "op": { | 455 "op": { |
| 389 "description": "An operator to apply the subject with.", | 456 "description": "An operator to apply the subject with.", |
| 390 "enum": [ | 457 "enum": [ |
| 391 "NO_OP", | 458 "NO_OP", |
| 392 "EQUALS", | 459 "EQUALS", |
| 393 "NOT_EQUALS", | 460 "NOT_EQUALS", |
| 394 "IN", | 461 "IN", |
| 395 "NOT_IN", | 462 "NOT_IN", |
| 396 "DISCHARGED" | 463 "DISCHARGED" |
| 397 ], | 464 ], |
| (...skipping 11 matching lines...) Expand all Loading... |
| 409 "description": "Trusted attributes discharged by the service
.", | 476 "description": "Trusted attributes discharged by the service
.", |
| 410 "type": "string" | 477 "type": "string" |
| 411 } | 478 } |
| 412 }, | 479 }, |
| 413 "type": "object" | 480 "type": "object" |
| 414 }, | 481 }, |
| 415 "ListReposResponse": { | 482 "ListReposResponse": { |
| 416 "description": "Response for ListRepos. The size is not set in the
returned repositories.", | 483 "description": "Response for ListRepos. The size is not set in the
returned repositories.", |
| 417 "id": "ListReposResponse", | 484 "id": "ListReposResponse", |
| 418 "properties": { | 485 "properties": { |
| 486 "nextPageToken": { |
| 487 "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.", |
| 488 "type": "string" |
| 489 }, |
| 419 "repos": { | 490 "repos": { |
| 420 "description": "The listed repos.", | 491 "description": "The listed repos.", |
| 421 "items": { | 492 "items": { |
| 422 "$ref": "Repo" | 493 "$ref": "Repo" |
| 423 }, | 494 }, |
| 424 "type": "array" | 495 "type": "array" |
| 425 }, | |
| 426 "nextPageToken": { | |
| 427 "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.", | |
| 428 "type": "string" | |
| 429 } | 496 } |
| 430 }, | 497 }, |
| 431 "type": "object" | 498 "type": "object" |
| 432 }, | 499 }, |
| 433 "TestIamPermissionsResponse": { | 500 "TestIamPermissionsResponse": { |
| 434 "description": "Response message for `TestIamPermissions` method.", | 501 "description": "Response message for `TestIamPermissions` method.", |
| 435 "id": "TestIamPermissionsResponse", | 502 "id": "TestIamPermissionsResponse", |
| 436 "properties": { | 503 "properties": { |
| 437 "permissions": { | 504 "permissions": { |
| 438 "description": "A subset of `TestPermissionsRequest.permissi
ons` that the caller is\nallowed.", | 505 "description": "A subset of `TestPermissionsRequest.permissi
ons` that the caller is\nallowed.", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 456 "description": "The metric to update.", | 523 "description": "The metric to update.", |
| 457 "type": "string" | 524 "type": "string" |
| 458 } | 525 } |
| 459 }, | 526 }, |
| 460 "type": "object" | 527 "type": "object" |
| 461 }, | 528 }, |
| 462 "AuditLogConfig": { | 529 "AuditLogConfig": { |
| 463 "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.", | 530 "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.", |
| 464 "id": "AuditLogConfig", | 531 "id": "AuditLogConfig", |
| 465 "properties": { | 532 "properties": { |
| 533 "exemptedMembers": { |
| 534 "description": "Specifies the identities that do not cause l
ogging for this type of\npermission.\nFollows the same format of Binding.members
.", |
| 535 "items": { |
| 536 "type": "string" |
| 537 }, |
| 538 "type": "array" |
| 539 }, |
| 466 "logType": { | 540 "logType": { |
| 467 "description": "The log type that this config enables.", | 541 "description": "The log type that this config enables.", |
| 468 "enum": [ | 542 "enum": [ |
| 469 "LOG_TYPE_UNSPECIFIED", | 543 "LOG_TYPE_UNSPECIFIED", |
| 470 "ADMIN_READ", | 544 "ADMIN_READ", |
| 471 "DATA_WRITE", | 545 "DATA_WRITE", |
| 472 "DATA_READ" | 546 "DATA_READ" |
| 473 ], | 547 ], |
| 474 "enumDescriptions": [ | 548 "enumDescriptions": [ |
| 475 "Default case. Should never be this.", | 549 "Default case. Should never be this.", |
| 476 "Admin reads. Example: CloudIAM getIamPolicy", | 550 "Admin reads. Example: CloudIAM getIamPolicy", |
| 477 "Data writes. Example: CloudSQL Users create", | 551 "Data writes. Example: CloudSQL Users create", |
| 478 "Data reads. Example: CloudSQL Users list" | 552 "Data reads. Example: CloudSQL Users list" |
| 479 ], | 553 ], |
| 480 "type": "string" | 554 "type": "string" |
| 481 }, | |
| 482 "exemptedMembers": { | |
| 483 "description": "Specifies the identities that do not cause l
ogging for this type of\npermission.\nFollows the same format of Binding.members
.", | |
| 484 "items": { | |
| 485 "type": "string" | |
| 486 }, | |
| 487 "type": "array" | |
| 488 } | 555 } |
| 489 }, | 556 }, |
| 490 "type": "object" | 557 "type": "object" |
| 491 }, | 558 }, |
| 492 "Rule": { | 559 "Rule": { |
| 493 "description": "A rule to be applied in a Policy.", | 560 "description": "A rule to be applied in a Policy.", |
| 494 "id": "Rule", | 561 "id": "Rule", |
| 495 "properties": { | 562 "properties": { |
| 563 "permissions": { |
| 564 "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.", |
| 565 "items": { |
| 566 "type": "string" |
| 567 }, |
| 568 "type": "array" |
| 569 }, |
| 570 "action": { |
| 571 "description": "Required", |
| 572 "enum": [ |
| 573 "NO_ACTION", |
| 574 "ALLOW", |
| 575 "ALLOW_WITH_LOG", |
| 576 "DENY", |
| 577 "DENY_WITH_LOG", |
| 578 "LOG" |
| 579 ], |
| 580 "enumDescriptions": [ |
| 581 "Default no action.", |
| 582 "Matching 'Entries' grant access.", |
| 583 "Matching 'Entries' grant access and the caller promises
to log\nthe request per the returned log_configs.", |
| 584 "Matching 'Entries' deny access.", |
| 585 "Matching 'Entries' deny access and the caller promises
to log\nthe request per the returned log_configs.", |
| 586 "Matching 'Entries' tell IAM.Check callers to generate l
ogs." |
| 587 ], |
| 588 "type": "string" |
| 589 }, |
| 496 "notIn": { | 590 "notIn": { |
| 497 "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).", | 591 "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).", |
| 498 "items": { | 592 "items": { |
| 499 "type": "string" | 593 "type": "string" |
| 500 }, | 594 }, |
| 501 "type": "array" | 595 "type": "array" |
| 502 }, | 596 }, |
| 503 "description": { | 597 "description": { |
| 504 "description": "Human-readable description of the rule.", | 598 "description": "Human-readable description of the rule.", |
| 505 "type": "string" | 599 "type": "string" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 517 "$ref": "LogConfig" | 611 "$ref": "LogConfig" |
| 518 }, | 612 }, |
| 519 "type": "array" | 613 "type": "array" |
| 520 }, | 614 }, |
| 521 "in": { | 615 "in": { |
| 522 "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.", | 616 "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.", |
| 523 "items": { | 617 "items": { |
| 524 "type": "string" | 618 "type": "string" |
| 525 }, | 619 }, |
| 526 "type": "array" | 620 "type": "array" |
| 527 }, | |
| 528 "permissions": { | |
| 529 "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.", | |
| 530 "items": { | |
| 531 "type": "string" | |
| 532 }, | |
| 533 "type": "array" | |
| 534 }, | |
| 535 "action": { | |
| 536 "description": "Required", | |
| 537 "enum": [ | |
| 538 "NO_ACTION", | |
| 539 "ALLOW", | |
| 540 "ALLOW_WITH_LOG", | |
| 541 "DENY", | |
| 542 "DENY_WITH_LOG", | |
| 543 "LOG" | |
| 544 ], | |
| 545 "enumDescriptions": [ | |
| 546 "Default no action.", | |
| 547 "Matching 'Entries' grant access.", | |
| 548 "Matching 'Entries' grant access and the caller promises
to log\nthe request per the returned log_configs.", | |
| 549 "Matching 'Entries' deny access.", | |
| 550 "Matching 'Entries' deny access and the caller promises
to log\nthe request per the returned log_configs.", | |
| 551 "Matching 'Entries' tell IAM.Check callers to generate l
ogs." | |
| 552 ], | |
| 553 "type": "string" | |
| 554 } | 621 } |
| 555 }, | 622 }, |
| 556 "type": "object" | 623 "type": "object" |
| 557 }, | 624 }, |
| 558 "LogConfig": { | 625 "LogConfig": { |
| 559 "description": "Specifies what kind of log the caller must write", | 626 "description": "Specifies what kind of log the caller must write", |
| 560 "id": "LogConfig", | 627 "id": "LogConfig", |
| 561 "properties": { | 628 "properties": { |
| 562 "counter": { | 629 "counter": { |
| 563 "$ref": "CounterOptions", | 630 "$ref": "CounterOptions", |
| (...skipping 21 matching lines...) Expand all Loading... |
| 585 }, | 652 }, |
| 586 "type": "array" | 653 "type": "array" |
| 587 } | 654 } |
| 588 }, | 655 }, |
| 589 "type": "object" | 656 "type": "object" |
| 590 }, | 657 }, |
| 591 "Policy": { | 658 "Policy": { |
| 592 "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).", | 659 "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).", |
| 593 "id": "Policy", | 660 "id": "Policy", |
| 594 "properties": { | 661 "properties": { |
| 662 "etag": { |
| 663 "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.", |
| 664 "format": "byte", |
| 665 "type": "string" |
| 666 }, |
| 667 "iamOwned": { |
| 668 "type": "boolean" |
| 669 }, |
| 595 "rules": { | 670 "rules": { |
| 596 "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.", | 671 "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.", |
| 597 "items": { | 672 "items": { |
| 598 "$ref": "Rule" | 673 "$ref": "Rule" |
| 599 }, | 674 }, |
| 600 "type": "array" | 675 "type": "array" |
| 601 }, | 676 }, |
| 602 "version": { | 677 "version": { |
| 603 "description": "Version of the `Policy`. The default version
is 0.", | 678 "description": "Version of the `Policy`. The default version
is 0.", |
| 604 "format": "int32", | 679 "format": "int32", |
| 605 "type": "integer" | 680 "type": "integer" |
| 606 }, | 681 }, |
| 607 "auditConfigs": { | 682 "auditConfigs": { |
| 608 "description": "Specifies cloud audit logging configuration
for this policy.", | 683 "description": "Specifies cloud audit logging configuration
for this policy.", |
| 609 "items": { | 684 "items": { |
| 610 "$ref": "AuditConfig" | 685 "$ref": "AuditConfig" |
| 611 }, | 686 }, |
| 612 "type": "array" | 687 "type": "array" |
| 613 }, | 688 }, |
| 614 "bindings": { | 689 "bindings": { |
| 615 "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.", | 690 "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.", |
| 616 "items": { | 691 "items": { |
| 617 "$ref": "Binding" | 692 "$ref": "Binding" |
| 618 }, | 693 }, |
| 619 "type": "array" | 694 "type": "array" |
| 620 }, | |
| 621 "etag": { | |
| 622 "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.", | |
| 623 "format": "byte", | |
| 624 "type": "string" | |
| 625 }, | |
| 626 "iamOwned": { | |
| 627 "type": "boolean" | |
| 628 } | 695 } |
| 629 }, | 696 }, |
| 630 "type": "object" | 697 "type": "object" |
| 631 }, | 698 }, |
| 632 "DataAccessOptions": { | 699 "DataAccessOptions": { |
| 633 "description": "Write a Data Access (Gin) log", | 700 "description": "Write a Data Access (Gin) log", |
| 634 "id": "DataAccessOptions", | 701 "id": "DataAccessOptions", |
| 635 "properties": {}, | 702 "properties": {}, |
| 636 "type": "object" | 703 "type": "object" |
| 637 }, | 704 }, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 ], | 755 ], |
| 689 "enumDescriptions": [ | 756 "enumDescriptions": [ |
| 690 "Default. Should not be used.", | 757 "Default. Should not be used.", |
| 691 "Corresponds to \"cloudaudit.googleapis.com/activity\"", | 758 "Corresponds to \"cloudaudit.googleapis.com/activity\"", |
| 692 "Corresponds to \"cloudaudit.googleapis.com/data_access\
"" | 759 "Corresponds to \"cloudaudit.googleapis.com/data_access\
"" |
| 693 ], | 760 ], |
| 694 "type": "string" | 761 "type": "string" |
| 695 } | 762 } |
| 696 }, | 763 }, |
| 697 "type": "object" | 764 "type": "object" |
| 698 }, | |
| 699 "Binding": { | |
| 700 "description": "Associates `members` with a `role`.", | |
| 701 "id": "Binding", | |
| 702 "properties": { | |
| 703 "role": { | |
| 704 "description": "Role that is assigned to `members`.\nFor exa
mple, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired", | |
| 705 "type": "string" | |
| 706 }, | |
| 707 "members": { | |
| 708 "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", | |
| 709 "items": { | |
| 710 "type": "string" | |
| 711 }, | |
| 712 "type": "array" | |
| 713 } | |
| 714 }, | |
| 715 "type": "object" | |
| 716 }, | |
| 717 "Empty": { | |
| 718 "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 `{}`.", | |
| 719 "id": "Empty", | |
| 720 "properties": {}, | |
| 721 "type": "object" | |
| 722 }, | |
| 723 "MirrorConfig": { | |
| 724 "description": "Configuration to automatically mirror a repository f
rom another\nhosting service, for example GitHub or BitBucket.", | |
| 725 "id": "MirrorConfig", | |
| 726 "properties": { | |
| 727 "url": { | |
| 728 "description": "URL of the main repository at the other host
ing service.", | |
| 729 "type": "string" | |
| 730 }, | |
| 731 "webhookId": { | |
| 732 "description": "ID of the webhook listening to updates to tr
igger mirroring.\nRemoving this webook from the other hosting service will stop\
nGoogle Cloud Source Repositories from receiving notifications,\nand thereby dis
abling mirroring.", | |
| 733 "type": "string" | |
| 734 }, | |
| 735 "deployKeyId": { | |
| 736 "description": "ID of the SSH deploy key at the other hostin
g service.\nRemoving this key from the other service would deauthorize\nGoogle C
loud Source Repositories from mirroring.", | |
| 737 "type": "string" | |
| 738 } | |
| 739 }, | |
| 740 "type": "object" | |
| 741 }, | |
| 742 "Repo": { | |
| 743 "description": "A repository (or repo) is a Git repository storing v
ersioned source content.", | |
| 744 "id": "Repo", | |
| 745 "properties": { | |
| 746 "size": { | |
| 747 "description": "The disk usage of the repo, in bytes.\nOnly
returned by GetRepo.", | |
| 748 "format": "int64", | |
| 749 "type": "string" | |
| 750 }, | |
| 751 "name": { | |
| 752 "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`", | |
| 753 "type": "string" | |
| 754 }, | |
| 755 "mirrorConfig": { | |
| 756 "$ref": "MirrorConfig", | |
| 757 "description": "How this repository mirrors a repository man
aged by another service." | |
| 758 }, | |
| 759 "url": { | |
| 760 "description": "URL to clone the repository from Google Clou
d Source Repositories.", | |
| 761 "type": "string" | |
| 762 } | |
| 763 }, | |
| 764 "type": "object" | |
| 765 } | 765 } |
| 766 }, | 766 }, |
| 767 "servicePath": "", | 767 "servicePath": "", |
| 768 "title": "Cloud Source Repositories API", | 768 "title": "Cloud Source Repositories API", |
| 769 "version": "v1" | 769 "version": "v1" |
| 770 } | 770 } |
| OLD | NEW |