Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.1 (#187)
Browse files Browse the repository at this point in the history
* chore: use gapic-generator-python 0.65.1

PiperOrigin-RevId: 441524537

Source-Link: googleapis/googleapis@2a27391

Source-Link: googleapis/googleapis-gen@ab6756a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWI2NzU2YTQ4Yzg5YjViY2I5ZmI3MzQ0M2NiOGU1NWQ1NzRmNDY0MyJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Apr 14, 2022
1 parent 542e73b commit 0d9ced2
Show file tree
Hide file tree
Showing 100 changed files with 3,242 additions and 3,872 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -227,7 +227,6 @@ async def execute_patch_job(
r"""Patch VM instances by creating and running a patch
job.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -312,7 +311,6 @@ async def get_patch_job(
progress of an ongoing patch job or review the details
of completed jobs.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -416,7 +414,6 @@ async def cancel_patch_job(
r"""Cancel a patch job. The patch job must be active.
Canceled patch jobs cannot be restarted.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1242,7 +1239,6 @@ async def pause_patch_deployment(
Patch deployment in paused state doesn't generate patch
jobs.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1344,7 +1340,6 @@ async def resume_patch_deployment(
Patch deployment in active state continues to generate
patch jobs.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -482,7 +482,6 @@ def execute_patch_job(
r"""Patch VM instances by creating and running a patch
job.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -568,7 +567,6 @@ def get_patch_job(
progress of an ongoing patch job or review the details
of completed jobs.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -672,7 +670,6 @@ def cancel_patch_job(
r"""Cancel a patch job. The patch job must be active.
Canceled patch jobs cannot be restarted.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1501,7 +1498,6 @@ def pause_patch_deployment(
Patch deployment in paused state doesn't generate patch
jobs.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1603,7 +1599,6 @@ def resume_patch_deployment(
Patch deployment in active state continues to generate
patch jobs.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -325,5 +326,9 @@ def resume_patch_deployment(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("OsConfigServiceTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -578,5 +578,9 @@ def resume_patch_deployment(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("OsConfigServiceGrpcTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -267,7 +267,6 @@ async def create_os_policy_assignment(
For more information, see `Method:
projects.locations.osPolicyAssignments.operations.cancel <https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel>`__.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -437,7 +436,6 @@ async def update_os_policy_assignment(
For more information, see `Method:
projects.locations.osPolicyAssignments.operations.cancel <https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel>`__.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -581,7 +579,6 @@ async def get_os_policy_assignment(
retrieve a previous revision of the assignment, also provide the
revision ID in the ``name`` parameter.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -694,7 +691,6 @@ async def list_os_policy_assignments(
For each OS policy assignment, the latest revision is
returned.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -804,7 +800,6 @@ async def list_os_policy_assignment_revisions(
r"""List the OS policy assignment revisions for a given
OS policy assignment.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -927,7 +922,6 @@ async def delete_os_policy_assignment(
For more information, see `Method:
projects.locations.osPolicyAssignments.operations.cancel <https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel>`__.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1051,7 +1045,6 @@ async def get_os_policy_assignment_report(
r"""Get the OS policy asssignment report for the
specified Compute Engine VM instance.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1162,7 +1155,6 @@ async def list_os_policy_assignment_reports(
r"""List OS policy asssignment reports for all Compute
Engine VM instances in the specified zone.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1299,7 +1291,6 @@ async def get_inventory(
r"""Get inventory data for the specified VM instance. If the VM has
no associated inventory, the message ``NOT_FOUND`` is returned.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1411,7 +1402,6 @@ async def list_inventories(
r"""List inventory data for all VM instances in the
specified zone.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1528,7 +1518,6 @@ async def get_vulnerability_report(
instance. Only VMs with inventory data have
vulnerability reports associated with them.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1636,7 +1625,6 @@ async def list_vulnerability_reports(
r"""List vulnerability reports for all VM instances in
the specified zone.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -578,7 +578,6 @@ def create_os_policy_assignment(
For more information, see `Method:
projects.locations.osPolicyAssignments.operations.cancel <https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel>`__.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -752,7 +751,6 @@ def update_os_policy_assignment(
For more information, see `Method:
projects.locations.osPolicyAssignments.operations.cancel <https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel>`__.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -900,7 +898,6 @@ def get_os_policy_assignment(
retrieve a previous revision of the assignment, also provide the
revision ID in the ``name`` parameter.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1013,7 +1010,6 @@ def list_os_policy_assignments(
For each OS policy assignment, the latest revision is
returned.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1127,7 +1123,6 @@ def list_os_policy_assignment_revisions(
r"""List the OS policy assignment revisions for a given
OS policy assignment.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1256,7 +1251,6 @@ def delete_os_policy_assignment(
For more information, see `Method:
projects.locations.osPolicyAssignments.operations.cancel <https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel>`__.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1384,7 +1378,6 @@ def get_os_policy_assignment_report(
r"""Get the OS policy asssignment report for the
specified Compute Engine VM instance.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1499,7 +1492,6 @@ def list_os_policy_assignment_reports(
r"""List OS policy asssignment reports for all Compute
Engine VM instances in the specified zone.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1640,7 +1632,6 @@ def get_inventory(
r"""Get inventory data for the specified VM instance. If the VM has
no associated inventory, the message ``NOT_FOUND`` is returned.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1752,7 +1743,6 @@ def list_inventories(
r"""List inventory data for all VM instances in the
specified zone.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1869,7 +1859,6 @@ def get_vulnerability_report(
instance. Only VMs with inventory data have
vulnerability reports associated with them.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down Expand Up @@ -1977,7 +1966,6 @@ def list_vulnerability_reports(
r"""List vulnerability reports for all VM instances in
the specified zone.
.. code-block:: python
from google.cloud import osconfig_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -335,5 +336,9 @@ def list_vulnerability_reports(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("OsConfigZonalServiceTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -651,5 +651,9 @@ def list_vulnerability_reports(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("OsConfigZonalServiceGrpcTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
ListInventoriesResponse,
InventoryView,
)
from .os_policy import OSPolicy
from .os_policy import (
OSPolicy,
)
from .os_policy_assignment_reports import (
GetOSPolicyAssignmentReportRequest,
ListOSPolicyAssignmentReportsRequest,
Expand All @@ -39,7 +41,9 @@
OSPolicyAssignmentOperationMetadata,
UpdateOSPolicyAssignmentRequest,
)
from .osconfig_common import FixedOrPercent
from .osconfig_common import (
FixedOrPercent,
)
from .patch_deployments import (
CreatePatchDeploymentRequest,
DeletePatchDeploymentRequest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Inventory(proto.Message):
os_info (google.cloud.osconfig_v1.types.Inventory.OsInfo):
Base level operating system information for
the VM.
items (Sequence[google.cloud.osconfig_v1.types.Inventory.ItemsEntry]):
items (Mapping[str, google.cloud.osconfig_v1.types.Inventory.Item]):
Inventory items related to the VM keyed by an
opaque unique identifier for each inventory
item. The identifier is unique to each distinct
Expand Down
Loading

0 comments on commit 0d9ced2

Please sign in to comment.