aws-sdk-rds 1.0.0.rc2 → 1.0.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aws-sdk-rds.rb +2 -2
  3. data/lib/aws-sdk-rds/account_quota.rb +79 -81
  4. data/lib/aws-sdk-rds/certificate.rb +99 -101
  5. data/lib/aws-sdk-rds/client.rb +10575 -9119
  6. data/lib/aws-sdk-rds/client_api.rb +3049 -3023
  7. data/lib/aws-sdk-rds/db_cluster.rb +1005 -1007
  8. data/lib/aws-sdk-rds/db_cluster_parameter_group.rb +204 -206
  9. data/lib/aws-sdk-rds/db_cluster_snapshot.rb +430 -432
  10. data/lib/aws-sdk-rds/db_engine.rb +208 -210
  11. data/lib/aws-sdk-rds/db_engine_version.rb +218 -219
  12. data/lib/aws-sdk-rds/db_instance.rb +2747 -2567
  13. data/lib/aws-sdk-rds/db_log_file.rb +145 -147
  14. data/lib/aws-sdk-rds/db_parameter_group.rb +411 -413
  15. data/lib/aws-sdk-rds/db_parameter_group_family.rb +135 -137
  16. data/lib/aws-sdk-rds/db_security_group.rb +316 -318
  17. data/lib/aws-sdk-rds/db_snapshot.rb +705 -650
  18. data/lib/aws-sdk-rds/db_snapshot_attribute.rb +137 -139
  19. data/lib/aws-sdk-rds/db_subnet_group.rb +161 -163
  20. data/lib/aws-sdk-rds/errors.rb +4 -13
  21. data/lib/aws-sdk-rds/event.rb +108 -110
  22. data/lib/aws-sdk-rds/event_category_map.rb +73 -75
  23. data/lib/aws-sdk-rds/event_subscription.rb +313 -315
  24. data/lib/aws-sdk-rds/option_group.rb +247 -249
  25. data/lib/aws-sdk-rds/option_group_option.rb +135 -137
  26. data/lib/aws-sdk-rds/parameter.rb +116 -118
  27. data/lib/aws-sdk-rds/pending_maintenance_action.rb +182 -184
  28. data/lib/aws-sdk-rds/plugins/cross_region_copying.rb +64 -0
  29. data/lib/aws-sdk-rds/reserved_db_instance.rb +156 -158
  30. data/lib/aws-sdk-rds/reserved_db_instances_offering.rb +154 -156
  31. data/lib/aws-sdk-rds/resource.rb +2395 -2288
  32. data/lib/aws-sdk-rds/resource_pending_maintenance_action_list.rb +89 -91
  33. data/lib/aws-sdk-rds/types.rb +12091 -10977
  34. data/lib/aws-sdk-rds/waiters.rb +127 -128
  35. metadata +3 -2
@@ -1,241 +1,239 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module RDS
10
- class DBEngine
11
-
12
- extend Aws::Deprecations
13
-
14
- # @overload def initialize(name, options = {})
15
- # @param [String] name
16
- # @option options [Client] :client
17
- # @overload def initialize(options = {})
18
- # @option options [required, String] :name
19
- # @option options [Client] :client
20
- def initialize(*args)
21
- options = Hash === args.last ? args.pop.dup : {}
22
- @name = extract_name(args, options)
23
- @data = Aws::EmptyStructure.new
24
- @client = options.delete(:client) || Client.new(options)
25
- end
8
+ module Aws::RDS
9
+ class DBEngine
10
+
11
+ extend Aws::Deprecations
12
+
13
+ # @overload def initialize(name, options = {})
14
+ # @param [String] name
15
+ # @option options [Client] :client
16
+ # @overload def initialize(options = {})
17
+ # @option options [required, String] :name
18
+ # @option options [Client] :client
19
+ def initialize(*args)
20
+ options = Hash === args.last ? args.pop.dup : {}
21
+ @name = extract_name(args, options)
22
+ @data = Aws::EmptyStructure.new
23
+ @client = options.delete(:client) || Client.new(options)
24
+ end
26
25
 
27
- # @!group Read-Only Attributes
26
+ # @!group Read-Only Attributes
28
27
 
