Class: Google::Cloud::AssuredWorkloads::V1beta1::RestrictAllowedResourcesRequest

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/assuredworkloads/v1beta1/assuredworkloads.rb

Overview

Request for restricting list of available resources in Workload environment.

Defined Under Namespace

Modules: RestrictionType

Instance Attribute Summary collapse

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".

Returns:

  • (::String)

    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".



69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'proto_docs/google/cloud/assuredworkloads/v1beta1/assuredworkloads.rb', line 69

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::V1beta1::RestrictAllowedResourcesRequest::RestrictionType

Returns Required. The type of restriction for using gcp products in the Workload environment.

Returns:



69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'proto_docs/google/cloud/assuredworkloads/v1beta1/assuredworkloads.rb', line 69

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