Class: Aptible::Api::ExternalAwsAccount
- Defined in:
- lib/aptible/api/external_aws_account.rb
Instance Method Summary collapse
Methods inherited from Resource
Instance Method Details
#check! ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/aptible/api/external_aws_account.rb', line 31 def check! response = HyperResource::Link.new( self, 'href' => "#{href}/check" ).get ExternalAwsAccountCheckResponse.new( state: response.attributes['state'], checks: (response.attributes['checks'] || []).map do |c| ExternalAwsAccountCheck.new( check_name: c['check_name'], state: c['state'], details: c['details'] ) end ) end |
#organization ⇒ Object
24 25 26 27 28 29 |
# File 'lib/aptible/api/external_aws_account.rb', line 24 def organization return @organization if @organization auth = Aptible::Auth::Organization.new(token: token, headers: headers) @organization = auth.find_by_url(organization_url) end |
#organization_url ⇒ Object
20 21 22 |
# File 'lib/aptible/api/external_aws_account.rb', line 20 def organization_url links['organization'].href end |