Skip to content

Commit d2acaa1

Browse files
feat(oslogin): update the api
#### oslogin:v1alpha The following keys were added: - resources.users.resources.projects.methods.provisionPosixAccount (Total Keys: 12) - schemas.ProvisionPosixAccountRequest (Total Keys: 4) #### oslogin:v1beta The following keys were added: - resources.users.resources.projects.methods.provisionPosixAccount (Total Keys: 12) - schemas.ProvisionPosixAccountRequest (Total Keys: 4)
1 parent 20c01fa commit d2acaa1

File tree

4 files changed

+170
-2
lines changed

4 files changed

+170
-2
lines changed

docs/dyn/oslogin_v1alpha.users.projects.html

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ <h2>Instance Methods</h2>
9090
<p class="toc_element">
9191
<code><a href="#delete">delete(name, operatingSystemType=None, x__xgafv=None)</a></code></p>
9292
<p class="firstline">Deletes a POSIX account.</p>
93+
<p class="toc_element">
94+
<code><a href="#provisionPosixAccount">provisionPosixAccount(name, body=None, x__xgafv=None)</a></code></p>
95+
<p class="firstline">Create a POSIX account if it doesn't exist.</p>
9396
<h3>Method Details</h3>
9497
<div class="method">
9598
<code class="details" id="close">close()</code>
@@ -119,4 +122,42 @@ <h3>Method Details</h3>
119122
}</pre>
120123
</div>
121124

125+
<div class="method">
126+
<code class="details" id="provisionPosixAccount">provisionPosixAccount(name, body=None, x__xgafv=None)</code>
127+
<pre>Create a POSIX account if it doesn&#x27;t exist.
128+
129+
Args:
130+
name: string, Required. The unique ID for the user in format `users/{user}/projects/{project}`. (required)
131+
body: object, The request body.
132+
The object takes the form of:
133+
134+
{ # A request message for creating a POSIX account entry.
135+
&quot;regions&quot;: [ # Optional. The regions to wait for a POSIX account to be written to before returning a response. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.
136+
&quot;A String&quot;,
137+
],
138+
}
139+
140+
x__xgafv: string, V1 error format.
141+
Allowed values
142+
1 - v1 error format
143+
2 - v2 error format
144+
145+
Returns:
146+
An object of the form:
147+
148+
{ # The POSIX account information associated with a Google account.
149+
&quot;accountId&quot;: &quot;A String&quot;, # Output only. A POSIX account identifier.
150+
&quot;gecos&quot;: &quot;A String&quot;, # The GECOS (user information) entry for this account.
151+
&quot;gid&quot;: &quot;A String&quot;, # The default group ID.
152+
&quot;homeDirectory&quot;: &quot;A String&quot;, # The path to the home directory for this account.
153+
&quot;name&quot;: &quot;A String&quot;, # Output only. The canonical resource name.
154+
&quot;operatingSystemType&quot;: &quot;A String&quot;, # The operating system type where this account applies.
155+
&quot;primary&quot;: True or False, # Only one POSIX account can be marked as primary.
156+
&quot;shell&quot;: &quot;A String&quot;, # The path to the logic shell for this account.
157+
&quot;systemId&quot;: &quot;A String&quot;, # System identifier for which account the username or uid applies to. By default, the empty value is used.
158+
&quot;uid&quot;: &quot;A String&quot;, # The user ID.
159+
&quot;username&quot;: &quot;A String&quot;, # The username of the POSIX account.
160+
}</pre>
161+
</div>
162+
122163
</body></html>

docs/dyn/oslogin_v1beta.users.projects.html

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ <h2>Instance Methods</h2>
9090
<p class="toc_element">
9191
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
9292
<p class="firstline">Deletes a POSIX account.</p>
93+
<p class="toc_element">
94+
<code><a href="#provisionPosixAccount">provisionPosixAccount(name, body=None, x__xgafv=None)</a></code></p>
95+
<p class="firstline">Create a POSIX account if it doesn't exist.</p>
9396
<h3>Method Details</h3>
9497
<div class="method">
9598
<code class="details" id="close">close()</code>
@@ -114,4 +117,42 @@ <h3>Method Details</h3>
114117
}</pre>
115118
</div>
116119

120+
<div class="method">
121+
<code class="details" id="provisionPosixAccount">provisionPosixAccount(name, body=None, x__xgafv=None)</code>
122+
<pre>Create a POSIX account if it doesn&#x27;t exist.
123+
124+
Args:
125+
name: string, Required. The unique ID for the user in format `users/{user}/projects/{project}`. (required)
126+
body: object, The request body.
127+
The object takes the form of:
128+
129+
{ # A request message for creating a POSIX account entry.
130+
&quot;regions&quot;: [ # Optional. The regions to wait for a POSIX account to be written to before returning a response. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.
131+
&quot;A String&quot;,
132+
],
133+
}
134+
135+
x__xgafv: string, V1 error format.
136+
Allowed values
137+
1 - v1 error format
138+
2 - v2 error format
139+
140+
Returns:
141+
An object of the form:
142+
143+
{ # The POSIX account information associated with a Google account.
144+
&quot;accountId&quot;: &quot;A String&quot;, # Output only. A POSIX account identifier.
145+
&quot;gecos&quot;: &quot;A String&quot;, # The GECOS (user information) entry for this account.
146+
&quot;gid&quot;: &quot;A String&quot;, # The default group ID.
147+
&quot;homeDirectory&quot;: &quot;A String&quot;, # The path to the home directory for this account.
148+
&quot;name&quot;: &quot;A String&quot;, # Output only. The canonical resource name.
149+
&quot;operatingSystemType&quot;: &quot;A String&quot;, # The operating system type where this account applies.
150+
&quot;primary&quot;: True or False, # Only one POSIX account can be marked as primary.
151+
&quot;shell&quot;: &quot;A String&quot;, # The path to the logic shell for this account.
152+
&quot;systemId&quot;: &quot;A String&quot;, # System identifier for which account the username or uid applies to. By default, the empty value is used.
153+
&quot;uid&quot;: &quot;A String&quot;, # The user ID.
154+
&quot;username&quot;: &quot;A String&quot;, # The username of the POSIX account.
155+
}</pre>
156+
</div>
157+
117158
</body></html>

