Class: Google::Apis::DeveloperconnectV1::Installation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/developerconnect_v1/classes.rb,
lib/google/apis/developerconnect_v1/representations.rb,
lib/google/apis/developerconnect_v1/representations.rb

Overview

Represents an installation of the GitHub App.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Installation

Returns a new instance of Installation.



445
446
447
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 445

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

Instance Attribute Details

#idFixnum

ID of the installation in GitHub. Corresponds to the JSON property id

Returns:

  • (Fixnum)


433
434
435
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 433

def id
  @id
end

#nameString

Name of the GitHub user or organization that owns this installation. Corresponds to the JSON property name

Returns:

  • (String)


438
439
440
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 438

def name
  @name
end

#typeString

Either "user" or "organization". Corresponds to the JSON property type

Returns:

  • (String)


443
444
445
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 443

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



450
451
452
453
454
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 450

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
end