Skip to content

Commit e7ad756

Browse files
feat(oslogin): update the api
#### oslogin:v1 The following keys were added: - resources.projects.resources.locations.methods.signSshPublicKey (Total Keys: 12) - schemas.SignSshPublicKeyRequest (Total Keys: 6) - schemas.SignSshPublicKeyResponse (Total Keys: 3)
1 parent c8f9301 commit e7ad756

File tree

4 files changed

+285
-1
lines changed

4 files changed

+285
-1
lines changed

docs/dyn/oslogin_v1.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@
7474

7575
<h1><a href="oslogin_v1.html">Cloud OS Login API</a></h1>
7676
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="oslogin_v1.projects.html">projects()</a></code>
79+
</p>
80+
<p class="firstline">Returns the projects Resource.</p>
81+
7782
<p class="toc_element">
7883
<code><a href="oslogin_v1.users.html">users()</a></code>
7984
</p>

docs/dyn/oslogin_v1.projects.html

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<html><body>
2+
<style>
3+
4+
body, h1, h2, h3, div, span, p, pre, a {
5+
margin: 0;
6+
padding: 0;
7+
border: 0;
8+
font-weight: inherit;
9+
font-style: inherit;
10+
font-size: 100%;
11+
font-family: inherit;
12+
vertical-align: baseline;
13+
}
14+
15+
body {
16+
font-size: 13px;
17+
padding: 1em;
18+
}
19+
20+
h1 {
21+
font-size: 26px;
22+
margin-bottom: 1em;
23+
}
24+
25+
h2 {
26+
font-size: 24px;
27+
margin-bottom: 1em;
28+
}
29+
30+
h3 {
31+
font-size: 20px;
32+
margin-bottom: 1em;
33+
margin-top: 1em;
34+
}
35+
36+
pre, code {
37+
line-height: 1.5;
38+
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39+
}
40+
41+
pre {
42+
margin-top: 0.5em;
43+
}
44+
45+
h1, h2, h3, p {
46+
font-family: Arial, sans serif;
47+
}
48+
49+
h1, h2, h3 {
50+
border-bottom: solid #CCC 1px;
51+
}
52+
53+
.toc_element {
54+
margin-top: 0.5em;
55+
}
56+
57+
.firstline {
58+
margin-left: 2 em;
59+
}
60+
61+
.method {
62+
margin-top: 1em;
63+
border: solid 1px #CCC;
64+
padding: 1em;
65+
background: #EEE;
66+
}
67+
68+
.details {
69+
font-weight: bold;
70+
font-size: 14px;
71+
}
72+
73+
</style>
74+
75+
<h1><a href="oslogin_v1.html">Cloud OS Login API</a> . <a href="oslogin_v1.projects.html">projects</a></h1>
76+
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="oslogin_v1.projects.locations.html">locations()</a></code>
79+
</p>
80+
<p class="firstline">Returns the locations Resource.</p>
81+
82+
<p class="toc_element">
83+
<code><a href="#close">close()</a></code></p>
84+
<p class="firstline">Close httplib2 connections.</p>
85+
<h3>Method Details</h3>
86+
<div class="method">
87+
<code class="details" id="close">close()</code>
88+
<pre>Close httplib2 connections.</pre>
89+
</div>
90+
91+
</body></html>
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
<html><body>
2+
<style>
3+
4+
body, h1, h2, h3, div, span, p, pre, a {
5+
margin: 0;
6+
padding: 0;
7+
border: 0;
8+
font-weight: inherit;
9+
font-style: inherit;
10+
font-size: 100%;
11+
font-family: inherit;
12+
vertical-align: baseline;
13+
}
14+
15+
body {
16+
font-size: 13px;
17+
padding: 1em;
18+
}
19+
20+
h1 {
21+
font-size: 26px;
22+
margin-bottom: 1em;
23+
}
24+
25+
h2 {
26+
font-size: 24px;
27+
margin-bottom: 1em;
28+
}
29+
30+
h3 {
31+
font-size: 20px;
32+
margin-bottom: 1em;
33+
margin-top: 1em;
34+
}
35+
36+
pre, code {
37+
line-height: 1.5;
38+
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39+
}
40+
41+
pre {
42+
margin-top: 0.5em;
43+
}
44+
45+
h1, h2, h3, p {
46+
font-family: Arial, sans serif;
47+
}
48+
49+
h1, h2, h3 {
50+
border-bottom: solid #CCC 1px;
51+
}
52+
53+
.toc_element {
54+
margin-top: 0.5em;
55+
}
56+
57+
.firstline {
58+
margin-left: 2 em;
59+
}
60+
61+
.method {
62+
margin-top: 1em;
63+
border: solid 1px #CCC;
64+
padding: 1em;
65+
background: #EEE;
66+
}
67+
68+
.details {
69+
font-weight: bold;
70+
font-size: 14px;
71+
}
72+
73+
</style>
74+
75+
<h1><a href="oslogin_v1.html">Cloud OS Login API</a> . <a href="oslogin_v1.projects.html">projects</a> . <a href="oslogin_v1.projects.locations.html">locations</a></h1>
76+
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="#close">close()</a></code></p>
79+
<p class="firstline">Close httplib2 connections.</p>
80+
<p class="toc_element">
81+
<code><a href="#signSshPublicKey">signSshPublicKey(parent, body=None, x__xgafv=None)</a></code></p>
82+
<p class="firstline">Signs an SSH public key for a user to authenticate to a virtual machine on Google Compute Engine.</p>
83+
<h3>Method Details</h3>
84+
<div class="method">
85+
<code class="details" id="close">close()</code>
86+
<pre>Close httplib2 connections.</pre>
87+
</div>
88+
89+
<div class="method">
90+
<code class="details" id="signSshPublicKey">signSshPublicKey(parent, body=None, x__xgafv=None)</code>
91+
<pre>Signs an SSH public key for a user to authenticate to a virtual machine on Google Compute Engine.
92+
93+
Args:
94+
parent: string, Required. The parent for the signing request. Format: projects/{project}/locations/{location} (required)
95+
body: object, The request body.
96+
The object takes the form of:
97+
98+
{ # A request message for signing an SSH public key.
99+
&quot;appEngineInstance&quot;: &quot;A String&quot;, # The App Engine instance to sign the SSH public key for. Expected format: apps/{app}/services/{service}/versions/{version}/instances/{instance}
100+
&quot;computeInstance&quot;: &quot;A String&quot;, # The Compute instance to sign the SSH public key for. Expected format: projects/{project}/zones/{zone}/instances/{numeric_instance_id}
101+
&quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account for the instance. If the instance in question does not have a service account, this field should be left empty. If the wrong service account is provided, this operation will return a signed certificate that will not be accepted by the VM.
102+
&quot;sshPublicKey&quot;: &quot;A String&quot;, # Required. The SSH public key to sign.
103+
}
104+
105+
x__xgafv: string, V1 error format.
106+
Allowed values
107+
1 - v1 error format
108+
2 - v2 error format
109+
110+
Returns:
111+
An object of the form:
112+
113+
{ # The response message for signing an SSH public key.
114+
&quot;signedSshPublicKey&quot;: &quot;A String&quot;, # The signed SSH public key to use in the SSH handshake.
115+
}</pre>
116+
</div>
117+
118+
</body></html>

