Class: Google::Apis::ClouduseraccountsBeta::User

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

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

Returns a new instance of User.



782
783
784
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 782

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

Instance Attribute Details

#creation_timestampString

[Output Only] Creation timestamp in RFC3339 text format. Corresponds to the JSON property creationTimestamp

Returns:

  • (String)


736
737
738
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 736

def creation_timestamp
  @creation_timestamp
end

#descriptionString

An optional textual description of the resource; provided by the client when the resource is created. Corresponds to the JSON property description

Returns:

  • (String)


742
743
744
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 742

def description
  @description
end

#groupsArray<String>

[Output Only] A list of URLs to Group resources who contain the user. Users are only members of groups in the same project. Corresponds to the JSON property groups

Returns:

  • (Array<String>)


748
749
750
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 748

def groups
  @groups
end

#idString

[Output Only] Unique identifier for the resource; defined by the server. Corresponds to the JSON property id

Returns:

  • (String)


753
754
755
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 753

def id
  @id
end

#kindString

[Output Only] Type of the resource. Always clouduseraccounts#user for users. Corresponds to the JSON property kind

Returns:

  • (String)


758
759
760
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 758

def kind
  @kind
end

#nameString

Name of the resource; provided by the client when the resource is created. Corresponds to the JSON property name

Returns:

  • (String)


763
764
765
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 763

def name
  @name
end

#ownerString

Email address of account's owner. This account will be validated to make sure it exists. The email can belong to any domain, but it must be tied to a Google account. Corresponds to the JSON property owner

Returns:

  • (String)


770
771
772
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 770

def owner
  @owner
end

#public_keysArray<Google::Apis::ClouduseraccountsBeta::PublicKey>

[Output Only] Public keys that this user may use to login. Corresponds to the JSON property publicKeys



775
776
777
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 775

def public_keys
  @public_keys
end

[Output Only] Server defined URL for the resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


780
781
782
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 780

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



787
788
789
790
791
792
793
794
795
796
797
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 787

def update!(**args)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @description = args[:description] if args.key?(:description)
  @groups = args[:groups] if args.key?(:groups)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @owner = args[:owner] if args.key?(:owner)
  @public_keys = args[:public_keys] if args.key?(:public_keys)
  @self_link = args[:self_link] if args.key?(:self_link)
end