Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest
- Inherits:
-
Object
- Object
- Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest
- 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
-
#restriction_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest
constructor
A new instance of GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest
Returns a new instance of GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest.
361 362 363 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 361 def initialize(**args) update!(**args) end |
Instance Attribute Details
#restriction_type ⇒ String
Required. The type of restriction for using gcp products in the Workload
environment.
Corresponds to the JSON property restrictionType
359 360 361 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 359 def restriction_type @restriction_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
366 367 368 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 366 def update!(**args) @restriction_type = args[:restriction_type] if args.key?(:restriction_type) end |