Skip to content
Permalink
Browse files
chore: upgrade gapic-generator-python to 0.46.3 (#71)
PiperOrigin-RevId: 373649163

Source-Link: googleapis/googleapis@7e1b14e

Source-Link: googleapis/googleapis-gen@0a3c7d2

fix: add async client to %name_%version/init.py
chore: add autogenerated snippets
chore: remove auth, policy, and options from the reserved names list
feat: support self-signed JWT flow for service accounts
chore: enable GAPIC metadata generation
chore: sort subpackages in %namespace/%name/init.py
  • Loading branch information
gcf-owl-bot committed May 14, 2021
1 parent fb2e3aa commit 6fbaf4bb16b0bb381edf13957b85297c1659a206
Showing with 927 additions and 828 deletions.
  1. +0 −1 docs/osconfig_v1/os_config_service.rst
  2. +19 −19 google/cloud/osconfig/__init__.py
  3. +4 −3 google/cloud/osconfig_v1/__init__.py
  4. +113 −0 google/cloud/osconfig_v1/gapic_metadata.json
  5. +0 −1 google/cloud/osconfig_v1/services/__init__.py
  6. +0 −2 google/cloud/osconfig_v1/services/os_config_service/__init__.py
  7. +10 −36 google/cloud/osconfig_v1/services/os_config_service/async_client.py
  8. +38 −60 google/cloud/osconfig_v1/services/os_config_service/client.py
  9. +3 −5 google/cloud/osconfig_v1/services/os_config_service/pagers.py
  10. +0 −2 google/cloud/osconfig_v1/services/os_config_service/transports/__init__.py
  11. +103 −43 google/cloud/osconfig_v1/services/os_config_service/transports/base.py
  12. +14 −14 google/cloud/osconfig_v1/services/os_config_service/transports/grpc.py
  13. +14 −15 google/cloud/osconfig_v1/services/os_config_service/transports/grpc_asyncio.py
  14. +0 −2 google/cloud/osconfig_v1/types/__init__.py
  15. +37 −80 google/cloud/osconfig_v1/types/inventory.py
  16. +2 −5 google/cloud/osconfig_v1/types/osconfig_common.py
  17. +0 −1 google/cloud/osconfig_v1/types/osconfig_service.py
  18. +32 −65 google/cloud/osconfig_v1/types/patch_deployments.py
  19. +75 −163 google/cloud/osconfig_v1/types/patch_jobs.py
  20. +10 −13 scripts/fixup_osconfig_v1_keywords.py
  21. +15 −0 tests/__init__.py
  22. +15 −0 tests/unit/__init__.py
  23. +15 −0 tests/unit/gapic/__init__.py
  24. +0 −1 tests/unit/gapic/osconfig_v1/__init__.py
  25. +408 −297 tests/unit/gapic/osconfig_v1/test_os_config_service.py
@@ -5,7 +5,6 @@ OsConfigService
:members:
:inherited-members:


.. automodule:: google.cloud.osconfig_v1.services.os_config_service.pagers
:members:
:inherited-members:
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,12 +14,13 @@
# limitations under the License.
#

from google.cloud.osconfig_v1.services.os_config_service.async_client import (
OsConfigServiceAsyncClient,
)
from google.cloud.osconfig_v1.services.os_config_service.client import (
OsConfigServiceClient,
)
from google.cloud.osconfig_v1.services.os_config_service.async_client import (
OsConfigServiceAsyncClient,
)

from google.cloud.osconfig_v1.types.inventory import Inventory
from google.cloud.osconfig_v1.types.osconfig_common import FixedOrPercent
from google.cloud.osconfig_v1.types.patch_deployments import (
@@ -65,39 +65,39 @@
from google.cloud.osconfig_v1.types.patch_jobs import ZypperSettings

__all__ = (
"AptSettings",
"CancelPatchJobRequest",
"OsConfigServiceClient",
"OsConfigServiceAsyncClient",
"Inventory",
"FixedOrPercent",
"CreatePatchDeploymentRequest",
"DeletePatchDeploymentRequest",
"GetPatchDeploymentRequest",
"ListPatchDeploymentsRequest",
"ListPatchDeploymentsResponse",
"MonthlySchedule",
"OneTimeSchedule",
"PatchDeployment",
"RecurringSchedule",
"WeekDayOfMonth",
"WeeklySchedule",
"AptSettings",
"CancelPatchJobRequest",
"ExecStep",
"ExecStepConfig",
"ExecutePatchJobRequest",
"FixedOrPercent",
"GcsObject",
"GetPatchDeploymentRequest",
"GetPatchJobRequest",
"GooSettings",
"Instance",
"Inventory",
"ListPatchDeploymentsRequest",
"ListPatchDeploymentsResponse",
"ListPatchJobInstanceDetailsRequest",
"ListPatchJobInstanceDetailsResponse",
"ListPatchJobsRequest",
"ListPatchJobsResponse",
"MonthlySchedule",
"OneTimeSchedule",
"OsConfigServiceAsyncClient",
"OsConfigServiceClient",
"PatchConfig",
"PatchDeployment",
"PatchInstanceFilter",
"PatchJob",
"PatchJobInstanceDetails",
"PatchRollout",
"RecurringSchedule",
"WeekDayOfMonth",
"WeeklySchedule",
"WindowsUpdateSettings",
"YumSettings",
"ZypperSettings",
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +15,8 @@
#

from .services.os_config_service import OsConfigServiceClient
from .services.os_config_service import OsConfigServiceAsyncClient

from .types.inventory import Inventory
from .types.osconfig_common import FixedOrPercent
from .types.patch_deployments import CreatePatchDeploymentRequest
@@ -51,8 +52,8 @@
from .types.patch_jobs import YumSettings
from .types.patch_jobs import ZypperSettings


__all__ = (
"OsConfigServiceAsyncClient",
"AptSettings",
"CancelPatchJobRequest",
"CreatePatchDeploymentRequest",
@@ -75,6 +76,7 @@
"ListPatchJobsResponse",
"MonthlySchedule",
"OneTimeSchedule",
"OsConfigServiceClient",
"PatchConfig",
"PatchDeployment",
"PatchInstanceFilter",
@@ -87,5 +89,4 @@
"WindowsUpdateSettings",
"YumSettings",
"ZypperSettings",
"OsConfigServiceClient",
)
@@ -0,0 +1,113 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.osconfig_v1",
"protoPackage": "google.cloud.osconfig.v1",
"schema": "1.0",
"services": {
"OsConfigService": {
"clients": {
"grpc": {
"libraryClient": "OsConfigServiceClient",
"rpcs": {
"CancelPatchJob": {
"methods": [
"cancel_patch_job"
]
},
"CreatePatchDeployment": {
"methods": [
"create_patch_deployment"
]
},
"DeletePatchDeployment": {
"methods": [
"delete_patch_deployment"
]
},
"ExecutePatchJob": {
"methods": [
"execute_patch_job"
]
},
"GetPatchDeployment": {
"methods": [
"get_patch_deployment"
]
},
"GetPatchJob": {
"methods": [
"get_patch_job"
]
},
"ListPatchDeployments": {
"methods": [
"list_patch_deployments"
]
},
"ListPatchJobInstanceDetails": {
"methods": [
"list_patch_job_instance_details"
]
},
"ListPatchJobs": {
"methods": [
"list_patch_jobs"
]
}
}
},
"grpc-async": {
"libraryClient": "OsConfigServiceAsyncClient",
"rpcs": {
"CancelPatchJob": {
"methods": [
"cancel_patch_job"
]
},
"CreatePatchDeployment": {
"methods": [
"create_patch_deployment"
]
},
"DeletePatchDeployment": {
"methods": [
"delete_patch_deployment"
]
},
"ExecutePatchJob": {
"methods": [
"execute_patch_job"
]
},
"GetPatchDeployment": {
"methods": [
"get_patch_deployment"
]
},
"GetPatchJob": {
"methods": [
"get_patch_job"
]
},
"ListPatchDeployments": {
"methods": [
"list_patch_deployments"
]
},
"ListPatchJobInstanceDetails": {
"methods": [
"list_patch_job_instance_details"
]
},
"ListPatchJobs": {
"methods": [
"list_patch_jobs"
]
}
}
}
}
}
}
}
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .client import OsConfigServiceClient
from .async_client import OsConfigServiceAsyncClient

Loading

0 comments on commit 6fbaf4b

Please sign in to comment.