| OLD | NEW |
| 1 { | 1 { |
| 2 "auth": { | 2 "auth": { |
| 3 "oauth2": { | 3 "oauth2": { |
| 4 "scopes": { | 4 "scopes": { |
| 5 "https://www.googleapis.com/auth/cloud-platform.read-only": { | 5 "https://www.googleapis.com/auth/cloud-platform.read-only": { |
| 6 "description": "View your data across Google Cloud Platform
services" | 6 "description": "View your data across Google Cloud Platform
services" |
| 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 } |
| 11 } | 11 } |
| 12 } | 12 } |
| 13 }, | 13 }, |
| 14 "basePath": "", | 14 "basePath": "", |
| 15 "baseUrl": "https://oslogin.googleapis.com/", | 15 "baseUrl": "https://oslogin.googleapis.com/", |
| 16 "batchPath": "batch", | 16 "batchPath": "batch", |
| 17 "canonicalName": "Cloud OS Login", | 17 "canonicalName": "Cloud OS Login", |
| 18 "description": "A Google Cloud API for managing OS login configuration for D
irectory API users.", | 18 "description": "Manages OS login configuration for Directory API users.", |
| 19 "discoveryVersion": "v1", | 19 "discoveryVersion": "v1", |
| 20 "documentationLink": "https://developers.google.com/apis-explorer/#p/oslogin
/v1alpha/", | 20 "documentationLink": "https://cloud.google.com/compute/docs/oslogin/rest/", |
| 21 "icons": { | 21 "icons": { |
| 22 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 22 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 23 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 23 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 24 }, | 24 }, |
| 25 "id": "oslogin:v1alpha", | 25 "id": "oslogin:v1alpha", |
| 26 "kind": "discovery#restDescription", | 26 "kind": "discovery#restDescription", |
| 27 "name": "oslogin", | 27 "name": "oslogin", |
| 28 "ownerDomain": "google.com", | 28 "ownerDomain": "google.com", |
| 29 "ownerName": "Google", | 29 "ownerName": "Google", |
| 30 "parameters": { | 30 "parameters": { |
| 31 "upload_protocol": { |
| 32 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 33 "location": "query", |
| 34 "type": "string" |
| 35 }, |
| 36 "prettyPrint": { |
| 37 "default": "true", |
| 38 "description": "Returns response with indentations and line breaks."
, |
| 39 "location": "query", |
| 40 "type": "boolean" |
| 41 }, |
| 42 "uploadType": { |
| 43 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 44 "location": "query", |
| 45 "type": "string" |
| 46 }, |
| 47 "fields": { |
| 48 "description": "Selector specifying which fields to include in a par
tial response.", |
| 49 "location": "query", |
| 50 "type": "string" |
| 51 }, |
| 52 "callback": { |
| 53 "description": "JSONP", |
| 54 "location": "query", |
| 55 "type": "string" |
| 56 }, |
| 31 "$.xgafv": { | 57 "$.xgafv": { |
| 32 "description": "V1 error format.", | 58 "description": "V1 error format.", |
| 33 "enum": [ | 59 "enum": [ |
| 34 "1", | 60 "1", |
| 35 "2" | 61 "2" |
| 36 ], | 62 ], |
| 37 "enumDescriptions": [ | 63 "enumDescriptions": [ |
| 38 "v1 error format", | 64 "v1 error format", |
| 39 "v2 error format" | 65 "v2 error format" |
| 40 ], | 66 ], |
| 41 "location": "query", | 67 "location": "query", |
| 42 "type": "string" | 68 "type": "string" |
| 43 }, | 69 }, |
| 44 "callback": { | |
| 45 "description": "JSONP", | |
| 46 "location": "query", | |
| 47 "type": "string" | |
| 48 }, | |
| 49 "alt": { | 70 "alt": { |
| 50 "default": "json", | 71 "default": "json", |
| 51 "description": "Data format for response.", | 72 "description": "Data format for response.", |
| 52 "enum": [ | 73 "enum": [ |
| 53 "json", | 74 "json", |
| 54 "media", | 75 "media", |
| 55 "proto" | 76 "proto" |
| 56 ], | 77 ], |
| 57 "enumDescriptions": [ | 78 "enumDescriptions": [ |
| 58 "Responses with Content-Type of application/json", | 79 "Responses with Content-Type of application/json", |
| 59 "Media download with context-dependent Content-Type", | 80 "Media download with context-dependent Content-Type", |
| 60 "Responses with Content-Type of application/x-protobuf" | 81 "Responses with Content-Type of application/x-protobuf" |
| 61 ], | 82 ], |
| 62 "location": "query", | 83 "location": "query", |
| 63 "type": "string" | 84 "type": "string" |
| 64 }, | 85 }, |
| 86 "access_token": { |
| 87 "description": "OAuth access token.", |
| 88 "location": "query", |
| 89 "type": "string" |
| 90 }, |
| 65 "key": { | 91 "key": { |
| 66 "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.", | 92 "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.", |
| 67 "location": "query", | 93 "location": "query", |
| 68 "type": "string" | 94 "type": "string" |
| 69 }, | 95 }, |
| 70 "access_token": { | |
| 71 "description": "OAuth access token.", | |
| 72 "location": "query", | |
| 73 "type": "string" | |
| 74 }, | |
| 75 "quotaUser": { | 96 "quotaUser": { |
| 76 "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.", | 97 "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.", |
| 77 "location": "query", | 98 "location": "query", |
| 78 "type": "string" | 99 "type": "string" |
| 79 }, | 100 }, |
| 80 "pp": { | 101 "pp": { |
| 81 "default": "true", | 102 "default": "true", |
| 82 "description": "Pretty-print response.", | 103 "description": "Pretty-print response.", |
| 83 "location": "query", | 104 "location": "query", |
| 84 "type": "boolean" | 105 "type": "boolean" |
| 85 }, | 106 }, |
| 86 "oauth_token": { | 107 "oauth_token": { |
| 87 "description": "OAuth 2.0 token for the current user.", | 108 "description": "OAuth 2.0 token for the current user.", |
| 88 "location": "query", | 109 "location": "query", |
| 89 "type": "string" | 110 "type": "string" |
| 90 }, | 111 }, |
| 91 "bearer_token": { | 112 "bearer_token": { |
| 92 "description": "OAuth bearer token.", | 113 "description": "OAuth bearer token.", |
| 93 "location": "query", | 114 "location": "query", |
| 94 "type": "string" | 115 "type": "string" |
| 95 }, | |
| 96 "upload_protocol": { | |
| 97 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | |
| 98 "location": "query", | |
| 99 "type": "string" | |
| 100 }, | |
| 101 "prettyPrint": { | |
| 102 "default": "true", | |
| 103 "description": "Returns response with indentations and line breaks."
, | |
| 104 "location": "query", | |
| 105 "type": "boolean" | |
| 106 }, | |
| 107 "fields": { | |
| 108 "description": "Selector specifying which fields to include in a par
tial response.", | |
| 109 "location": "query", | |
| 110 "type": "string" | |
| 111 }, | |
| 112 "uploadType": { | |
| 113 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | |
| 114 "location": "query", | |
| 115 "type": "string" | |
| 116 } | 116 } |
| 117 }, | 117 }, |
| 118 "protocol": "rest", | 118 "protocol": "rest", |
| 119 "resources": { | 119 "resources": { |
| 120 "users": { | 120 "users": { |
| 121 "methods": { | 121 "methods": { |
| 122 "importSshPublicKey": { | 122 "importSshPublicKey": { |
| 123 "description": "Adds an SSH public key and returns the profi
le information. Default POSIX\naccount information is set when no username and U
ID exist as part of the\nlogin profile.", | 123 "description": "Adds an SSH public key and returns the profi
le information. Default POSIX\naccount information is set when no username and U
ID exist as part of the\nlogin profile.", |
| 124 "httpMethod": "POST", | 124 "httpMethod": "POST", |
| 125 "id": "oslogin.users.importSshPublicKey", | 125 "id": "oslogin.users.importSshPublicKey", |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 }, | 168 }, |
| 169 "scopes": [ | 169 "scopes": [ |
| 170 "https://www.googleapis.com/auth/cloud-platform", | 170 "https://www.googleapis.com/auth/cloud-platform", |
| 171 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" | 171 "https://www.googleapis.com/auth/cloud-platform.read-onl
y" |
| 172 ] | 172 ] |
| 173 } | 173 } |
| 174 }, | 174 }, |
| 175 "resources": { | 175 "resources": { |
| 176 "sshPublicKeys": { | 176 "sshPublicKeys": { |
| 177 "methods": { | 177 "methods": { |
| 178 "get": { | 178 "delete": { |
| 179 "description": "Retrieves an SSH public key.", | 179 "description": "Deletes an SSH public key.", |
| 180 "httpMethod": "GET", | 180 "httpMethod": "DELETE", |
| 181 "id": "oslogin.users.sshPublicKeys.get", | 181 "id": "oslogin.users.sshPublicKeys.delete", |
| 182 "parameterOrder": [ | 182 "parameterOrder": [ |
| 183 "name" | 183 "name" |
| 184 ], | 184 ], |
| 185 "parameters": { | 185 "parameters": { |
| 186 "name": { | 186 "name": { |
| 187 "description": "The fingerprint of the publi
c key to retrieve. Public keys are identified\nby their SHA-256 fingerprint. The
fingerprint of the public key is in\nformat `users/{user}/sshPublicKeys/{finger
print}`.", | 187 "description": "The fingerprint of the publi
c key to update. Public keys are identified by\ntheir SHA-256 fingerprint. The f
ingerprint of the public key is in format\n`users/{user}/sshPublicKeys/{fingerpr
int}`.", |
| 188 "location": "path", | 188 "location": "path", |
| 189 "pattern": "^users/[^/]+/sshPublicKeys/[^/]+
$", | 189 "pattern": "^users/[^/]+/sshPublicKeys/[^/]+
$", |
| 190 "required": true, | 190 "required": true, |
| 191 "type": "string" | 191 "type": "string" |
| 192 } | 192 } |
| 193 }, | 193 }, |
| 194 "path": "v1alpha/{+name}", | 194 "path": "v1alpha/{+name}", |
| 195 "response": { | 195 "response": { |
| 196 "$ref": "SshPublicKey" | 196 "$ref": "Empty" |
| 197 }, | 197 }, |
| 198 "scopes": [ | 198 "scopes": [ |
| 199 "https://www.googleapis.com/auth/cloud-platform" | 199 "https://www.googleapis.com/auth/cloud-platform" |
| 200 ] | 200 ] |
| 201 }, | 201 }, |
| 202 "patch": { | 202 "patch": { |
| 203 "description": "Updates an SSH public key and return
s the profile information. This method\nsupports patch semantics.", | 203 "description": "Updates an SSH public key and return
s the profile information. This method\nsupports patch semantics.", |
| 204 "httpMethod": "PATCH", | 204 "httpMethod": "PATCH", |
| 205 "id": "oslogin.users.sshPublicKeys.patch", | 205 "id": "oslogin.users.sshPublicKeys.patch", |
| 206 "parameterOrder": [ | 206 "parameterOrder": [ |
| (...skipping 18 matching lines...) Expand all Loading... |
| 225 "request": { | 225 "request": { |
| 226 "$ref": "SshPublicKey" | 226 "$ref": "SshPublicKey" |
| 227 }, | 227 }, |
| 228 "response": { | 228 "response": { |
| 229 "$ref": "SshPublicKey" | 229 "$ref": "SshPublicKey" |
| 230 }, | 230 }, |
| 231 "scopes": [ | 231 "scopes": [ |
| 232 "https://www.googleapis.com/auth/cloud-platform" | 232 "https://www.googleapis.com/auth/cloud-platform" |
| 233 ] | 233 ] |
| 234 }, | 234 }, |
| 235 "delete": { | 235 "get": { |
| 236 "description": "Deletes an SSH public key.", | 236 "description": "Retrieves an SSH public key.", |
| 237 "httpMethod": "DELETE", | 237 "httpMethod": "GET", |
| 238 "id": "oslogin.users.sshPublicKeys.delete", | 238 "id": "oslogin.users.sshPublicKeys.get", |
| 239 "parameterOrder": [ | 239 "parameterOrder": [ |
| 240 "name" | 240 "name" |
| 241 ], | 241 ], |
| 242 "parameters": { | 242 "parameters": { |
| 243 "name": { | 243 "name": { |
| 244 "description": "The fingerprint of the publi
c key to update. Public keys are identified by\ntheir SHA-256 fingerprint. The f
ingerprint of the public key is in format\n`users/{user}/sshPublicKeys/{fingerpr
int}`.", | 244 "description": "The fingerprint of the publi
c key to retrieve. Public keys are identified\nby their SHA-256 fingerprint. The
fingerprint of the public key is in\nformat `users/{user}/sshPublicKeys/{finger
print}`.", |
| 245 "location": "path", | 245 "location": "path", |
| 246 "pattern": "^users/[^/]+/sshPublicKeys/[^/]+
$", | 246 "pattern": "^users/[^/]+/sshPublicKeys/[^/]+
$", |
| 247 "required": true, | 247 "required": true, |
| 248 "type": "string" | 248 "type": "string" |
| 249 } | 249 } |
| 250 }, | 250 }, |
| 251 "path": "v1alpha/{+name}", | 251 "path": "v1alpha/{+name}", |
| 252 "response": { | 252 "response": { |
| 253 "$ref": "Empty" | 253 "$ref": "SshPublicKey" |
| 254 }, | 254 }, |
| 255 "scopes": [ | 255 "scopes": [ |
| 256 "https://www.googleapis.com/auth/cloud-platform" | 256 "https://www.googleapis.com/auth/cloud-platform" |
| 257 ] | 257 ] |
| 258 } | 258 } |
| 259 } | 259 } |
| 260 } | 260 } |
| 261 } | 261 } |
| 262 } | 262 } |
| 263 }, | 263 }, |
| 264 "revision": "20170619", | 264 "revision": "20170726", |
| 265 "rootUrl": "https://oslogin.googleapis.com/", | 265 "rootUrl": "https://oslogin.googleapis.com/", |
| 266 "schemas": { | 266 "schemas": { |
| 267 "Empty": { | |
| 268 "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 `{}`.", | |
| 269 "id": "Empty", | |
| 270 "properties": {}, | |
| 271 "type": "object" | |
| 272 }, | |
| 273 "SshPublicKey": { | |
| 274 "description": "The SSH public key information associated with a Dir
ectory API User.", | |
| 275 "id": "SshPublicKey", | |
| 276 "properties": { | |
| 277 "expirationTimeUsec": { | |
| 278 "description": "An expiration time in microseconds since epo
ch.", | |
| 279 "format": "int64", | |
| 280 "type": "string" | |
| 281 }, | |
| 282 "fingerprint": { | |
| 283 "description": "[Output Only] The SHA-256 fingerprint of the
SSH public key.", | |
| 284 "type": "string" | |
| 285 }, | |
| 286 "key": { | |
| 287 "description": "Public key text in SSH format, defined by\n<
a href=\"https://www.ietf.org/rfc/rfc4253.txt\" target=\"_blank\">RFC4253</a>\ns
ection 6.6.", | |
| 288 "type": "string" | |
| 289 } | |
| 290 }, | |
| 291 "type": "object" | |
| 292 }, | |
| 293 "ImportSshPublicKeyResponse": { | 267 "ImportSshPublicKeyResponse": { |
| 294 "description": "A response message for importing an SSH public key."
, | 268 "description": "A response message for importing an SSH public key."
, |
| 295 "id": "ImportSshPublicKeyResponse", | 269 "id": "ImportSshPublicKeyResponse", |
| 296 "properties": { | 270 "properties": { |
| 297 "loginProfile": { | 271 "loginProfile": { |
| 298 "$ref": "LoginProfile", | 272 "$ref": "LoginProfile", |
| 299 "description": "The login profile information for the user." | 273 "description": "The login profile information for the user." |
| 300 } | 274 } |
| 301 }, | 275 }, |
| 302 "type": "object" | 276 "type": "object" |
| 303 }, | 277 }, |
| 304 "PosixAccount": { | 278 "PosixAccount": { |
| 305 "description": "The POSIX account information associated with a Dire
ctory API User.", | 279 "description": "The POSIX account information associated with a Dire
ctory API User.", |
| 306 "id": "PosixAccount", | 280 "id": "PosixAccount", |
| 307 "properties": { | 281 "properties": { |
| 308 "shell": { | |
| 309 "description": "The path to the logic shell for this account
.", | |
| 310 "type": "string" | |
| 311 }, | |
| 312 "homeDirectory": { | |
| 313 "description": "The path to the home directory for this acco
unt.", | |
| 314 "type": "string" | |
| 315 }, | |
| 316 "gecos": { | |
| 317 "description": "The GECOS (user information) entry for this
account.", | |
| 318 "type": "string" | |
| 319 }, | |
| 320 "systemId": { | |
| 321 "description": "System identifier for which account the user
name or uid applies to.\nBy default, the empty value is used.", | |
| 322 "type": "string" | |
| 323 }, | |
| 324 "primary": { | 282 "primary": { |
| 325 "description": "Only one POSIX account can be marked as prim
ary.", | 283 "description": "Only one POSIX account can be marked as prim
ary.", |
| 326 "type": "boolean" | 284 "type": "boolean" |
| 327 }, | 285 }, |
| 328 "gid": { | 286 "gid": { |
| 329 "description": "The default group ID.", | 287 "description": "The default group ID.", |
| 330 "format": "int32", | 288 "format": "int32", |
| 331 "type": "integer" | 289 "type": "integer" |
| 332 }, | 290 }, |
| 333 "uid": { | 291 "uid": { |
| 334 "description": "The user ID.", | 292 "description": "The user ID.", |
| 335 "format": "int32", | 293 "format": "int32", |
| 336 "type": "integer" | 294 "type": "integer" |
| 337 }, | 295 }, |
| 338 "username": { | 296 "username": { |
| 339 "description": "The username of the POSIX account.", | 297 "description": "The username of the POSIX account.", |
| 340 "type": "string" | 298 "type": "string" |
| 299 }, |
| 300 "shell": { |
| 301 "description": "The path to the logic shell for this account
.", |
| 302 "type": "string" |
| 303 }, |
| 304 "homeDirectory": { |
| 305 "description": "The path to the home directory for this acco
unt.", |
| 306 "type": "string" |
| 307 }, |
| 308 "systemId": { |
| 309 "description": "System identifier for which account the user
name or uid applies to.\nBy default, the empty value is used.", |
| 310 "type": "string" |
| 311 }, |
| 312 "gecos": { |
| 313 "description": "The GECOS (user information) entry for this
account.", |
| 314 "type": "string" |
| 341 } | 315 } |
| 342 }, | 316 }, |
| 343 "type": "object" | 317 "type": "object" |
| 344 }, | 318 }, |
| 345 "LoginProfile": { | 319 "LoginProfile": { |
| 346 "description": "The Directory API profile information used for loggi
ng in to a virtual\nmachine on Google Compute Engine.", | 320 "description": "The Directory API profile information used for loggi
ng in to a virtual\nmachine on Google Compute Engine.", |
| 347 "id": "LoginProfile", | 321 "id": "LoginProfile", |
| 348 "properties": { | 322 "properties": { |
| 323 "posixAccounts": { |
| 324 "description": "The list of POSIX accounts associated with t
he Directory API user.", |
| 325 "items": { |
| 326 "$ref": "PosixAccount" |
| 327 }, |
| 328 "type": "array" |
| 329 }, |
| 330 "name": { |
| 331 "description": "A unique user ID for identifying the user.", |
| 332 "type": "string" |
| 333 }, |
| 349 "suspended": { | 334 "suspended": { |
| 350 "description": "Indicates if the user is suspended.", | 335 "description": "Indicates if the user is suspended.", |
| 351 "type": "boolean" | 336 "type": "boolean" |
| 352 }, | 337 }, |
| 353 "sshPublicKeys": { | 338 "sshPublicKeys": { |
| 354 "additionalProperties": { | 339 "additionalProperties": { |
| 355 "$ref": "SshPublicKey" | 340 "$ref": "SshPublicKey" |
| 356 }, | 341 }, |
| 357 "description": "A map from SSH public key fingerprint to the
associated key object.", | 342 "description": "A map from SSH public key fingerprint to the
associated key object.", |
| 358 "type": "object" | 343 "type": "object" |
| 359 }, | 344 } |
| 360 "name": { | 345 }, |
| 361 "description": "A unique user ID for identifying the user.", | 346 "type": "object" |
| 347 }, |
| 348 "SshPublicKey": { |
| 349 "description": "The SSH public key information associated with a Dir
ectory API User.", |
| 350 "id": "SshPublicKey", |
| 351 "properties": { |
| 352 "fingerprint": { |
| 353 "description": "[Output Only] The SHA-256 fingerprint of the
SSH public key.", |
| 362 "type": "string" | 354 "type": "string" |
| 363 }, | 355 }, |
| 364 "posixAccounts": { | 356 "key": { |
| 365 "description": "The list of POSIX accounts associated with t
he Directory API user.", | 357 "description": "Public key text in SSH format, defined by\n<
a href=\"https://www.ietf.org/rfc/rfc4253.txt\" target=\"_blank\">RFC4253</a>\ns
ection 6.6.", |
| 366 "items": { | 358 "type": "string" |
| 367 "$ref": "PosixAccount" | 359 }, |
| 368 }, | 360 "expirationTimeUsec": { |
| 369 "type": "array" | 361 "description": "An expiration time in microseconds since epo
ch.", |
| 362 "format": "int64", |
| 363 "type": "string" |
| 370 } | 364 } |
| 371 }, | 365 }, |
| 372 "type": "object" | 366 "type": "object" |
| 367 }, |
| 368 "Empty": { |
| 369 "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 `{}`.", |
| 370 "id": "Empty", |
| 371 "properties": {}, |
| 372 "type": "object" |
| 373 } | 373 } |
| 374 }, | 374 }, |
| 375 "servicePath": "", | 375 "servicePath": "", |
| 376 "title": "Google Cloud OS Login API", | 376 "title": "Google Cloud OS Login API", |
| 377 "version": "v1alpha" | 377 "version": "v1alpha" |
| 378 } | 378 } |
| OLD | NEW |