Class: Google::Apis::ClouduseraccountsBeta::LinuxAccountViews

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



214
215
216
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 214

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

Instance Attribute Details

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

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



201
202
203
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 201

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)


207
208
209
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 207

def kind
  @kind
end

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

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



212
213
214
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 212

def user_views
  @user_views
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



219
220
221
222
223
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 219

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