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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RbacPolicy

Returns a new instance of RbacPolicy.



25889
25890
25891
# File 'generated/google/apis/compute_alpha/classes.rb', line 25889

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

Instance Attribute Details

#nameString

Name of the RbacPolicy. Corresponds to the JSON property name

Returns:

  • (String)


25877
25878
25879
# File 'generated/google/apis/compute_alpha/classes.rb', line 25877

def name
  @name
end

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

The list of permissions. Corresponds to the JSON property permissions



25882
25883
25884
# File 'generated/google/apis/compute_alpha/classes.rb', line 25882

def permissions
  @permissions
end

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

The list of principals. Corresponds to the JSON property principals



25887
25888
25889
# File 'generated/google/apis/compute_alpha/classes.rb', line 25887

def principals
  @principals
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



25894
25895
25896
25897
25898
# File 'generated/google/apis/compute_alpha/classes.rb', line 25894

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