@@ -87,6 +87,7 @@ class OsLoginServiceAsyncClient:
87
87
OsLoginServiceClient .parse_common_location_path
88
88
)
89
89
90
+ from_service_account_info = OsLoginServiceClient .from_service_account_info
90
91
from_service_account_file = OsLoginServiceClient .from_service_account_file
91
92
from_service_account_json = from_service_account_file
92
93
@@ -163,14 +164,15 @@ async def delete_posix_account(
163
164
r"""Deletes a POSIX account.
164
165
165
166
Args:
166
- request (:class:`~.oslogin .DeletePosixAccountRequest`):
167
+ request (:class:`google.cloud.oslogin_v1.types .DeletePosixAccountRequest`):
167
168
The request object. A request message for deleting a
168
169
POSIX account entry.
169
170
name (:class:`str`):
170
171
Required. A reference to the POSIX account to update.
171
172
POSIX accounts are identified by the project ID they are
172
173
associated with. A reference to the POSIX account is in
173
174
format ``users/{user}/projects/{project}``.
175
+
174
176
This corresponds to the ``name`` field
175
177
on the ``request`` instance; if ``request`` is provided, this
176
178
should not be set.
@@ -238,14 +240,15 @@ async def delete_ssh_public_key(
238
240
r"""Deletes an SSH public key.
239
241
240
242
Args:
241
- request (:class:`~.oslogin .DeleteSshPublicKeyRequest`):
243
+ request (:class:`google.cloud.oslogin_v1.types .DeleteSshPublicKeyRequest`):
242
244
The request object. A request message for deleting an
243
245
SSH public key.
244
246
name (:class:`str`):
245
247
Required. The fingerprint of the public key to update.
246
248
Public keys are identified by their SHA-256 fingerprint.
247
249
The fingerprint of the public key is in format
248
250
``users/{user}/sshPublicKeys/{fingerprint}``.
251
+
249
252
This corresponds to the ``name`` field
250
253
on the ``request`` instance; if ``request`` is provided, this
251
254
should not be set.
@@ -314,12 +317,13 @@ async def get_login_profile(
314
317
to a virtual machine on Google Compute Engine.
315
318
316
319
Args:
317
- request (:class:`~.oslogin .GetLoginProfileRequest`):
320
+ request (:class:`google.cloud.oslogin_v1.types .GetLoginProfileRequest`):
318
321
The request object. A request message for retrieving the
319
322
login profile information for a user.
320
323
name (:class:`str`):
321
324
Required. The unique ID for the user in format
322
325
``users/{user}``.
326
+
323
327
This corresponds to the ``name`` field
324
328
on the ``request`` instance; if ``request`` is provided, this
325
329
should not be set.
@@ -331,7 +335,7 @@ async def get_login_profile(
331
335
sent along with the request as metadata.
332
336
333
337
Returns:
334
- ~.oslogin .LoginProfile:
338
+ google.cloud.oslogin_v1.types .LoginProfile:
335
339
The user profile information used for
336
340
logging in to a virtual machine on
337
341
Google Compute Engine.
@@ -395,14 +399,15 @@ async def get_ssh_public_key(
395
399
r"""Retrieves an SSH public key.
396
400
397
401
Args:
398
- request (:class:`~.oslogin .GetSshPublicKeyRequest`):
402
+ request (:class:`google.cloud.oslogin_v1.types .GetSshPublicKeyRequest`):
399
403
The request object. A request message for retrieving an
400
404
SSH public key.
401
405
name (:class:`str`):
402
406
Required. The fingerprint of the public key to retrieve.
403
407
Public keys are identified by their SHA-256 fingerprint.
404
408
The fingerprint of the public key is in format
405
409
``users/{user}/sshPublicKeys/{fingerprint}``.
410
+
406
411
This corresponds to the ``name`` field
407
412
on the ``request`` instance; if ``request`` is provided, this
408
413
should not be set.
@@ -414,7 +419,7 @@ async def get_ssh_public_key(
414
419
sent along with the request as metadata.
415
420
416
421
Returns:
417
- ~.common .SshPublicKey:
422
+ google.cloud.oslogin.v1.common_pb2 .SshPublicKey:
418
423
The SSH public key information
419
424
associated with a Google account.
420
425
@@ -482,24 +487,27 @@ async def import_ssh_public_key(
482
487
profile.
483
488
484
489
Args:
485
- request (:class:`~.oslogin .ImportSshPublicKeyRequest`):
490
+ request (:class:`google.cloud.oslogin_v1.types .ImportSshPublicKeyRequest`):
486
491
The request object. A request message for importing an
487
492
SSH public key.
488
493
parent (:class:`str`):
489
494
Required. The unique ID for the user in format
490
495
``users/{user}``.
496
+
491
497
This corresponds to the ``parent`` field
492
498
on the ``request`` instance; if ``request`` is provided, this
493
499
should not be set.
494
- ssh_public_key (:class:`~.common .SshPublicKey`):
500
+ ssh_public_key (:class:`google.cloud.oslogin.v1.common_pb2 .SshPublicKey`):
495
501
Optional. The SSH public key and
496
502
expiration time.
503
+
497
504
This corresponds to the ``ssh_public_key`` field
498
505
on the ``request`` instance; if ``request`` is provided, this
499
506
should not be set.
500
507
project_id (:class:`str`):
501
508
The project ID of the Google Cloud
502
509
Platform project.
510
+
503
511
This corresponds to the ``project_id`` field
504
512
on the ``request`` instance; if ``request`` is provided, this
505
513
should not be set.
@@ -511,7 +519,7 @@ async def import_ssh_public_key(
511
519
sent along with the request as metadata.
512
520
513
521
Returns:
514
- ~.oslogin .ImportSshPublicKeyResponse:
522
+ google.cloud.oslogin_v1.types .ImportSshPublicKeyResponse:
515
523
A response message for importing an
516
524
SSH public key.
517
525
@@ -581,26 +589,29 @@ async def update_ssh_public_key(
581
589
information. This method supports patch semantics.
582
590
583
591
Args:
584
- request (:class:`~.oslogin .UpdateSshPublicKeyRequest`):
592
+ request (:class:`google.cloud.oslogin_v1.types .UpdateSshPublicKeyRequest`):
585
593
The request object. A request message for updating an
586
594
SSH public key.
587
595
name (:class:`str`):
588
596
Required. The fingerprint of the public key to update.
589
597
Public keys are identified by their SHA-256 fingerprint.
590
598
The fingerprint of the public key is in format
591
599
``users/{user}/sshPublicKeys/{fingerprint}``.
600
+
592
601
This corresponds to the ``name`` field
593
602
on the ``request`` instance; if ``request`` is provided, this
594
603
should not be set.
595
- ssh_public_key (:class:`~.common .SshPublicKey`):
604
+ ssh_public_key (:class:`google.cloud.oslogin.v1.common_pb2 .SshPublicKey`):
596
605
Required. The SSH public key and
597
606
expiration time.
607
+
598
608
This corresponds to the ``ssh_public_key`` field
599
609
on the ``request`` instance; if ``request`` is provided, this
600
610
should not be set.
601
- update_mask (:class:`~.field_mask .FieldMask`):
611
+ update_mask (:class:`google.protobuf.field_mask_pb2 .FieldMask`):
602
612
Mask to control which fields get
603
613
updated. Updates all if not present.
614
+
604
615
This corresponds to the ``update_mask`` field
605
616
on the ``request`` instance; if ``request`` is provided, this
606
617
should not be set.
@@ -612,7 +623,7 @@ async def update_ssh_public_key(
612
623
sent along with the request as metadata.
613
624
614
625
Returns:
615
- ~.common .SshPublicKey:
626
+ google.cloud.oslogin.v1.common_pb2 .SshPublicKey:
616
627
The SSH public key information
617
628
associated with a Google account.
618
629
0 commit comments