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

Commit

Permalink
chore: Update gapic-generator-python to v1.8.5 (#449)
Browse files Browse the repository at this point in the history
* feat: enable "rest" transport in Python for services supporting numeric enums

PiperOrigin-RevId: 508143576

Source-Link: googleapis/googleapis@7a702a9

Source-Link: https://github.com/googleapis/googleapis-gen/commit/6ad1279c0e7aa787ac6b66c9fd4a210692edffcd
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmFkMTI3OWMwZTdhYTc4N2FjNmI2NmM5ZmQ0YTIxMDY5MmVkZmZjZCJ9

* 🦉 Updates from OwlBot post-processor

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

* update replacement in owlbot.py

* chore: Update gapic-generator-python to v1.8.5

PiperOrigin-RevId: 511892190

Source-Link: googleapis/googleapis@a45d9c0

Source-Link: https://github.com/googleapis/googleapis-gen/commit/1907294b1d8365ea24f8c5f2e059a64124c4ed3b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTkwNzI5NGIxZDgzNjVlYTI0ZjhjNWYyZTA1OWE2NDEyNGM0ZWQzYiJ9

* 🦉 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>
Co-authored-by: Anthonios Partheniou <[email protected]>
Co-authored-by: Victor Chudnovsky <[email protected]>
  • Loading branch information
4 people authored Feb 28, 2023
1 parent e1535a0 commit 15758ae
Show file tree
Hide file tree
Showing 9 changed files with 8,951 additions and 92 deletions.
100 changes: 100 additions & 0 deletions google/cloud/iot_v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,106 @@
]
}
}
},
"rest": {
"libraryClient": "DeviceManagerClient",
"rpcs": {
"BindDeviceToGateway": {
"methods": [
"bind_device_to_gateway"
]
},
"CreateDevice": {
"methods": [
"create_device"
]
},
"CreateDeviceRegistry": {
"methods": [
"create_device_registry"
]
},
"DeleteDevice": {
"methods": [
"delete_device"
]
},
"DeleteDeviceRegistry": {
"methods": [
"delete_device_registry"
]
},
"GetDevice": {
"methods": [
"get_device"
]
},
"GetDeviceRegistry": {
"methods": [
"get_device_registry"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"ListDeviceConfigVersions": {
"methods": [
"list_device_config_versions"
]
},
"ListDeviceRegistries": {
"methods": [
"list_device_registries"
]
},
"ListDeviceStates": {
"methods": [
"list_device_states"
]
},
"ListDevices": {
"methods": [
"list_devices"
]
},
"ModifyCloudToDeviceConfig": {
"methods": [
"modify_cloud_to_device_config"
]
},
"SendCommandToDevice": {
"methods": [
"send_command_to_device"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UnbindDeviceFromGateway": {
"methods": [
"unbind_device_from_gateway"
]
},
"UpdateDevice": {
"methods": [
"update_device"
]
},
"UpdateDeviceRegistry": {
"methods": [
"update_device_registry"
]
}
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/iot_v1/services/device_manager/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
from .transports.base import DEFAULT_CLIENT_INFO, DeviceManagerTransport
from .transports.grpc import DeviceManagerGrpcTransport
from .transports.grpc_asyncio import DeviceManagerGrpcAsyncIOTransport
from .transports.rest import DeviceManagerRestTransport


class DeviceManagerClientMeta(type):
Expand All @@ -71,6 +72,7 @@ class DeviceManagerClientMeta(type):
_transport_registry = OrderedDict() # type: Dict[str, Type[DeviceManagerTransport]]
_transport_registry["grpc"] = DeviceManagerGrpcTransport
_transport_registry["grpc_asyncio"] = DeviceManagerGrpcAsyncIOTransport
_transport_registry["rest"] = DeviceManagerRestTransport

def get_transport_class(
cls,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@
from .base import DeviceManagerTransport
from .grpc import DeviceManagerGrpcTransport
from .grpc_asyncio import DeviceManagerGrpcAsyncIOTransport
from .rest import DeviceManagerRestInterceptor, DeviceManagerRestTransport

# Compile a registry of transports.
_transport_registry = OrderedDict() # type: Dict[str, Type[DeviceManagerTransport]]
_transport_registry["grpc"] = DeviceManagerGrpcTransport
_transport_registry["grpc_asyncio"] = DeviceManagerGrpcAsyncIOTransport
_transport_registry["rest"] = DeviceManagerRestTransport

__all__ = (
"DeviceManagerTransport",
"DeviceManagerGrpcTransport",
"DeviceManagerGrpcAsyncIOTransport",
"DeviceManagerRestTransport",
"DeviceManagerRestInterceptor",
)
Loading

0 comments on commit 15758ae

Please sign in to comment.