Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

456 rader
16 KiB

  1. {
  2. "auth": {
  3. "oauth2": {
  4. "scopes": {
  5. "https://www.googleapis.com/auth/cloud-platform": {
  6. "description": "View and manage your data across Google Cloud Platform services"
  7. },
  8. "https://www.googleapis.com/auth/cloud-platform.read-only": {
  9. "description": "View your data across Google Cloud Platform services"
  10. },
  11. "https://www.googleapis.com/auth/compute": {
  12. "description": "View and manage your Google Compute Engine resources"
  13. },
  14. "https://www.googleapis.com/auth/compute.readonly": {
  15. "description": "View your Google Compute Engine resources"
  16. }
  17. }
  18. }
  19. },
  20. "basePath": "",
  21. "baseUrl": "https://oslogin.googleapis.com/",
  22. "batchPath": "batch",
  23. "canonicalName": "Cloud OS Login",
  24. "description": "Manages OS login configuration for Google account users.",
  25. "discoveryVersion": "v1",
  26. "documentationLink": "https://cloud.google.com/compute/docs/oslogin/rest/",
  27. "fullyEncodeReservedExpansion": true,
  28. "icons": {
  29. "x16": "http://www.google.com/images/icons/product/search-16.gif",
  30. "x32": "http://www.google.com/images/icons/product/search-32.gif"
  31. },
  32. "id": "oslogin:v1alpha",
  33. "kind": "discovery#restDescription",
  34. "name": "oslogin",
  35. "ownerDomain": "google.com",
  36. "ownerName": "Google",
  37. "parameters": {
  38. "$.xgafv": {
  39. "description": "V1 error format.",
  40. "enum": [
  41. "1",
  42. "2"
  43. ],
  44. "enumDescriptions": [
  45. "v1 error format",
  46. "v2 error format"
  47. ],
  48. "location": "query",
  49. "type": "string"
  50. },
  51. "access_token": {
  52. "description": "OAuth access token.",
  53. "location": "query",
  54. "type": "string"
  55. },
  56. "alt": {
  57. "default": "json",
  58. "description": "Data format for response.",
  59. "enum": [
  60. "json",
  61. "media",
  62. "proto"
  63. ],
  64. "enumDescriptions": [
  65. "Responses with Content-Type of application/json",
  66. "Media download with context-dependent Content-Type",
  67. "Responses with Content-Type of application/x-protobuf"
  68. ],
  69. "location": "query",
  70. "type": "string"
  71. },
  72. "bearer_token": {
  73. "description": "OAuth bearer token.",
  74. "location": "query",
  75. "type": "string"
  76. },
  77. "callback": {
  78. "description": "JSONP",
  79. "location": "query",
  80. "type": "string"
  81. },
  82. "fields": {
  83. "description": "Selector specifying which fields to include in a partial response.",
  84. "location": "query",
  85. "type": "string"
  86. },
  87. "key": {
  88. "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.",
  89. "location": "query",
  90. "type": "string"
  91. },
  92. "oauth_token": {
  93. "description": "OAuth 2.0 token for the current user.",
  94. "location": "query",
  95. "type": "string"
  96. },
  97. "pp": {
  98. "default": "true",
  99. "description": "Pretty-print response.",
  100. "location": "query",
  101. "type": "boolean"
  102. },
  103. "prettyPrint": {
  104. "default": "true",
  105. "description": "Returns response with indentations and line breaks.",
  106. "location": "query",
  107. "type": "boolean"
  108. },
  109. "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 exceed 40 characters.",
  111. "location": "query",
  112. "type": "string"
  113. },
  114. "uploadType": {
  115. "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
  116. "location": "query",
  117. "type": "string"
  118. },
  119. "upload_protocol": {
  120. "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
  121. "location": "query",
  122. "type": "string"
  123. }
  124. },
  125. "protocol": "rest",
  126. "resources": {
  127. "users": {
  128. "methods": {
  129. "getLoginProfile": {
  130. "description": "Retrieves the profile information used for logging in to a virtual machine\non Google Compute Engine.",
  131. "flatPath": "v1alpha/users/{usersId}/loginProfile",
  132. "httpMethod": "GET",
  133. "id": "oslogin.users.getLoginProfile",
  134. "parameterOrder": [
  135. "name"
  136. ],
  137. "parameters": {
  138. "name": {
  139. "description": "The unique ID for the user in format `users/{user}`.",
  140. "location": "path",
  141. "pattern": "^users/[^/]+$",
  142. "required": true,
  143. "type": "string"
  144. }
  145. },
  146. "path": "v1alpha/{+name}/loginProfile",
  147. "response": {
  148. "$ref": "LoginProfile"
  149. },
  150. "scopes": [
  151. "https://www.googleapis.com/auth/cloud-platform",
  152. "https://www.googleapis.com/auth/cloud-platform.read-only",
  153. "https://www.googleapis.com/auth/compute",
  154. "https://www.googleapis.com/auth/compute.readonly"
  155. ]
  156. },
  157. "importSshPublicKey": {
  158. "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.",
  159. "flatPath": "v1alpha/users/{usersId}:importSshPublicKey",
  160. "httpMethod": "POST",
  161. "id": "oslogin.users.importSshPublicKey",
  162. "parameterOrder": [
  163. "parent"
  164. ],
  165. "parameters": {
  166. "parent": {
  167. "description": "The unique ID for the user in format `users/{user}`.",
  168. "location": "path",
  169. "pattern": "^users/[^/]+$",
  170. "required": true,
  171. "type": "string"
  172. },
  173. "projectId": {
  174. "description": "The project ID of the Google Cloud Platform project.",
  175. "location": "query",
  176. "type": "string"
  177. }
  178. },
  179. "path": "v1alpha/{+parent}:importSshPublicKey",
  180. "request": {
  181. "$ref": "SshPublicKey"
  182. },
  183. "response": {
  184. "$ref": "ImportSshPublicKeyResponse"
  185. },
  186. "scopes": [
  187. "https://www.googleapis.com/auth/cloud-platform",
  188. "https://www.googleapis.com/auth/compute"
  189. ]
  190. }
  191. },
  192. "resources": {
  193. "projects": {
  194. "methods": {
  195. "delete": {
  196. "description": "Deletes a POSIX account.",
  197. "flatPath": "v1alpha/users/{usersId}/projects/{projectsId}",
  198. "httpMethod": "DELETE",
  199. "id": "oslogin.users.projects.delete",
  200. "parameterOrder": [
  201. "name"
  202. ],
  203. "parameters": {
  204. "name": {
  205. "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}`.",
  206. "location": "path",
  207. "pattern": "^users/[^/]+/projects/[^/]+$",
  208. "required": true,
  209. "type": "string"
  210. },
  211. "operatingSystemType": {
  212. "description": "The type of operating system associated with the account.",
  213. "enum": [
  214. "OPERATING_SYSTEM_TYPE_UNSPECIFIED",
  215. "LINUX",
  216. "WINDOWS"
  217. ],
  218. "location": "query",
  219. "type": "string"
  220. }
  221. },
  222. "path": "v1alpha/{+name}",
  223. "response": {
  224. "$ref": "Empty"
  225. },
  226. "scopes": [
  227. "https://www.googleapis.com/auth/cloud-platform",
  228. "https://www.googleapis.com/auth/compute"
  229. ]
  230. }
  231. }
  232. },
  233. "sshPublicKeys": {
  234. "methods": {
  235. "delete": {
  236. "description": "Deletes an SSH public key.",
  237. "flatPath": "v1alpha/users/{usersId}/sshPublicKeys/{sshPublicKeysId}",
  238. "httpMethod": "DELETE",
  239. "id": "oslogin.users.sshPublicKeys.delete",
  240. "parameterOrder": [
  241. "name"
  242. ],
  243. "parameters": {
  244. "name": {
  245. "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}`.",
  246. "location": "path",
  247. "pattern": "^users/[^/]+/sshPublicKeys/[^/]+$",
  248. "required": true,
  249. "type": "string"
  250. }
  251. },
  252. "path": "v1alpha/{+name}",
  253. "response": {
  254. "$ref": "Empty"
  255. },
  256. "scopes": [
  257. "https://www.googleapis.com/auth/cloud-platform",
  258. "https://www.googleapis.com/auth/compute"
  259. ]
  260. },
  261. "get": {
  262. "description": "Retrieves an SSH public key.",
  263. "flatPath": "v1alpha/users/{usersId}/sshPublicKeys/{sshPublicKeysId}",
  264. "httpMethod": "GET",
  265. "id": "oslogin.users.sshPublicKeys.get",
  266. "parameterOrder": [
  267. "name"
  268. ],
  269. "parameters": {
  270. "name": {
  271. "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}`.",
  272. "location": "path",
  273. "pattern": "^users/[^/]+/sshPublicKeys/[^/]+$",
  274. "required": true,
  275. "type": "string"
  276. }
  277. },
  278. "path": "v1alpha/{+name}",
  279. "response": {
  280. "$ref": "SshPublicKey"
  281. },
  282. "scopes": [
  283. "https://www.googleapis.com/auth/cloud-platform",
  284. "https://www.googleapis.com/auth/compute"
  285. ]
  286. },
  287. "patch": {
  288. "description": "Updates an SSH public key and returns the profile information. This method\nsupports patch semantics.",
  289. "flatPath": "v1alpha/users/{usersId}/sshPublicKeys/{sshPublicKeysId}",
  290. "httpMethod": "PATCH",
  291. "id": "oslogin.users.sshPublicKeys.patch",
  292. "parameterOrder": [
  293. "name"
  294. ],
  295. "parameters": {
  296. "name": {
  297. "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}`.",
  298. "location": "path",
  299. "pattern": "^users/[^/]+/sshPublicKeys/[^/]+$",
  300. "required": true,
  301. "type": "string"
  302. },
  303. "updateMask": {
  304. "description": "Mask to control which fields get updated. Updates all if not present.",
  305. "format": "google-fieldmask",
  306. "location": "query",
  307. "type": "string"
  308. }
  309. },
  310. "path": "v1alpha/{+name}",
  311. "request": {
  312. "$ref": "SshPublicKey"
  313. },
  314. "response": {
  315. "$ref": "SshPublicKey"
  316. },
  317. "scopes": [
  318. "https://www.googleapis.com/auth/cloud-platform",
  319. "https://www.googleapis.com/auth/compute"
  320. ]
  321. }
  322. }
  323. }
  324. }
  325. }
  326. },
  327. "revision": "20180430",
  328. "rootUrl": "https://oslogin.googleapis.com/",
  329. "schemas": {
  330. "Empty": {
  331. "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 `{}`.",
  332. "id": "Empty",
  333. "properties": {},
  334. "type": "object"
  335. },
  336. "ImportSshPublicKeyResponse": {
  337. "description": "A response message from importing an SSH public key.",
  338. "id": "ImportSshPublicKeyResponse",
  339. "properties": {
  340. "loginProfile": {
  341. "$ref": "LoginProfile",
  342. "description": "The login profile information for the user."
  343. }
  344. },
  345. "type": "object"
  346. },
  347. "LoginProfile": {
  348. "description": "The user profile information used for logging in to a virtual machine on\nGoogle Compute Engine.",
  349. "id": "LoginProfile",
  350. "properties": {
  351. "name": {
  352. "description": "A unique user ID.",
  353. "type": "string"
  354. },
  355. "posixAccounts": {
  356. "description": "The list of POSIX accounts associated with the user.",
  357. "items": {
  358. "$ref": "PosixAccount"
  359. },
  360. "type": "array"
  361. },
  362. "sshPublicKeys": {
  363. "additionalProperties": {
  364. "$ref": "SshPublicKey"
  365. },
  366. "description": "A map from SSH public key fingerprint to the associated key object.",
  367. "type": "object"
  368. }
  369. },
  370. "type": "object"
  371. },
  372. "PosixAccount": {
  373. "description": "The POSIX account information associated with a Google account.",
  374. "id": "PosixAccount",
  375. "properties": {
  376. "accountId": {
  377. "description": "Output only. A POSIX account identifier.",
  378. "type": "string"
  379. },
  380. "gecos": {
  381. "description": "The GECOS (user information) entry for this account.",
  382. "type": "string"
  383. },
  384. "gid": {
  385. "description": "The default group ID.",
  386. "format": "int64",
  387. "type": "string"
  388. },
  389. "homeDirectory": {
  390. "description": "The path to the home directory for this account.",
  391. "type": "string"
  392. },
  393. "operatingSystemType": {
  394. "description": "The operating system type where this account applies.",
  395. "enum": [
  396. "OPERATING_SYSTEM_TYPE_UNSPECIFIED",
  397. "LINUX",
  398. "WINDOWS"
  399. ],
  400. "enumDescriptions": [
  401. "The operating system type associated with the user account information is\nunspecified.",
  402. "Linux user account information.",
  403. "Windows user account information."
  404. ],
  405. "type": "string"
  406. },
  407. "primary": {
  408. "description": "Only one POSIX account can be marked as primary.",
  409. "type": "boolean"
  410. },
  411. "shell": {
  412. "description": "The path to the logic shell for this account.",
  413. "type": "string"
  414. },
  415. "systemId": {
  416. "description": "System identifier for which account the username or uid applies to.\nBy default, the empty value is used.",
  417. "type": "string"
  418. },
  419. "uid": {
  420. "description": "The user ID.",
  421. "format": "int64",
  422. "type": "string"
  423. },
  424. "username": {
  425. "description": "The username of the POSIX account.",
  426. "type": "string"
  427. }
  428. },
  429. "type": "object"
  430. },
  431. "SshPublicKey": {
  432. "description": "The SSH public key information associated with a Google account.",
  433. "id": "SshPublicKey",
  434. "properties": {
  435. "expirationTimeUsec": {
  436. "description": "An expiration time in microseconds since epoch.",
  437. "format": "int64",
  438. "type": "string"
  439. },
  440. "fingerprint": {
  441. "description": "Output only. The SHA-256 fingerprint of the SSH public key.",
  442. "type": "string"
  443. },
  444. "key": {
  445. "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.",
  446. "type": "string"
  447. }
  448. },
  449. "type": "object"
  450. }
  451. },
  452. "servicePath": "",
  453. "title": "Cloud OS Login API",
  454. "version": "v1alpha",
  455. "version_module": true
  456. }