Class: Aws::RDS::DBEngine
- Inherits:
-
Object
- Object
- Aws::RDS::DBEngine
- Extended by:
- Deprecations
- Defined in:
- lib/aws-sdk-rds/db_engine.rb
Defined Under Namespace
Classes: Collection
Read-Only Attributes collapse
Associations collapse
- #identifiers ⇒ Object deprecated private Deprecated.
- #option_group_options(options = {}) ⇒ OptionGroupOption::Collection
- #option_groups(options = {}) ⇒ OptionGroup::Collection
- #version(version) ⇒ DBEngineVersion
- #versions(options = {}) ⇒ DBEngineVersion::Collection
Instance Method Summary collapse
- #client ⇒ Client
- #data ⇒ EmptyStructure private
-
#data_loaded? ⇒ Boolean
Returns ‘true` if this resource is loaded.
-
#initialize(*args) ⇒ DBEngine
constructor
A new instance of DBEngine.
- #load ⇒ Object (also: #reload) private
Constructor Details
#initialize(name, options = {}) ⇒ DBEngine #initialize(options = {}) ⇒ DBEngine
Returns a new instance of DBEngine.
19 20 21 22 23 24 |
# File 'lib/aws-sdk-rds/db_engine.rb', line 19 def initialize(*args) = Hash === args.last ? args.pop.dup : {} @name = extract_name(args, ) @data = Aws::EmptyStructure.new @client = .delete(:client) || Client.new() end |
Instance Method Details
#data ⇒ EmptyStructure
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
50 51 52 |
# File 'lib/aws-sdk-rds/db_engine.rb', line 50 def data @data end |
#data_loaded? ⇒ Boolean
57 58 59 |
# File 'lib/aws-sdk-rds/db_engine.rb', line 57 def data_loaded? !!@data end |
#identifiers ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Deprecated.
219 220 221 |
# File 'lib/aws-sdk-rds/db_engine.rb', line 219 def identifiers { name: @name } end |
#load ⇒ Object Also known as: reload
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
42 43 44 45 |
# File 'lib/aws-sdk-rds/db_engine.rb', line 42 def load msg = "#load is not implemented, data only available via enumeration" raise NotImplementedError, msg end |
#name ⇒ String
29 30 31 |
# File 'lib/aws-sdk-rds/db_engine.rb', line 29 def name @name end |
#option_group_options(options = {}) ⇒ OptionGroupOption::Collection
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/aws-sdk-rds/db_engine.rb', line 81 def ( = {}) batches = Enumerator.new do |y| = .merge(engine_name: @name) resp = @client.() resp.each_page do |page| batch = [] page.data..each do |o| batch << OptionGroupOption.new( name: o.name, data: o, client: @client ) end y.yield(batch) end end OptionGroupOption::Collection.new(batches) end |
#option_groups(options = {}) ⇒ OptionGroup::Collection
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/aws-sdk-rds/db_engine.rb', line 123 def option_groups( = {}) batches = Enumerator.new do |y| = .merge(engine_name: @name) resp = @client.describe_option_groups() resp.each_page do |page| batch = [] page.data.option_groups_list.each do |o| batch << OptionGroup.new( name: o.option_group_name, data: o, client: @client ) end y.yield(batch) end end OptionGroup::Collection.new(batches) end |
#version(version) ⇒ DBEngineVersion
144 145 146 147 148 149 150 |
# File 'lib/aws-sdk-rds/db_engine.rb', line 144 def version(version) DBEngineVersion.new( engine_name: @name, version: version, client: @client ) end |
#versions(options = {}) ⇒ DBEngineVersion::Collection
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
# File 'lib/aws-sdk-rds/db_engine.rb', line 197 def versions( = {}) batches = Enumerator.new do |y| = .merge(engine: @name) resp = @client.describe_db_engine_versions() resp.each_page do |page| batch = [] page.data.db_engine_versions.each do |d| batch << DBEngineVersion.new( engine_name: @name, version: d.engine_version, data: d, client: @client ) end y.yield(batch) end end DBEngineVersion::Collection.new(batches) end |