Class: Google::Apis::ClouduseraccountsBeta::LinuxGroupView

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/clouduseraccounts_beta/classes.rb,
generated/google/apis/clouduseraccounts_beta/representations.rb,
generated/google/apis/clouduseraccounts_beta/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



286
287
288
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 286

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

Instance Attribute Details

#gidFixnum

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

Returns:

  • (Fixnum)


274
275
276
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 274

def gid
  @gid
end

#group_nameString

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

Returns:

  • (String)


279
280
281
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 279

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


284
285
286
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 284

def members
  @members
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



291
292
293
294
295
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 291

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