Class: OCI::Jms::Models::UpdateFleetAgentConfigurationDetails

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

Overview

Attributes to update a Fleet Agent Configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ UpdateFleetAgentConfigurationDetails

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



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
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
184
185
186
187
188
189
190
191
192
193
194
# File 'lib/oci/jms/models/update_fleet_agent_configuration_details.rb', line 115

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

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

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

  self.java_usage_tracker_processing_frequency_in_minutes = attributes[:'javaUsageTrackerProcessingFrequencyInMinutes'] if attributes[:'javaUsageTrackerProcessingFrequencyInMinutes']

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

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

  self.work_request_validity_period_in_days = attributes[:'workRequestValidityPeriodInDays'] if attributes[:'workRequestValidityPeriodInDays']

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

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

  self.agent_polling_interval_in_minutes = attributes[:'agentPollingIntervalInMinutes'] if attributes[:'agentPollingIntervalInMinutes']

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

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

  self.is_collecting_managed_instance_metrics_enabled = attributes[:'isCollectingManagedInstanceMetricsEnabled'] unless attributes[:'isCollectingManagedInstanceMetricsEnabled'].nil?
  self.is_collecting_managed_instance_metrics_enabled = false if is_collecting_managed_instance_metrics_enabled.nil? && !attributes.key?(:'isCollectingManagedInstanceMetricsEnabled') # rubocop:disable Style/StringLiterals

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

  self.is_collecting_managed_instance_metrics_enabled = attributes[:'is_collecting_managed_instance_metrics_enabled'] unless attributes[:'is_collecting_managed_instance_metrics_enabled'].nil?
  self.is_collecting_managed_instance_metrics_enabled = false if is_collecting_managed_instance_metrics_enabled.nil? && !attributes.key?(:'isCollectingManagedInstanceMetricsEnabled') && !attributes.key?(:'is_collecting_managed_instance_metrics_enabled') # rubocop:disable Style/StringLiterals

  self.is_collecting_usernames_enabled = attributes[:'isCollectingUsernamesEnabled'] unless attributes[:'isCollectingUsernamesEnabled'].nil?
  self.is_collecting_usernames_enabled = true if is_collecting_usernames_enabled.nil? && !attributes.key?(:'isCollectingUsernamesEnabled') # rubocop:disable Style/StringLiterals

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

  self.is_collecting_usernames_enabled = attributes[:'is_collecting_usernames_enabled'] unless attributes[:'is_collecting_usernames_enabled'].nil?
  self.is_collecting_usernames_enabled = true if is_collecting_usernames_enabled.nil? && !attributes.key?(:'isCollectingUsernamesEnabled') && !attributes.key?(:'is_collecting_usernames_enabled') # rubocop:disable Style/StringLiterals

  self.is_capturing_ip_address_and_fqdn_enabled = attributes[:'isCapturingIpAddressAndFqdnEnabled'] unless attributes[:'isCapturingIpAddressAndFqdnEnabled'].nil?
  self.is_capturing_ip_address_and_fqdn_enabled = false if is_capturing_ip_address_and_fqdn_enabled.nil? && !attributes.key?(:'isCapturingIpAddressAndFqdnEnabled') # rubocop:disable Style/StringLiterals

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

  self.is_capturing_ip_address_and_fqdn_enabled = attributes[:'is_capturing_ip_address_and_fqdn_enabled'] unless attributes[:'is_capturing_ip_address_and_fqdn_enabled'].nil?
  self.is_capturing_ip_address_and_fqdn_enabled = false if is_capturing_ip_address_and_fqdn_enabled.nil? && !attributes.key?(:'isCapturingIpAddressAndFqdnEnabled') && !attributes.key?(:'is_capturing_ip_address_and_fqdn_enabled') # rubocop:disable Style/StringLiterals

  self.is_libraries_scan_enabled = attributes[:'isLibrariesScanEnabled'] unless attributes[:'isLibrariesScanEnabled'].nil?
  self.is_libraries_scan_enabled = true if is_libraries_scan_enabled.nil? && !attributes.key?(:'isLibrariesScanEnabled') # rubocop:disable Style/StringLiterals

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

  self.is_libraries_scan_enabled = attributes[:'is_libraries_scan_enabled'] unless attributes[:'is_libraries_scan_enabled'].nil?
  self.is_libraries_scan_enabled = true if is_libraries_scan_enabled.nil? && !attributes.key?(:'isLibrariesScanEnabled') && !attributes.key?(:'is_libraries_scan_enabled') # rubocop:disable Style/StringLiterals

  self.linux_configuration = attributes[:'linuxConfiguration'] if attributes[:'linuxConfiguration']

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

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

  self.windows_configuration = attributes[:'windowsConfiguration'] if attributes[:'windowsConfiguration']

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

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

  self.mac_os_configuration = attributes[:'macOsConfiguration'] if attributes[:'macOsConfiguration']

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

  self.mac_os_configuration = attributes[:'mac_os_configuration'] if attributes[:'mac_os_configuration']