29
- # @return [String]
30
- def name
31
- @name
32
- end
28
+ # @return [String]
29
+ def name
30
+ @name
31
+ end
33
32
 
34
- # @!endgroup
33
+ # @!endgroup
35
34
 
36
- # @return [Client]
37
- def client
38
- @client
39
- end
35
+ # @return [Client]
36
+ def client
37
+ @client
38
+ end
40
39
 
41
- # @raise [Errors::ResourceNotLoadable]
42
- # @api private
43
- def load
44
- msg = "#load is not implemented, data only available via enumeration"
45
- raise Errors::ResourceNotLoadable, msg
46
- end
47
- alias :reload :load
40
+ # @raise [NotImplementedError]
41
+ # @api private
42
+ def load
43
+ msg = "#load is not implemented, data only available via enumeration"
44
+ raise NotImplementedError, msg
45
+ end
46
+ alias :reload :load
48
47
 
49
- # @api private
50
- # @return [EmptyStructure]
51
- def data
52
- @data
53
- end
48
+ # @api private
49
+ # @return [EmptyStructure]
50
+ def data
51
+ @data
52
+ end
54
53
 
55
- # @return [Boolean]
56
- # Returns `true` if this resource is loaded. Accessing attributes or
57
- # {#data} on an unloaded resource will trigger a call to {#load}.
58
- def data_loaded?
59
- !!@data
60
- end
54
+ # @return [Boolean]
55
+ # Returns `true` if this resource is loaded. Accessing attributes or
56
+ # {#data} on an unloaded resource will trigger a call to {#load}.
57
+ def data_loaded?
58
+ !!@data
59
+ end
61
60
 
62
- # @!group Associations
63
-
64
- # @example Request syntax with placeholder values
65
- #
66
- # optiongroupoptions = db_engine.option_group_options({
67
- # major_engine_version: "String",
68
- # filters: [
69
- # {
70
- # name: "String", # required
71
- # values: ["String"], # required
72
- # },
73
- # ],
74
- # })
75
- # @param [Hash] options ({})
76
- # @option options [String] :major_engine_version
77
- # If specified, filters the results to include only options for the
78
- # specified major engine version.
79
- # @option options [Array<Types::Filter>] :filters
80
- # This parameter is not currently supported.
81
- # @return [OptionGroupOption::Collection]
82
- def option_group_options(options = {})
83
- batches = Enumerator.new do |y|
84
- options = options.merge(engine_name: @name)
85
- resp = @client.describe_option_group_options(options)
86
- resp.each_page do |page|
87
- batch = []
88
- page.data.option_group_options.each do |o|
89
- batch << OptionGroupOption.new(
90
- name: o.name,
91
- data: o,
92
- client: @client
93
- )
94
- end
95
- y.yield(batch)
61
+ # @!group Associations
62
+
63
+ # @example Request syntax with placeholder values
64
+ #
65
+ # option_group_options = db_engine.option_group_options({
66
+ # major_engine_version: "String",
67
+ # filters: [
68
+ # {
69
+ # name: "String", # required
70
+ # values: ["String"], # required
71
+ # },
72
+ # ],
73
+ # })
74
+ # @param [Hash] options ({})
75
+ # @option options [String] :major_engine_version
76
+ # If specified, filters the results to include only options for the
77
+ # specified major engine version.
78
+ # @option options [Array<Types::Filter>] :filters
79
+ # This parameter is not currently supported.
80
+ # @return [OptionGroupOption::Collection]
81
+ def option_group_options(options = {})
82
+ batches = Enumerator.new do |y|
83
+ options = options.merge(engine_name: @name)
84
+ resp = @client.describe_option_group_options(options)
85
+ resp.each_page do |page|
86
+ batch = []
87
+ page.data.option_group_options.each do |o|
88
+ batch << OptionGroupOption.new(
89
+ name: o.name,
90
+ data: o,
91
+ client: @client
92
+ )
96
93
  end
94
+ y.yield(batch)
97
95
  end
98
- OptionGroupOption::Collection.new(batches)
99
96
  end
