Class: Seahorse::Model::Operation
- Inherits:
-
Object
- Object
- Seahorse::Model::Operation
- Defined in:
- lib/seahorse/model/operation.rb
Instance Attribute Summary collapse
- #async ⇒ Boolean
- #authorizer ⇒ String?
- #deprecated ⇒ Boolean
- #documentation ⇒ String?
- #endpoint_discovery ⇒ Hash
- #endpoint_operation ⇒ Boolean
- #endpoint_pattern ⇒ Hash?
- #errors ⇒ Array<ShapeRef>
- #http_method ⇒ String
- #http_request_uri ⇒ String
- #input ⇒ ShapeRef?
- #name ⇒ String?
- #output ⇒ ShapeRef?
-
#require_apikey ⇒ Boolean
APIG only.
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize ⇒ Operation
constructor
A new instance of Operation.
Constructor Details
#initialize ⇒ Operation
Returns a new instance of Operation.
5 6 7 8 9 10 11 12 |
# File 'lib/seahorse/model/operation.rb', line 5 def initialize @http_method = 'POST' @http_request_uri = '/' @deprecated = false @errors = [] @metadata = {} @async = false end |
Instance Attribute Details
#async ⇒ Boolean
55 56 57 |
# File 'lib/seahorse/model/operation.rb', line 55 def async @async end |
#authorizer ⇒ String?
39 40 41 |
# File 'lib/seahorse/model/operation.rb', line 39 def @authorizer end |
#deprecated ⇒ Boolean
24 25 26 |
# File 'lib/seahorse/model/operation.rb', line 24 def deprecated @deprecated end |
#documentation ⇒ String?
33 34 35 |
# File 'lib/seahorse/model/operation.rb', line 33 def documentation @documentation end |
#endpoint_discovery ⇒ Hash
30 31 32 |
# File 'lib/seahorse/model/operation.rb', line 30 def endpoint_discovery @endpoint_discovery end |
#endpoint_operation ⇒ Boolean
27 28 29 |
# File 'lib/seahorse/model/operation.rb', line 27 def endpoint_operation @endpoint_operation end |
#endpoint_pattern ⇒ Hash?
36 37 38 |
# File 'lib/seahorse/model/operation.rb', line 36 def endpoint_pattern @endpoint_pattern end |
#errors ⇒ Array<ShapeRef>
48 49 50 |
# File 'lib/seahorse/model/operation.rb', line 48 def errors @errors end |
#http_method ⇒ String
18 19 20 |
# File 'lib/seahorse/model/operation.rb', line 18 def http_method @http_method end |
#http_request_uri ⇒ String
21 22 23 |
# File 'lib/seahorse/model/operation.rb', line 21 def http_request_uri @http_request_uri end |
#input ⇒ ShapeRef?
42 43 44 |
# File 'lib/seahorse/model/operation.rb', line 42 def input @input end |
#name ⇒ String?
15 16 17 |
# File 'lib/seahorse/model/operation.rb', line 15 def name @name end |
#output ⇒ ShapeRef?
45 46 47 |
# File 'lib/seahorse/model/operation.rb', line 45 def output @output end |
#require_apikey ⇒ Boolean
APIG only
52 53 54 |
# File 'lib/seahorse/model/operation.rb', line 52 def require_apikey @require_apikey end |
Instance Method Details
#[](key) ⇒ Object
57 58 59 |
# File 'lib/seahorse/model/operation.rb', line 57 def [](key) @metadata[key.to_s] end |
#[]=(key, value) ⇒ Object
61 62 63 |
# File 'lib/seahorse/model/operation.rb', line 61 def []=(key, value) @metadata[key.to_s] = value end |