Class: Google::Cloud::AssuredWorkloads::V1::RestrictAllowedResourcesRequest
- Inherits:
-
Object
- Object
- Google::Cloud::AssuredWorkloads::V1::RestrictAllowedResourcesRequest
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb
Overview
Request for restricting list of available resources in Workload environment.
Defined Under Namespace
Modules: RestrictionType
Instance Attribute Summary collapse
-
#name ⇒ ::String
Required.
-
#restriction_type ⇒ ::Google::Cloud::AssuredWorkloads::V1::RestrictAllowedResourcesRequest::RestrictionType
Required.
Instance Attribute Details
#name ⇒ ::String
Returns Required. The resource name of the Workload. This is the workloads’s relative path in the API, formatted as “organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}”. For example, “organizations/123/locations/us-east1/workloads/assured-workload-1”.
439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 |
# File 'proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb', line 439 class RestrictAllowedResourcesRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of restriction. module RestrictionType # Unknown restriction type. RESTRICTION_TYPE_UNSPECIFIED = 0 # Allow the use all of all gcp products, irrespective of the compliance # posture. This effectively removes gcp.restrictServiceUsage OrgPolicy # on the AssuredWorkloads Folder. ALLOW_ALL_GCP_RESOURCES = 1 # Based on Workload's compliance regime, allowed list changes. # See - https://cloud.google.com/assured-workloads/docs/supported-products # for the list of supported resources. ALLOW_COMPLIANT_RESOURCES = 2 end end |
#restriction_type ⇒ ::Google::Cloud::AssuredWorkloads::V1::RestrictAllowedResourcesRequest::RestrictionType
Returns Required. The type of restriction for using gcp products in the Workload environment.
439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 |
# File 'proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb', line 439 class RestrictAllowedResourcesRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of restriction. module RestrictionType # Unknown restriction type. RESTRICTION_TYPE_UNSPECIFIED = 0 # Allow the use all of all gcp products, irrespective of the compliance # posture. This effectively removes gcp.restrictServiceUsage OrgPolicy # on the AssuredWorkloads Folder. ALLOW_ALL_GCP_RESOURCES = 1 # Based on Workload's compliance regime, allowed list changes. # See - https://cloud.google.com/assured-workloads/docs/supported-products # for the list of supported resources. ALLOW_COMPLIANT_RESOURCES = 2 end end |