You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Seahorse::Model::Operation

Inherits:
Object
  • Object
show all
Defined in:
gems/aws-sdk-core/lib/seahorse/model/operation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOperation

Returns a new instance of Operation



5
6
7
8
9
10
11
# File 'gems/aws-sdk-core/lib/seahorse/model/operation.rb', line 5

def initialize
  @http_method = 'POST'
  @http_request_uri = '/'
  @deprecated = false
  @errors = []
  @metadata = {}
end

Instance Attribute Details

#deprecatedBoolean

Returns:

  • (Boolean)


23
24
25
# File 'gems/aws-sdk-core/lib/seahorse/model/operation.rb', line 23

def deprecated
  @deprecated
end

#documentationString?

Returns:

  • (String, nil)


26
27
28
# File 'gems/aws-sdk-core/lib/seahorse/model/operation.rb', line 26

def documentation
  @documentation
end

#errorsArray<ShapeRef>

Returns:

  • (Array<ShapeRef>)


35
36
37
# File 'gems/aws-sdk-core/lib/seahorse/model/operation.rb', line 35

def errors
  @errors
end

#http_methodString

Returns:

  • (String)


17
18
19
# File 'gems/aws-sdk-core/lib/seahorse/model/operation.rb', line 17

def http_method
  @http_method
end

#http_request_uriString

Returns:

  • (String)


20
21
22
# File 'gems/aws-sdk-core/lib/seahorse/model/operation.rb', line 20

def http_request_uri
  @http_request_uri
end

#inputShapeRef?

Returns:

  • (ShapeRef, nil)


29
30
31
# File 'gems/aws-sdk-core/lib/seahorse/model/operation.rb', line 29

def input
  @input
end

#nameString?

Returns:

  • (String, nil)


14
15
16
# File 'gems/aws-sdk-core/lib/seahorse/model/operation.rb', line 14

def name
  @name
end

#outputShapeRef?

Returns:

  • (ShapeRef, nil)


32
33
34
# File 'gems/aws-sdk-core/lib/seahorse/model/operation.rb', line 32

def output
  @output
end

Instance Method Details

#[](key) ⇒ Object



37
38
39
# File 'gems/aws-sdk-core/lib/seahorse/model/operation.rb', line 37

def [](key)
  @metadata[key.to_s]
end

#[]=(key, value) ⇒ Object



41
42
43
# File 'gems/aws-sdk-core/lib/seahorse/model/operation.rb', line 41

def []=(key, value)
  @metadata[key.to_s] = value
end