end

Instance Attribute Details

#agent_polling_interval_in_minutes ⇒ Integer

Agent polling interval in minutes

Returns:

  • (Integer)


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

def agent_polling_interval_in_minutes
  @agent_polling_interval_in_minutes
end

#is_capturing_ip_address_and_fqdn_enabled ⇒ BOOLEAN

Collect network addresses of managed instances in the fleet.

Returns:

  • (BOOLEAN)


44
45
46
# File 'lib/oci/jms/models/update_fleet_agent_configuration_details.rb', line 44

def is_capturing_ip_address_and_fqdn_enabled
  @is_capturing_ip_address_and_fqdn_enabled
end

#is_collecting_managed_instance_metrics_enabled ⇒ BOOLEAN

Collect JMS agent metrics on all managed instances in the fleet.

Returns:

  • (BOOLEAN)


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

def is_collecting_managed_instance_metrics_enabled
  @is_collecting_managed_instance_metrics_enabled
end

#is_collecting_usernames_enabled ⇒ BOOLEAN

Collect username for application invocations for all managed instances in the fleet.

Returns:

  • (BOOLEAN)


39
40
41
# File 'lib/oci/jms/models/update_fleet_agent_configuration_details.rb', line 39

def is_collecting_usernames_enabled
  @is_collecting_usernames_enabled
end

#is_libraries_scan_enabled ⇒ BOOLEAN

Enable libraries scan on all managed instances in the fleet.

Returns:

  • (BOOLEAN)


49
50
51
# File 'lib/oci/jms/models/update_fleet_agent_configuration_details.rb', line 49

def is_libraries_scan_enabled
  @is_libraries_scan_enabled
end

#java_usage_tracker_processing_frequency_in_minutes ⇒ Integer

The frequency (in minutes) of Java Usage Tracker processing. (That is, how often should JMS process data from the Java Usage Tracker.)

Returns:

  • (Integer)


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

def java_usage_tracker_processing_frequency_in_minutes
  @java_usage_tracker_processing_frequency_in_minutes
end

#jre_scan_frequency_in_minutes ⇒ Integer

The frequency (in minutes) of JRE scanning. (That is, how often should JMS scan for JRE installations.)

Returns:

  • (Integer)


14
15
16
# File 'lib/oci/jms/models/update_fleet_agent_configuration_details.rb', line 14

def jre_scan_frequency_in_minutes
  @jre_scan_frequency_in_minutes
end

#linux_configuration ⇒ OCI::Jms::Models::FleetAgentOsConfiguration



52
53
54
# File 'lib/oci/jms/models/update_fleet_agent_configuration_details.rb', line 52

def linux_configuration
  @linux_configuration
end

#mac_os_configuration ⇒ OCI::Jms::Models::FleetAgentOsConfiguration



58
59
60
# File 'lib/oci/jms/models/update_fleet_agent_configuration_details.rb', line 58

def mac_os_configuration
  @mac_os_configuration
end

#windows_configuration ⇒ OCI::Jms::Models::FleetAgentOsConfiguration



55
56
57
# File 'lib/oci/jms/models/update_fleet_agent_configuration_details.rb', line 55

def windows_configuration
  @windows_configuration
end

#work_request_validity_period_in_days ⇒ Integer

The validity period in days for work requests.

Returns:

  • (Integer)


24
25
26
# File 'lib/oci/jms/models/update_fleet_agent_configuration_details.rb', line 24

def work_request_validity_period_in_days
  @work_request_validity_period_in_days
end

Class Method Details