97
+ OptionGroupOption::Collection.new(batches)
98
+ end
100
99
 
101
- # @example Request syntax with placeholder values
102
- #
103
- # optiongroups = db_engine.option_groups({
104
- # option_group_name: "String",
105
- # filters: [
106
- # {
107
- # name: "String", # required
108
- # values: ["String"], # required
109
- # },
110
- # ],
111
- # major_engine_version: "String",
112
- # })
113
- # @param [Hash] options ({})
114
- # @option options [String] :option_group_name
115
- # The name of the option group to describe. Cannot be supplied together
116
- # with EngineName or MajorEngineVersion.
117
- # @option options [Array<Types::Filter>] :filters
118
- # This parameter is not currently supported.
119
- # @option options [String] :major_engine_version
120
- # Filters the list of option groups to only include groups associated
121
- # with a specific database engine version. If specified, then EngineName
122
- # must also be specified.
123
- # @return [OptionGroup::Collection]
124
- def option_groups(options = {})
125
- batches = Enumerator.new do |y|
126
- options = options.merge(engine_name: @name)
127
- resp = @client.describe_option_groups(options)
128
- resp.each_page do |page|
129
- batch = []
130
- page.data.option_groups_list.each do |o|
131
- batch << OptionGroup.new(
132
- name: o.option_group_name,
133
- data: o,
134
- client: @client
135
- )
136
- end
137
- y.yield(batch)
100
+ # @example Request syntax with placeholder values
101
+ #
102
+ # option_groups = db_engine.option_groups({
103
+ # option_group_name: "String",
104
+ # filters: [
105
+ # {
106
+ # name: "String", # required
107
+ # values: ["String"], # required
108
+ # },
109
+ # ],
110
+ # major_engine_version: "String",
111
+ # })
112
+ # @param [Hash] options ({})
113
+ # @option options [String] :option_group_name
114
+ # The name of the option group to describe. Cannot be supplied together
115
+ # with EngineName or MajorEngineVersion.
116
+ # @option options [Array<Types::Filter>] :filters
117
+ # This parameter is not currently supported.
118
+ # @option options [String] :major_engine_version
119
+ # Filters the list of option groups to only include groups associated
120
+ # with a specific database engine version. If specified, then EngineName
121
+ # must also be specified.
122
+ # @return [OptionGroup::Collection]
123
+ def option_groups(options = {})
124
+ batches = Enumerator.new do |y|
125
+ options = options.merge(engine_name: @name)
126
+ resp = @client.describe_option_groups(options)
127
+ resp.each_page do |page|
128
+ batch = []
129
+ page.data.option_groups_list.each do |o|
130
+ batch << OptionGroup.new(
131
+ name: o.option_group_name,
132
+ data: o,
133
+ client: @client
134
+ )
138
135
  end
136
+ y.yield(batch)
139
137
  end
140
- OptionGroup::Collection.new(batches)
141
138
  end
139
+ OptionGroup::Collection.new(batches)
140
+ end
142
141
 
143
- # @param [String] version
144
- # @return [DBEngineVersion]
145
- def version(version)
146
- DBEngineVersion.new(
147
- engine_name: @name,
148
- version: version,
149
- client: @client
150
- )
151
- end
142
+ # @param [String] version
143
+ # @return [DBEngineVersion]
144
+ def version(version)
145
+ DBEngineVersion.new(
146
+ engine_name: @name,
147
+ version: version,
148
+ client: @client
149
+ )
150
+ end
152
151
 
