Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/assuredworkloads_v1/classes.rb,
lib/google/apis/assuredworkloads_v1/representations.rb,
lib/google/apis/assuredworkloads_v1/representations.rb

Overview

Request for restricting list of available resources in Workload environment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest

Returns a new instance of GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest.



98
99
100
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 98

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#restriction_typeString

Required. The type of restriction for using gcp products in the Workload environment. Corresponds to the JSON property restrictionType

Returns:

  • (String)


96
97
98
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 96

def restriction_type
  @restriction_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



103
104
105
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 103

def update!(**args)
  @restriction_type = args[:restriction_type] if args.key?(:restriction_type)
end