Class: Google::Apis::ClouduseraccountsBeta::Group

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

Returns a new instance of Group



93
94
95
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 93

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)


59
60
61
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 59

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)


65
66
67
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 65

def description
  @description
end

#idFixnum

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

Returns:

  • (Fixnum)


70
71
72
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 70

def id
  @id
end

#kindString

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

Returns:

  • (String)


75
76
77
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 75

def kind
  @kind
end

#membersArray<String>

[Output Only] A list of URLs to User resources who belong to the group. Users may only be members of groups in the same project. Corresponds to the JSON property members

Returns:

  • (Array<String>)


81
82
83
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 81

def members
  @members
end

#nameString

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

Returns:

  • (String)


86
87
88
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 86

def name
  @name
end

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

Returns:

  • (String)


91
92
93
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 91

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



98
99
100
101
102
103
104
105
106
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 98

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