.attribute_map ⇒ Object

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



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/oci/jms/models/update_fleet_agent_configuration_details.rb', line 61

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'jre_scan_frequency_in_minutes': :'jreScanFrequencyInMinutes',
    'java_usage_tracker_processing_frequency_in_minutes': :'javaUsageTrackerProcessingFrequencyInMinutes',
    'work_request_validity_period_in_days': :'workRequestValidityPeriodInDays',
    'agent_polling_interval_in_minutes': :'agentPollingIntervalInMinutes',
    'is_collecting_managed_instance_metrics_enabled': :'isCollectingManagedInstanceMetricsEnabled',
    'is_collecting_usernames_enabled': :'isCollectingUsernamesEnabled',
    'is_capturing_ip_address_and_fqdn_enabled': :'isCapturingIpAddressAndFqdnEnabled',
    'is_libraries_scan_enabled': :'isLibrariesScanEnabled',
    'linux_configuration': :'linuxConfiguration',
    'windows_configuration': :'windowsConfiguration',
    'mac_os_configuration': :'macOsConfiguration'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_types ⇒ Object

Attribute type mapping.



80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/oci/jms/models/update_fleet_agent_configuration_details.rb', line 80

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'jre_scan_frequency_in_minutes': :'Integer',
    'java_usage_tracker_processing_frequency_in_minutes': :'Integer',
    'work_request_validity_period_in_days': :'Integer',
    'agent_polling_interval_in_minutes': :'Integer',
    'is_collecting_managed_instance_metrics_enabled': :'BOOLEAN',
    'is_collecting_usernames_enabled': :'BOOLEAN',
    'is_capturing_ip_address_and_fqdn_enabled': :'BOOLEAN',
    'is_libraries_scan_enabled': :'BOOLEAN',
    'linux_configuration': :'OCI::Jms::Models::FleetAgentOsConfiguration',
    'windows_configuration': :'OCI::Jms::Models::FleetAgentOsConfiguration',
    'mac_os_configuration': :'OCI::Jms::Models::FleetAgentOsConfiguration'
    # 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



203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
# File 'lib/oci/jms/models/update_fleet_agent_configuration_details.rb', line 203

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

  self.class == other.class &&
    jre_scan_frequency_in_minutes == other.jre_scan_frequency_in_minutes &&
    java_usage_tracker_processing_frequency_in_minutes == other.java_usage_tracker_processing_frequency_in_minutes &&
    work_request_validity_period_in_days == other.work_request_validity_period_in_days &&
    agent_polling_interval_in_minutes == other.agent_polling_interval_in_minutes &&
    is_collecting_managed_instance_metrics_enabled == other.is_collecting_managed_instance_metrics_enabled &&
    is_collecting_usernames_enabled == other.is_collecting_usernames_enabled &&
    is_capturing_ip_address_and_fqdn_enabled == other.is_capturing_ip_address_and_fqdn_enabled &&
    is_libraries_scan_enabled == other.is_libraries_scan_enabled &&
    linux_configuration == other.linux_configuration &&
    windows_configuration == other.windows_configuration &&
    mac_os_configuration == other.mac_os_configuration
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



243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
# File 'lib/oci/jms/models/update_fleet_agent_configuration_details.rb', line 243

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


223
224
225
# File 'lib/oci/jms/models/update_fleet_agent_configuration_details.rb', line 223

def eql?(other)
  self == other
end

#hash ⇒ Fixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum) —

    Hash code



232
233
234
# File 'lib/oci/jms/models/update_fleet_agent_configuration_details.rb', line 232

def hash
  [jre_scan_frequency_in_minutes, java_usage_tracker_processing_frequency_in_minutes, work_request_validity_period_in_days, agent_polling_interval_in_minutes, is_collecting_managed_instance_metrics_enabled, is_collecting_usernames_enabled, is_capturing_ip_address_and_fqdn_enabled, is_libraries_scan_enabled, linux_configuration, windows_configuration, mac_os_configuration].hash
end

#to_hash ⇒ Hash

Returns the object in the form of hash

Returns:

  • (Hash) —

    Returns the object in the form of hash



276
277
278
279
280
281
282
283
284
285
# File 'lib/oci/jms/models/update_fleet_agent_configuration_details.rb', line 276

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

Returns:

  • (String) —

    String presentation of the object



270
271
272
# File 'lib/oci/jms/models/update_fleet_agent_configuration_details.rb', line 270

def to_s
  to_hash.to_s
end