Class: Google::Apis::ClouduseraccountsBeta::User
- Inherits:
-
Object
- Object
- Google::Apis::ClouduseraccountsBeta::User
- 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
-
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
-
#description ⇒ String
An optional textual description of the resource; provided by the client when the resource is created.
-
#groups ⇒ Array<String>
[Output Only] A list of URLs to Group resources who contain the user.
-
#id ⇒ String
[Output Only] Unique identifier for the resource; defined by the server.
-
#kind ⇒ String
[Output Only] Type of the resource.
-
#name ⇒ String
Name of the resource; provided by the client when the resource is created.
-
#owner ⇒ String
Email address of account's owner.
-
#public_keys ⇒ Array<Google::Apis::ClouduseraccountsBeta::PublicKey>
[Output Only] Public keys that this user may use to login.
-
#self_link ⇒ String
[Output Only] Server defined URL for the resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ User
constructor
A new instance of User.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
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_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
Corresponds to the JSON property creationTimestamp
736 737 738 |
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 736 def @creation_timestamp end |
#description ⇒ String
An optional textual description of the resource; provided by the client when
the resource is created.
Corresponds to the JSON property description
742 743 744 |
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 742 def description @description end |
#groups ⇒ Array<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
748 749 750 |
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 748 def groups @groups end |
#id ⇒ String
[Output Only] Unique identifier for the resource; defined by the server.
Corresponds to the JSON property id
753 754 755 |
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 753 def id @id end |
#kind ⇒ String
[Output Only] Type of the resource. Always clouduseraccounts#user for users.
Corresponds to the JSON property kind
758 759 760 |
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 758 def kind @kind end |
#name ⇒ String
Name of the resource; provided by the client when the resource is created.
Corresponds to the JSON property name
763 764 765 |
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 763 def name @name end |
#owner ⇒ String
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
770 771 772 |
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 770 def owner @owner end |
#public_keys ⇒ Array<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 |
#self_link ⇒ String
[Output Only] Server defined URL for the resource.
Corresponds to the JSON property selfLink
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 |