Class: Google::Apis::ComputeAlpha::RbacPolicy

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RbacPolicy

Returns a new instance of RbacPolicy.



32657
32658
32659
# File 'lib/google/apis/compute_alpha/classes.rb', line 32657

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

Instance Attribute Details

#nameString

Name of the RbacPolicy. Corresponds to the JSON property name

Returns:

  • (String)


32645
32646
32647
# File 'lib/google/apis/compute_alpha/classes.rb', line 32645

def name
  @name
end

#permissionsArray<Google::Apis::ComputeAlpha::Permission>

The list of permissions. Corresponds to the JSON property permissions



32650
32651
32652
# File 'lib/google/apis/compute_alpha/classes.rb', line 32650

def permissions
  @permissions
end

#principalsArray<Google::Apis::ComputeAlpha::Principal>

The list of principals. Corresponds to the JSON property principals



32655
32656
32657
# File 'lib/google/apis/compute_alpha/classes.rb', line 32655

def principals
  @principals
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



32662
32663
32664
32665
32666
# File 'lib/google/apis/compute_alpha/classes.rb', line 32662

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