Class: OCI::Jms::Models::ExportSetting
- Inherits:
-
Object
- Object
- OCI::Jms::Models::ExportSetting
- Defined in:
- lib/oci/jms/models/export_setting.rb
Overview
Export settings of a fleet.
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, EXPORT_DURATION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.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, EXPORT_RESOURCES_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- EXPORT_FREQUENCY_ENUM =
[ EXPORT_FREQUENCY_DAILY = 'DAILY'.freeze, EXPORT_FREQUENCY_WEEKLY = 'WEEKLY'.freeze, EXPORT_FREQUENCY_MONTHLY = 'MONTHLY'.freeze, EXPORT_FREQUENCY_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.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.
-
#export_setting_key ⇒ String
The internal identifier of the export setting.
-
#fleet_id ⇒ String
The OCID of the fleet.
-
#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.
-
#time_created ⇒ DateTime
The creation date and time of the export setting (formatted according to RFC3339).
-
#time_last_modified ⇒ DateTime
The update date and time of the export setting (formatted according to RFC3339).
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 = {}) ⇒ ExportSetting
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 = {}) ⇒ ExportSetting
Initializes the object
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 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 |
# File 'lib/oci/jms/models/export_setting.rb', line 157 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_setting_key = attributes[:'exportSettingKey'] if attributes[:'exportSettingKey'] raise 'You cannot provide both :exportSettingKey and :export_setting_key' if attributes.key?(:'exportSettingKey') && attributes.key?(:'export_setting_key') self.export_setting_key = attributes[:'export_setting_key'] if attributes[:'export_setting_key'] self.fleet_id = attributes[:'fleetId'] if attributes[:'fleetId'] raise 'You cannot provide both :fleetId and :fleet_id' if attributes.key?(:'fleetId') && attributes.key?(:'fleet_id') self.fleet_id = attributes[:'fleet_id'] if attributes[:'fleet_id'] 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.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated'] raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created') self.time_created = attributes[:'time_created'] if attributes[:'time_created'] self.time_last_modified = attributes[:'timeLastModified'] if attributes[:'timeLastModified'] raise 'You cannot provide both :timeLastModified and :time_last_modified' if attributes.key?(:'timeLastModified') && attributes.key?(:'time_last_modified') self.time_last_modified = attributes[:'time_last_modified'] if attributes[:'time_last_modified'] 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
94 95 96 |
# File 'lib/oci/jms/models/export_setting.rb', line 94 def export_data_filters @export_data_filters end |
#export_duration ⇒ String
The duration of data to be exported for fleets.
47 48 49 |
# File 'lib/oci/jms/models/export_setting.rb', line 47 def export_duration @export_duration end |
#export_frequency ⇒ String
Schedule at which data will be exported.
77 78 79 |
# File 'lib/oci/jms/models/export_setting.rb', line 77 def export_frequency @export_frequency end |
#export_resources ⇒ String
Resource to export data associated from the fleets.
52 53 54 |
# File 'lib/oci/jms/models/export_setting.rb', line 52 def export_resources @export_resources end |
#export_setting_key ⇒ String
The internal identifier of the export setting.
37 38 39 |
# File 'lib/oci/jms/models/export_setting.rb', line 37 def export_setting_key @export_setting_key end |
#fleet_id ⇒ String
The OCID of the fleet.
42 43 44 |
# File 'lib/oci/jms/models/export_setting.rb', line 42 def fleet_id @fleet_id end |
#is_cross_region_acknowledged ⇒ BOOLEAN
Acknowledgement for cross region target bucket configuration.
57 58 59 |
# File 'lib/oci/jms/models/export_setting.rb', line 57 def is_cross_region_acknowledged @is_cross_region_acknowledged end |
#is_enabled ⇒ BOOLEAN
[Required] ExportSetting flag to store enabled or disabled status.
81 82 83 |
# File 'lib/oci/jms/models/export_setting.rb', line 81 def is_enabled @is_enabled end |
#target_bucket_name ⇒ String
The name of the bucket where data will be exported.
62 63 64 |
# File 'lib/oci/jms/models/export_setting.rb', line 62 def target_bucket_name @target_bucket_name end |
#target_bucket_namespace ⇒ String
The namespace of the bucket where data will be exported.
67 68 69 |
# File 'lib/oci/jms/models/export_setting.rb', line 67 def target_bucket_namespace @target_bucket_namespace end |
#target_bucket_region ⇒ String
The id of the region of the target bucket.
72 73 74 |
# File 'lib/oci/jms/models/export_setting.rb', line 72 def target_bucket_region @target_bucket_region end |
#time_created ⇒ DateTime
The creation date and time of the export setting (formatted according to RFC3339).
86 87 88 |
# File 'lib/oci/jms/models/export_setting.rb', line 86 def time_created @time_created end |
#time_last_modified ⇒ DateTime
The update date and time of the export setting (formatted according to RFC3339).
91 92 93 |
# File 'lib/oci/jms/models/export_setting.rb', line 91 def time_last_modified @time_last_modified end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/oci/jms/models/export_setting.rb', line 97 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'export_setting_key': :'exportSettingKey', 'fleet_id': :'fleetId', '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', 'time_created': :'timeCreated', 'time_last_modified': :'timeLastModified', 'export_data_filters': :'exportDataFilters' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/oci/jms/models/export_setting.rb', line 118 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'export_setting_key': :'String', 'fleet_id': :'String', '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', 'time_created': :'DateTime', 'time_last_modified': :'DateTime', 'export_data_filters': :'OCI::Jms::Models::ExportDataFilters' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 |
# File 'lib/oci/jms/models/export_setting.rb', line 292 def ==(other) return true if equal?(other) self.class == other.class && export_setting_key == other.export_setting_key && fleet_id == other.fleet_id && 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 && time_created == other.time_created && time_last_modified == other.time_last_modified && export_data_filters == other.export_data_filters end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 |
# File 'lib/oci/jms/models/export_setting.rb', line 334 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
314 315 316 |
# File 'lib/oci/jms/models/export_setting.rb', line 314 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
323 324 325 |
# File 'lib/oci/jms/models/export_setting.rb', line 323 def hash [export_setting_key, fleet_id, export_duration, export_resources, is_cross_region_acknowledged, target_bucket_name, target_bucket_namespace, target_bucket_region, export_frequency, is_enabled, time_created, time_last_modified, export_data_filters].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
367 368 369 370 371 372 373 374 375 376 |
# File 'lib/oci/jms/models/export_setting.rb', line 367 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
361 362 363 |
# File 'lib/oci/jms/models/export_setting.rb', line 361 def to_s to_hash.to_s end |