oci 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/lib/oci.rb +4 -0
- data/lib/oci/auth/federation_client.rb +4 -4
- data/lib/oci/auth/signers/instance_principals_security_token_signer.rb +22 -16
- data/lib/oci/autoscaling/auto_scaling_client.rb +774 -0
- data/lib/oci/autoscaling/auto_scaling_client_composite_operations.rb +24 -0
- data/lib/oci/autoscaling/autoscaling.rb +38 -0
- data/lib/oci/autoscaling/models/action.rb +182 -0
- data/lib/oci/autoscaling/models/auto_scaling_configuration.rb +282 -0
- data/lib/oci/autoscaling/models/auto_scaling_configuration_summary.rb +234 -0
- data/lib/oci/autoscaling/models/auto_scaling_policy.rb +222 -0
- data/lib/oci/autoscaling/models/auto_scaling_policy_summary.rb +179 -0
- data/lib/oci/autoscaling/models/capacity.rb +170 -0
- data/lib/oci/autoscaling/models/condition.rb +186 -0
- data/lib/oci/autoscaling/models/create_auto_scaling_configuration_details.rb +256 -0
- data/lib/oci/autoscaling/models/create_auto_scaling_policy_details.rb +196 -0
- data/lib/oci/autoscaling/models/create_condition_details.rb +176 -0
- data/lib/oci/autoscaling/models/create_threshold_policy_details.rb +166 -0
- data/lib/oci/autoscaling/models/instance_pool_resource.rb +148 -0
- data/lib/oci/autoscaling/models/metric.rb +186 -0
- data/lib/oci/autoscaling/models/resource.rb +177 -0
- data/lib/oci/autoscaling/models/threshold.rb +188 -0
- data/lib/oci/autoscaling/models/threshold_policy.rb +173 -0
- data/lib/oci/autoscaling/models/update_auto_scaling_configuration_details.rb +219 -0
- data/lib/oci/autoscaling/models/update_auto_scaling_policy_details.rb +194 -0
- data/lib/oci/autoscaling/models/update_condition_details.rb +176 -0
- data/lib/oci/autoscaling/models/update_threshold_policy_details.rb +164 -0
- data/lib/oci/autoscaling/util.rb +2 -0
- data/lib/oci/core/blockstorage_client.rb +1 -1
- data/lib/oci/core/compute_client.rb +1 -1
- data/lib/oci/core/compute_management_client.rb +135 -1
- data/lib/oci/core/compute_management_client_composite_operations.rb +80 -0
- data/lib/oci/core/core.rb +8 -0
- data/lib/oci/core/models/attach_load_balancer_details.rb +191 -0
- data/lib/oci/core/models/create_instance_pool_details.rb +19 -4
- data/lib/oci/core/models/detach_load_balancer_details.rb +167 -0
- data/lib/oci/core/models/image.rb +14 -1
- data/lib/oci/core/models/instance.rb +18 -2
- data/lib/oci/core/models/instance_agent_config.rb +154 -0
- data/lib/oci/core/models/instance_agent_features.rb +154 -0
- data/lib/oci/core/models/instance_pool.rb +19 -4
- data/lib/oci/core/models/instance_pool_instance_load_balancer_backend.rb +219 -0
- data/lib/oci/core/models/instance_pool_load_balancer_attachment.rb +253 -0
- data/lib/oci/core/models/instance_summary.rb +19 -4
- data/lib/oci/core/models/launch_instance_agent_config_details.rb +155 -0
- data/lib/oci/core/models/launch_instance_details.rb +14 -1
- data/lib/oci/core/models/update_instance_agent_config_details.rb +154 -0
- data/lib/oci/core/models/update_instance_details.rb +16 -1
- data/lib/oci/core/virtual_network_client.rb +1 -1
- data/lib/oci/database/database_client.rb +12 -14
- data/lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb +3 -1
- data/lib/oci/database/models/autonomous_database_connection_strings.rb +3 -1
- data/lib/oci/database/models/create_data_guard_association_details.rb +2 -7
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +5 -1
- data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +4 -1
- data/lib/oci/database/models/database_summary.rb +1 -1
- data/lib/oci/database/models/db_node.rb +15 -1
- data/lib/oci/database/models/db_node_summary.rb +15 -1
- data/lib/oci/database/models/db_system.rb +15 -1
- data/lib/oci/database/models/db_system_summary.rb +15 -1
- data/lib/oci/database/models/db_version_summary.rb +1 -1
- data/lib/oci/database/models/launch_db_system_base.rb +33 -2
- data/lib/oci/database/models/launch_db_system_details.rb +5 -1
- data/lib/oci/database/models/launch_db_system_from_backup_details.rb +5 -1
- data/lib/oci/database/models/update_db_system_details.rb +1 -1
- data/lib/oci/identity/identity.rb +4 -0
- data/lib/oci/identity/identity_client.rb +468 -12
- data/lib/oci/identity/identity_client_composite_operations.rb +79 -0
- data/lib/oci/identity/models/change_tag_namespace_compartment_detail.rb +154 -0
- data/lib/oci/identity/models/create_identity_provider_details.rb +2 -1
- data/lib/oci/identity/models/mfa_totp_device.rb +279 -0
- data/lib/oci/identity/models/mfa_totp_device_summary.rb +267 -0
- data/lib/oci/identity/models/mfa_totp_token.rb +155 -0
- data/lib/oci/identity/models/tag_namespace_summary.rb +1 -1
- data/lib/oci/identity/models/user.rb +18 -4
- data/lib/oci/monitoring/models/aggregated_datapoint.rb +166 -0
- data/lib/oci/monitoring/models/alarm.rb +538 -0
- data/lib/oci/monitoring/models/alarm_history_collection.rb +183 -0
- data/lib/oci/monitoring/models/alarm_history_entry.rb +187 -0
- data/lib/oci/monitoring/models/alarm_status_summary.rb +277 -0
- data/lib/oci/monitoring/models/alarm_summary.rb +386 -0
- data/lib/oci/monitoring/models/create_alarm_details.rb +423 -0
- data/lib/oci/monitoring/models/datapoint.rb +179 -0
- data/lib/oci/monitoring/models/failed_metric_record.rb +166 -0
- data/lib/oci/monitoring/models/list_metrics_details.rb +271 -0
- data/lib/oci/monitoring/models/metric.rb +197 -0
- data/lib/oci/monitoring/models/metric_data.rb +243 -0
- data/lib/oci/monitoring/models/metric_data_details.rb +227 -0
- data/lib/oci/monitoring/models/post_metric_data_details.rb +194 -0
- data/lib/oci/monitoring/models/post_metric_data_response_details.rb +170 -0
- data/lib/oci/monitoring/models/summarize_metrics_data_details.rb +229 -0
- data/lib/oci/monitoring/models/suppression.rb +196 -0
- data/lib/oci/monitoring/models/update_alarm_details.rb +423 -0
- data/lib/oci/monitoring/monitoring.rb +37 -0
- data/lib/oci/monitoring/monitoring_client.rb +923 -0
- data/lib/oci/monitoring/monitoring_client_composite_operations.rb +145 -0
- data/lib/oci/monitoring/util.rb +2 -0
- data/lib/oci/ons/models/backoff_retry_policy.rb +192 -0
- data/lib/oci/ons/models/confirmation_result.rb +221 -0
- data/lib/oci/ons/models/create_subscription_details.rb +238 -0
- data/lib/oci/ons/models/create_topic_details.rb +209 -0
- data/lib/oci/ons/models/delivery_policy.rb +153 -0
- data/lib/oci/ons/models/message_details.rb +163 -0
- data/lib/oci/ons/models/notification_topic.rb +302 -0
- data/lib/oci/ons/models/notification_topic_summary.rb +303 -0
- data/lib/oci/ons/models/publish_result.rb +168 -0
- data/lib/oci/ons/models/subscription.rb +273 -0
- data/lib/oci/ons/models/subscription_summary.rb +300 -0
- data/lib/oci/ons/models/topic_attributes_details.rb +184 -0
- data/lib/oci/ons/models/update_subscription_details.rb +188 -0
- data/lib/oci/ons/notification_control_plane_client.rb +463 -0
- data/lib/oci/ons/notification_control_plane_client_composite_operations.rb +24 -0
- data/lib/oci/ons/notification_data_plane_client.rb +680 -0
- data/lib/oci/ons/notification_data_plane_client_composite_operations.rb +104 -0
- data/lib/oci/ons/ons.rb +33 -0
- data/lib/oci/ons/util.rb +2 -0
- data/lib/oci/regions.rb +5 -0
- data/lib/oci/resource_manager/models/apply_job_plan_resolution.rb +189 -0
- data/lib/oci/resource_manager/models/config_source.rb +208 -0
- data/lib/oci/resource_manager/models/create_config_source_details.rb +187 -0
- data/lib/oci/resource_manager/models/create_job_details.rb +225 -0
- data/lib/oci/resource_manager/models/create_stack_details.rb +239 -0
- data/lib/oci/resource_manager/models/create_zip_upload_config_source_details.rb +166 -0
- data/lib/oci/resource_manager/models/failure_details.rb +185 -0
- data/lib/oci/resource_manager/models/job.rb +399 -0
- data/lib/oci/resource_manager/models/job_summary.rb +311 -0
- data/lib/oci/resource_manager/models/log_entry.rb +225 -0
- data/lib/oci/resource_manager/models/stack.rb +305 -0
- data/lib/oci/resource_manager/models/stack_summary.rb +249 -0
- data/lib/oci/resource_manager/models/update_config_source_details.rb +184 -0
- data/lib/oci/resource_manager/models/update_job_details.rb +188 -0
- data/lib/oci/resource_manager/models/update_stack_details.rb +225 -0
- data/lib/oci/resource_manager/models/update_zip_upload_config_source_details.rb +164 -0
- data/lib/oci/resource_manager/models/zip_upload_config_source.rb +149 -0
- data/lib/oci/resource_manager/resource_manager.rb +36 -0
- data/lib/oci/resource_manager/resource_manager_client.rb +1264 -0
- data/lib/oci/resource_manager/resource_manager_client_composite_operations.rb +263 -0
- data/lib/oci/resource_manager/util.rb +2 -0
- data/lib/oci/version.rb +1 -1
- metadata +100 -2
@@ -52,6 +52,11 @@ module OCI
|
|
52
52
|
# @return [DateTime]
|
53
53
|
attr_accessor :time_created
|
54
54
|
|
55
|
+
# The load balancer backends configured for the instance pool instance.
|
56
|
+
#
|
57
|
+
# @return [Array<OCI::Core::Models::InstancePoolInstanceLoadBalancerBackend>]
|
58
|
+
attr_accessor :load_balancer_backends
|
59
|
+
|
55
60
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
61
|
def self.attribute_map
|
57
62
|
{
|
@@ -65,7 +70,8 @@ module OCI
|
|
65
70
|
'region': :'region',
|
66
71
|
'shape': :'shape',
|
67
72
|
'state': :'state',
|
68
|
-
'time_created': :'timeCreated'
|
73
|
+
'time_created': :'timeCreated',
|
74
|
+
'load_balancer_backends': :'loadBalancerBackends'
|
69
75
|
# rubocop:enable Style/SymbolLiteral
|
70
76
|
}
|
71
77
|
end
|
@@ -83,7 +89,8 @@ module OCI
|
|
83
89
|
'region': :'String',
|
84
90
|
'shape': :'String',
|
85
91
|
'state': :'String',
|
86
|
-
'time_created': :'DateTime'
|
92
|
+
'time_created': :'DateTime',
|
93
|
+
'load_balancer_backends': :'Array<OCI::Core::Models::InstancePoolInstanceLoadBalancerBackend>'
|
87
94
|
# rubocop:enable Style/SymbolLiteral
|
88
95
|
}
|
89
96
|
end
|
@@ -104,6 +111,7 @@ module OCI
|
|
104
111
|
# @option attributes [String] :shape The value to assign to the {#shape} property
|
105
112
|
# @option attributes [String] :state The value to assign to the {#state} property
|
106
113
|
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
114
|
+
# @option attributes [Array<OCI::Core::Models::InstancePoolInstanceLoadBalancerBackend>] :load_balancer_backends The value to assign to the {#load_balancer_backends} property
|
107
115
|
def initialize(attributes = {})
|
108
116
|
return unless attributes.is_a?(Hash)
|
109
117
|
|
@@ -153,6 +161,12 @@ module OCI
|
|
153
161
|
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
154
162
|
|
155
163
|
self.time_created = attributes[:'time_created'] if attributes[:'time_created']
|
164
|
+
|
165
|
+
self.load_balancer_backends = attributes[:'loadBalancerBackends'] if attributes[:'loadBalancerBackends']
|
166
|
+
|
167
|
+
raise 'You cannot provide both :loadBalancerBackends and :load_balancer_backends' if attributes.key?(:'loadBalancerBackends') && attributes.key?(:'load_balancer_backends')
|
168
|
+
|
169
|
+
self.load_balancer_backends = attributes[:'load_balancer_backends'] if attributes[:'load_balancer_backends']
|
156
170
|
end
|
157
171
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
158
172
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -175,7 +189,8 @@ module OCI
|
|
175
189
|
region == other.region &&
|
176
190
|
shape == other.shape &&
|
177
191
|
state == other.state &&
|
178
|
-
time_created == other.time_created
|
192
|
+
time_created == other.time_created &&
|
193
|
+
load_balancer_backends == other.load_balancer_backends
|
179
194
|
end
|
180
195
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
181
196
|
|
@@ -191,7 +206,7 @@ module OCI
|
|
191
206
|
# Calculates hash code according to all attributes.
|
192
207
|
# @return [Fixnum] Hash code
|
193
208
|
def hash
|
194
|
-
[id, availability_domain, compartment_id, display_name, fault_domain, instance_configuration_id, region, shape, state, time_created].hash
|
209
|
+
[id, availability_domain, compartment_id, display_name, fault_domain, instance_configuration_id, region, shape, state, time_created, load_balancer_backends].hash
|
195
210
|
end
|
196
211
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
197
212
|
|
@@ -0,0 +1,155 @@
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# rubocop:disable Lint/UnneededCopDisableDirective
|
6
|
+
module OCI
|
7
|
+
# Instance agent configuration options to choose for launching the instance
|
8
|
+
class Core::Models::LaunchInstanceAgentConfigDetails # rubocop:disable Metrics/LineLength
|
9
|
+
# Whether the agent running on the instance can gather performance metrics and monitor the instance.
|
10
|
+
# Default value is false.
|
11
|
+
#
|
12
|
+
# @return [BOOLEAN]
|
13
|
+
attr_accessor :is_monitoring_disabled
|
14
|
+
|
15
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
16
|
+
def self.attribute_map
|
17
|
+
{
|
18
|
+
# rubocop:disable Style/SymbolLiteral
|
19
|
+
'is_monitoring_disabled': :'isMonitoringDisabled'
|
20
|
+
# rubocop:enable Style/SymbolLiteral
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
# Attribute type mapping.
|
25
|
+
def self.swagger_types
|
26
|
+
{
|
27
|
+
# rubocop:disable Style/SymbolLiteral
|
28
|
+
'is_monitoring_disabled': :'BOOLEAN'
|
29
|
+
# rubocop:enable Style/SymbolLiteral
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
34
|
+
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
35
|
+
|
36
|
+
|
37
|
+
# Initializes the object
|
38
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
39
|
+
# @option attributes [BOOLEAN] :is_monitoring_disabled The value to assign to the {#is_monitoring_disabled} property
|
40
|
+
def initialize(attributes = {})
|
41
|
+
return unless attributes.is_a?(Hash)
|
42
|
+
|
43
|
+
# convert string to symbol for hash key
|
44
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
45
|
+
|
46
|
+
self.is_monitoring_disabled = attributes[:'isMonitoringDisabled'] unless attributes[:'isMonitoringDisabled'].nil?
|
47
|
+
|
48
|
+
raise 'You cannot provide both :isMonitoringDisabled and :is_monitoring_disabled' if attributes.key?(:'isMonitoringDisabled') && attributes.key?(:'is_monitoring_disabled')
|
49
|
+
|
50
|
+
self.is_monitoring_disabled = attributes[:'is_monitoring_disabled'] unless attributes[:'is_monitoring_disabled'].nil?
|
51
|
+
end
|
52
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
53
|
+
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
54
|
+
|
55
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
56
|
+
|
57
|
+
|
58
|
+
# Checks equality by comparing each attribute.
|
59
|
+
# @param [Object] other the other object to be compared
|
60
|
+
def ==(other)
|
61
|
+
return true if equal?(other)
|
62
|
+
|
63
|
+
self.class == other.class &&
|
64
|
+
is_monitoring_disabled == other.is_monitoring_disabled
|
65
|
+
end
|
66
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
67
|
+
|
68
|
+
# @see the `==` method
|
69
|
+
# @param [Object] other the other object to be compared
|
70
|
+
def eql?(other)
|
71
|
+
self == other
|
72
|
+
end
|
73
|
+
|
74
|
+
# rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
75
|
+
|
76
|
+
|
77
|
+
# Calculates hash code according to all attributes.
|
78
|
+
# @return [Fixnum] Hash code
|
79
|
+
def hash
|
80
|
+
[is_monitoring_disabled].hash
|
81
|
+
end
|
82
|
+
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
83
|
+
|
84
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
85
|
+
|
86
|
+
|
87
|
+
# Builds the object from hash
|
88
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
89
|
+
# @return [Object] Returns the model itself
|
90
|
+
def build_from_hash(attributes)
|
91
|
+
return nil unless attributes.is_a?(Hash)
|
92
|
+
|
93
|
+
self.class.swagger_types.each_pair do |key, type|
|
94
|
+
if type =~ /^Array<(.*)>/i
|
95
|
+
# check to ensure the input is an array given that the the attribute
|
96
|
+
# is documented as an array but the input is not
|
97
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
98
|
+
public_method("#{key}=").call(
|
99
|
+
attributes[self.class.attribute_map[key]]
|
100
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
101
|
+
)
|
102
|
+
end
|
103
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
104
|
+
public_method("#{key}=").call(
|
105
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
106
|
+
)
|
107
|
+
end
|
108
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
109
|
+
end
|
110
|
+
|
111
|
+
self
|
112
|
+
end
|
113
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
114
|
+
|
115
|
+
# Returns the string representation of the object
|
116
|
+
# @return [String] String presentation of the object
|
117
|
+
def to_s
|
118
|
+
to_hash.to_s
|
119
|
+
end
|
120
|
+
|
121
|
+
# Returns the object in the form of hash
|
122
|
+
# @return [Hash] Returns the object in the form of hash
|
123
|
+
def to_hash
|
124
|
+
hash = {}
|
125
|
+
self.class.attribute_map.each_pair do |attr, param|
|
126
|
+
value = public_method(attr).call
|
127
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
128
|
+
|
129
|
+
hash[param] = _to_hash(value)
|
130
|
+
end
|
131
|
+
hash
|
132
|
+
end
|
133
|
+
|
134
|
+
private
|
135
|
+
|
136
|
+
# Outputs non-array value in the form of hash
|
137
|
+
# For object, use to_hash. Otherwise, just return the value
|
138
|
+
# @param [Object] value Any valid value
|
139
|
+
# @return [Hash] Returns the value in the form of hash
|
140
|
+
def _to_hash(value)
|
141
|
+
if value.is_a?(Array)
|
142
|
+
value.compact.map { |v| _to_hash(v) }
|
143
|
+
elsif value.is_a?(Hash)
|
144
|
+
{}.tap do |hash|
|
145
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
146
|
+
end
|
147
|
+
elsif value.respond_to? :to_hash
|
148
|
+
value.to_hash
|
149
|
+
else
|
150
|
+
value
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
155
|
+
# rubocop:enable Lint/UnneededCopDisableDirective
|
@@ -178,6 +178,9 @@ module OCI
|
|
178
178
|
# @return [Hash<String, String>]
|
179
179
|
attr_accessor :metadata
|
180
180
|
|
181
|
+
# @return [OCI::Core::Models::LaunchInstanceAgentConfigDetails]
|
182
|
+
attr_accessor :agent_config
|
183
|
+
|
181
184
|
# **[Required]** The shape of an instance. The shape determines the number of CPUs, amount of memory,
|
182
185
|
# and other resources allocated to the instance.
|
183
186
|
#
|
@@ -219,6 +222,7 @@ module OCI
|
|
219
222
|
'image_id': :'imageId',
|
220
223
|
'ipxe_script': :'ipxeScript',
|
221
224
|
'metadata': :'metadata',
|
225
|
+
'agent_config': :'agentConfig',
|
222
226
|
'shape': :'shape',
|
223
227
|
'source_details': :'sourceDetails',
|
224
228
|
'subnet_id': :'subnetId',
|
@@ -243,6 +247,7 @@ module OCI
|
|
243
247
|
'image_id': :'String',
|
244
248
|
'ipxe_script': :'String',
|
245
249
|
'metadata': :'Hash<String, String>',
|
250
|
+
'agent_config': :'OCI::Core::Models::LaunchInstanceAgentConfigDetails',
|
246
251
|
'shape': :'String',
|
247
252
|
'source_details': :'OCI::Core::Models::InstanceSourceDetails',
|
248
253
|
'subnet_id': :'String',
|
@@ -269,6 +274,7 @@ module OCI
|
|
269
274
|
# @option attributes [String] :image_id The value to assign to the {#image_id} property
|
270
275
|
# @option attributes [String] :ipxe_script The value to assign to the {#ipxe_script} property
|
271
276
|
# @option attributes [Hash<String, String>] :metadata The value to assign to the {#metadata} property
|
277
|
+
# @option attributes [OCI::Core::Models::LaunchInstanceAgentConfigDetails] :agent_config The value to assign to the {#agent_config} property
|
272
278
|
# @option attributes [String] :shape The value to assign to the {#shape} property
|
273
279
|
# @option attributes [OCI::Core::Models::InstanceSourceDetails] :source_details The value to assign to the {#source_details} property
|
274
280
|
# @option attributes [String] :subnet_id The value to assign to the {#subnet_id} property
|
@@ -347,6 +353,12 @@ module OCI
|
|
347
353
|
|
348
354
|
self.metadata = attributes[:'metadata'] if attributes[:'metadata']
|
349
355
|
|
356
|
+
self.agent_config = attributes[:'agentConfig'] if attributes[:'agentConfig']
|
357
|
+
|
358
|
+
raise 'You cannot provide both :agentConfig and :agent_config' if attributes.key?(:'agentConfig') && attributes.key?(:'agent_config')
|
359
|
+
|
360
|
+
self.agent_config = attributes[:'agent_config'] if attributes[:'agent_config']
|
361
|
+
|
350
362
|
self.shape = attributes[:'shape'] if attributes[:'shape']
|
351
363
|
|
352
364
|
self.source_details = attributes[:'sourceDetails'] if attributes[:'sourceDetails']
|
@@ -391,6 +403,7 @@ module OCI
|
|
391
403
|
image_id == other.image_id &&
|
392
404
|
ipxe_script == other.ipxe_script &&
|
393
405
|
metadata == other.metadata &&
|
406
|
+
agent_config == other.agent_config &&
|
394
407
|
shape == other.shape &&
|
395
408
|
source_details == other.source_details &&
|
396
409
|
subnet_id == other.subnet_id &&
|
@@ -410,7 +423,7 @@ module OCI
|
|
410
423
|
# Calculates hash code according to all attributes.
|
411
424
|
# @return [Fixnum] Hash code
|
412
425
|
def hash
|
413
|
-
[availability_domain, compartment_id, create_vnic_details, defined_tags, display_name, extended_metadata, fault_domain, freeform_tags, hostname_label, image_id, ipxe_script, metadata, shape, source_details, subnet_id, is_pv_encryption_in_transit_enabled].hash
|
426
|
+
[availability_domain, compartment_id, create_vnic_details, defined_tags, display_name, extended_metadata, fault_domain, freeform_tags, hostname_label, image_id, ipxe_script, metadata, agent_config, shape, source_details, subnet_id, is_pv_encryption_in_transit_enabled].hash
|
414
427
|
end
|
415
428
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
416
429
|
|
@@ -0,0 +1,154 @@
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# rubocop:disable Lint/UnneededCopDisableDirective
|
6
|
+
module OCI
|
7
|
+
# Instance agent configuration options to choose for updating the instance
|
8
|
+
class Core::Models::UpdateInstanceAgentConfigDetails # rubocop:disable Metrics/LineLength
|
9
|
+
# Whether the agent running on the instance can gather performance metrics and monitor the instance.
|
10
|
+
#
|
11
|
+
# @return [BOOLEAN]
|
12
|
+
attr_accessor :is_monitoring_disabled
|
13
|
+
|
14
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
15
|
+
def self.attribute_map
|
16
|
+
{
|
17
|
+
# rubocop:disable Style/SymbolLiteral
|
18
|
+
'is_monitoring_disabled': :'isMonitoringDisabled'
|
19
|
+
# rubocop:enable Style/SymbolLiteral
|
20
|
+
}
|
21
|
+
end
|
22
|
+
|
23
|
+
# Attribute type mapping.
|
24
|
+
def self.swagger_types
|
25
|
+
{
|
26
|
+
# rubocop:disable Style/SymbolLiteral
|
27
|
+
'is_monitoring_disabled': :'BOOLEAN'
|
28
|
+
# rubocop:enable Style/SymbolLiteral
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
33
|
+
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
34
|
+
|
35
|
+
|
36
|
+
# Initializes the object
|
37
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
38
|
+
# @option attributes [BOOLEAN] :is_monitoring_disabled The value to assign to the {#is_monitoring_disabled} property
|
39
|
+
def initialize(attributes = {})
|
40
|
+
return unless attributes.is_a?(Hash)
|
41
|
+
|
42
|
+
# convert string to symbol for hash key
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
44
|
+
|
45
|
+
self.is_monitoring_disabled = attributes[:'isMonitoringDisabled'] unless attributes[:'isMonitoringDisabled'].nil?
|
46
|
+
|
47
|
+
raise 'You cannot provide both :isMonitoringDisabled and :is_monitoring_disabled' if attributes.key?(:'isMonitoringDisabled') && attributes.key?(:'is_monitoring_disabled')
|
48
|
+
|
49
|
+
self.is_monitoring_disabled = attributes[:'is_monitoring_disabled'] unless attributes[:'is_monitoring_disabled'].nil?
|
50
|
+
end
|
51
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
52
|
+
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
53
|
+
|
54
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
55
|
+
|
56
|
+
|
57
|
+
# Checks equality by comparing each attribute.
|
58
|
+
# @param [Object] other the other object to be compared
|
59
|
+
def ==(other)
|
60
|
+
return true if equal?(other)
|
61
|
+
|
62
|
+
self.class == other.class &&
|
63
|
+
is_monitoring_disabled == other.is_monitoring_disabled
|
64
|
+
end
|
65
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
66
|
+
|
67
|
+
# @see the `==` method
|
68
|
+
# @param [Object] other the other object to be compared
|
69
|
+
def eql?(other)
|
70
|
+
self == other
|
71
|
+
end
|
72
|
+
|
73
|
+
# rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
74
|
+
|
75
|
+
|
76
|
+
# Calculates hash code according to all attributes.
|
77
|
+
# @return [Fixnum] Hash code
|
78
|
+
def hash
|
79
|
+
[is_monitoring_disabled].hash
|
80
|
+
end
|
81
|
+
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
82
|
+
|
83
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
84
|
+
|
85
|
+
|
86
|
+
# Builds the object from hash
|
87
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
88
|
+
# @return [Object] Returns the model itself
|
89
|
+
def build_from_hash(attributes)
|
90
|
+
return nil unless attributes.is_a?(Hash)
|
91
|
+
|
92
|
+
self.class.swagger_types.each_pair do |key, type|
|
93
|
+
if type =~ /^Array<(.*)>/i
|
94
|
+
# check to ensure the input is an array given that the the attribute
|
95
|
+
# is documented as an array but the input is not
|
96
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
97
|
+
public_method("#{key}=").call(
|
98
|
+
attributes[self.class.attribute_map[key]]
|
99
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
100
|
+
)
|
101
|
+
end
|
102
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
103
|
+
public_method("#{key}=").call(
|
104
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
105
|
+
)
|
106
|
+
end
|
107
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
108
|
+
end
|
109
|
+
|
110
|
+
self
|
111
|
+
end
|
112
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
113
|
+
|
114
|
+
# Returns the string representation of the object
|
115
|
+
# @return [String] String presentation of the object
|
116
|
+
def to_s
|
117
|
+
to_hash.to_s
|
118
|
+
end
|
119
|
+
|
120
|
+
# Returns the object in the form of hash
|
121
|
+
# @return [Hash] Returns the object in the form of hash
|
122
|
+
def to_hash
|
123
|
+
hash = {}
|
124
|
+
self.class.attribute_map.each_pair do |attr, param|
|
125
|
+
value = public_method(attr).call
|
126
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
127
|
+
|
128
|
+
hash[param] = _to_hash(value)
|
129
|
+
end
|
130
|
+
hash
|
131
|
+
end
|
132
|
+
|
133
|
+
private
|
134
|
+
|
135
|
+
# Outputs non-array value in the form of hash
|
136
|
+
# For object, use to_hash. Otherwise, just return the value
|
137
|
+
# @param [Object] value Any valid value
|
138
|
+
# @return [Hash] Returns the value in the form of hash
|
139
|
+
def _to_hash(value)
|
140
|
+
if value.is_a?(Array)
|
141
|
+
value.compact.map { |v| _to_hash(v) }
|
142
|
+
elsif value.is_a?(Hash)
|
143
|
+
{}.tap do |hash|
|
144
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
145
|
+
end
|
146
|
+
elsif value.respond_to? :to_hash
|
147
|
+
value.to_hash
|
148
|
+
else
|
149
|
+
value
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
154
|
+
# rubocop:enable Lint/UnneededCopDisableDirective
|
@@ -31,6 +31,11 @@ module OCI
|
|
31
31
|
# @return [Hash<String, String>]
|
32
32
|
attr_accessor :freeform_tags
|
33
33
|
|
34
|
+
# Instance agent configuration options to choose for updating the instance
|
35
|
+
#
|
36
|
+
# @return [OCI::Core::Models::UpdateInstanceAgentConfigDetails]
|
37
|
+
attr_accessor :agent_config
|
38
|
+
|
34
39
|
# Custom metadata key/value string pairs that you provide. Any set of key/value pairs
|
35
40
|
# provided here will completely replace the current set of key/value pairs in the 'metadata'
|
36
41
|
# field on the instance.
|
@@ -64,6 +69,7 @@ module OCI
|
|
64
69
|
'defined_tags': :'definedTags',
|
65
70
|
'display_name': :'displayName',
|
66
71
|
'freeform_tags': :'freeformTags',
|
72
|
+
'agent_config': :'agentConfig',
|
67
73
|
'metadata': :'metadata',
|
68
74
|
'extended_metadata': :'extendedMetadata'
|
69
75
|
# rubocop:enable Style/SymbolLiteral
|
@@ -77,6 +83,7 @@ module OCI
|
|
77
83
|
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
78
84
|
'display_name': :'String',
|
79
85
|
'freeform_tags': :'Hash<String, String>',
|
86
|
+
'agent_config': :'OCI::Core::Models::UpdateInstanceAgentConfigDetails',
|
80
87
|
'metadata': :'Hash<String, String>',
|
81
88
|
'extended_metadata': :'Hash<String, Object>'
|
82
89
|
# rubocop:enable Style/SymbolLiteral
|
@@ -92,6 +99,7 @@ module OCI
|
|
92
99
|
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
93
100
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
94
101
|
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
102
|
+
# @option attributes [OCI::Core::Models::UpdateInstanceAgentConfigDetails] :agent_config The value to assign to the {#agent_config} property
|
95
103
|
# @option attributes [Hash<String, String>] :metadata The value to assign to the {#metadata} property
|
96
104
|
# @option attributes [Hash<String, Object>] :extended_metadata The value to assign to the {#extended_metadata} property
|
97
105
|
def initialize(attributes = {})
|
@@ -118,6 +126,12 @@ module OCI
|
|
118
126
|
|
119
127
|
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
120
128
|
|
129
|
+
self.agent_config = attributes[:'agentConfig'] if attributes[:'agentConfig']
|
130
|
+
|
131
|
+
raise 'You cannot provide both :agentConfig and :agent_config' if attributes.key?(:'agentConfig') && attributes.key?(:'agent_config')
|
132
|
+
|
133
|
+
self.agent_config = attributes[:'agent_config'] if attributes[:'agent_config']
|
134
|
+
|
121
135
|
self.metadata = attributes[:'metadata'] if attributes[:'metadata']
|
122
136
|
|
123
137
|
self.extended_metadata = attributes[:'extendedMetadata'] if attributes[:'extendedMetadata']
|
@@ -141,6 +155,7 @@ module OCI
|
|
141
155
|
defined_tags == other.defined_tags &&
|
142
156
|
display_name == other.display_name &&
|
143
157
|
freeform_tags == other.freeform_tags &&
|
158
|
+
agent_config == other.agent_config &&
|
144
159
|
metadata == other.metadata &&
|
145
160
|
extended_metadata == other.extended_metadata
|
146
161
|
end
|
@@ -158,7 +173,7 @@ module OCI
|
|
158
173
|
# Calculates hash code according to all attributes.
|
159
174
|
# @return [Fixnum] Hash code
|
160
175
|
def hash
|
161
|
-
[defined_tags, display_name, freeform_tags, metadata, extended_metadata].hash
|
176
|
+
[defined_tags, display_name, freeform_tags, agent_config, metadata, extended_metadata].hash
|
162
177
|
end
|
163
178
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
164
179
|
|