googleapiclient/discovery_cache/documents/oslogin.v1alpha.json

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,35 @@
283283
"https://www.googleapis.com/auth/cloud-platform",
284284
"https://www.googleapis.com/auth/compute"
285285
]
286+
},
287+
"provisionPosixAccount": {
288+
"description": "Create a POSIX account if it doesn't exist.",
289+
"flatPath": "v1alpha/users/{usersId}/projects/{projectsId}",
290+
"httpMethod": "POST",
291+
"id": "oslogin.users.projects.provisionPosixAccount",
292+
"parameterOrder": [
293+
"name"
294+
],
295+
"parameters": {
296+
"name": {
297+
"description": "Required. The unique ID for the user in format `users/{user}/projects/{project}`.",
298+
"location": "path",
299+
"pattern": "^users/[^/]+/projects/[^/]+$",
300+
"required": true,
301+
"type": "string"
302+
}
303+
},
304+
"path": "v1alpha/{+name}",
305+
"request": {
306+
"$ref": "ProvisionPosixAccountRequest"
307+
},
308+
"response": {
309+
"$ref": "PosixAccount"
310+
},
311+
"scopes": [
312+
"https://www.googleapis.com/auth/cloud-platform",
313+
"https://www.googleapis.com/auth/compute"
314+
]
286315
}
287316
},
288317
"resources": {
@@ -477,7 +506,7 @@
477506
}
478507
}
479508
},
480-
"revision": "20241208",
509+
"revision": "20250209",
481510
"rootUrl": "https://oslogin.googleapis.com/",
482511
"schemas": {
483512
"Empty": {
@@ -598,6 +627,20 @@
598627
},
599628
"type": "object"
600629
},
630+
"ProvisionPosixAccountRequest": {
631+
"description": "A request message for creating a POSIX account entry.",
632+
"id": "ProvisionPosixAccountRequest",
633+
"properties": {
634+
"regions": {
635+
"description": "Optional. The regions to wait for a POSIX account to be written to before returning a response. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.",
636+
"items": {
637+
"type": "string"
638+
},
639+
"type": "array"
640+
}
641+
},
642+
"type": "object"
643+
},
601644
"SecurityKey": {
602645
"description": "The credential information for a Google registered security key.",
603646
"id": "SecurityKey",

googleapiclient/discovery_cache/documents/oslogin.v1beta.json

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,35 @@
253253
"https://www.googleapis.com/auth/cloud-platform",
254254
"https://www.googleapis.com/auth/compute"
255255
]
256+
},
257+
"provisionPosixAccount": {
258+
"description": "Create a POSIX account if it doesn't exist.",
259+
"flatPath": "v1beta/users/{usersId}/projects/{projectsId}",
260+
"httpMethod": "POST",
261+
"id": "oslogin.users.projects.provisionPosixAccount",
262+
"parameterOrder": [
263+
"name"
264+
],
265+
"parameters": {
266+
"name": {
267+
"description": "Required. The unique ID for the user in format `users/{user}/projects/{project}`.",
268+
"location": "path",
269+
"pattern": "^users/[^/]+/projects/[^/]+$",
270+
"required": true,
271+
"type": "string"
272+
}
273+
},
274+
"path": "v1beta/{+name}",
275+
"request": {
276+
"$ref": "ProvisionPosixAccountRequest"
277+
},
278+
"response": {
279+
"$ref": "PosixAccount"
280+
},
281+
"scopes": [
282+
"https://www.googleapis.com/auth/cloud-platform",
283+
"https://www.googleapis.com/auth/compute"
284+
]
256285
}
257286
},
258287
"resources": {
@@ -447,7 +476,7 @@
447476
}
448477
}
449478
},
450-
"revision": "20240630",
479+
"revision": "20250209",
451480
"rootUrl": "https://oslogin.googleapis.com/",
452481
"schemas": {
453482
"Empty": {
@@ -568,6 +597,20 @@
568597
},
569598
"type": "object"
570599
},
600+
"ProvisionPosixAccountRequest": {
601+
"description": "A request message for creating a POSIX account entry.",
602+
"id": "ProvisionPosixAccountRequest",
603+
"properties": {
604+
"regions": {
605+
"description": "Optional. The regions to wait for a POSIX account to be written to before returning a response. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.",
606+
"items": {
607+
"type": "string"
608+
},
609+
"type": "array"
610+
}
611+
},
612+
"type": "object"
613+
},
571614
"SecurityKey": {
572615
"description": "The credential information for a Google registered security key.",
573616
"id": "SecurityKey",

0 commit comments

Comments
 (0)