Class: Google::Apis::ClouduseraccountsVmAlpha::LinuxGroupView

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

Overview

A detailed view of a Linux group.

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) ⇒ LinuxGroupView

Returns a new instance of LinuxGroupView



404
405
406
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 404

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

Instance Attribute Details

#gidFixnum

[Output Only] The Group ID. Corresponds to the JSON property gid

Returns:

  • (Fixnum)


392
393
394
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 392

def gid
  @gid
end

#group_nameString

[Output Only] Group name. Corresponds to the JSON property groupName

Returns:

  • (String)


397
398
399
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 397

def group_name
  @group_name
end

#membersArray<String>

[Output Only] List of user accounts that belong to the group. Corresponds to the JSON property members

Returns:

  • (Array<String>)


402
403
404
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 402

def members
  @members
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



409
410
411
412
413
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 409

def update!(**args)
  @gid = args[:gid] if args.key?(:gid)
  @group_name = args[:group_name] if args.key?(:group_name)
  @members = args[:members] if args.key?(:members)
end