153
- # @example Request syntax with placeholder values
154
- #
155
- # versions = db_engine.versions({
156
- # engine_version: "String",
157
- # db_parameter_group_family: "String",
158
- # filters: [
159
- # {
160
- # name: "String", # required
161
- # values: ["String"], # required
162
- # },
163
- # ],
164
- # default_only: false,
165
- # list_supported_character_sets: false,
166
- # list_supported_timezones: false,
167
- # })
168
- # @param [Hash] options ({})
169
- # @option options [String] :engine_version
170
- # The database engine version to return.
171
- #
172
- # Example: `5.1.49`
173
- # @option options [String] :db_parameter_group_family
174
- # The name of a specific DB parameter group family to return details
175
- # for.
176
- #
177
- # Constraints:
178
- #
179
- # * Must be 1 to 255 alphanumeric characters
180
- #
181
- # * First character must be a letter
182
- #
183
- # * Cannot end with a hyphen or contain two consecutive hyphens
184
- # @option options [Array<Types::Filter>] :filters
185
- # Not currently supported.
186
- # @option options [Boolean] :default_only
187
- # Indicates that only the default version of the specified engine or
188
- # engine and major version combination is returned.
189
- # @option options [Boolean] :list_supported_character_sets
190
- # If this parameter is specified and the requested engine supports the
191
- # `CharacterSetName` parameter for `CreateDBInstance`, the response
192
- # includes a list of supported character sets for each engine version.
193
- # @option options [Boolean] :list_supported_timezones
194
- # If this parameter is specified and the requested engine supports the
195
- # `TimeZone` parameter for `CreateDBInstance`, the response includes a
196
- # list of supported time zones for each engine version.
197
- # @return [DBEngineVersion::Collection]
198
- def versions(options = {})
199
- batches = Enumerator.new do |y|
200
- options = options.merge(engine: @name)
201
- resp = @client.describe_db_engine_versions(options)
202
- resp.each_page do |page|
203
- batch = []
204
- page.data.db_engine_versions.each do |d|
205
- batch << DBEngineVersion.new(
206
- engine_name: @name,
207
- version: d.engine_version,
208
- data: d,
209
- client: @client
210
- )
211
- end
212
- y.yield(batch)
152
+ # @example Request syntax with placeholder values
153
+ #
154
+ # versions = db_engine.versions({
155
+ # engine_version: "String",
156
+ # db_parameter_group_family: "String",
157
+ # filters: [
158
+ # {
159
+ # name: "String", # required
160
+ # values: ["String"], # required
161
+ # },
162
+ # ],
163
+ # default_only: false,
164
+ # list_supported_character_sets: false,
165
+ # list_supported_timezones: false,
166
+ # })
167
+ # @param [Hash] options ({})
168
+ # @option options [String] :engine_version
169
+ # The database engine version to return.
170
+ #
171
+ # Example: `5.1.49`
172
+ # @option options [String] :db_parameter_group_family
173
+ # The name of a specific DB parameter group family to return details
174
+ # for.
175
+ #
176
+ # Constraints:
177
+ #
178
+ # * Must be 1 to 255 alphanumeric characters
179
+ #
180
+ # * First character must be a letter
181
+ #
182
+ # * Cannot end with a hyphen or contain two consecutive hyphens
183
+ # @option options [Array<Types::Filter>] :filters
184
+ # Not currently supported.
185
+ # @option options [Boolean] :default_only
186
+ # Indicates that only the default version of the specified engine or
187
+ # engine and major version combination is returned.
188
+ # @option options [Boolean] :list_supported_character_sets
189
+ # If this parameter is specified and the requested engine supports the
190
+ # `CharacterSetName` parameter for `CreateDBInstance`, the response
191
+ # includes a list of supported character sets for each engine version.
192
+ # @option options [Boolean] :list_supported_timezones
193
+ # If this parameter is specified and the requested engine supports the
194
+ # `TimeZone` parameter for `CreateDBInstance`, the response includes a
195
+ # list of supported time zones for each engine version.
196
+ # @return [DBEngineVersion::Collection]
197
+ def versions(options = {})
198
+ batches = Enumerator.new do |y|
199
+ options = options.merge(engine: @name)
200
+ resp = @client.describe_db_engine_versions(options)
201
+ resp.each_page do |page|
202
+ batch = []
203
+ page.data.db_engine_versions.each do |d|
204
+ batch << DBEngineVersion.new(
205
+ engine_name: @name,
206
+ version: d.engine_version,
207
+ data: d,
208
+ client: @client
209
+ )
213
210
  end
211
+ y.yield(batch)
214
212
  end
215
- DBEngineVersion::Collection.new(batches)
216
213
  end
214
+ DBEngineVersion::Collection.new(batches)
215
+ end
217
216
 
