2017-09-21 15:48:45 +00:00
{
2017-10-22 08:07:36 +00:00
"basePath" : "" ,
2017-12-03 20:01:25 +00:00
"revision" : "20171120" ,
2017-10-22 08:07:36 +00:00
"documentationLink" : "https://cloud.google.com/compute/docs/oslogin/rest/" ,
2017-12-03 20:01:25 +00:00
"id" : "oslogin:v1beta" ,
2017-10-22 08:07:36 +00:00
"discoveryVersion" : "v1" ,
"version_module" : true ,
"schemas" : {
2017-12-03 20:01:25 +00:00
"Empty" : {
"description" : "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`." ,
"type" : "object" ,
"properties" : { } ,
"id" : "Empty"
} ,
"SshPublicKey" : {
"description" : "The SSH public key information associated with a Google account." ,
2017-10-22 08:07:36 +00:00
"type" : "object" ,
"properties" : {
2017-12-03 20:01:25 +00:00
"expirationTimeUsec" : {
"description" : "An expiration time in microseconds since epoch." ,
"format" : "int64" ,
2017-10-22 08:07:36 +00:00
"type" : "string"
} ,
2017-12-03 20:01:25 +00:00
"fingerprint" : {
"description" : "Output only. The SHA-256 fingerprint of the SSH public key." ,
2017-10-22 08:07:36 +00:00
"type" : "string"
} ,
2017-12-03 20:01:25 +00:00
"key" : {
"description" : "Public key text in SSH format, defined by\n\u003ca href=\"https://www.ietf.org/rfc/rfc4253.txt\" target=\"_blank\"\u003eRFC4253\u003c/a\u003e\nsection 6.6." ,
2017-10-22 08:07:36 +00:00
"type" : "string"
2017-12-03 20:01:25 +00:00
}
} ,
"id" : "SshPublicKey"
} ,
"ImportSshPublicKeyResponse" : {
"description" : "A response message for importing an SSH public key." ,
"type" : "object" ,
"properties" : {
"loginProfile" : {
"$ref" : "LoginProfile" ,
"description" : "The login profile information for the user."
}
} ,
"id" : "ImportSshPublicKeyResponse"
} ,
"PosixAccount" : {
"description" : "The POSIX account information associated with a Google account." ,
"type" : "object" ,
"properties" : {
2017-10-22 08:07:36 +00:00
"primary" : {
"description" : "Only one POSIX account can be marked as primary." ,
"type" : "boolean"
} ,
2017-12-03 20:01:25 +00:00
"accountId" : {
"description" : "Output only. A POSIX account identifier." ,
"type" : "string"
} ,
2017-10-22 08:07:36 +00:00
"gid" : {
2017-12-03 20:01:25 +00:00
"description" : "The default group ID." ,
2017-10-22 08:07:36 +00:00
"format" : "int64" ,
2017-12-03 20:01:25 +00:00
"type" : "string"
2017-10-22 08:07:36 +00:00
} ,
"uid" : {
"description" : "The user ID." ,
2017-12-03 20:01:25 +00:00
"format" : "int64" ,
2017-10-22 08:07:36 +00:00
"type" : "string"
} ,
"username" : {
"description" : "The username of the POSIX account." ,
"type" : "string"
} ,
"shell" : {
"description" : "The path to the logic shell for this account." ,
"type" : "string"
2017-12-03 20:01:25 +00:00
} ,
"homeDirectory" : {
"description" : "The path to the home directory for this account." ,
"type" : "string"
} ,
"systemId" : {
"description" : "System identifier for which account the username or uid applies to.\nBy default, the empty value is used." ,
"type" : "string"
} ,
"gecos" : {
"description" : "The GECOS (user information) entry for this account." ,
"type" : "string"
2017-10-22 08:07:36 +00:00
}
} ,
"id" : "PosixAccount"
} ,
"LoginProfile" : {
"description" : "The user profile information used for logging in to a virtual machine on\nGoogle Compute Engine." ,
"type" : "object" ,
"properties" : {
2017-12-03 20:01:25 +00:00
"name" : {
"description" : "The primary email address that uniquely identifies the user." ,
"type" : "string"
} ,
2017-10-22 08:07:36 +00:00
"posixAccounts" : {
"description" : "The list of POSIX accounts associated with the user." ,
2017-12-03 20:01:25 +00:00
"type" : "array" ,
2017-10-22 08:07:36 +00:00
"items" : {
"$ref" : "PosixAccount"
2017-12-03 20:01:25 +00:00
}
2017-10-22 08:07:36 +00:00
} ,
"suspended" : {
"description" : "Indicates if the user is suspended. A suspended user cannot log in but\ntheir profile information is retained." ,
"type" : "boolean"
} ,
"sshPublicKeys" : {
2017-12-03 20:01:25 +00:00
"description" : "A map from SSH public key fingerprint to the associated key object." ,
"type" : "object" ,
2017-10-22 08:07:36 +00:00
"additionalProperties" : {
"$ref" : "SshPublicKey"
2017-12-03 20:01:25 +00:00
}
2017-10-22 08:07:36 +00:00
}
} ,
2017-12-03 20:01:25 +00:00
"id" : "LoginProfile"
2017-10-22 08:07:36 +00:00
}
} ,
"protocol" : "rest" ,
"icons" : {
2017-12-03 20:01:25 +00:00
"x16" : "http://www.google.com/images/icons/product/search-16.gif" ,
"x32" : "http://www.google.com/images/icons/product/search-32.gif"
2017-10-22 08:07:36 +00:00
} ,
2017-10-01 08:13:39 +00:00
"canonicalName" : "Cloud OS Login" ,
"auth" : {
"oauth2" : {
"scopes" : {
"https://www.googleapis.com/auth/cloud-platform.read-only" : {
"description" : "View your data across Google Cloud Platform services"
} ,
"https://www.googleapis.com/auth/cloud-platform" : {
"description" : "View and manage your data across Google Cloud Platform services"
2017-12-03 20:01:25 +00:00
} ,
"https://www.googleapis.com/auth/compute.readonly" : {
"description" : "View your Google Compute Engine resources"
} ,
"https://www.googleapis.com/auth/compute" : {
"description" : "View and manage your Google Compute Engine resources"
2017-10-01 08:13:39 +00:00
}
}
}
} ,
"rootUrl" : "https://oslogin.googleapis.com/" ,
"ownerDomain" : "google.com" ,
"name" : "oslogin" ,
"batchPath" : "batch" ,
"fullyEncodeReservedExpansion" : true ,
"title" : "Google Cloud OS Login API" ,
2017-09-21 15:48:45 +00:00
"ownerName" : "Google" ,
"resources" : {
"users" : {
"methods" : {
2017-10-22 08:07:36 +00:00
"importSshPublicKey" : {
2017-12-03 20:01:25 +00:00
"flatPath" : "v1beta/users/{usersId}:importSshPublicKey" ,
"path" : "v1beta/{+parent}:importSshPublicKey" ,
"id" : "oslogin.users.importSshPublicKey" ,
2017-10-22 08:07:36 +00:00
"description" : "Adds an SSH public key and returns the profile information. Default POSIX\naccount information is set when no username and UID exist as part of the\nlogin profile." ,
"request" : {
"$ref" : "SshPublicKey"
} ,
2017-09-21 15:48:45 +00:00
"response" : {
2017-10-22 08:07:36 +00:00
"$ref" : "ImportSshPublicKeyResponse"
2017-09-21 15:48:45 +00:00
} ,
"parameterOrder" : [
2017-10-22 08:07:36 +00:00
"parent"
] ,
"httpMethod" : "POST" ,
"scopes" : [
"https://www.googleapis.com/auth/cloud-platform" ,
"https://www.googleapis.com/auth/compute"
2017-09-21 15:48:45 +00:00
] ,
"parameters" : {
2017-12-03 20:01:25 +00:00
"projectId" : {
"description" : "The project ID of the Google Cloud Platform project." ,
2017-09-21 15:48:45 +00:00
"type" : "string" ,
2017-12-03 20:01:25 +00:00
"location" : "query"
} ,
"parent" : {
"description" : "The unique ID for the user in format `users/{user}`." ,
2017-09-21 15:48:45 +00:00
"required" : true ,
2017-12-03 20:01:25 +00:00
"type" : "string" ,
2017-09-21 15:48:45 +00:00
"pattern" : "^users/[^/]+$" ,
"location" : "path"
}
2017-12-03 20:01:25 +00:00
}
} ,
"getLoginProfile" : {
"description" : "Retrieves the profile information used for logging in to a virtual machine\non Google Compute Engine." ,
"response" : {
"$ref" : "LoginProfile"
2017-09-21 15:48:45 +00:00
} ,
2017-12-03 20:01:25 +00:00
"parameterOrder" : [
"name"
] ,
"httpMethod" : "GET" ,
2017-10-01 08:13:39 +00:00
"scopes" : [
"https://www.googleapis.com/auth/cloud-platform" ,
"https://www.googleapis.com/auth/cloud-platform.read-only" ,
"https://www.googleapis.com/auth/compute" ,
"https://www.googleapis.com/auth/compute.readonly"
] ,
2017-12-03 20:01:25 +00:00
"parameters" : {
"name" : {
"description" : "The unique ID for the user in format `users/{user}`." ,
"required" : true ,
"type" : "string" ,
"pattern" : "^users/[^/]+$" ,
"location" : "path"
}
} ,
2017-10-01 08:13:39 +00:00
"flatPath" : "v1beta/users/{usersId}/loginProfile" ,
"path" : "v1beta/{+name}/loginProfile" ,
2017-12-03 20:01:25 +00:00
"id" : "oslogin.users.getLoginProfile"
2017-09-21 15:48:45 +00:00
}
} ,
"resources" : {
"sshPublicKeys" : {
"methods" : {
"delete" : {
2017-12-03 20:01:25 +00:00
"flatPath" : "v1beta/users/{usersId}/sshPublicKeys/{sshPublicKeysId}" ,
"id" : "oslogin.users.sshPublicKeys.delete" ,
"path" : "v1beta/{+name}" ,
2017-10-22 08:07:36 +00:00
"description" : "Deletes an SSH public key." ,
"httpMethod" : "DELETE" ,
"parameterOrder" : [
"name"
] ,
"response" : {
"$ref" : "Empty"
} ,
2017-09-21 15:48:45 +00:00
"parameters" : {
"name" : {
"description" : "The fingerprint of the public key to update. Public keys are identified by\ntheir SHA-256 fingerprint. The fingerprint of the public key is in format\n`users/{user}/sshPublicKeys/{fingerprint}`." ,
"required" : true ,
2017-12-03 20:01:25 +00:00
"type" : "string" ,
"pattern" : "^users/[^/]+/sshPublicKeys/[^/]+$" ,
"location" : "path"
2017-09-21 15:48:45 +00:00
}
} ,
2017-12-03 20:01:25 +00:00
"scopes" : [
"https://www.googleapis.com/auth/cloud-platform" ,
"https://www.googleapis.com/auth/compute"
]
2017-10-01 08:13:39 +00:00
} ,
2017-12-03 20:01:25 +00:00
"get" : {
"description" : "Retrieves an SSH public key." ,
2017-10-22 08:07:36 +00:00
"response" : {
"$ref" : "SshPublicKey"
} ,
2017-12-03 20:01:25 +00:00
"parameterOrder" : [
"name"
] ,
"httpMethod" : "GET" ,
2017-09-21 15:48:45 +00:00
"parameters" : {
"name" : {
2017-12-03 20:01:25 +00:00
"description" : "The fingerprint of the public key to retrieve. Public keys are identified\nby their SHA-256 fingerprint. The fingerprint of the public key is in\nformat `users/{user}/sshPublicKeys/{fingerprint}`." ,
"required" : true ,
2017-10-22 08:07:36 +00:00
"type" : "string" ,
2017-12-03 20:01:25 +00:00
"pattern" : "^users/[^/]+/sshPublicKeys/[^/]+$" ,
"location" : "path"
2017-09-21 15:48:45 +00:00
}
} ,
"scopes" : [
2017-10-01 08:13:39 +00:00
"https://www.googleapis.com/auth/cloud-platform" ,
"https://www.googleapis.com/auth/compute"
2017-09-21 15:48:45 +00:00
] ,
"flatPath" : "v1beta/users/{usersId}/sshPublicKeys/{sshPublicKeysId}" ,
2017-10-22 08:07:36 +00:00
"path" : "v1beta/{+name}" ,
2017-12-03 20:01:25 +00:00
"id" : "oslogin.users.sshPublicKeys.get"
} ,
"patch" : {
2017-10-22 08:07:36 +00:00
"description" : "Updates an SSH public key and returns the profile information. This method\nsupports patch semantics." ,
"request" : {
"$ref" : "SshPublicKey"
2017-12-03 20:01:25 +00:00
} ,
2017-09-21 15:48:45 +00:00
"response" : {
"$ref" : "SshPublicKey"
} ,
"parameterOrder" : [
"name"
] ,
2017-12-03 20:01:25 +00:00
"httpMethod" : "PATCH" ,
2017-10-22 08:07:36 +00:00
"scopes" : [
"https://www.googleapis.com/auth/cloud-platform" ,
"https://www.googleapis.com/auth/compute"
] ,
2017-09-21 15:48:45 +00:00
"parameters" : {
2017-12-03 20:01:25 +00:00
"updateMask" : {
"description" : "Mask to control which fields get updated. Updates all if not present." ,
"format" : "google-fieldmask" ,
"type" : "string" ,
"location" : "query"
} ,
2017-09-21 15:48:45 +00:00
"name" : {
2017-10-22 08:07:36 +00:00
"location" : "path" ,
2017-12-03 20:01:25 +00:00
"description" : "The fingerprint of the public key to update. Public keys are identified by\ntheir SHA-256 fingerprint. The fingerprint of the public key is in format\n`users/{user}/sshPublicKeys/{fingerprint}`." ,
2017-09-21 15:48:45 +00:00
"required" : true ,
2017-12-03 20:01:25 +00:00
"type" : "string" ,
2017-10-22 08:07:36 +00:00
"pattern" : "^users/[^/]+/sshPublicKeys/[^/]+$"
2017-09-21 15:48:45 +00:00
}
} ,
"flatPath" : "v1beta/users/{usersId}/sshPublicKeys/{sshPublicKeysId}" ,
2017-10-22 08:07:36 +00:00
"path" : "v1beta/{+name}" ,
2017-12-03 20:01:25 +00:00
"id" : "oslogin.users.sshPublicKeys.patch"
}
}
} ,
"projects" : {
"methods" : {
"delete" : {
"description" : "Deletes a POSIX account." ,
"response" : {
"$ref" : "Empty"
} ,
"parameterOrder" : [
"name"
] ,
"httpMethod" : "DELETE" ,
"parameters" : {
"name" : {
"location" : "path" ,
"description" : "A reference to the POSIX account to update. POSIX accounts are identified\nby the project ID they are associated with. A reference to the POSIX\naccount is in format `users/{user}/projects/{project}`." ,
"required" : true ,
"type" : "string" ,
"pattern" : "^users/[^/]+/projects/[^/]+$"
}
} ,
"scopes" : [
"https://www.googleapis.com/auth/cloud-platform" ,
"https://www.googleapis.com/auth/compute"
] ,
"flatPath" : "v1beta/users/{usersId}/projects/{projectsId}" ,
"path" : "v1beta/{+name}" ,
"id" : "oslogin.users.projects.delete"
2017-09-21 15:48:45 +00:00
}
}
}
}
}
} ,
"parameters" : {
2017-12-03 20:01:25 +00:00
"callback" : {
2017-10-22 08:07:36 +00:00
"location" : "query" ,
2017-12-03 20:01:25 +00:00
"description" : "JSONP" ,
"type" : "string"
2017-10-22 08:07:36 +00:00
} ,
2017-09-21 15:48:45 +00:00
"$.xgafv" : {
2017-12-03 20:01:25 +00:00
"description" : "V1 error format." ,
2017-10-22 08:07:36 +00:00
"type" : "string" ,
2017-09-21 15:48:45 +00:00
"enumDescriptions" : [
"v1 error format" ,
"v2 error format"
] ,
"location" : "query" ,
"enum" : [
"1" ,
"2"
2017-12-03 20:01:25 +00:00
]
2017-09-21 15:48:45 +00:00
} ,
"alt" : {
2017-10-01 08:13:39 +00:00
"enumDescriptions" : [
"Responses with Content-Type of application/json" ,
"Media download with context-dependent Content-Type" ,
"Responses with Content-Type of application/x-protobuf"
] ,
"location" : "query" ,
2017-09-21 15:48:45 +00:00
"description" : "Data format for response." ,
2017-12-03 20:01:25 +00:00
"default" : "json" ,
"enum" : [
"json" ,
"media" ,
"proto"
] ,
"type" : "string"
2017-09-21 15:48:45 +00:00
} ,
"access_token" : {
2017-10-01 08:13:39 +00:00
"location" : "query" ,
2017-09-21 15:48:45 +00:00
"description" : "OAuth access token." ,
2017-10-01 08:13:39 +00:00
"type" : "string"
2017-09-21 15:48:45 +00:00
} ,
"key" : {
2017-12-03 20:01:25 +00:00
"location" : "query" ,
2017-09-21 15:48:45 +00:00
"description" : "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token." ,
2017-12-03 20:01:25 +00:00
"type" : "string"
2017-09-21 15:48:45 +00:00
} ,
"quotaUser" : {
2017-10-22 08:07:36 +00:00
"location" : "query" ,
2017-09-21 15:48:45 +00:00
"description" : "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters." ,
2017-10-22 08:07:36 +00:00
"type" : "string"
2017-09-21 15:48:45 +00:00
} ,
"pp" : {
"description" : "Pretty-print response." ,
2017-10-01 08:13:39 +00:00
"type" : "boolean" ,
2017-12-03 20:01:25 +00:00
"default" : "true" ,
2017-10-01 08:13:39 +00:00
"location" : "query"
2017-09-21 15:48:45 +00:00
} ,
"bearer_token" : {
2017-10-22 08:07:36 +00:00
"location" : "query" ,
2017-09-21 15:48:45 +00:00
"description" : "OAuth bearer token." ,
2017-10-22 08:07:36 +00:00
"type" : "string"
2017-09-21 15:48:45 +00:00
} ,
"oauth_token" : {
"location" : "query" ,
"description" : "OAuth 2.0 token for the current user." ,
"type" : "string"
2017-12-03 20:01:25 +00:00
} ,
"upload_protocol" : {
"location" : "query" ,
"description" : "Upload protocol for media (e.g. \"raw\", \"multipart\")." ,
"type" : "string"
} ,
"prettyPrint" : {
"location" : "query" ,
"description" : "Returns response with indentations and line breaks." ,
"type" : "boolean" ,
"default" : "true"
} ,
"fields" : {
"location" : "query" ,
"description" : "Selector specifying which fields to include in a partial response." ,
"type" : "string"
} ,
"uploadType" : {
"location" : "query" ,
"description" : "Legacy upload protocol for media (e.g. \"media\", \"multipart\")." ,
"type" : "string"
2017-09-21 15:48:45 +00:00
}
} ,
"version" : "v1beta" ,
2017-12-03 20:01:25 +00:00
"baseUrl" : "https://oslogin.googleapis.com/" ,
"servicePath" : "" ,
"description" : "Manages OS login configuration for Google account users." ,
"kind" : "discovery#restDescription"
2017-09-21 15:48:45 +00:00
}