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.



30902
30903
30904
# File 'lib/google/apis/compute_alpha/classes.rb', line 30902

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

Instance Attribute Details

#nameString

Name of the RbacPolicy. Corresponds to the JSON property name

Returns:

  • (String)


30890
30891
30892
# File 'lib/google/apis/compute_alpha/classes.rb', line 30890

def name
  @name
end

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

The list of permissions. Corresponds to the JSON property permissions



30895
30896
30897
# File 'lib/google/apis/compute_alpha/classes.rb', line 30895

def permissions
  @permissions
end

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

The list of principals. Corresponds to the JSON property principals



30900
30901
30902
# File 'lib/google/apis/compute_alpha/classes.rb', line 30900

def principals
  @principals
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



30907
30908
30909
30910
30911
# File 'lib/google/apis/compute_alpha/classes.rb', line 30907

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