218
- # @deprecated
219
- # @api private
220
- def identifiers
221
- { name: @name }
222
- end
223
- deprecated(:identifiers)
224
-
225
- private
226
-
227
- def extract_name(args, options)
228
- value = args[0] || options.delete(:name)
229
- case value
230
- when String then value
231
- when nil then raise ArgumentError, "missing required option :name"
232
- else
233
- msg = "expected :name to be a String, got #{value.class}"
234
- raise ArgumentError, msg
235
- end
217
+ # @deprecated
218
+ # @api private
219
+ def identifiers
220
+ { name: @name }
221
+ end
222
+ deprecated(:identifiers)
223
+
224
+ private
225
+
226
+ def extract_name(args, options)
227
+ value = args[0] || options.delete(:name)
228
+ case value
229
+ when String then value
230
+ when nil then raise ArgumentError, "missing required option :name"
231
+ else
232
+ msg = "expected :name to be a String, got #{value.class}"
233
+ raise ArgumentError, msg
236
234
  end
237
-
238
- class Collection < Aws::Resources::Collection; end
239
235
  end
236
+
237
+ class Collection < Aws::Resources::Collection; end
240
238
  end
241
239
  end
@@ -1,263 +1,262 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module RDS
10
- class DBEngineVersion
8
+ module Aws::RDS
9
+ class DBEngineVersion
11
10
 
12
- extend Aws::Deprecations
11
+ extend Aws::Deprecations
13
12
 
14
- # @overload def initialize(engine_name, version, options = {})
15
- # @param [String] engine_name
16
- # @param [String] version
17
- # @option options [Client] :client
18
- # @overload def initialize(options = {})
19
- # @option options [required, String] :engine_name
20
- # @option options [required, String] :version
21
- # @option options [Client] :client
22
- def initialize(*args)
23
- options = Hash === args.last ? args.pop.dup : {}
24
- @engine_name = extract_engine_name(args, options)
25
- @version = extract_version(args, options)
26
- @data = options.delete(:data)
27
- @client = options.delete(:client) || Client.new(options)
28
- end
13
+ # @overload def initialize(engine_name, version, options = {})
14
+ # @param [String] engine_name
15
+ # @param [String] version
16
+ # @option options [Client] :client
17
+ # @overload def initialize(options = {})
18
+ # @option options [required, String] :engine_name
19
+ # @option options [required, String] :version
20
+ # @option options [Client] :client
21
+ def initialize(*args)
22
+ options = Hash === args.last ? args.pop.dup : {}
23
+ @engine_name = extract_engine_name(args, options)
24
+ @version = extract_version(args, options)
25
+ @data = options.delete(:data)
26
+ @client = options.delete(:client) || Client.new(options)
27
+ end
29
28
 
30
- # @!group Read-Only Attributes
29
+ # @!group Read-Only Attributes
31
30
 
32
- # @return [String]
33
- def engine_name
34
- @engine_name
35
- end
31
+ # @return [String]
32
+ def engine_name
33
+ @engine_name
34
+ end
35
+ alias :engine :engine_name
36
36
 
37
- # @return [String]
38
- def version
39
- @version
40
- end
41
- alias :engine_version :version
37
+ # @return [String]
38
+ def version
39
+ @version
40
+ end
41
+ alias :engine_version :version
42
42
 
43
- # The name of the DB parameter group family for the database engine.
44
- # @return [String]
45
- def db_parameter_group_family
46
- data.db_parameter_group_family
47
- end
43
+ # The name of the DB parameter group family for the database engine.
44
+ # @return [String]
45
+ def db_parameter_group_family
46
+ data.db_parameter_group_family
47
+ end
48
48
 
49
- # The description of the database engine.
50
- # @return [String]
51
- def db_engine_description
52
- data.db_engine_description
53
- end
49
+ # The description of the database engine.
50
+ # @return [String]
51
+ def db_engine_description
52
+ data.db_engine_description
53
+ end
54
54
 
55
- # The description of the database engine version.
56
- # @return [String]
57
- def db_engine_version_description
58
- data.db_engine_version_description
59
- end
55
+ # The description of the database engine version.
56
+ # @return [String]
57
+ def db_engine_version_description
58
+ data.db_engine_version_description
59
+ end
60
60
 
