Class: Seahorse::Model::Operation

Inherits:
Object
  • Object
show all
Defined in:
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
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

#asyncBoolean

Returns:

  • (Boolean)


55
56
57
# File 'lib/seahorse/model/operation.rb', line 55

def async
  @async
end

#authorizerString?

Returns:

  • (String, nil)


39
40
41
# File 'lib/seahorse/model/operation.rb', line 39

def authorizer
  @authorizer
end

#deprecatedBoolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/seahorse/model/operation.rb', line 24

def deprecated
  @deprecated
end

#documentationString?

Returns:

  • (String, nil)


33
34
35
# File 'lib/seahorse/model/operation.rb', line 33

def documentation
  @documentation
end

#endpoint_discoveryHash

Returns:

  • (Hash)


30
31
32
# File 'lib/seahorse/model/operation.rb', line 30

def endpoint_discovery
  @endpoint_discovery
end

#endpoint_operationBoolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/seahorse/model/operation.rb', line 27

def endpoint_operation
  @endpoint_operation
end

#endpoint_patternHash?

Returns:

  • (Hash, nil)


36
37
38
# File 'lib/seahorse/model/operation.rb', line 36

def endpoint_pattern
  @endpoint_pattern
end

#errorsArray<ShapeRef>

Returns:

  • (Array<ShapeRef>)


48
49
50
# File 'lib/seahorse/model/operation.rb', line 48

def errors
  @errors
end

#http_methodString

Returns:

  • (String)


18
19
20
# File 'lib/seahorse/model/operation.rb', line 18

def http_method
  @http_method
end

#http_request_uriString

Returns:

  • (String)


21
22
23
# File 'lib/seahorse/model/operation.rb', line 21

def http_request_uri
  @http_request_uri
end

#inputShapeRef?

Returns:

  • (ShapeRef, nil)


42
43
44
# File 'lib/seahorse/model/operation.rb', line 42

def input
  @input
end

#nameString?

Returns:

  • (String, nil)


15
16
17
# File 'lib/seahorse/model/operation.rb', line 15

def name
  @name
end

#outputShapeRef?

Returns:

  • (ShapeRef, nil)


45
46
47
# File 'lib/seahorse/model/operation.rb', line 45

def output
  @output
end

#require_apikeyBoolean

APIG only

Returns:

  • (Boolean)


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