Class: Pago::V2026_04::Models::BenefitGrantGitHubRepositoryProperties

Inherits:
Model
  • Object
show all
Defined in:
lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs

Constant Summary collapse

JSON_KEYS =

Returns:

  • (Hash[Symbol, String])
{
  account_id: "account_id",
  repository_owner: "repository_owner",
  repository_name: "repository_name",
  permission: "permission",
  granted_account_id: "granted_account_id"
}.freeze
REQUIRED_KEYS =

Returns:

  • (Array[String])
[].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw

Constructor Details

#initialize(account_id: ::Pago::UNSET, repository_owner: ::Pago::UNSET, repository_name: ::Pago::UNSET, permission: ::Pago::UNSET, granted_account_id: ::Pago::UNSET) ⇒ BenefitGrantGitHubRepositoryProperties

Returns a new instance of BenefitGrantGitHubRepositoryProperties.

Parameters:

  • account_id: (String, nil) (defaults to: ::Pago::UNSET)
  • repository_owner: (String, nil) (defaults to: ::Pago::UNSET)
  • repository_name: (String, nil) (defaults to: ::Pago::UNSET)
  • permission: (String, nil) (defaults to: ::Pago::UNSET)
  • granted_account_id: (String, nil) (defaults to: ::Pago::UNSET)


5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
# File 'lib/pago/v2026_04/models.rb', line 5605

def initialize(
  account_id: ::Pago::UNSET,
  repository_owner: ::Pago::UNSET,
  repository_name: ::Pago::UNSET,
  permission: ::Pago::UNSET,
  granted_account_id: ::Pago::UNSET
)
  super()
  assign(:account_id, )
  assign(:repository_owner, repository_owner)
  assign(:repository_name, repository_name)
  assign(:permission, permission)
  assign(:granted_account_id, )
end

Instance Attribute Details

#account_idString? (readonly)

Returns:

  • (String, nil)


5591
5592
5593
# File 'lib/pago/v2026_04/models.rb', line 5591

def 
  @account_id
end

#granted_account_idString (readonly)

Returns:

  • (String)


5603
5604
5605
# File 'lib/pago/v2026_04/models.rb', line 5603

def 
  @granted_account_id
end

#permissionString (readonly)

Returns:

  • (String)


5600
5601
5602
# File 'lib/pago/v2026_04/models.rb', line 5600

def permission
  @permission
end

#repository_nameString (readonly)

Returns:

  • (String)


5597
5598
5599
# File 'lib/pago/v2026_04/models.rb', line 5597

def repository_name
  @repository_name
end

#repository_ownerString (readonly)

Returns:

  • (String)


5594
5595
5596
# File 'lib/pago/v2026_04/models.rb', line 5594

def repository_owner
  @repository_owner
end

Class Method Details

.from_json(data) ⇒ BenefitGrantGitHubRepositoryProperties?

Parameters:

  • data (Hash, String, nil)

Returns:



5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
# File 'lib/pago/v2026_04/models.rb', line 5622

def self.from_json(data)
  data = ::JSON.parse(data) if data.is_a?(String)
  data = ::Pago::Serde.object(data)
  return nil if data.nil?

  wrap_raw(
    new(
      account_id: (data.key?("account_id") ? data["account_id"] : ::Pago::UNSET),
      repository_owner: (data.key?("repository_owner") ? data["repository_owner"] : ::Pago::UNSET),
      repository_name: (data.key?("repository_name") ? data["repository_name"] : ::Pago::UNSET),
      permission: (data.key?("permission") ? data["permission"] : ::Pago::UNSET),
      granted_account_id: (data.key?("granted_account_id") ? data["granted_account_id"] : ::Pago::UNSET)
    ),
    data
  )
end