17
17
from distutils import util
18
18
import os
19
19
import re
20
- from typing import Callable , Dict , Optional , Sequence , Tuple , Type , Union
20
+ from typing import Dict , Optional , Sequence , Tuple , Type , Union
21
21
import pkg_resources
22
22
23
23
from google .api_core import client_options as client_options_lib # type: ignore
@@ -360,7 +360,7 @@ def __init__(
360
360
361
361
def get_environment (
362
362
self ,
363
- request : cloudshell .GetEnvironmentRequest = None ,
363
+ request : Union [ cloudshell .GetEnvironmentRequest , dict ] = None ,
364
364
* ,
365
365
name : str = None ,
366
366
retry : retries .Retry = gapic_v1 .method .DEFAULT ,
@@ -371,7 +371,7 @@ def get_environment(
371
371
not exist.
372
372
373
373
Args:
374
- request (google.cloud.shell_v1.types.GetEnvironmentRequest):
374
+ request (Union[ google.cloud.shell_v1.types.GetEnvironmentRequest, dict] ):
375
375
The request object. Request message for
376
376
[GetEnvironment][google.cloud.shell.v1.CloudShellService.GetEnvironment].
377
377
name (str):
@@ -439,7 +439,7 @@ def get_environment(
439
439
440
440
def start_environment (
441
441
self ,
442
- request : cloudshell .StartEnvironmentRequest = None ,
442
+ request : Union [ cloudshell .StartEnvironmentRequest , dict ] = None ,
443
443
* ,
444
444
retry : retries .Retry = gapic_v1 .method .DEFAULT ,
445
445
timeout : float = None ,
@@ -455,7 +455,7 @@ def start_environment(
455
455
StartEnvironmentResponse in its response field.
456
456
457
457
Args:
458
- request (google.cloud.shell_v1.types.StartEnvironmentRequest):
458
+ request (Union[ google.cloud.shell_v1.types.StartEnvironmentRequest, dict] ):
459
459
The request object. Request message for
460
460
[StartEnvironment][google.cloud.shell.v1.CloudShellService.StartEnvironment].
461
461
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -507,7 +507,7 @@ def start_environment(
507
507
508
508
def authorize_environment (
509
509
self ,
510
- request : cloudshell .AuthorizeEnvironmentRequest = None ,
510
+ request : Union [ cloudshell .AuthorizeEnvironmentRequest , dict ] = None ,
511
511
* ,
512
512
retry : retries .Retry = gapic_v1 .method .DEFAULT ,
513
513
timeout : float = None ,
@@ -520,7 +520,7 @@ def authorize_environment(
520
520
authenticate.
521
521
522
522
Args:
523
- request (google.cloud.shell_v1.types.AuthorizeEnvironmentRequest):
523
+ request (Union[ google.cloud.shell_v1.types.AuthorizeEnvironmentRequest, dict] ):
524
524
The request object. Request message for
525
525
[AuthorizeEnvironment][google.cloud.shell.v1.CloudShellService.AuthorizeEnvironment].
526
526
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -571,7 +571,7 @@ def authorize_environment(
571
571
572
572
def add_public_key (
573
573
self ,
574
- request : cloudshell .AddPublicKeyRequest = None ,
574
+ request : Union [ cloudshell .AddPublicKeyRequest , dict ] = None ,
575
575
* ,
576
576
retry : retries .Retry = gapic_v1 .method .DEFAULT ,
577
577
timeout : float = None ,
@@ -583,7 +583,7 @@ def add_public_key(
583
583
error with ALREADY_EXISTS.
584
584
585
585
Args:
586
- request (google.cloud.shell_v1.types.AddPublicKeyRequest):
586
+ request (Union[ google.cloud.shell_v1.types.AddPublicKeyRequest, dict] ):
587
587
The request object. Request message for
588
588
[AddPublicKey][google.cloud.shell.v1.CloudShellService.AddPublicKey].
589
589
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -636,7 +636,7 @@ def add_public_key(
636
636
637
637
def remove_public_key (
638
638
self ,
639
- request : cloudshell .RemovePublicKeyRequest = None ,
639
+ request : Union [ cloudshell .RemovePublicKeyRequest , dict ] = None ,
640
640
* ,
641
641
retry : retries .Retry = gapic_v1 .method .DEFAULT ,
642
642
timeout : float = None ,
@@ -648,7 +648,7 @@ def remove_public_key(
648
648
present, this will error with NOT_FOUND.
649
649
650
650
Args:
651
- request (google.cloud.shell_v1.types.RemovePublicKeyRequest):
651
+ request (Union[ google.cloud.shell_v1.types.RemovePublicKeyRequest, dict] ):
652
652
The request object. Request message for
653
653
[RemovePublicKey][google.cloud.shell.v1.CloudShellService.RemovePublicKey].
654
654
retry (google.api_core.retry.Retry): Designation of what errors, if any,
0 commit comments