Class: Google::Apis::CloudcontrolspartnerV1::PartnerPermissions

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

Overview

The permissions granted to the partner for a workload

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PartnerPermissions

Returns a new instance of PartnerPermissions.



669
670
671
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 669

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

Instance Attribute Details

#nameString

Identifier. Format: organizations/organization/locations/location/ customers/customer/workloads/workload/partnerPermissions Corresponds to the JSON property name

Returns:

  • (String)


662
663
664
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 662

def name
  @name
end

#partner_permissionsArray<String>

The partner permissions granted for the workload Corresponds to the JSON property partnerPermissions

Returns:

  • (Array<String>)


667
668
669
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 667

def partner_permissions
  @partner_permissions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



674
675
676
677
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 674

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