googleapiclient/discovery_cache/documents/oslogin.v1.json

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,42 @@
114114
},
115115
"protocol": "rest",
116116
"resources": {
117+
"projects": {
118+
"resources": {
119+
"locations": {
120+
"methods": {
121+
"signSshPublicKey": {
122+
"description": "Signs an SSH public key for a user to authenticate to a virtual machine on Google Compute Engine.",
123+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}:signSshPublicKey",
124+
"httpMethod": "POST",
125+
"id": "oslogin.projects.locations.signSshPublicKey",
126+
"parameterOrder": [
127+
"parent"
128+
],
129+
"parameters": {
130+
"parent": {
131+
"description": "Required. The parent for the signing request. Format: projects/{project}/locations/{location}",
132+
"location": "path",
133+
"pattern": "^projects/[^/]+/locations/[^/]+$",
134+
"required": true,
135+
"type": "string"
136+
}
137+
},
138+
"path": "v1/{+parent}:signSshPublicKey",
139+
"request": {
140+
"$ref": "SignSshPublicKeyRequest"
141+
},
142+
"response": {
143+
"$ref": "SignSshPublicKeyResponse"
144+
},
145+
"scopes": [
146+
"https://www.googleapis.com/auth/cloud-platform"
147+
]
148+
}
149+
}
150+
}
151+
}
152+
},
117153
"users": {
118154
"methods": {
119155
"getLoginProfile": {
@@ -349,7 +385,7 @@
349385
}
350386
}
351387
},
352-
"revision": "20250518",
388+
"revision": "20250921",
353389
"rootUrl": "https://oslogin.googleapis.com/",
354390
"schemas": {
355391
"Empty": {
@@ -463,6 +499,40 @@
463499
},
464500
"type": "object"
465501
},
502+
"SignSshPublicKeyRequest": {
503+
"description": "A request message for signing an SSH public key.",
504+
"id": "SignSshPublicKeyRequest",
505+
"properties": {
506+
"appEngineInstance": {
507+
"description": "The App Engine instance to sign the SSH public key for. Expected format: apps/{app}/services/{service}/versions/{version}/instances/{instance}",
508+
"type": "string"
509+
},
510+
"computeInstance": {
511+
"description": "The Compute instance to sign the SSH public key for. Expected format: projects/{project}/zones/{zone}/instances/{numeric_instance_id}",
512+
"type": "string"
513+
},
514+
"serviceAccount": {
515+
"description": "Optional. The service account for the instance. If the instance in question does not have a service account, this field should be left empty. If the wrong service account is provided, this operation will return a signed certificate that will not be accepted by the VM.",
516+
"type": "string"
517+
},
518+
"sshPublicKey": {
519+
"description": "Required. The SSH public key to sign.",
520+
"type": "string"
521+
}
522+
},
523+
"type": "object"
524+
},
525+
"SignSshPublicKeyResponse": {
526+
"description": "The response message for signing an SSH public key.",
527+
"id": "SignSshPublicKeyResponse",
528+
"properties": {
529+
"signedSshPublicKey": {
530+
"description": "The signed SSH public key to use in the SSH handshake.",
531+
"type": "string"
532+
}
533+
},
534+
"type": "object"
535+
},
466536
"SshPublicKey": {
467537
"description": "The SSH public key information associated with a Google account.",
468538
"id": "SshPublicKey",

0 commit comments

Comments
 (0)