Skip to content
Permalink
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: googleapis/googleapis-gen@63a1db7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
  • Loading branch information
gcf-owl-bot committed Sep 24, 2021
1 parent 4aa903a commit 911871e8154fdb16a6e182764563864cf2235153
@@ -17,7 +17,7 @@
from distutils import util
import os
import re
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Optional, Sequence, Tuple, Type, Union
import pkg_resources

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

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

def get_patch_job(
self,
request: patch_jobs.GetPatchJobRequest = None,
request: Union[patch_jobs.GetPatchJobRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -459,7 +459,7 @@ def get_patch_job(
of completed jobs.
Args:
request (google.cloud.osconfig_v1.types.GetPatchJobRequest):
request (Union[google.cloud.osconfig_v1.types.GetPatchJobRequest, dict]):
The request object. Request to get an active or
completed patch job.
name (str):
@@ -528,7 +528,7 @@ def get_patch_job(

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

def list_patch_jobs(
self,
request: patch_jobs.ListPatchJobsRequest = None,
request: Union[patch_jobs.ListPatchJobsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -596,7 +596,7 @@ def list_patch_jobs(
r"""Get a list of patch jobs.
Args:
request (google.cloud.osconfig_v1.types.ListPatchJobsRequest):
request (Union[google.cloud.osconfig_v1.types.ListPatchJobsRequest, dict]):
The request object. A request message for listing patch
jobs.
parent (str):
@@ -664,7 +664,7 @@ def list_patch_jobs(

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

def create_patch_deployment(
self,
request: patch_deployments.CreatePatchDeploymentRequest = None,
request: Union[patch_deployments.CreatePatchDeploymentRequest, dict] = None,
*,
parent: str = None,
patch_deployment: patch_deployments.PatchDeployment = None,
@@ -758,7 +758,7 @@ def create_patch_deployment(
r"""Create an OS Config patch deployment.
Args:
request (google.cloud.osconfig_v1.types.CreatePatchDeploymentRequest):
request (Union[google.cloud.osconfig_v1.types.CreatePatchDeploymentRequest, dict]):
The request object. A request message for creating a
patch deployment.
parent (str):
@@ -849,7 +849,7 @@ def create_patch_deployment(

def get_patch_deployment(
self,
request: patch_deployments.GetPatchDeploymentRequest = None,
request: Union[patch_deployments.GetPatchDeploymentRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -859,7 +859,7 @@ def get_patch_deployment(
r"""Get an OS Config patch deployment.
Args:
request (google.cloud.osconfig_v1.types.GetPatchDeploymentRequest):
request (Union[google.cloud.osconfig_v1.types.GetPatchDeploymentRequest, dict]):
The request object. A request message for retrieving a
patch deployment.
name (str):
@@ -924,7 +924,7 @@ def get_patch_deployment(

def list_patch_deployments(
self,
request: patch_deployments.ListPatchDeploymentsRequest = None,
request: Union[patch_deployments.ListPatchDeploymentsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -934,7 +934,7 @@ def list_patch_deployments(
r"""Get a page of OS Config patch deployments.
Args:
request (google.cloud.osconfig_v1.types.ListPatchDeploymentsRequest):
request (Union[google.cloud.osconfig_v1.types.ListPatchDeploymentsRequest, dict]):
The request object. A request message for listing patch
deployments.
parent (str):
@@ -1004,7 +1004,7 @@ def list_patch_deployments(

def delete_patch_deployment(
self,
request: patch_deployments.DeletePatchDeploymentRequest = None,
request: Union[patch_deployments.DeletePatchDeploymentRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -1014,7 +1014,7 @@ def delete_patch_deployment(
r"""Delete an OS Config patch deployment.
Args:
request (google.cloud.osconfig_v1.types.DeletePatchDeploymentRequest):
request (Union[google.cloud.osconfig_v1.types.DeletePatchDeploymentRequest, dict]):
The request object. A request message for deleting a
patch deployment.
name (str):
@@ -117,7 +117,7 @@ def __init__(
**scopes_kwargs, quota_project_id=quota_project_id
)

# If the credentials is service account credentials, then always try to use self signed JWT.
# If the credentials are service account credentials, then always try to use self signed JWT.
if (
always_use_jwt_access
and isinstance(credentials, service_account.Credentials)
@@ -85,16 +85,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
@@ -132,16 +132,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
@@ -17,7 +17,7 @@
from distutils import util
import os
import re
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Optional, Sequence, Tuple, Type, Union
import pkg_resources

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

def get_inventory(
self,
request: inventory.GetInventoryRequest = None,
request: Union[inventory.GetInventoryRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -403,7 +403,7 @@ def get_inventory(
no associated inventory, the message ``NOT_FOUND`` is returned.
Args:
request (google.cloud.osconfig_v1.types.GetInventoryRequest):
request (Union[google.cloud.osconfig_v1.types.GetInventoryRequest, dict]):
The request object. A request message for getting
inventory data for the specified VM.
name (str):
@@ -479,7 +479,7 @@ def get_inventory(

def list_inventories(
self,
request: inventory.ListInventoriesRequest = None,
request: Union[inventory.ListInventoriesRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -490,7 +490,7 @@ def list_inventories(
specified zone.
Args:
request (google.cloud.osconfig_v1.types.ListInventoriesRequest):
request (Union[google.cloud.osconfig_v1.types.ListInventoriesRequest, dict]):
The request object. A request message for listing
inventory data for all VMs in the specified location.
parent (str):
@@ -566,7 +566,7 @@ def list_inventories(

def get_vulnerability_report(
self,
request: vulnerability.GetVulnerabilityReportRequest = None,
request: Union[vulnerability.GetVulnerabilityReportRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -578,7 +578,7 @@ def get_vulnerability_report(
vulnerability reports associated with them.
Args:
request (google.cloud.osconfig_v1.types.GetVulnerabilityReportRequest):
request (Union[google.cloud.osconfig_v1.types.GetVulnerabilityReportRequest, dict]):
The request object. A request message for getting the
vulnerability report for the specified VM.
name (str):
@@ -650,7 +650,7 @@ def get_vulnerability_report(

def list_vulnerability_reports(
self,
request: vulnerability.ListVulnerabilityReportsRequest = None,
request: Union[vulnerability.ListVulnerabilityReportsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -661,7 +661,7 @@ def list_vulnerability_reports(
the specified zone.
Args:
request (google.cloud.osconfig_v1.types.ListVulnerabilityReportsRequest):
request (Union[google.cloud.osconfig_v1.types.ListVulnerabilityReportsRequest, dict]):
The request object. A request message for listing
vulnerability reports for all VM instances in the
specified location.
@@ -116,7 +116,7 @@ def __init__(
**scopes_kwargs, quota_project_id=quota_project_id
)

# If the credentials is service account credentials, then always try to use self signed JWT.
# If the credentials are service account credentials, then always try to use self signed JWT.
if (
always_use_jwt_access
and isinstance(credentials, service_account.Credentials)
@@ -84,16 +84,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
@@ -131,16 +131,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
Loading

0 comments on commit 911871e

Please sign in to comment.