2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-19 03:25:19 +00:00
restic/vendor/google.golang.org/api/oslogin/v1beta/oslogin-api.json

437 lines
15 KiB
JSON
Raw Normal View History

2017-09-21 15:48:45 +00:00
{
2017-10-22 08:07:36 +00:00
"basePath": "",
"revision": "20171120",
2017-10-22 08:07:36 +00:00
"documentationLink": "https://cloud.google.com/compute/docs/oslogin/rest/",
"id": "oslogin:v1beta",
2017-10-22 08:07:36 +00:00
"discoveryVersion": "v1",
"version_module": true,
"schemas": {
"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": {
"expirationTimeUsec": {
"description": "An expiration time in microseconds since epoch.",
"format": "int64",
2017-10-22 08:07:36 +00:00
"type": "string"
},
"fingerprint": {
"description": "Output only. The SHA-256 fingerprint of the SSH public key.",
2017-10-22 08:07:36 +00:00
"type": "string"
},
"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"
}
},
"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"
},
"accountId": {
"description": "Output only. A POSIX account identifier.",
"type": "string"
},
2017-10-22 08:07:36 +00:00
"gid": {
"description": "The default group ID.",
2017-10-22 08:07:36 +00:00
"format": "int64",
"type": "string"
2017-10-22 08:07:36 +00:00
},
"uid": {
"description": "The user ID.",
"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"
},
"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": {
"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.",
"type": "array",
2017-10-22 08:07:36 +00:00
"items": {
"$ref": "PosixAccount"
}
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": {
"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-10-22 08:07:36 +00:00
}
},
"id": "LoginProfile"
2017-10-22 08:07:36 +00:00
}
},
"protocol": "rest",
"icons": {
"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
},
"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"
},
"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"
}
}
}
},
"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": {
"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": {
"projectId": {
"description": "The project ID of the Google Cloud Platform project.",
2017-09-21 15:48:45 +00:00
"type": "string",
"location": "query"
},
"parent": {
"description": "The unique ID for the user in format `users/{user}`.",
2017-09-21 15:48:45 +00:00
"required": true,
"type": "string",
2017-09-21 15:48:45 +00:00
"pattern": "^users/[^/]+$",
"location": "path"
}
}
},
"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
},
"parameterOrder": [
"name"
],
"httpMethod": "GET",
"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"
],
"parameters": {
"name": {
"description": "The unique ID for the user in format `users/{user}`.",
"required": true,
"type": "string",
"pattern": "^users/[^/]+$",
"location": "path"
}
},
"flatPath": "v1beta/users/{usersId}/loginProfile",
"path": "v1beta/{+name}/loginProfile",
"id": "oslogin.users.getLoginProfile"
2017-09-21 15:48:45 +00:00
}
},
"resources": {
"sshPublicKeys": {
"methods": {
"delete": {
"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,
"type": "string",
"pattern": "^users/[^/]+/sshPublicKeys/[^/]+$",
"location": "path"
2017-09-21 15:48:45 +00:00
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"
]
},
"get": {
"description": "Retrieves an SSH public key.",
2017-10-22 08:07:36 +00:00
"response": {
"$ref": "SshPublicKey"
},
"parameterOrder": [
"name"
],
"httpMethod": "GET",
2017-09-21 15:48:45 +00:00
"parameters": {
"name": {
"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",
"pattern": "^users/[^/]+/sshPublicKeys/[^/]+$",
"location": "path"
2017-09-21 15:48:45 +00:00
}
},
"scopes": [
"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}",
"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-09-21 15:48:45 +00:00
"response": {
"$ref": "SshPublicKey"
},
"parameterOrder": [
"name"
],
"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": {
"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",
"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,
"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}",
"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": {
"callback": {
2017-10-22 08:07:36 +00:00
"location": "query",
"description": "JSONP",
"type": "string"
2017-10-22 08:07:36 +00:00
},
2017-09-21 15:48:45 +00:00
"$.xgafv": {
"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-09-21 15:48:45 +00:00
},
"alt": {
"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.",
"default": "json",
"enum": [
"json",
"media",
"proto"
],
"type": "string"
2017-09-21 15:48:45 +00:00
},
"access_token": {
"location": "query",
2017-09-21 15:48:45 +00:00
"description": "OAuth access token.",
"type": "string"
2017-09-21 15:48:45 +00:00
},
"key": {
"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.",
"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.",
"type": "boolean",
"default": "true",
"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"
},
"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",
"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
}