61
- # The default character set for new instances of this engine version, if
62
- # the `CharacterSetName` parameter of the CreateDBInstance API is not
63
- # specified.
64
- # @return [Types::CharacterSet]
65
- def default_character_set
66
- data.default_character_set
67
- end
61
+ # The default character set for new instances of this engine version, if
62
+ # the `CharacterSetName` parameter of the CreateDBInstance API is not
63
+ # specified.
64
+ # @return [Types::CharacterSet]
65
+ def default_character_set
66
+ data.default_character_set
67
+ end
68
68
 
69
- # A list of the character sets supported by this engine for the
70
- # `CharacterSetName` parameter of the `CreateDBInstance` action.
71
- # @return [Array<Types::CharacterSet>]
72
- def supported_character_sets
73
- data.supported_character_sets
74
- end
69
+ # A list of the character sets supported by this engine for the
70
+ # `CharacterSetName` parameter of the `CreateDBInstance` action.
71
+ # @return [Array<Types::CharacterSet>]
72
+ def supported_character_sets
73
+ data.supported_character_sets
74
+ end
75
75
 
76
- # A list of engine versions that this database engine version can be
77
- # upgraded to.
78
- # @return [Array<Types::UpgradeTarget>]
79
- def valid_upgrade_target
80
- data.valid_upgrade_target
81
- end
76
+ # A list of engine versions that this database engine version can be
77
+ # upgraded to.
78
+ # @return [Array<Types::UpgradeTarget>]
79
+ def valid_upgrade_target
80
+ data.valid_upgrade_target
81
+ end
82
82
 
83
- # A list of the time zones supported by this engine for the `Timezone`
84
- # parameter of the `CreateDBInstance` action.
85
- # @return [Array<Types::Timezone>]
86
- def supported_timezones
87
- data.supported_timezones
88
- end
83
+ # A list of the time zones supported by this engine for the `Timezone`
84
+ # parameter of the `CreateDBInstance` action.
85
+ # @return [Array<Types::Timezone>]
86
+ def supported_timezones
87
+ data.supported_timezones
88
+ end
89
89
 
90
- # @!endgroup
90
+ # @!endgroup
91
91
 
92
- # @return [Client]
93
- def client
94
- @client
95
- end
92
+ # @return [Client]
93
+ def client
94
+ @client
95
+ end
96
96
 
97
- # Loads, or reloads {#data} for the current {DBEngineVersion}.
98
- # Returns `self` making it possible to chain methods.
99
- #
100
- # db_engine_version.reload.data
101
- #
102
- # @return [self]
103
- def load
104
- resp = @client.describe_db_engine_versions(
105
- engine: @engine_name,
106
- engine_version: @version
107
- )
108
- @data = resp.dbengineversions[0]
109
- self
110
- end
111
- alias :reload :load
97
+ # Loads, or reloads {#data} for the current {DBEngineVersion}.
98
+ # Returns `self` making it possible to chain methods.
99
+ #
100
+ # db_engine_version.reload.data
101
+ #
102
+ # @return [self]
103
+ def load
104
+ resp = @client.describe_db_engine_versions(
105
+ engine: @engine_name,
106
+ engine_version: @version
107
+ )
108
+ @data = resp.dbengineversions[0]
109
+ self
110
+ end
111
+ alias :reload :load
112
112
 
113
- # @return [Types::DBEngineVersion]
114
- # Returns the data for this {DBEngineVersion}. Calls
115
- # {Client#describe_db_engine_versions} if {#data_loaded?} is `false`.
116
- def data
117
- load unless @data
118
- @data
119
- end
113
+ # @return [Types::DBEngineVersion]
114
+ # Returns the data for this {DBEngineVersion}. Calls
115
+ # {Client#describe_db_engine_versions} if {#data_loaded?} is `false`.
116
+ def data
117
+ load unless @data
118
+ @data
119
+ end
120
120
 
