Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sky-sharma
Copy link
Collaborator

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

sky-sharma and others added 6 commits December 29, 2022 13:19
modified to handle gatewayListOptions following NodeJS SDK
* 1. imports incl. google.api_core.datetime_helpers
2. Added logic to def from_json in class DeviceState and DeviceConfig to
convert times to DateTimeWithNanoseconds and binaryData to bytes if env.
vars set

* 1. Changed Device.from_json to support GCP types
for time, binaryData.
2. Changed DeviceState.from_json to handle blank binaryData
3. Changed DeviceConfig.from_json to handle blank binaryData

* Removed extra 'import base64'

* Added note about types of times, binaryData

* Cleaned up formatting

* Further cleanup

* Added copyright info. at top of files

* Not to 'pip install google-api-core'

* Removed instructions for installing
datetime_helpers module. Also now changed 'google.api_core' to 'proto'

* Added "proto.datetime_helpers" to dependencies

* Changed 'google.api_core' to 'proto.'

* Removed call to set 'convert_binarydata_to_bytes'
in Devices.from_json

* Changed README to reflect decision on ONE env. var

* Changed module to import to proto-plus

* Two env. vars -> BINARYDATA_AND_TIME_GOOGLE_FORMAT

* Removed a '.'

* Format improvements for README

* Added note about new env. var in 'Quick Start' sec
@sky-sharma sky-sharma requested a review from rajasd27 February 28, 2023 16:42
@sky-sharma sky-sharma merged commit 84b04c5 into main Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants