Class: OCI::Jms::Models::UpdateExportSettingDetails
- Inherits:
-
Object
- Object
- OCI::Jms::Models::UpdateExportSettingDetails
- Defined in:
- lib/oci/jms/models/update_export_setting_details.rb
Overview
Attributes to update an export setting.
Constant Summary collapse
- EXPORT_DURATION_ENUM =
[ EXPORT_DURATION_LAST_30_DAYS = 'LAST_30_DAYS'.freeze, EXPORT_DURATION_LAST_60_DAYS = 'LAST_60_DAYS'.freeze, EXPORT_DURATION_LAST_90_DAYS = 'LAST_90_DAYS'.freeze ].freeze
- EXPORT_RESOURCES_ENUM =
[ EXPORT_RESOURCES_MANAGED_INSTANCE = 'MANAGED_INSTANCE'.freeze, EXPORT_RESOURCES_MANAGED_INSTANCE_PLUS_JAVA_RUNTIME = 'MANAGED_INSTANCE_PLUS_JAVA_RUNTIME'.freeze, EXPORT_RESOURCES_MANAGED_INSTANCE_PLUS_JAVA_RUNTIME_PLUS_APPLICATION = 'MANAGED_INSTANCE_PLUS_JAVA_RUNTIME_PLUS_APPLICATION'.freeze ].freeze
- EXPORT_FREQUENCY_ENUM =
[ EXPORT_FREQUENCY_DAILY = 'DAILY'.freeze, EXPORT_FREQUENCY_WEEKLY = 'WEEKLY'.freeze, EXPORT_FREQUENCY_MONTHLY = 'MONTHLY'.freeze ].freeze
Instance Attribute Summary collapse
- #export_data_filters ⇒ OCI::Jms::Models::ExportDataFilters
-
#export_duration ⇒ String
The duration of data to be exported for fleets.
-
#export_frequency ⇒ String
Schedule at which data will be exported.
-
#export_resources ⇒ String
Resource to export data associated from the fleets.
-
#is_cross_region_acknowledged ⇒ BOOLEAN
Acknowledgement for cross region target bucket configuration.
-
#is_enabled ⇒ BOOLEAN
[Required] ExportSetting flag to store enabled or disabled status.
-
#target_bucket_name ⇒ String
The name of the bucket where data will be exported.
-
#target_bucket_namespace ⇒ String
The namespace of the bucket where data will be exported.
-
#target_bucket_region ⇒ String
The id of the region of the target bucket.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ UpdateExportSettingDetails
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ UpdateExportSettingDetails
Initializes the object
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 |
# File 'lib/oci/jms/models/update_export_setting_details.rb', line 120 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.export_duration = attributes[:'exportDuration'] if attributes[:'exportDuration'] raise 'You cannot provide both :exportDuration and :export_duration' if attributes.key?(:'exportDuration') && attributes.key?(:'export_duration') self.export_duration = attributes[:'export_duration'] if attributes[:'export_duration'] self.export_resources = attributes[:'exportResources'] if attributes[:'exportResources'] raise 'You cannot provide both :exportResources and :export_resources' if attributes.key?(:'exportResources') && attributes.key?(:'export_resources') self.export_resources = attributes[:'export_resources'] if attributes[:'export_resources'] self.is_cross_region_acknowledged = attributes[:'isCrossRegionAcknowledged'] unless attributes[:'isCrossRegionAcknowledged'].nil? self.is_cross_region_acknowledged = false if is_cross_region_acknowledged.nil? && !attributes.key?(:'isCrossRegionAcknowledged') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :isCrossRegionAcknowledged and :is_cross_region_acknowledged' if attributes.key?(:'isCrossRegionAcknowledged') && attributes.key?(:'is_cross_region_acknowledged') self.is_cross_region_acknowledged = attributes[:'is_cross_region_acknowledged'] unless attributes[:'is_cross_region_acknowledged'].nil? self.is_cross_region_acknowledged = false if is_cross_region_acknowledged.nil? && !attributes.key?(:'isCrossRegionAcknowledged') && !attributes.key?(:'is_cross_region_acknowledged') # rubocop:disable Style/StringLiterals self.target_bucket_name = attributes[:'targetBucketName'] if attributes[:'targetBucketName'] raise 'You cannot provide both :targetBucketName and :target_bucket_name' if attributes.key?(:'targetBucketName') && attributes.key?(:'target_bucket_name') self.target_bucket_name = attributes[:'target_bucket_name'] if attributes[:'target_bucket_name'] self.target_bucket_namespace = attributes[:'targetBucketNamespace'] if attributes[:'targetBucketNamespace'] raise 'You cannot provide both :targetBucketNamespace and :target_bucket_namespace' if attributes.key?(:'targetBucketNamespace') && attributes.key?(:'target_bucket_namespace') self.target_bucket_namespace = attributes[:'target_bucket_namespace'] if attributes[:'target_bucket_namespace'] self.target_bucket_region = attributes[:'targetBucketRegion'] if attributes[:'targetBucketRegion'] raise 'You cannot provide both :targetBucketRegion and :target_bucket_region' if attributes.key?(:'targetBucketRegion') && attributes.key?(:'target_bucket_region') self.target_bucket_region = attributes[:'target_bucket_region'] if attributes[:'target_bucket_region'] self.export_frequency = attributes[:'exportFrequency'] if attributes[:'exportFrequency'] raise 'You cannot provide both :exportFrequency and :export_frequency' if attributes.key?(:'exportFrequency') && attributes.key?(:'export_frequency') self.export_frequency = attributes[:'export_frequency'] if attributes[:'export_frequency'] self.is_enabled = attributes[:'isEnabled'] unless attributes[:'isEnabled'].nil? self.is_enabled = false if is_enabled.nil? && !attributes.key?(:'isEnabled') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :isEnabled and :is_enabled' if attributes.key?(:'isEnabled') && attributes.key?(:'is_enabled') self.is_enabled = attributes[:'is_enabled'] unless attributes[:'is_enabled'].nil? self.is_enabled = false if is_enabled.nil? && !attributes.key?(:'isEnabled') && !attributes.key?(:'is_enabled') # rubocop:disable Style/StringLiterals self.export_data_filters = attributes[:'exportDataFilters'] if attributes[:'exportDataFilters'] raise 'You cannot provide both :exportDataFilters and :export_data_filters' if attributes.key?(:'exportDataFilters') && attributes.key?(:'export_data_filters') self.export_data_filters = attributes[:'export_data_filters'] if attributes[:'export_data_filters'] end |
Instance Attribute Details
#export_data_filters ⇒ OCI::Jms::Models::ExportDataFilters
69 70 71 |
# File 'lib/oci/jms/models/update_export_setting_details.rb', line 69 def export_data_filters @export_data_filters end |
#export_duration ⇒ String
The duration of data to be exported for fleets.
32 33 34 |
# File 'lib/oci/jms/models/update_export_setting_details.rb', line 32 def export_duration @export_duration end |
#export_frequency ⇒ String
Schedule at which data will be exported.
62 63 64 |
# File 'lib/oci/jms/models/update_export_setting_details.rb', line 62 def export_frequency @export_frequency end |
#export_resources ⇒ String
Resource to export data associated from the fleets.
37 38 39 |
# File 'lib/oci/jms/models/update_export_setting_details.rb', line 37 def export_resources @export_resources end |
#is_cross_region_acknowledged ⇒ BOOLEAN
Acknowledgement for cross region target bucket configuration.
42 43 44 |
# File 'lib/oci/jms/models/update_export_setting_details.rb', line 42 def is_cross_region_acknowledged @is_cross_region_acknowledged end |
#is_enabled ⇒ BOOLEAN
[Required] ExportSetting flag to store enabled or disabled status.
66 67 68 |
# File 'lib/oci/jms/models/update_export_setting_details.rb', line 66 def is_enabled @is_enabled end |
#target_bucket_name ⇒ String
The name of the bucket where data will be exported.
47 48 49 |
# File 'lib/oci/jms/models/update_export_setting_details.rb', line 47 def target_bucket_name @target_bucket_name end |
#target_bucket_namespace ⇒ String
The namespace of the bucket where data will be exported.
52 53 54 |
# File 'lib/oci/jms/models/update_export_setting_details.rb', line 52 def target_bucket_namespace @target_bucket_namespace end |
#target_bucket_region ⇒ String
The id of the region of the target bucket.
57 58 59 |
# File 'lib/oci/jms/models/update_export_setting_details.rb', line 57 def target_bucket_region @target_bucket_region end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/oci/jms/models/update_export_setting_details.rb', line 72 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'export_duration': :'exportDuration', 'export_resources': :'exportResources', 'is_cross_region_acknowledged': :'isCrossRegionAcknowledged', 'target_bucket_name': :'targetBucketName', 'target_bucket_namespace': :'targetBucketNamespace', 'target_bucket_region': :'targetBucketRegion', 'export_frequency': :'exportFrequency', 'is_enabled': :'isEnabled', 'export_data_filters': :'exportDataFilters' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/oci/jms/models/update_export_setting_details.rb', line 89 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'export_duration': :'String', 'export_resources': :'String', 'is_cross_region_acknowledged': :'BOOLEAN', 'target_bucket_name': :'String', 'target_bucket_namespace': :'String', 'target_bucket_region': :'String', 'export_frequency': :'String', 'is_enabled': :'BOOLEAN', 'export_data_filters': :'OCI::Jms::Models::ExportDataFilters' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
216 217 218 219 220 221 222 223 224 225 226 227 228 229 |
# File 'lib/oci/jms/models/update_export_setting_details.rb', line 216 def ==(other) return true if equal?(other) self.class == other.class && export_duration == other.export_duration && export_resources == other.export_resources && is_cross_region_acknowledged == other.is_cross_region_acknowledged && target_bucket_name == other.target_bucket_name && target_bucket_namespace == other.target_bucket_namespace && target_bucket_region == other.target_bucket_region && export_frequency == other.export_frequency && is_enabled == other.is_enabled && export_data_filters == other.export_data_filters end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 |
# File 'lib/oci/jms/models/update_export_setting_details.rb', line 254 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(other) ⇒ Boolean
234 235 236 |
# File 'lib/oci/jms/models/update_export_setting_details.rb', line 234 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
243 244 245 |
# File 'lib/oci/jms/models/update_export_setting_details.rb', line 243 def hash [export_duration, export_resources, is_cross_region_acknowledged, target_bucket_name, target_bucket_namespace, target_bucket_region, export_frequency, is_enabled, export_data_filters].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
287 288 289 290 291 292 293 294 295 296 |
# File 'lib/oci/jms/models/update_export_setting_details.rb', line 287 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
281 282 283 |
# File 'lib/oci/jms/models/update_export_setting_details.rb', line 281 def to_s to_hash.to_s end |