121
- # @return [Boolean]
122
- # Returns `true` if this resource is loaded. Accessing attributes or
123
- # {#data} on an unloaded resource will trigger a call to {#load}.
124
- def data_loaded?
125
- !!@data
126
- end
121
+ # @return [Boolean]
122
+ # Returns `true` if this resource is loaded. Accessing attributes or
123
+ # {#data} on an unloaded resource will trigger a call to {#load}.
124
+ def data_loaded?
125
+ !!@data
126
+ end
127
127
 
128
- # @!group Associations
128
+ # @!group Associations
129
129
 
130
- # @return [DBEngine]
131
- def engine
132
- DBEngine.new(
133
- name: @engine,
134
- client: @client
135
- )
136
- end
130
+ # @return [DBEngine]
131
+ def engine
132
+ DBEngine.new(
133
+ name: @engine,
134
+ client: @client
135
+ )
136
+ end
137
137
 
138
- # @example Request syntax with placeholder values
139
- #
140
- # optiongroupoptions = db_engine_version.option_group_options({
141
- # filters: [
142
- # {
143
- # name: "String", # required
144
- # values: ["String"], # required
145
- # },
146
- # ],
147
- # })
148
- # @param [Hash] options ({})
149
- # @option options [Array<Types::Filter>] :filters
150
- # This parameter is not currently supported.
151
- # @return [OptionGroupOption::Collection]
152
- def option_group_options(options = {})
153
- batches = Enumerator.new do |y|
154
- options = options.merge(
155
- engine_name: @engine,
156
- major_engine_version: @version
157
- )
158
- resp = @client.describe_option_group_options(options)
159
- resp.each_page do |page|
160
- batch = []
161
- page.data.option_group_options.each do |o|
162
- batch << OptionGroupOption.new(
163
- name: o.name,
164
- data: o,
165
- client: @client
166
- )
167
- end
168
- y.yield(batch)
138
+ # @example Request syntax with placeholder values
139
+ #
140
+ # option_group_options = db_engine_version.option_group_options({
141
+ # filters: [
142
+ # {
143
+ # name: "String", # required
144
+ # values: ["String"], # required
145
+ # },
146
+ # ],
147
+ # })
148
+ # @param [Hash] options ({})
149
+ # @option options [Array<Types::Filter>] :filters
150
+ # This parameter is not currently supported.
151
+ # @return [OptionGroupOption::Collection]
152
+ def option_group_options(options = {})
153
+ batches = Enumerator.new do |y|
154
+ options = options.merge(
155
+ engine_name: @engine,
156
+ major_engine_version: @version
157
+ )
158
+ resp = @client.describe_option_group_options(options)
159
+ resp.each_page do |page|
160
+ batch = []
161
+ page.data.option_group_options.each do |o|
162
+ batch << OptionGroupOption.new(
163
+ name: o.name,
164
+ data: o,
165
+ client: @client
166
+ )
169
167
  end
168
+ y.yield(batch)
170
169
  end
171
- OptionGroupOption::Collection.new(batches)
172
170
  end
171
+ OptionGroupOption::Collection.new(batches)
172
+ end
173
173
 
