Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest

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 updating permission settings for a partner workload.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest

Returns a new instance of GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest.



339
340
341
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 339

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

Instance Attribute Details

#etagString

Optional. The etag of the workload. If this is provided, it must match the server's etag. Corresponds to the JSON property etag

Returns:

  • (String)


326
327
328
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 326

def etag
  @etag
end

#partner_permissionsGoogle::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions

Permissions granted to the AW Partner SA account for the customer workload Corresponds to the JSON property partnerPermissions



331
332
333
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 331

def partner_permissions
  @partner_permissions
end

#update_maskString

Required. The list of fields to be updated. E.g. update_mask paths: " partner_permissions.data_logs_viewer" Corresponds to the JSON property updateMask

Returns:

  • (String)


337
338
339
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 337

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



344
345
346
347
348
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 344

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