aws-sdk-panorama 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
File without changes
@@ -0,0 +1,209 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::Panorama
11
+
12
+ # When Panorama returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::Panorama::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all Panorama errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::Panorama::Errors::ServiceError
20
+ # # rescues all Panorama API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {AccessDeniedException}
31
+ # * {ConflictException}
32
+ # * {InternalServerException}
33
+ # * {ResourceNotFoundException}
34
+ # * {ServiceQuotaExceededException}
35
+ # * {ValidationException}
36
+ #
37
+ # Additionally, error classes are dynamically generated for service errors based on the error code
38
+ # if they are not defined above.
39
+ module Errors
40
+
41
+ extend Aws::Errors::DynamicErrors
42
+
43
+ class AccessDeniedException < ServiceError
44
+
45
+ # @param [Seahorse::Client::RequestContext] context
46
+ # @param [String] message
47
+ # @param [Aws::Panorama::Types::AccessDeniedException] data
48
+ def initialize(context, message, data = Aws::EmptyStructure.new)
49
+ super(context, message, data)
50
+ end
51
+
52
+ # @return [String]
53
+ def message
54
+ @message || @data[:message]
55
+ end
56
+ end
57
+
58
+ class ConflictException < ServiceError
59
+
60
+ # @param [Seahorse::Client::RequestContext] context
61
+ # @param [String] message
62
+ # @param [Aws::Panorama::Types::ConflictException] data
63
+ def initialize(context, message, data = Aws::EmptyStructure.new)
64
+ super(context, message, data)
65
+ end
66
+
67
+ # @return [String]
68
+ def message
69
+ @message || @data[:message]
70
+ end
71
+
72
+ # @return [String]
73
+ def resource_id
74
+ @data[:resource_id]
75
+ end
76
+
77
+ # @return [String]
78
+ def resource_type
79
+ @data[:resource_type]
80
+ end
81
+
82
+ # @return [String]
83
+ def error_id
84
+ @data[:error_id]
85
+ end
86
+
87
+ # @return [String]
88
+ def error_arguments
89
+ @data[:error_arguments]
90
+ end
91
+ end
92
+
93
+ class InternalServerException < ServiceError
94
+
95
+ # @param [Seahorse::Client::RequestContext] context
96
+ # @param [String] message
97
+ # @param [Aws::Panorama::Types::InternalServerException] data
98
+ def initialize(context, message, data = Aws::EmptyStructure.new)
99
+ super(context, message, data)
100
+ end
101
+
102
+ # @return [String]
103
+ def message
104
+ @message || @data[:message]
105
+ end
106
+
107
+ # @return [String]
108
+ def retry_after_seconds
109
+ @data[:retry_after_seconds]
110
+ end
111
+ end
112
+
113
+ class ResourceNotFoundException < ServiceError
114
+
115
+ # @param [Seahorse::Client::RequestContext] context
116
+ # @param [String] message
117
+ # @param [Aws::Panorama::Types::ResourceNotFoundException] data
118
+ def initialize(context, message, data = Aws::EmptyStructure.new)
119
+ super(context, message, data)
120
+ end
121
+
122
+ # @return [String]
123
+ def message
124
+ @message || @data[:message]
125
+ end
126
+
127
+ # @return [String]
128
+ def resource_id
129
+ @data[:resource_id]
130
+ end
131
+
132
+ # @return [String]
133
+ def resource_type
134
+ @data[:resource_type]
135
+ end
136
+ end
137
+
138
+ class ServiceQuotaExceededException < ServiceError
139
+
140
+ # @param [Seahorse::Client::RequestContext] context
141
+ # @param [String] message
142
+ # @param [Aws::Panorama::Types::ServiceQuotaExceededException] data
143
+ def initialize(context, message, data = Aws::EmptyStructure.new)
144
+ super(context, message, data)
145
+ end
146
+
147
+ # @return [String]
148
+ def message
149
+ @message || @data[:message]
150
+ end
151
+
152
+ # @return [String]
153
+ def resource_id
154
+ @data[:resource_id]
155
+ end
156
+
157
+ # @return [String]
158
+ def resource_type
159
+ @data[:resource_type]
160
+ end
161
+
162
+ # @return [String]
163
+ def quota_code
164
+ @data[:quota_code]
165
+ end
166
+
167
+ # @return [String]
168
+ def service_code
169
+ @data[:service_code]
170
+ end
171
+ end
172
+
173
+ class ValidationException < ServiceError
174
+
175
+ # @param [Seahorse::Client::RequestContext] context
176
+ # @param [String] message
177
+ # @param [Aws::Panorama::Types::ValidationException] data
178
+ def initialize(context, message, data = Aws::EmptyStructure.new)
179
+ super(context, message, data)
180
+ end
181
+
182
+ # @return [String]
183
+ def message
184
+ @message || @data[:message]
185
+ end
186
+
187
+ # @return [String]
188
+ def reason
189
+ @data[:reason]
190
+ end
191
+
192
+ # @return [String]
193
+ def error_id
194
+ @data[:error_id]
195
+ end
196
+
197
+ # @return [String]
198
+ def error_arguments
199
+ @data[:error_arguments]
200
+ end
201
+
202
+ # @return [String]
203
+ def fields
204
+ @data[:fields]
205
+ end
206
+ end
207
+
208
+ end
209
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::Panorama
11
+
12
+ class Resource
13
+
14
+ # @param options ({})
15
+ # @option options [Client] :client
16
+ def initialize(options = {})
17
+ @client = options[:client] || Client.new(options)
18
+ end
19
+
20
+ # @return [Client]
21
+ def client
22
+ @client
23
+ end
24
+
25
+ end
26
+ end