Class: OCI::Jms::Models::FleetAdvancedFeatureConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/jms/models/fleet_advanced_feature_configuration.rb

Overview

Metadata for the advanced features in the Fleet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ FleetAdvancedFeatureConfiguration

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
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
# File 'lib/oci/jms/models/fleet_advanced_feature_configuration.rb', line 97

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.analytic_namespace = attributes[:'analyticNamespace'] if attributes[:'analyticNamespace']

  raise 'You cannot provide both :analyticNamespace and :analytic_namespace' if attributes.key?(:'analyticNamespace') && attributes.key?(:'analytic_namespace')

  self.analytic_namespace = attributes[:'analytic_namespace'] if attributes[:'analytic_namespace']

  self.analytic_bucket_name = attributes[:'analyticBucketName'] if attributes[:'analyticBucketName']

  raise 'You cannot provide both :analyticBucketName and :analytic_bucket_name' if attributes.key?(:'analyticBucketName') && attributes.key?(:'analytic_bucket_name')

  self.analytic_bucket_name = attributes[:'analytic_bucket_name'] if attributes[:'analytic_bucket_name']

  self.lcm = attributes[:'lcm'] if attributes[:'lcm']

  self.crypto_event_analysis = attributes[:'cryptoEventAnalysis'] if attributes[:'cryptoEventAnalysis']

  raise 'You cannot provide both :cryptoEventAnalysis and :crypto_event_analysis' if attributes.key?(:'cryptoEventAnalysis') && attributes.key?(:'crypto_event_analysis')

  self.crypto_event_analysis = attributes[:'crypto_event_analysis'] if attributes[:'crypto_event_analysis']

  self.advanced_usage_tracking = attributes[:'advancedUsageTracking'] if attributes[:'advancedUsageTracking']

  raise 'You cannot provide both :advancedUsageTracking and :advanced_usage_tracking' if attributes.key?(:'advancedUsageTracking') && attributes.key?(:'advanced_usage_tracking')

  self.advanced_usage_tracking = attributes[:'advanced_usage_tracking'] if attributes[:'advanced_usage_tracking']

  self.jfr_recording = attributes[:'jfrRecording'] if attributes[:'jfrRecording']

  raise 'You cannot provide both :jfrRecording and :jfr_recording' if attributes.key?(:'jfrRecording') && attributes.key?(:'jfr_recording')

  self.jfr_recording = attributes[:'jfr_recording'] if attributes[:'jfr_recording']

  self.performance_tuning_analysis = attributes[:'performanceTuningAnalysis'] if attributes[:'performanceTuningAnalysis']

  raise 'You cannot provide both :performanceTuningAnalysis and :performance_tuning_analysis' if attributes.key?(:'performanceTuningAnalysis') && attributes.key?(:'performance_tuning_analysis')

  self.performance_tuning_analysis = attributes[:'performance_tuning_analysis'] if attributes[:'performance_tuning_analysis']

  self.java_migration_analysis = attributes[:'javaMigrationAnalysis'] if attributes[:'javaMigrationAnalysis']

  raise 'You cannot provide both :javaMigrationAnalysis and :java_migration_analysis' if attributes.key?(:'javaMigrationAnalysis') && attributes.key?(:'java_migration_analysis')

  self.java_migration_analysis = attributes[:'java_migration_analysis'] if attributes[:'java_migration_analysis']

  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']
end

Instance Attribute Details

#advanced_usage_trackingOCI::Jms::Models::AdvancedUsageTracking

This attribute is required.



29
30
31
# File 'lib/oci/jms/models/fleet_advanced_feature_configuration.rb', line 29

def advanced_usage_tracking
  @advanced_usage_tracking
end

#analytic_bucket_nameString

[Required] Bucket name required to store JFR and related data.

Returns:

  • (String)


17
18
19
# File 'lib/oci/jms/models/fleet_advanced_feature_configuration.rb', line 17

def analytic_bucket_name
  @analytic_bucket_name
end

#analytic_namespaceString

[Required] Namespace for the Fleet advanced feature.

Returns:

  • (String)


13
14
15
# File 'lib/oci/jms/models/fleet_advanced_feature_configuration.rb', line 13

def analytic_namespace
  @analytic_namespace
end

#crypto_event_analysisOCI::Jms::Models::CryptoEventAnalysis

This attribute is required.



