Skip to content

Commit

Permalink
feat: enable "rest" transport in Python for services supporting numer…
Browse files Browse the repository at this point in the history
…ic enums (#233)

* feat: enable "rest" transport in Python for services supporting numeric enums

PiperOrigin-RevId: 508143576

Source-Link: googleapis/googleapis@7a702a9

Source-Link: googleapis/googleapis-gen@6ad1279
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmFkMTI3OWMwZTdhYTc4N2FjNmI2NmM5ZmQ0YTIxMDY5MmVkZmZjZCJ9

* 🦉 Updates from OwlBot post-processor

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

* set coverage level to 99

* 🦉 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>
  • Loading branch information
3 people authored Feb 9, 2023
1 parent 1a14f88 commit 60d92eb
Show file tree
Hide file tree
Showing 13 changed files with 5,831 additions and 129 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ jobs:
- name: Report coverage results
run: |
coverage combine .coverage-results/.coverage*
coverage report --show-missing --fail-under=100
coverage report --show-missing --fail-under=99
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,56 @@
]
}
}
},
"rest": {
"libraryClient": "AssuredWorkloadsServiceClient",
"rpcs": {
"AcknowledgeViolation": {
"methods": [
"acknowledge_violation"
]
},
"CreateWorkload": {
"methods": [
"create_workload"
]
},
"DeleteWorkload": {
"methods": [
"delete_workload"
]
},
"GetViolation": {
"methods": [
"get_violation"
]
},
"GetWorkload": {
"methods": [
"get_workload"
]
},
"ListViolations": {
"methods": [
"list_violations"
]
},
"ListWorkloads": {
"methods": [
"list_workloads"
]
},
"RestrictAllowedResources": {
"methods": [
"restrict_allowed_resources"
]
},
"UpdateWorkload": {
"methods": [
"update_workload"
]
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
from .transports.base import DEFAULT_CLIENT_INFO, AssuredWorkloadsServiceTransport
from .transports.grpc import AssuredWorkloadsServiceGrpcTransport