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

Commit 15758ae

Browse files
gcf-owl-bot[bot]partheavchudnov-g
authored
chore: Update gapic-generator-python to v1.8.5 (#449)
* 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 <partheniou@google.com> Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
1 parent e1535a0 commit 15758ae

File tree

9 files changed

+8951
-92
lines changed

9 files changed

+8951
-92
lines changed

google/cloud/iot_v1/gapic_metadata.json

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,106 @@
206206
]
207207
}
208208
}
209+
},
210+
"rest": {
211+
"libraryClient": "DeviceManagerClient",
212+
"rpcs": {
213+
"BindDeviceToGateway": {
214+
"methods": [
215+
"bind_device_to_gateway"
216+
]
217+
},
218+
"CreateDevice": {
219+
"methods": [
220+
"create_device"
221+
]
222+
},
223+
"CreateDeviceRegistry": {
224+
"methods": [
225+
"create_device_registry"
226+
]
227+
},
228+
"DeleteDevice": {
229+
"methods": [
230+
"delete_device"
231+
]
232+
},
233+
"DeleteDeviceRegistry": {
234+
"methods": [
235+
"delete_device_registry"
236+
]
237+
},
238+
"GetDevice": {
239+
"methods": [
240+
"get_device"
241+
]
242+
},
243+
"GetDeviceRegistry": {
244+
"methods": [
245+
"get_device_registry"
246+
]
247+
},
248+
"GetIamPolicy": {
249+
"methods": [
250+
"get_iam_policy"
251+
]
252+
},
253+
"ListDeviceConfigVersions": {
254+
"methods": [
255+
"list_device_config_versions"
256+
]
257+
},
258+
"ListDeviceRegistries": {
259+
"methods": [
260+
"list_device_registries"
261+
]
262+
},
263+
"ListDeviceStates": {
264+
"methods": [
265+
"list_device_states"
266+
]
267+
},
268+
"ListDevices": {
269+
"methods": [
270+
"list_devices"
271+
]
272+
},
273+
"ModifyCloudToDeviceConfig": {
274+
"methods": [
275+
"modify_cloud_to_device_config"
276+
]
277+
},
278+
"SendCommandToDevice": {
279+
"methods": [
280+
"send_command_to_device"
281+
]
282+
},
283+
"SetIamPolicy": {
284+
"methods": [
285+
"set_iam_policy"
286+
]
287+
},
288+
"TestIamPermissions": {
289+
"methods": [
290+
"test_iam_permissions"
291+
]
292+
},
293+
"UnbindDeviceFromGateway": {
294+
"methods": [
295+
"unbind_device_from_gateway"
296+
]
297+
},
298+
"UpdateDevice": {
299+
"methods": [
300+
"update_device"
301+
]
302+
},
303+
"UpdateDeviceRegistry": {
304+
"methods": [
305+
"update_device_registry"
306+
]
307+
}
308+
}
209309
}
210310
}
211311
}

google/cloud/iot_v1/services/device_manager/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
from .transports.base import DEFAULT_CLIENT_INFO, DeviceManagerTransport
5959
from .transports.grpc import DeviceManagerGrpcTransport
6060
from .transports.grpc_asyncio import DeviceManagerGrpcAsyncIOTransport
61+
from .transports.rest import DeviceManagerRestTransport
6162

6263

6364
class DeviceManagerClientMeta(type):
@@ -71,6 +72,7 @@ class DeviceManagerClientMeta(type):
7172
_transport_registry = OrderedDict() # type: Dict[str, Type[DeviceManagerTransport]]
7273
_transport_registry["grpc"] = DeviceManagerGrpcTransport
7374
_transport_registry["grpc_asyncio"] = DeviceManagerGrpcAsyncIOTransport
75+
_transport_registry["rest"] = DeviceManagerRestTransport
7476

7577
def get_transport_class(
7678
cls,

google/cloud/iot_v1/services/device_manager/transports/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@
1919
from .base import DeviceManagerTransport
2020
from .grpc import DeviceManagerGrpcTransport
2121
from .grpc_asyncio import DeviceManagerGrpcAsyncIOTransport
22+
from .rest import DeviceManagerRestInterceptor, DeviceManagerRestTransport
2223

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

2830
__all__ = (
2931
"DeviceManagerTransport",
3032
"DeviceManagerGrpcTransport",
3133
"DeviceManagerGrpcAsyncIOTransport",
34+
"DeviceManagerRestTransport",
35+
"DeviceManagerRestInterceptor",
3236
)

0 commit comments

Comments
 (0)