Class: Google::Apis::DeveloperconnectV1::Installation
- Inherits:
-
Object
- Object
- Google::Apis::DeveloperconnectV1::Installation
- 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
-
#id ⇒ Fixnum
ID of the installation in GitHub.
-
#name ⇒ String
Name of the GitHub user or organization that owns this installation.
-
#type ⇒ String
Either "user" or "organization".
Instance Method Summary collapse
-
#initialize(**args) ⇒ Installation
constructor
A new instance of Installation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Installation
Returns a new instance of Installation.
1716 1717 1718 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1716 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ Fixnum
ID of the installation in GitHub.
Corresponds to the JSON property id
1704 1705 1706 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1704 def id @id end |
#name ⇒ String
Name of the GitHub user or organization that owns this installation.
Corresponds to the JSON property name
1709 1710 1711 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1709 def name @name end |
#type ⇒ String
Either "user" or "organization".
Corresponds to the JSON property type
1714 1715 1716 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1714 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1721 1722 1723 1724 1725 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1721 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 |