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.



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

#asyncBoolean

Returns:

  • (Boolean)


66
67
68
# File 'lib/seahorse/model/operation.rb', line 66

def async
  @async
end

#authorizerString?

Returns:

  • (String, nil)


50
51
52
# File 'lib/seahorse/model/operation.rb', line 50

def authorizer
  @authorizer
end

#deprecatedBoolean

Returns:

  • (Boolean)


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

def deprecated
  @deprecated
end

#documentationString?

Returns:

  • (String, nil)


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

def documentation
  @documentation
end

#endpoint_discoveryHash

Returns:

  • (Hash)


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

def endpoint_discovery
  @endpoint_discovery
end

#endpoint_operationBoolean

Returns:

  • (Boolean)


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

def endpoint_operation
  @endpoint_operation
end

#endpoint_patternHash?

Returns:

  • (Hash, nil)


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

def endpoint_pattern
  @endpoint_pattern
end

#errorsArray<ShapeRef>

Returns:

  • (Array<ShapeRef>)


59
60
61
# File 'lib/seahorse/model/operation.rb', line 59

def errors
  @errors
end

#http_checksumHash

Returns:

  • (Hash)


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

def http_checksum
  @http_checksum
end

#http_checksum_requiredBoolean

Returns:

  • (Boolean)


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

def http_checksum_required
  @http_checksum_required
end

#http_methodString

Returns:

  • (String)


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

def http_method
  @http_method
end

#http_request_uriString

Returns:

  • (String)


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

def http_request_uri
  @http_request_uri
end

#inputShapeRef?

Returns:

  • (ShapeRef, nil)


53
54
55
# File 'lib/seahorse/model/operation.rb', line 53

def input
  @input
end

#nameString?

Returns:

  • (String, nil)


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

def name
  @name
end

#outputShapeRef?

Returns:

  • (ShapeRef, nil)


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

def output
  @output
end

#request_compressionHash

Returns:

  • (Hash)


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

def request_compression
  @request_compression
end

#require_apikeyBoolean

APIG only

Returns:

  • (Boolean)


63
64
65
# File 'lib/seahorse/model/operation.rb', line 63

def require_apikey
  @require_apikey
end

Instance Method Details

#[](key) ⇒ Object



68
69
70
# File 'lib/seahorse/model/operation.rb', line 68

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

#[]=(key, value) ⇒ Object



72
73
74
# File 'lib/seahorse/model/operation.rb', line 72

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