Class: Google::Apis::ClouduseraccountsAlpha::Group

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/clouduseraccounts_alpha/classes.rb,
generated/google/apis/clouduseraccounts_alpha/representations.rb,
generated/google/apis/clouduseraccounts_alpha/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



211
212
213
# File 'generated/google/apis/clouduseraccounts_alpha/classes.rb', line 211

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)


177
178
179
# File 'generated/google/apis/clouduseraccounts_alpha/classes.rb', line 177

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)


183
184
185
# File 'generated/google/apis/clouduseraccounts_alpha/classes.rb', line 183

def description
  @description
end

#idFixnum

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

Returns:

  • (Fixnum)


188
189
190
# File 'generated/google/apis/clouduseraccounts_alpha/classes.rb', line 188

def id
  @id
end

#kindString

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

Returns:

  • (String)


193
194
195
# File 'generated/google/apis/clouduseraccounts_alpha/classes.rb', line 193

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


199
200
201
# File 'generated/google/apis/clouduseraccounts_alpha/classes.rb', line 199

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)


204
205
206
# File 'generated/google/apis/clouduseraccounts_alpha/classes.rb', line 204

def name
  @name
end

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

Returns:

  • (String)


209
210
211
# File 'generated/google/apis/clouduseraccounts_alpha/classes.rb', line 209

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



216
217
218
219
220
221
222
223
224
# File 'generated/google/apis/clouduseraccounts_alpha/classes.rb', line 216

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