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_checksum ⇒ Hash
- #http_checksum_required ⇒ Boolean
- #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.
7 8 9 10 11 12 13 14 |
# File 'lib/seahorse/model/operation.rb', line 7 def initialize @http_method = 'POST' @http_request_uri = '/' @deprecated = false @errors = [] @metadata = {} @async = false end |
Instance Attribute Details
#async ⇒ Boolean
63 64 65 |
# File 'lib/seahorse/model/operation.rb', line 63 def async @async end |
#authorizer ⇒ String?
47 48 49 |
# File 'lib/seahorse/model/operation.rb', line 47 def @authorizer end |
#deprecated ⇒ Boolean
32 33 34 |
# File 'lib/seahorse/model/operation.rb', line 32 def deprecated @deprecated end |
#documentation ⇒ String?
41 42 43 |
# File 'lib/seahorse/model/operation.rb', line 41 def documentation @documentation end |
#endpoint_discovery ⇒ Hash
38 39 40 |
# File 'lib/seahorse/model/operation.rb', line 38 def endpoint_discovery @endpoint_discovery end |
#endpoint_operation ⇒ Boolean
35 36 37 |
# File 'lib/seahorse/model/operation.rb', line 35 def endpoint_operation @endpoint_operation end |
#endpoint_pattern ⇒ Hash?
44 45 46 |
# File 'lib/seahorse/model/operation.rb', line 44 def endpoint_pattern @endpoint_pattern end |
#errors ⇒ Array<ShapeRef>
56 57 58 |
# File 'lib/seahorse/model/operation.rb', line 56 def errors @errors end |
#http_checksum ⇒ Hash
29 30 31 |
# File 'lib/seahorse/model/operation.rb', line 29 def http_checksum @http_checksum end |
#http_checksum_required ⇒ Boolean
26 27 28 |
# File 'lib/seahorse/model/operation.rb', line 26 def http_checksum_required @http_checksum_required end |
#http_method ⇒ String
20 21 22 |
# File 'lib/seahorse/model/operation.rb', line 20 def http_method @http_method end |
#http_request_uri ⇒ String
23 24 25 |
# File 'lib/seahorse/model/operation.rb', line 23 def http_request_uri @http_request_uri end |
#input ⇒ ShapeRef?
50 51 52 |
# File 'lib/seahorse/model/operation.rb', line 50 def input @input end |
#name ⇒ String?
17 18 19 |
# File 'lib/seahorse/model/operation.rb', line 17 def name @name end |
#output ⇒ ShapeRef?
53 54 55 |
# File 'lib/seahorse/model/operation.rb', line 53 def output @output end |
#require_apikey ⇒ Boolean
APIG only
60 61 62 |
# File 'lib/seahorse/model/operation.rb', line 60 def require_apikey @require_apikey end |
Instance Method Details
#[](key) ⇒ Object
65 66 67 |
# File 'lib/seahorse/model/operation.rb', line 65 def [](key) @metadata[key.to_s] end |
#[]=(key, value) ⇒ Object
69 70 71 |
# File 'lib/seahorse/model/operation.rb', line 69 def []=(key, value) @metadata[key.to_s] = value end |