174
- # @example Request syntax with placeholder values
175
- #
176
- # optiongroups = db_engine_version.option_groups({
177
- # option_group_name: "String",
178
- # filters: [
179
- # {
180
- # name: "String", # required
181
- # values: ["String"], # required
182
- # },
183
- # ],
184
- # })
185
- # @param [Hash] options ({})
186
- # @option options [String] :option_group_name
187
- # The name of the option group to describe. Cannot be supplied together
188
- # with EngineName or MajorEngineVersion.
189
- # @option options [Array<Types::Filter>] :filters
190
- # This parameter is not currently supported.
191
- # @return [OptionGroup::Collection]
192
- def option_groups(options = {})
193
- batches = Enumerator.new do |y|
194
- options = options.merge(
195
- engine_name: @engine,
196
- major_engine_version: @version
197
- )
198
- resp = @client.describe_option_groups(options)
199
- resp.each_page do |page|
200
- batch = []
201
- page.data.option_groups_list.each do |o|
202
- batch << OptionGroup.new(
203
- name: o.option_group_name,
204
- data: o,
205
- client: @client
206
- )
207
- end
208
- y.yield(batch)
174
+ # @example Request syntax with placeholder values
175
+ #
176
+ # option_groups = db_engine_version.option_groups({
177
+ # option_group_name: "String",
178
+ # filters: [
179
+ # {
180
+ # name: "String", # required
181
+ # values: ["String"], # required
182
+ # },
183
+ # ],
184
+ # })
185
+ # @param [Hash] options ({})
186
+ # @option options [String] :option_group_name
187
+ # The name of the option group to describe. Cannot be supplied together
188
+ # with EngineName or MajorEngineVersion.
189
+ # @option options [Array<Types::Filter>] :filters
190
+ # This parameter is not currently supported.
191
+ # @return [OptionGroup::Collection]
192
+ def option_groups(options = {})
193
+ batches = Enumerator.new do |y|
194
+ options = options.merge(
195
+ engine_name: @engine,
196
+ major_engine_version: @version
197
+ )
198
+ resp = @client.describe_option_groups(options)
199
+ resp.each_page do |page|
200
+ batch = []
201
+ page.data.option_groups_list.each do |o|
202
+ batch << OptionGroup.new(
203
+ name: o.option_group_name,
204
+ data: o,
205
+ client: @client
206
+ )
209
207
  end
208
+ y.yield(batch)
210
209
  end
211
- OptionGroup::Collection.new(batches)
212
210
  end
211
+ OptionGroup::Collection.new(batches)
212
+ end
213
213
 
214
- # @return [DBParameterGroupFamily, nil]
215
- def parameter_group_family
216
- if data.db_parameter_group_family
217
- DBParameterGroupFamily.new(
218
- name: data.db_parameter_group_family,
219
- client: @client
220
- )
221
- else
222
- nil
223
- end
214
+ # @return [DBParameterGroupFamily, nil]
215
+ def parameter_group_family
216
+ if data.db_parameter_group_family
217
+ DBParameterGroupFamily.new(
218
+ name: data.db_parameter_group_family,
219
+ client: @client
220
+ )
221
+ else
222
+ nil
224
223
  end
224
+ end
225
225
 
226
- # @deprecated
227
- # @api private
228
- def identifiers
229
- {
230
- engine_name: @engine_name,
231
- version: @version
232
- }
233
- end
234
- deprecated(:identifiers)
226
+ # @deprecated
227
+ # @api private
228
+ def identifiers
229
+ {
230
+ engine_name: @engine_name,
231
+ version: @version
232
+ }
233
+ end
234
+ deprecated(:identifiers)
235
235
 
236
- private
236
+ private
237
237
 
238
- def extract_engine_name(args, options)
239
- value = args[0] || options.delete(:engine_name)
240
- case value
241
- when String then value
242
- when nil then raise ArgumentError, "missing required option :engine_name"
243
- else
244
- msg = "expected :engine_name to be a String, got #{value.class}"
245
- raise ArgumentError, msg
246
- end
238
+ def extract_engine_name(args, options)
239
+ value = args[0] || options.delete(:engine_name)
240
+ case value
241
+ when String then value
242
+ when nil then raise ArgumentError, "missing required option :engine_name"
243
+ else
244
+ msg = "expected :engine_name to be a String, got #{value.class}"
245
+ raise ArgumentError, msg
247
246
  end
247
+ end
248
248
 
249
- def extract_version(args, options)
250
- value = args[1] || options.delete(:version)
251
- case value
252
- when String then value
253
- when nil then raise ArgumentError, "missing required option :version"
254
- else
255
- msg = "expected :version to be a String, got #{value.class}"
256
- raise ArgumentError, msg
257
- end
249
+ def extract_version(args, options)
250
+ value = args[1] || options.delete(:version)
251
+ case value
252
+ when String then value
253
+ when nil then raise ArgumentError, "missing required option :version"
254
+ else
255
+ msg = "expected :version to be a String, got #{value.class}"
256
+ raise ArgumentError, msg
258
257
  end
259
-
260
- class Collection < Aws::Resources::Collection; end
261
258
  end
259
+
260
+ class Collection < Aws::Resources::Collection; end
262
261
  end
263
262
  end