Class: Google::Apis::ClouduseraccountsVmAlpha::LinuxAccountViews

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 list of all Linux accounts for this project. This API is only used by Compute Engine virtual machines to get information about user accounts for a project or instance. Linux resources are read-only views into users and groups managed by the Compute Engine Accounts API.

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

Returns a new instance of LinuxAccountViews



332
333
334
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 332

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

Instance Attribute Details

#group_viewsArray<Google::Apis::ClouduseraccountsVmAlpha::LinuxGroupView>

[Output Only] A list of all groups within a project. Corresponds to the JSON property groupViews



319
320
321
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 319

def group_views
  @group_views
end

#kindString

[Output Only] Type of the resource. Always clouduseraccounts#linuxAccountViews for Linux resources. Corresponds to the JSON property kind

Returns:

  • (String)


325
326
327
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 325

def kind
  @kind
end

#user_viewsArray<Google::Apis::ClouduseraccountsVmAlpha::LinuxUserView>

[Output Only] A list of all users within a project. Corresponds to the JSON property userViews



330
331
332
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 330

def user_views
  @user_views
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



337
338
339
340
341
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 337

def update!(**args)
  @group_views = args[:group_views] if args.key?(:group_views)
  @kind = args[:kind] if args.key?(:kind)
  @user_views = args[:user_views] if args.key?(:user_views)
end