Skip to content

Commit

Permalink
feat: add apis for AssuredWorkload monitoring feature and to restrict…
Browse files Browse the repository at this point in the history
… allowed resources (#207)

* feat: add apis for AssuredWorkload monitoring feature and to restrict allowed resources

AssuredWorkload monitoring is a new feature which provides apis to fetch compliance violation for AssuredWorkloads. It also provides an api to acknowledge an unresolved violation.

RestrictAllowedResources api allows restricting list of available resources in Workload environment.

Committer: @ViswasK
PiperOrigin-RevId: 477959383

Source-Link: googleapis/googleapis@0cad78c

Source-Link: googleapis/googleapis-gen@3052e0d
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzA1MmUwZDdhYzk4OWJjNTcxZmIzMDU4OTRhZGE4NTI1ZDFmMjQ4ZSJ9

* 🦉 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]>
  • Loading branch information
3 people authored Oct 3, 2022
1 parent 5f65309 commit da1f8c3
Show file tree
Hide file tree
Showing 26 changed files with 4,521 additions and 187 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
AssuredWorkloadsServiceAsyncClient,
)

from google.cloud.assuredworkloads_v1.types.assuredworkloads import (
AcknowledgeViolationRequest,
)
from google.cloud.assuredworkloads_v1.types.assuredworkloads import (
AcknowledgeViolationResponse,
)
from google.cloud.assuredworkloads_v1.types.assuredworkloads import (
CreateWorkloadOperationMetadata,
)
Expand All @@ -30,25 +36,49 @@
from google.cloud.assuredworkloads_v1.types.assuredworkloads import (
DeleteWorkloadRequest,
)
from google.cloud.assuredworkloads_v1.types.assuredworkloads import GetViolationRequest
from google.cloud.assuredworkloads_v1.types.assuredworkloads import GetWorkloadRequest
from google.cloud.assuredworkloads_v1.types.assuredworkloads import (
ListViolationsRequest,
)
from google.cloud.assuredworkloads_v1.types.assuredworkloads import (
ListViolationsResponse,
)
from google.cloud.assuredworkloads_v1.types.assuredworkloads import ListWorkloadsRequest
from google.cloud.assuredworkloads_v1.types.assuredworkloads import (
ListWorkloadsResponse,
)
from google.cloud.assuredworkloads_v1.types.assuredworkloads import (
RestrictAllowedResourcesRequest,
)
from google.cloud.assuredworkloads_v1.types.assuredworkloads import (
RestrictAllowedResourcesResponse,
)
from google.cloud.assuredworkloads_v1.types.assuredworkloads import TimeWindow
from google.cloud.assuredworkloads_v1.types.assuredworkloads import (
UpdateWorkloadRequest,
)
from google.cloud.assuredworkloads_v1.types.assuredworkloads import Violation
from google.cloud.assuredworkloads_v1.types.assuredworkloads import Workload

__all__ = (
"AssuredWorkloadsServiceClient",
"AssuredWorkloadsServiceAsyncClient",
"AcknowledgeViolationRequest",
"AcknowledgeViolationResponse",
"CreateWorkloadOperationMetadata",
"CreateWorkloadRequest",
"DeleteWorkloadRequest",
"GetViolationRequest",
"GetWorkloadRequest",
"ListViolationsRequest",
"ListViolationsResponse",
"ListWorkloadsRequest",
"ListWorkloadsResponse",
"RestrictAllowedResourcesRequest",
"RestrictAllowedResourcesResponse",
"TimeWindow",
"UpdateWorkloadRequest",
"Violation",
"Workload",
)
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,42 @@
from .services.assured_workloads_service import AssuredWorkloadsServiceClient
from .services.assured_workloads_service import AssuredWorkloadsServiceAsyncClient

from .types.assuredworkloads import AcknowledgeViolationRequest
from .types.assuredworkloads import AcknowledgeViolationResponse
from .types.assuredworkloads import CreateWorkloadOperationMetadata
from .types.assuredworkloads import CreateWorkloadRequest
from .types.assuredworkloads import DeleteWorkloadRequest
from .types.assuredworkloads import GetViolationRequest
from .types.assuredworkloads import GetWorkloadRequest
from .types.assuredworkloads import ListViolationsRequest
from .types.assuredworkloads import ListViolationsResponse
from .types.assuredworkloads import ListWorkloadsRequest
from .types.assuredworkloads import ListWorkloadsResponse
from .types.assuredworkloads import RestrictAllowedResourcesRequest
from .types.assuredworkloads import RestrictAllowedResourcesResponse
from .types.assuredworkloads import TimeWindow
from .types.assuredworkloads import UpdateWorkloadRequest
from .types.assuredworkloads import Violation
from .types.assuredworkloads import Workload

__all__ = (
"AssuredWorkloadsServiceAsyncClient",
"AcknowledgeViolationRequest",
"AcknowledgeViolationResponse",
"AssuredWorkloadsServiceClient",
"CreateWorkloadOperationMetadata",
"CreateWorkloadRequest",
"DeleteWorkloadRequest",
"GetViolationRequest",
"GetWorkloadRequest",
"ListViolationsRequest",
"ListViolationsResponse",
"ListWorkloadsRequest",
"ListWorkloadsResponse",
"RestrictAllowedResourcesRequest",
"RestrictAllowedResourcesResponse",
"TimeWindow",
"UpdateWorkloadRequest",
"Violation",
"Workload",
)
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
"grpc": {
"libraryClient": "AssuredWorkloadsServiceClient",
"rpcs": {
"AcknowledgeViolation": {
"methods": [
"acknowledge_violation"
]
},
"CreateWorkload": {
"methods": [
"create_workload"
Expand All @@ -20,16 +25,31 @@
"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 All @@ -40,6 +60,11 @@
"grpc-async": {
"libraryClient": "AssuredWorkloadsServiceAsyncClient",
"rpcs": {
"AcknowledgeViolation": {
"methods": [
"acknowledge_violation"
]
},
"CreateWorkload": {
"methods": [
"create_workload"
Expand All @@ -50,16 +75,31 @@
"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
Loading

0 comments on commit da1f8c3

Please sign in to comment.