Class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/assuredworkloads_v1beta1/classes.rb,
lib/google/apis/assuredworkloads_v1beta1/representations.rb,
lib/google/apis/assuredworkloads_v1beta1/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) ⇒ GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesRequest

Returns a new instance of GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesRequest.



348
349
350
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 348

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)


346
347
348
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 346

def restriction_type
  @restriction_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



353
354
355
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 353

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