Class: OCI::Jms::Models::UpdateFleetAdvancedFeatureConfigurationDetails

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

Overview

Details object containing advanced feature configurations to be updated. Ensure that the namespace and bucket storage are created prior to turning on the JfrRecording or CryptoEventAnalysis feature.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ UpdateFleetAdvancedFeatureConfigurationDetails

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



85
86
87
88
89
90
91
92
93
94
95
96
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
# File 'lib/oci/jms/models/update_fleet_advanced_feature_configuration_details.rb', line 85

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

Instance Attribute Details

#advanced_usage_trackingOCI::Jms::Models::AdvancedUsageTracking



28
29
30
# File 'lib/oci/jms/models/update_fleet_advanced_feature_configuration_details.rb', line 28

def advanced_usage_tracking
  @advanced_usage_tracking
end

#analytic_bucket_nameString

Bucket name required to store JFR and related data.

Returns:

  • (String)


19
20
21
# File 'lib/oci/jms/models/update_fleet_advanced_feature_configuration_details.rb', line 19

def analytic_bucket_name
  @analytic_bucket_name
end

#analytic_namespaceString

Namespace for the Fleet advanced feature.

Returns:

  • (String)


15
16
17
# File 'lib/oci/jms/models/update_fleet_advanced_feature_configuration_details.rb', line 15

def analytic_namespace
  @analytic_namespace
end

#crypto_event_analysisOCI::Jms::Models::CryptoEventAnalysis



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

def crypto_event_analysis
  @crypto_event_analysis
end

#java_migration_analysisOCI::Jms::Models::JavaMigrationAnalysis



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

def java_migration_analysis
  @java_migration_analysis
end

#jfr_recordingOCI::Jms::Models::JfrRecording



31
32
33
# File 'lib/oci/jms/models/update_fleet_advanced_feature_configuration_details.rb', line 31

def jfr_recording
  @jfr_recording
end

#lcmOCI::Jms::Models::Lcm



22
23
24
# File 'lib/oci/jms/models/update_fleet_advanced_feature_configuration_details.rb', line 22

def lcm
  @lcm
end

#performance_tuning_analysisOCI::Jms::Models::PerformanceTuningAnalysis



34
35
36
# File 'lib/oci/jms/models/update_fleet_advanced_feature_configuration_details.rb', line 34

def performance_tuning_analysis
  @performance_tuning_analysis
end

Class Method Details

.attribute_mapObject

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



40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/oci/jms/models/update_fleet_advanced_feature_configuration_details.rb', line 40

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'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/oci/jms/models/update_fleet_advanced_feature_configuration_details.rb', line 56

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'
    # 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



143
144
145
146
147
148
149
150
151
152
153
154
155
# File 'lib/oci/jms/models/update_fleet_advanced_feature_configuration_details.rb', line 143

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
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



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# File 'lib/oci/jms/models/update_fleet_advanced_feature_configuration_details.rb', line 180

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


160
161
162
# File 'lib/oci/jms/models/update_fleet_advanced_feature_configuration_details.rb', line 160

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



169
170
171
# File 'lib/oci/jms/models/update_fleet_advanced_feature_configuration_details.rb', line 169

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

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



213
214
215
216
217
218
219
220
221
222
# File 'lib/oci/jms/models/update_fleet_advanced_feature_configuration_details.rb', line 213

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



207
208
209
# File 'lib/oci/jms/models/update_fleet_advanced_feature_configuration_details.rb', line 207

def to_s
  to_hash.to_s
end