25
26
27
# File 'lib/oci/jms/models/fleet_advanced_feature_configuration.rb', line 25

def crypto_event_analysis
  @crypto_event_analysis
end

#java_migration_analysisOCI::Jms::Models::JavaMigrationAnalysis

This attribute is required.



41
42
43
# File 'lib/oci/jms/models/fleet_advanced_feature_configuration.rb', line 41

def java_migration_analysis
  @java_migration_analysis
end

#jfr_recordingOCI::Jms::Models::JfrRecording

This attribute is required.



33
34
35
# File 'lib/oci/jms/models/fleet_advanced_feature_configuration.rb', line 33

def jfr_recording
  @jfr_recording
end

#lcmOCI::Jms::Models::Lcm

This attribute is required.



21
22
23
# File 'lib/oci/jms/models/fleet_advanced_feature_configuration.rb', line 21

def lcm
  @lcm
end

#performance_tuning_analysisOCI::Jms::Models::PerformanceTuningAnalysis

This attribute is required.



37
38
39
# File 'lib/oci/jms/models/fleet_advanced_feature_configuration.rb', line 37

def performance_tuning_analysis
  @performance_tuning_analysis
end

#time_last_modifiedDateTime

[Required] The date and time of the last modification to the Fleet Agent Configuration (formatted according to RFC3339).

Returns:

  • (DateTime)


46
47
48
# File 'lib/oci/jms/models/fleet_advanced_feature_configuration.rb', line 46

def time_last_modified
  @time_last_modified
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/oci/jms/models/fleet_advanced_feature_configuration.rb', line 49

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'analytic_namespace': :'analyticNamespace',
    'analytic_bucket_name': :'analyticBucketName',
    'lcm': :'lcm',
    'crypto_event_analysis': :'cryptoEventAnalysis',
    'advanced_usage_tracking': :'advancedUsageTracking',
    'jfr_recording': :'jfrRecording',
    'performance_tuning_analysis': :'performanceTuningAnalysis',
    'java_migration_analysis': :'javaMigrationAnalysis',
    'time_last_modified': :'timeLastModified'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/oci/jms/models/fleet_advanced_feature_configuration.rb', line 66

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'analytic_namespace': :'String',
    'analytic_bucket_name': :'String',
    'lcm': :'OCI::Jms::Models::Lcm',
    'crypto_event_analysis': :'OCI::Jms::Models::CryptoEventAnalysis',
    'advanced_usage_tracking': :'OCI::Jms::Models::AdvancedUsageTracking',
    'jfr_recording': :'OCI::Jms::Models::JfrRecording',
    'performance_tuning_analysis': :'OCI::Jms::Models::PerformanceTuningAnalysis',
    'java_migration_analysis': :'OCI::Jms::Models::JavaMigrationAnalysis',
    'time_last_modified': :'DateTime'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



161
162
163
164
165
166
167
168
169
170
171
172
173
174
# File 'lib/oci/jms/models/fleet_advanced_feature_configuration.rb', line 161

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    analytic_namespace == other.analytic_namespace &&
    analytic_bucket_name == other.analytic_bucket_name &&
    lcm == other.lcm &&
    crypto_event_analysis == other.crypto_event_analysis &&
    advanced_usage_tracking == other.advanced_usage_tracking &&
    jfr_recording == other.jfr_recording &&
    performance_tuning_analysis == other.performance_tuning_analysis &&
    java_migration_analysis == other.java_migration_analysis &&
    time_last_modified == other.time_last_modified
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
# File 'lib/oci/jms/models/fleet_advanced_feature_configuration.rb', line 199

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

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


179
180
181
# File 'lib/oci/jms/models/fleet_advanced_feature_configuration.rb', line 179

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



188
189
190
# File 'lib/oci/jms/models/fleet_advanced_feature_configuration.rb', line 188

def hash
  [analytic_namespace, analytic_bucket_name, lcm, crypto_event_analysis, advanced_usage_tracking, jfr_recording, performance_tuning_analysis, java_migration_analysis, time_last_modified].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



232
233
234
235
236
237
238
239
240
241
# File 'lib/oci/jms/models/fleet_advanced_feature_configuration.rb', line 232

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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



226
227
228
# File 'lib/oci/jms/models/fleet_advanced_feature_configuration.rb', line 226

def to_s
  to_hash.to_s
end