Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit 911871e

Browse files
chore: use gapic-generator-python 0.51.2 (#122)
- [ ] Regenerate this pull request now. fix: add 'dict' annotation type to 'request' Committer: @busunkim96 PiperOrigin-RevId: 398509016 Source-Link: googleapis/googleapis@b224dfa Source-Link: https://github.com/googleapis/googleapis-gen/commit/63a1db7a38d74b9639592f521ed1daaf7299ad9a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
1 parent 4aa903a commit 911871e

14 files changed

Lines changed: 116 additions & 101 deletions

File tree

‎google/cloud/osconfig_v1/services/os_config_service/client.py‎

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from distutils import util
1818
import os
1919
import re
20-
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
20+
from typing import Dict, Optional, Sequence, Tuple, Type, Union
2121
import pkg_resources
2222

2323
from google.api_core import client_options as client_options_lib # type: ignore
@@ -388,7 +388,7 @@ def __init__(
388388

389389
def execute_patch_job(
390390
self,
391-
request: patch_jobs.ExecutePatchJobRequest = None,
391+
request: Union[patch_jobs.ExecutePatchJobRequest, dict] = None,
392392
*,
393393
retry: retries.Retry = gapic_v1.method.DEFAULT,
394394
timeout: float = None,
@@ -398,7 +398,7 @@ def execute_patch_job(
398398
job.
399399
400400
Args:
401-
request (google.cloud.osconfig_v1.types.ExecutePatchJobRequest):
401+
request (Union[google.cloud.osconfig_v1.types.ExecutePatchJobRequest, dict]):
402402
The request object. A request message to initiate
403403
patching across Compute Engine instances.
404404
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -447,7 +447,7 @@ def execute_patch_job(
447447

448448
def get_patch_job(
449449
self,
450-
request: patch_jobs.GetPatchJobRequest = None,
450+
request: Union[patch_jobs.GetPatchJobRequest, dict] = None,
451451
*,
452452
name: str = None,
453453
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -459,7 +459,7 @@ def get_patch_job(
459459
of completed jobs.
460460
461461
Args:
462-
request (google.cloud.osconfig_v1.types.GetPatchJobRequest):
462+
request (Union[google.cloud.osconfig_v1.types.GetPatchJobRequest, dict]):
463463
The request object. Request to get an active or
464464
completed patch job.
465465
name (str):
@@ -528,7 +528,7 @@ def get_patch_job(
528528

529529
def cancel_patch_job(
530530
self,
531-
request: patch_jobs.CancelPatchJobRequest = None,
531+
request: Union[patch_jobs.CancelPatchJobRequest, dict] = None,
532532
*,
533533
retry: retries.Retry = gapic_v1.method.DEFAULT,
534534
timeout: float = None,
@@ -538,7 +538,7 @@ def cancel_patch_job(
538538
Canceled patch jobs cannot be restarted.
539539
540540
Args:
541-
request (google.cloud.osconfig_v1.types.CancelPatchJobRequest):
541+
request (Union[google.cloud.osconfig_v1.types.CancelPatchJobRequest, dict]):
542542
The request object. Message for canceling a patch job.
543543
retry (google.api_core.retry.Retry): Designation of what errors, if any,
544544
should be retried.
@@ -586,7 +586,7 @@ def cancel_patch_job(
586586

587587
def list_patch_jobs(
588588
self,
589-
request: patch_jobs.ListPatchJobsRequest = None,
589+
request: Union[patch_jobs.ListPatchJobsRequest, dict] = None,
590590
*,
591591
parent: str = None,
592592
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -596,7 +596,7 @@ def list_patch_jobs(
596596
r"""Get a list of patch jobs.
597597
598598
Args:
599-
request (google.cloud.osconfig_v1.types.ListPatchJobsRequest):
599+
request (Union[google.cloud.osconfig_v1.types.ListPatchJobsRequest, dict]):
600600
The request object. A request message for listing patch
601601
jobs.
602602
parent (str):
@@ -664,7 +664,7 @@ def list_patch_jobs(
664664

665665
def list_patch_job_instance_details(
666666
self,
667-
request: patch_jobs.ListPatchJobInstanceDetailsRequest = None,
667+
request: Union[patch_jobs.ListPatchJobInstanceDetailsRequest, dict] = None,
668668
*,
669669
parent: str = None,
670670
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -674,7 +674,7 @@ def list_patch_job_instance_details(
674674
r"""Get a list of instance details for a given patch job.
675675
676676
Args:
677-
request (google.cloud.osconfig_v1.types.ListPatchJobInstanceDetailsRequest):
677+
request (Union[google.cloud.osconfig_v1.types.ListPatchJobInstanceDetailsRequest, dict]):
678678
The request object. Request to list details for all
679679
instances that are part of a patch job.
680680
parent (str):
@@ -746,7 +746,7 @@ def list_patch_job_instance_details(
746746

747747
def create_patch_deployment(
748748
self,
749-
request: patch_deployments.CreatePatchDeploymentRequest = None,
749+
request: Union[patch_deployments.CreatePatchDeploymentRequest, dict] = None,
750750
*,
751751
parent: str = None,
752752
patch_deployment: patch_deployments.PatchDeployment = None,
@@ -758,7 +758,7 @@ def create_patch_deployment(
758758
r"""Create an OS Config patch deployment.
759759
760760
Args:
761-
request (google.cloud.osconfig_v1.types.CreatePatchDeploymentRequest):
761+
request (Union[google.cloud.osconfig_v1.types.CreatePatchDeploymentRequest, dict]):
762762
The request object. A request message for creating a
763763
patch deployment.
764764
parent (str):
@@ -849,7 +849,7 @@ def create_patch_deployment(
849849

850850
def get_patch_deployment(
851851
self,
852-
request: patch_deployments.GetPatchDeploymentRequest = None,
852+
request: Union[patch_deployments.GetPatchDeploymentRequest, dict] = None,
853853
*,
854854
name: str = None,
855855
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -859,7 +859,7 @@ def get_patch_deployment(
859859
r"""Get an OS Config patch deployment.
860860
861861
Args:
862-
request (google.cloud.osconfig_v1.types.GetPatchDeploymentRequest):
862+
request (Union[google.cloud.osconfig_v1.types.GetPatchDeploymentRequest, dict]):
863863
The request object. A request message for retrieving a
864864
patch deployment.
865865
name (str):
@@ -924,7 +924,7 @@ def get_patch_deployment(
924924

925925
def list_patch_deployments(
926926
self,
927-
request: patch_deployments.ListPatchDeploymentsRequest = None,
927+
request: Union[patch_deployments.ListPatchDeploymentsRequest, dict] = None,
928928
*,
929929
parent: str = None,
930930
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -934,7 +934,7 @@ def list_patch_deployments(
934934
r"""Get a page of OS Config patch deployments.
935935
936936
Args:
937-
request (google.cloud.osconfig_v1.types.ListPatchDeploymentsRequest):
937+
request (Union[google.cloud.osconfig_v1.types.ListPatchDeploymentsRequest, dict]):
938938
The request object. A request message for listing patch
939939
deployments.
940940
parent (str):
@@ -1004,7 +1004,7 @@ def list_patch_deployments(
10041004

10051005
def delete_patch_deployment(
10061006
self,
1007-
request: patch_deployments.DeletePatchDeploymentRequest = None,
1007+
request: Union[patch_deployments.DeletePatchDeploymentRequest, dict] = None,
10081008
*,
10091009
name: str = None,
10101010
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -1014,7 +1014,7 @@ def delete_patch_deployment(
10141014
r"""Delete an OS Config patch deployment.
10151015
10161016
Args:
1017-
request (google.cloud.osconfig_v1.types.DeletePatchDeploymentRequest):
1017+
request (Union[google.cloud.osconfig_v1.types.DeletePatchDeploymentRequest, dict]):
10181018
The request object. A request message for deleting a
10191019
patch deployment.
10201020
name (str):

‎google/cloud/osconfig_v1/services/os_config_service/transports/base.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def __init__(
117117
**scopes_kwargs, quota_project_id=quota_project_id
118118
)
119119

120-
# If the credentials is service account credentials, then always try to use self signed JWT.
120+
# If the credentials are service account credentials, then always try to use self signed JWT.
121121
if (
122122
always_use_jwt_access
123123
and isinstance(credentials, service_account.Credentials)

‎google/cloud/osconfig_v1/services/os_config_service/transports/grpc.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,16 @@ def __init__(
8585
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
8686
If provided, it overrides the ``host`` argument and tries to create
8787
a mutual TLS channel with client SSL credentials from
88-
``client_cert_source`` or applicatin default SSL credentials.
88+
``client_cert_source`` or application default SSL credentials.
8989
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
9090
Deprecated. A callback to provide client SSL certificate bytes and
9191
private key bytes, both in PEM format. It is ignored if
9292
``api_mtls_endpoint`` is None.
9393
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
94-
for grpc channel. It is ignored if ``channel`` is provided.
94+
for the grpc channel. It is ignored if ``channel`` is provided.
9595
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
9696
A callback to provide client certificate bytes and private key bytes,
97-
both in PEM format. It is used to configure mutual TLS channel. It is
97+
both in PEM format. It is used to configure a mutual TLS channel. It is
9898
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
9999
quota_project_id (Optional[str]): An optional project to use for billing
100100
and quota.

‎google/cloud/osconfig_v1/services/os_config_service/transports/grpc_asyncio.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,16 @@ def __init__(
132132
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
133133
If provided, it overrides the ``host`` argument and tries to create
134134
a mutual TLS channel with client SSL credentials from
135-
``client_cert_source`` or applicatin default SSL credentials.
135+
``client_cert_source`` or application default SSL credentials.
136136
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
137137
Deprecated. A callback to provide client SSL certificate bytes and
138138
private key bytes, both in PEM format. It is ignored if
139139
``api_mtls_endpoint`` is None.
140140
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
141-
for grpc channel. It is ignored if ``channel`` is provided.
141+
for the grpc channel. It is ignored if ``channel`` is provided.
142142
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
143143
A callback to provide client certificate bytes and private key bytes,
144-
both in PEM format. It is used to configure mutual TLS channel. It is
144+
both in PEM format. It is used to configure a mutual TLS channel. It is
145145
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
146146
quota_project_id (Optional[str]): An optional project to use for billing
147147
and quota.

‎google/cloud/osconfig_v1/services/os_config_zonal_service/client.py‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from distutils import util
1818
import os
1919
import re
20-
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
20+
from typing import Dict, Optional, Sequence, Tuple, Type, Union
2121
import pkg_resources
2222

2323
from google.api_core import client_options as client_options_lib # type: ignore
@@ -392,7 +392,7 @@ def __init__(
392392

393393
def get_inventory(
394394
self,
395-
request: inventory.GetInventoryRequest = None,
395+
request: Union[inventory.GetInventoryRequest, dict] = None,
396396
*,
397397
name: str = None,
398398
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -403,7 +403,7 @@ def get_inventory(
403403
no associated inventory, the message ``NOT_FOUND`` is returned.
404404
405405
Args:
406-
request (google.cloud.osconfig_v1.types.GetInventoryRequest):
406+
request (Union[google.cloud.osconfig_v1.types.GetInventoryRequest, dict]):
407407
The request object. A request message for getting
408408
inventory data for the specified VM.
409409
name (str):
@@ -479,7 +479,7 @@ def get_inventory(
479479

480480
def list_inventories(
481481
self,
482-
request: inventory.ListInventoriesRequest = None,
482+
request: Union[inventory.ListInventoriesRequest, dict] = None,
483483
*,
484484
parent: str = None,
485485
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -490,7 +490,7 @@ def list_inventories(
490490
specified zone.
491491
492492
Args:
493-
request (google.cloud.osconfig_v1.types.ListInventoriesRequest):
493+
request (Union[google.cloud.osconfig_v1.types.ListInventoriesRequest, dict]):
494494
The request object. A request message for listing
495495
inventory data for all VMs in the specified location.
496496
parent (str):
@@ -566,7 +566,7 @@ def list_inventories(
566566

567567
def get_vulnerability_report(
568568
self,
569-
request: vulnerability.GetVulnerabilityReportRequest = None,
569+
request: Union[vulnerability.GetVulnerabilityReportRequest, dict] = None,
570570
*,
571571
name: str = None,
572572
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -578,7 +578,7 @@ def get_vulnerability_report(
578578
vulnerability reports associated with them.
579579
580580
Args:
581-
request (google.cloud.osconfig_v1.types.GetVulnerabilityReportRequest):
581+
request (Union[google.cloud.osconfig_v1.types.GetVulnerabilityReportRequest, dict]):
582582
The request object. A request message for getting the
583583
vulnerability report for the specified VM.
584584
name (str):
@@ -650,7 +650,7 @@ def get_vulnerability_report(
650650

651651
def list_vulnerability_reports(
652652
self,
653-
request: vulnerability.ListVulnerabilityReportsRequest = None,
653+
request: Union[vulnerability.ListVulnerabilityReportsRequest, dict] = None,
654654
*,
655655
parent: str = None,
656656
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -661,7 +661,7 @@ def list_vulnerability_reports(
661661
the specified zone.
662662
663663
Args:
664-
request (google.cloud.osconfig_v1.types.ListVulnerabilityReportsRequest):
664+
request (Union[google.cloud.osconfig_v1.types.ListVulnerabilityReportsRequest, dict]):
665665
The request object. A request message for listing
666666
vulnerability reports for all VM instances in the
667667
specified location.

‎google/cloud/osconfig_v1/services/os_config_zonal_service/transports/base.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __init__(
116116
**scopes_kwargs, quota_project_id=quota_project_id
117117
)
118118

119-
# If the credentials is service account credentials, then always try to use self signed JWT.
119+
# If the credentials are service account credentials, then always try to use self signed JWT.
120120
if (
121121
always_use_jwt_access
122122
and isinstance(credentials, service_account.Credentials)

‎google/cloud/osconfig_v1/services/os_config_zonal_service/transports/grpc.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,16 @@ def __init__(
8484
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
8585
If provided, it overrides the ``host`` argument and tries to create
8686
a mutual TLS channel with client SSL credentials from
87-
``client_cert_source`` or applicatin default SSL credentials.
87+
``client_cert_source`` or application default SSL credentials.
8888
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
8989
Deprecated. A callback to provide client SSL certificate bytes and
9090
private key bytes, both in PEM format. It is ignored if
9191
``api_mtls_endpoint`` is None.
9292
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
93-
for grpc channel. It is ignored if ``channel`` is provided.
93+
for the grpc channel. It is ignored if ``channel`` is provided.
9494
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
9595
A callback to provide client certificate bytes and private key bytes,
96-
both in PEM format. It is used to configure mutual TLS channel. It is
96+
both in PEM format. It is used to configure a mutual TLS channel. It is
9797
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
9898
quota_project_id (Optional[str]): An optional project to use for billing
9999
and quota.

‎google/cloud/osconfig_v1/services/os_config_zonal_service/transports/grpc_asyncio.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,16 @@ def __init__(
131131
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
132132
If provided, it overrides the ``host`` argument and tries to create
133133
a mutual TLS channel with client SSL credentials from
134-
``client_cert_source`` or applicatin default SSL credentials.
134+
``client_cert_source`` or application default SSL credentials.
135135
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
136136
Deprecated. A callback to provide client SSL certificate bytes and
137137
private key bytes, both in PEM format. It is ignored if
138138
``api_mtls_endpoint`` is None.
139139
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
140-
for grpc channel. It is ignored if ``channel`` is provided.
140+
for the grpc channel. It is ignored if ``channel`` is provided.
141141
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
142142
A callback to provide client certificate bytes and private key bytes,
143-
both in PEM format. It is used to configure mutual TLS channel. It is
143+
both in PEM format. It is used to configure a mutual TLS channel. It is
144144
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
145145
quota_project_id (Optional[str]): An optional project to use for billing
146146
and quota.

0 commit comments

Comments
 (0)