Class: Stax::Aws::APIGateway
Class Method Summary collapse
Methods inherited from Sdk
Class Method Details
.api(id) ⇒ Object
12 13 14 |
# File 'lib/stax/aws/apigw.rb', line 12 def api(id) client.get_rest_api(rest_api_id: id) end |
.client ⇒ Object
8 9 10 |
# File 'lib/stax/aws/apigw.rb', line 8 def client @_client ||= ::Aws::APIGateway::Client.new end |
.resources(id) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/stax/aws/apigw.rb', line 20 def resources(id) position = nil items = [] loop do resp = client.get_resources(rest_api_id: id, position: position) items += resp.items position = resp.position break unless position end items end |
.stages(id, deployment = nil) ⇒ Object
16 17 18 |
# File 'lib/stax/aws/apigw.rb', line 16 def stages(id, deployment = nil) client.get_stages(rest_api_id: id, deployment_id: deployment).item end |