oci 2.5.9 → 2.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/oci/autoscaling/auto_scaling_client.rb +73 -0
- data/lib/oci/autoscaling/autoscaling.rb +1 -0
- data/lib/oci/autoscaling/models/change_auto_scaling_compartment_details.rb +154 -0
- data/lib/oci/autoscaling/models/create_auto_scaling_configuration_details.rb +0 -1
- data/lib/oci/container_engine/models/work_request_error.rb +0 -1
- data/lib/oci/core/blockstorage_client.rb +342 -0
- data/lib/oci/core/compute_client.rb +77 -5
- data/lib/oci/core/compute_client_composite_operations.rb +3 -3
- data/lib/oci/core/compute_management_client.rb +211 -0
- data/lib/oci/core/core.rb +27 -0
- data/lib/oci/core/models/add_network_security_group_security_rules_details.rb +153 -0
- data/lib/oci/core/models/add_security_rule_details.rb +388 -0
- data/lib/oci/core/models/added_network_security_group_security_rules.rb +153 -0
- data/lib/oci/core/models/change_boot_volume_backup_compartment_details.rb +153 -0
- data/lib/oci/core/models/change_boot_volume_compartment_details.rb +153 -0
- data/lib/oci/core/models/change_image_compartment_details.rb +154 -0
- data/lib/oci/core/models/change_instance_configuration_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_instance_pool_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_nat_gateway_compartment_details.rb +153 -0
- data/lib/oci/core/models/change_route_table_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_security_list_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_service_gateway_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_subnet_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_vcn_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_volume_backup_compartment_details.rb +153 -0
- data/lib/oci/core/models/change_volume_compartment_details.rb +153 -0
- data/lib/oci/core/models/change_volume_group_backup_compartment_details.rb +153 -0
- data/lib/oci/core/models/change_volume_group_compartment_details.rb +153 -0
- data/lib/oci/core/models/create_network_security_group_details.rb +223 -0
- data/lib/oci/core/models/create_vnic_details.rb +18 -1
- data/lib/oci/core/models/image.rb +2 -1
- data/lib/oci/core/models/instance_configuration.rb +3 -1
- data/lib/oci/core/models/instance_configuration_create_vnic_details.rb +18 -1
- data/lib/oci/core/models/instance_configuration_instance_source_via_image_details.rb +15 -1
- data/lib/oci/core/models/instance_configuration_summary.rb +3 -3
- data/lib/oci/core/models/instance_pool.rb +4 -1
- data/lib/oci/core/models/instance_pool_summary.rb +3 -3
- data/lib/oci/core/models/network_security_group.rb +324 -0
- data/lib/oci/core/models/network_security_group_vnic.rb +188 -0
- data/lib/oci/core/models/remove_network_security_group_security_rules_details.rb +154 -0
- data/lib/oci/core/models/security_list.rb +5 -0
- data/lib/oci/core/models/security_rule.rb +455 -0
- data/lib/oci/core/models/update_network_security_group_details.rb +189 -0
- data/lib/oci/core/models/update_network_security_group_security_rules_details.rb +153 -0
- data/lib/oci/core/models/update_security_rule_details.rb +404 -0
- data/lib/oci/core/models/update_vnic_details.rb +20 -1
- data/lib/oci/core/models/updated_network_security_group_security_rules.rb +153 -0
- data/lib/oci/core/models/vnic.rb +18 -1
- data/lib/oci/core/virtual_network_client.rb +1228 -132
- data/lib/oci/core/virtual_network_client_composite_operations.rb +119 -0
- data/lib/oci/database/database.rb +19 -0
- data/lib/oci/database/database_client.rb +1066 -46
- data/lib/oci/database/database_client_composite_operations.rb +317 -0
- data/lib/oci/database/models/autonomous_container_database.rb +416 -0
- data/lib/oci/database/models/autonomous_container_database_backup_config.rb +157 -0
- data/lib/oci/database/models/autonomous_container_database_summary.rb +420 -0
- data/lib/oci/database/models/autonomous_database.rb +58 -1
- data/lib/oci/database/models/autonomous_database_backup.rb +16 -1
- data/lib/oci/database/models/autonomous_database_backup_summary.rb +16 -1
- data/lib/oci/database/models/autonomous_database_connection_strings.rb +11 -1
- data/lib/oci/database/models/autonomous_database_connection_urls.rb +170 -0
- data/lib/oci/database/models/autonomous_database_summary.rb +58 -1
- data/lib/oci/database/models/autonomous_db_preview_version_summary.rb +224 -0
- data/lib/oci/database/models/autonomous_exadata_infrastructure.rb +419 -0
- data/lib/oci/database/models/autonomous_exadata_infrastructure_maintenance_window.rb +186 -0
- data/lib/oci/database/models/autonomous_exadata_infrastructure_shape_summary.rb +224 -0
- data/lib/oci/database/models/autonomous_exadata_infrastructure_summary.rb +436 -0
- data/lib/oci/database/models/backup.rb +1 -0
- data/lib/oci/database/models/backup_summary.rb +1 -0
- data/lib/oci/database/models/create_autonomous_container_database_details.rb +284 -0
- data/lib/oci/database/models/create_autonomous_database_base.rb +46 -1
- data/lib/oci/database/models/create_autonomous_database_clone_details.rb +13 -1
- data/lib/oci/database/models/create_autonomous_database_details.rb +13 -1
- data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +34 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +1 -1
- data/lib/oci/database/models/day_of_week.rb +174 -0
- data/lib/oci/database/models/db_system.rb +34 -1
- data/lib/oci/database/models/db_system_summary.rb +34 -1
- data/lib/oci/database/models/launch_autonomous_exadata_infrastructure_details.rb +304 -0
- data/lib/oci/database/models/launch_db_system_base.rb +35 -2
- data/lib/oci/database/models/launch_db_system_details.rb +11 -2
- data/lib/oci/database/models/launch_db_system_from_backup_details.rb +11 -2
- data/lib/oci/database/models/maintenance_run.rb +392 -0
- data/lib/oci/database/models/maintenance_run_summary.rb +395 -0
- data/lib/oci/database/models/maintenance_window.rb +226 -0
- data/lib/oci/database/models/month.rb +179 -0
- data/lib/oci/database/models/restore_autonomous_database_details.rb +30 -4
- data/lib/oci/database/models/update_autonomous_container_database_details.rb +230 -0
- data/lib/oci/database/models/update_autonomous_database_details.rb +18 -1
- data/lib/oci/database/models/update_autonomous_exadata_infrastructure_details.rb +203 -0
- data/lib/oci/database/models/update_db_system_details.rb +37 -4
- data/lib/oci/database/models/update_maintenance_run_details.rb +154 -0
- data/lib/oci/email/email.rb +1 -0
- data/lib/oci/email/email_client.rb +62 -0
- data/lib/oci/email/models/change_sender_compartment_details.rb +157 -0
- data/lib/oci/key_management/key_management.rb +1 -0
- data/lib/oci/key_management/kms_crypto_client.rb +4 -4
- data/lib/oci/key_management/kms_management_client.rb +161 -10
- data/lib/oci/key_management/kms_management_client_composite_operations.rb +79 -0
- data/lib/oci/key_management/kms_vault_client.rb +16 -11
- data/lib/oci/key_management/models/key.rb +17 -1
- data/lib/oci/key_management/models/schedule_key_deletion_details.rb +156 -0
- data/lib/oci/load_balancer/load_balancer.rb +1 -0
- data/lib/oci/load_balancer/load_balancer_client.rb +64 -0
- data/lib/oci/load_balancer/load_balancer_client_composite_operations.rb +50 -0
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +16 -1
- data/lib/oci/load_balancer/models/load_balancer.rb +16 -1
- data/lib/oci/load_balancer/models/remove_http_request_header_rule.rb +1 -1
- data/lib/oci/load_balancer/models/remove_http_response_header_rule.rb +1 -1
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +9 -5
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +2 -0
- data/lib/oci/load_balancer/models/update_network_security_groups_details.rb +154 -0
- data/lib/oci/monitoring/models/metric.rb +1 -0
- data/lib/oci/object_storage/models/work_request_error.rb +1 -0
- data/lib/oci/resource_manager/models/change_stack_compartment_details.rb +155 -0
- data/lib/oci/resource_manager/models/work_request.rb +293 -0
- data/lib/oci/resource_manager/models/work_request_error.rb +170 -0
- data/lib/oci/resource_manager/models/work_request_log_entry.rb +159 -0
- data/lib/oci/resource_manager/models/work_request_resource.rb +217 -0
- data/lib/oci/resource_manager/models/work_request_summary.rb +254 -0
- data/lib/oci/resource_manager/resource_manager.rb +6 -0
- data/lib/oci/resource_manager/resource_manager_client.rb +338 -0
- data/lib/oci/resource_manager/resource_manager_client_composite_operations.rb +50 -0
- data/lib/oci/streaming/stream_admin_client.rb +2 -2
- data/lib/oci/streaming/stream_client.rb +1 -1
- data/lib/oci/version.rb +1 -1
- metadata +58 -2
@@ -0,0 +1,254 @@
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
require 'logger'
|
5
|
+
|
6
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
7
|
+
module OCI
|
8
|
+
# A summary of the status of a work request.
|
9
|
+
class ResourceManager::Models::WorkRequestSummary
|
10
|
+
# **[Required]** The asynchronous operation tracked by this work request.
|
11
|
+
# @return [String]
|
12
|
+
attr_accessor :operation_type
|
13
|
+
|
14
|
+
# **[Required]** The status of the specified work request.
|
15
|
+
# @return [String]
|
16
|
+
attr_accessor :status
|
17
|
+
|
18
|
+
# **[Required]** OCID identifying this work request.
|
19
|
+
# @return [String]
|
20
|
+
attr_accessor :id
|
21
|
+
|
22
|
+
# **[Required]** Unique identifier (OCID) of the compartment that contains the work request.
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :compartment_id
|
25
|
+
|
26
|
+
# **[Required]** The resources affected by this work request.
|
27
|
+
# @return [Array<OCI::ResourceManager::Models::WorkRequestResource>]
|
28
|
+
attr_accessor :resources
|
29
|
+
|
30
|
+
# **[Required]** Percentage of the work request completed.
|
31
|
+
# @return [Float]
|
32
|
+
attr_accessor :percent_complete
|
33
|
+
|
34
|
+
# **[Required]** When the work request was created.
|
35
|
+
# @return [DateTime]
|
36
|
+
attr_accessor :time_accepted
|
37
|
+
|
38
|
+
# When the work request transitioned from ACCEPTED to IN_PROGRESS.
|
39
|
+
# @return [DateTime]
|
40
|
+
attr_accessor :time_started
|
41
|
+
|
42
|
+
# When the work request reached a terminal state (FAILED or SUCCEEDED).
|
43
|
+
# @return [DateTime]
|
44
|
+
attr_accessor :time_finished
|
45
|
+
|
46
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
47
|
+
def self.attribute_map
|
48
|
+
{
|
49
|
+
# rubocop:disable Style/SymbolLiteral
|
50
|
+
'operation_type': :'operationType',
|
51
|
+
'status': :'status',
|
52
|
+
'id': :'id',
|
53
|
+
'compartment_id': :'compartmentId',
|
54
|
+
'resources': :'resources',
|
55
|
+
'percent_complete': :'percentComplete',
|
56
|
+
'time_accepted': :'timeAccepted',
|
57
|
+
'time_started': :'timeStarted',
|
58
|
+
'time_finished': :'timeFinished'
|
59
|
+
# rubocop:enable Style/SymbolLiteral
|
60
|
+
}
|
61
|
+
end
|
62
|
+
|
63
|
+
# Attribute type mapping.
|
64
|
+
def self.swagger_types
|
65
|
+
{
|
66
|
+
# rubocop:disable Style/SymbolLiteral
|
67
|
+
'operation_type': :'String',
|
68
|
+
'status': :'String',
|
69
|
+
'id': :'String',
|
70
|
+
'compartment_id': :'String',
|
71
|
+
'resources': :'Array<OCI::ResourceManager::Models::WorkRequestResource>',
|
72
|
+
'percent_complete': :'Float',
|
73
|
+
'time_accepted': :'DateTime',
|
74
|
+
'time_started': :'DateTime',
|
75
|
+
'time_finished': :'DateTime'
|
76
|
+
# rubocop:enable Style/SymbolLiteral
|
77
|
+
}
|
78
|
+
end
|
79
|
+
|
80
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
81
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
82
|
+
|
83
|
+
|
84
|
+
# Initializes the object
|
85
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
86
|
+
# @option attributes [String] :operation_type The value to assign to the {#operation_type} property
|
87
|
+
# @option attributes [String] :status The value to assign to the {#status} property
|
88
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
89
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
90
|
+
# @option attributes [Array<OCI::ResourceManager::Models::WorkRequestResource>] :resources The value to assign to the {#resources} property
|
91
|
+
# @option attributes [Float] :percent_complete The value to assign to the {#percent_complete} property
|
92
|
+
# @option attributes [DateTime] :time_accepted The value to assign to the {#time_accepted} property
|
93
|
+
# @option attributes [DateTime] :time_started The value to assign to the {#time_started} property
|
94
|
+
# @option attributes [DateTime] :time_finished The value to assign to the {#time_finished} property
|
95
|
+
def initialize(attributes = {})
|
96
|
+
return unless attributes.is_a?(Hash)
|
97
|
+
|
98
|
+
# convert string to symbol for hash key
|
99
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
100
|
+
|
101
|
+
self.operation_type = attributes[:'operationType'] if attributes[:'operationType']
|
102
|
+
|
103
|
+
raise 'You cannot provide both :operationType and :operation_type' if attributes.key?(:'operationType') && attributes.key?(:'operation_type')
|
104
|
+
|
105
|
+
self.operation_type = attributes[:'operation_type'] if attributes[:'operation_type']
|
106
|
+
|
107
|
+
self.status = attributes[:'status'] if attributes[:'status']
|
108
|
+
|
109
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
110
|
+
|
111
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
112
|
+
|
113
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
114
|
+
|
115
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
116
|
+
|
117
|
+
self.resources = attributes[:'resources'] if attributes[:'resources']
|
118
|
+
|
119
|
+
self.percent_complete = attributes[:'percentComplete'] if attributes[:'percentComplete']
|
120
|
+
|
121
|
+
raise 'You cannot provide both :percentComplete and :percent_complete' if attributes.key?(:'percentComplete') && attributes.key?(:'percent_complete')
|
122
|
+
|
123
|
+
self.percent_complete = attributes[:'percent_complete'] if attributes[:'percent_complete']
|
124
|
+
|
125
|
+
self.time_accepted = attributes[:'timeAccepted'] if attributes[:'timeAccepted']
|
126
|
+
|
127
|
+
raise 'You cannot provide both :timeAccepted and :time_accepted' if attributes.key?(:'timeAccepted') && attributes.key?(:'time_accepted')
|
128
|
+
|
129
|
+
self.time_accepted = attributes[:'time_accepted'] if attributes[:'time_accepted']
|
130
|
+
|
131
|
+
self.time_started = attributes[:'timeStarted'] if attributes[:'timeStarted']
|
132
|
+
|
133
|
+
raise 'You cannot provide both :timeStarted and :time_started' if attributes.key?(:'timeStarted') && attributes.key?(:'time_started')
|
134
|
+
|
135
|
+
self.time_started = attributes[:'time_started'] if attributes[:'time_started']
|
136
|
+
|
137
|
+
self.time_finished = attributes[:'timeFinished'] if attributes[:'timeFinished']
|
138
|
+
|
139
|
+
raise 'You cannot provide both :timeFinished and :time_finished' if attributes.key?(:'timeFinished') && attributes.key?(:'time_finished')
|
140
|
+
|
141
|
+
self.time_finished = attributes[:'time_finished'] if attributes[:'time_finished']
|
142
|
+
end
|
143
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
144
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
145
|
+
|
146
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
147
|
+
|
148
|
+
|
149
|
+
# Checks equality by comparing each attribute.
|
150
|
+
# @param [Object] other the other object to be compared
|
151
|
+
def ==(other)
|
152
|
+
return true if equal?(other)
|
153
|
+
|
154
|
+
self.class == other.class &&
|
155
|
+
operation_type == other.operation_type &&
|
156
|
+
status == other.status &&
|
157
|
+
id == other.id &&
|
158
|
+
compartment_id == other.compartment_id &&
|
159
|
+
resources == other.resources &&
|
160
|
+
percent_complete == other.percent_complete &&
|
161
|
+
time_accepted == other.time_accepted &&
|
162
|
+
time_started == other.time_started &&
|
163
|
+
time_finished == other.time_finished
|
164
|
+
end
|
165
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
166
|
+
|
167
|
+
# @see the `==` method
|
168
|
+
# @param [Object] other the other object to be compared
|
169
|
+
def eql?(other)
|
170
|
+
self == other
|
171
|
+
end
|
172
|
+
|
173
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
174
|
+
|
175
|
+
|
176
|
+
# Calculates hash code according to all attributes.
|
177
|
+
# @return [Fixnum] Hash code
|
178
|
+
def hash
|
179
|
+
[operation_type, status, id, compartment_id, resources, percent_complete, time_accepted, time_started, time_finished].hash
|
180
|
+
end
|
181
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
182
|
+
|
183
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
184
|
+
|
185
|
+
|
186
|
+
# Builds the object from hash
|
187
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
188
|
+
# @return [Object] Returns the model itself
|
189
|
+
def build_from_hash(attributes)
|
190
|
+
return nil unless attributes.is_a?(Hash)
|
191
|
+
|
192
|
+
self.class.swagger_types.each_pair do |key, type|
|
193
|
+
if type =~ /^Array<(.*)>/i
|
194
|
+
# check to ensure the input is an array given that the the attribute
|
195
|
+
# is documented as an array but the input is not
|
196
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
197
|
+
public_method("#{key}=").call(
|
198
|
+
attributes[self.class.attribute_map[key]]
|
199
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
200
|
+
)
|
201
|
+
end
|
202
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
203
|
+
public_method("#{key}=").call(
|
204
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
205
|
+
)
|
206
|
+
end
|
207
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
208
|
+
end
|
209
|
+
|
210
|
+
self
|
211
|
+
end
|
212
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
213
|
+
|
214
|
+
# Returns the string representation of the object
|
215
|
+
# @return [String] String presentation of the object
|
216
|
+
def to_s
|
217
|
+
to_hash.to_s
|
218
|
+
end
|
219
|
+
|
220
|
+
# Returns the object in the form of hash
|
221
|
+
# @return [Hash] Returns the object in the form of hash
|
222
|
+
def to_hash
|
223
|
+
hash = {}
|
224
|
+
self.class.attribute_map.each_pair do |attr, param|
|
225
|
+
value = public_method(attr).call
|
226
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
227
|
+
|
228
|
+
hash[param] = _to_hash(value)
|
229
|
+
end
|
230
|
+
hash
|
231
|
+
end
|
232
|
+
|
233
|
+
private
|
234
|
+
|
235
|
+
# Outputs non-array value in the form of hash
|
236
|
+
# For object, use to_hash. Otherwise, just return the value
|
237
|
+
# @param [Object] value Any valid value
|
238
|
+
# @return [Hash] Returns the value in the form of hash
|
239
|
+
def _to_hash(value)
|
240
|
+
if value.is_a?(Array)
|
241
|
+
value.compact.map { |v| _to_hash(v) }
|
242
|
+
elsif value.is_a?(Hash)
|
243
|
+
{}.tap do |hash|
|
244
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
245
|
+
end
|
246
|
+
elsif value.respond_to? :to_hash
|
247
|
+
value.to_hash
|
248
|
+
else
|
249
|
+
value
|
250
|
+
end
|
251
|
+
end
|
252
|
+
end
|
253
|
+
end
|
254
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
@@ -11,6 +11,7 @@ end
|
|
11
11
|
|
12
12
|
# Require models
|
13
13
|
require 'oci/resource_manager/models/apply_job_plan_resolution'
|
14
|
+
require 'oci/resource_manager/models/change_stack_compartment_details'
|
14
15
|
require 'oci/resource_manager/models/config_source'
|
15
16
|
require 'oci/resource_manager/models/create_config_source_details'
|
16
17
|
require 'oci/resource_manager/models/create_job_details'
|
@@ -26,6 +27,11 @@ require 'oci/resource_manager/models/update_config_source_details'
|
|
26
27
|
require 'oci/resource_manager/models/update_job_details'
|
27
28
|
require 'oci/resource_manager/models/update_stack_details'
|
28
29
|
require 'oci/resource_manager/models/update_zip_upload_config_source_details'
|
30
|
+
require 'oci/resource_manager/models/work_request'
|
31
|
+
require 'oci/resource_manager/models/work_request_error'
|
32
|
+
require 'oci/resource_manager/models/work_request_log_entry'
|
33
|
+
require 'oci/resource_manager/models/work_request_resource'
|
34
|
+
require 'oci/resource_manager/models/work_request_summary'
|
29
35
|
require 'oci/resource_manager/models/zip_upload_config_source'
|
30
36
|
|
31
37
|
# Require generated clients
|
@@ -170,6 +170,75 @@ module OCI
|
|
170
170
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
171
171
|
|
172
172
|
|
173
|
+
# Moves a Stack and it's associated Jobs into a different compartment.
|
174
|
+
# @param [String] stack_id The stack OCID.
|
175
|
+
# @param [OCI::ResourceManager::Models::ChangeStackCompartmentDetails] change_stack_compartment_details
|
176
|
+
# @param [Hash] opts the optional parameters
|
177
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
178
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
179
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match`
|
180
|
+
# parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource
|
181
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
182
|
+
#
|
183
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
184
|
+
# particular request, please provide the request ID.
|
185
|
+
#
|
186
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
187
|
+
# server error without risk of retrying the same action. Retry tokens expire after
|
188
|
+
# 24 hours, but can be invalidated before then due to conflicting operations. For example,
|
189
|
+
# if a resource has been deleted and purged from the system, then a retry of the original
|
190
|
+
# creation request may be rejected.
|
191
|
+
#
|
192
|
+
# @return [Response] A Response object with data of type nil
|
193
|
+
def change_stack_compartment(stack_id, change_stack_compartment_details, opts = {})
|
194
|
+
logger.debug 'Calling operation ResourceManagerClient#change_stack_compartment.' if logger
|
195
|
+
|
196
|
+
raise "Missing the required parameter 'stack_id' when calling change_stack_compartment." if stack_id.nil?
|
197
|
+
raise "Missing the required parameter 'change_stack_compartment_details' when calling change_stack_compartment." if change_stack_compartment_details.nil?
|
198
|
+
raise "Parameter value for 'stack_id' must not be blank" if OCI::Internal::Util.blank_string?(stack_id)
|
199
|
+
|
200
|
+
path = '/stacks/{stackId}/actions/changeCompartment'.sub('{stackId}', stack_id.to_s)
|
201
|
+
operation_signing_strategy = :standard
|
202
|
+
|
203
|
+
# rubocop:disable Style/NegatedIf
|
204
|
+
# Query Params
|
205
|
+
query_params = {}
|
206
|
+
|
207
|
+
# Header Params
|
208
|
+
header_params = {}
|
209
|
+
header_params[:accept] = 'application/json'
|
210
|
+
header_params[:'content-type'] = 'application/json'
|
211
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
212
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
213
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
214
|
+
# rubocop:enable Style/NegatedIf
|
215
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
216
|
+
|
217
|
+
post_body = @api_client.object_to_http_body(change_stack_compartment_details)
|
218
|
+
|
219
|
+
# rubocop:disable Metrics/BlockLength
|
220
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ResourceManagerClient#change_stack_compartment') do
|
221
|
+
@api_client.call_api(
|
222
|
+
:POST,
|
223
|
+
path,
|
224
|
+
endpoint,
|
225
|
+
header_params: header_params,
|
226
|
+
query_params: query_params,
|
227
|
+
operation_signing_strategy: operation_signing_strategy,
|
228
|
+
body: post_body
|
229
|
+
)
|
230
|
+
end
|
231
|
+
# rubocop:enable Metrics/BlockLength
|
232
|
+
end
|
233
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
234
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
235
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
236
|
+
|
237
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
238
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
239
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
240
|
+
|
241
|
+
|
173
242
|
# Creates a job.
|
174
243
|
# @param [OCI::ResourceManager::Models::CreateJobDetails] create_job_details The properties for a request to create a job.
|
175
244
|
# @param [Hash] opts the optional parameters
|
@@ -917,6 +986,61 @@ module OCI
|
|
917
986
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
918
987
|
|
919
988
|
|
989
|
+
# Return the given work request.
|
990
|
+
# @param [String] work_request_id The OCID of the work request.
|
991
|
+
# @param [Hash] opts the optional parameters
|
992
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
993
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
994
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
995
|
+
# particular request, please provide the request ID.
|
996
|
+
#
|
997
|
+
# @return [Response] A Response object with data of type {OCI::ResourceManager::Models::WorkRequest WorkRequest}
|
998
|
+
def get_work_request(work_request_id, opts = {})
|
999
|
+
logger.debug 'Calling operation ResourceManagerClient#get_work_request.' if logger
|
1000
|
+
|
1001
|
+
raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil?
|
1002
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
1003
|
+
|
1004
|
+
path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s)
|
1005
|
+
operation_signing_strategy = :standard
|
1006
|
+
|
1007
|
+
# rubocop:disable Style/NegatedIf
|
1008
|
+
# Query Params
|
1009
|
+
query_params = {}
|
1010
|
+
|
1011
|
+
# Header Params
|
1012
|
+
header_params = {}
|
1013
|
+
header_params[:accept] = 'application/json'
|
1014
|
+
header_params[:'content-type'] = 'application/json'
|
1015
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1016
|
+
# rubocop:enable Style/NegatedIf
|
1017
|
+
|
1018
|
+
post_body = nil
|
1019
|
+
|
1020
|
+
# rubocop:disable Metrics/BlockLength
|
1021
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ResourceManagerClient#get_work_request') do
|
1022
|
+
@api_client.call_api(
|
1023
|
+
:GET,
|
1024
|
+
path,
|
1025
|
+
endpoint,
|
1026
|
+
header_params: header_params,
|
1027
|
+
query_params: query_params,
|
1028
|
+
operation_signing_strategy: operation_signing_strategy,
|
1029
|
+
body: post_body,
|
1030
|
+
return_type: 'OCI::ResourceManager::Models::WorkRequest'
|
1031
|
+
)
|
1032
|
+
end
|
1033
|
+
# rubocop:enable Metrics/BlockLength
|
1034
|
+
end
|
1035
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1036
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1037
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1038
|
+
|
1039
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1040
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1041
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1042
|
+
|
1043
|
+
|
920
1044
|
# Returns a list of jobs in a stack or compartment, ordered by time created.
|
921
1045
|
#
|
922
1046
|
# - To list all jobs in a stack, provide the stack OCID.
|
@@ -1129,6 +1253,220 @@ module OCI
|
|
1129
1253
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1130
1254
|
|
1131
1255
|
|
1256
|
+
# Return a (paginated) list of errors for a given work request.
|
1257
|
+
#
|
1258
|
+
# @param [String] work_request_id The OCID of the work request.
|
1259
|
+
# @param [Hash] opts the optional parameters
|
1260
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1261
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1262
|
+
# @option opts [String] :compartment_id The compartment OCID on which to filter.
|
1263
|
+
# @option opts [Integer] :limit The number of items returned in a paginated `List` call. For information about pagination, see
|
1264
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
1265
|
+
#
|
1266
|
+
# @option opts [String] :page The value of the `opc-next-page` response header from the preceding `List` call.
|
1267
|
+
# For information about pagination, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
1268
|
+
#
|
1269
|
+
# @option opts [String] :sort_order The sort order, either `ASC` (ascending) or `DESC` (descending).
|
1270
|
+
#
|
1271
|
+
# Allowed values are: ASC, DESC
|
1272
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1273
|
+
# particular request, please provide the request ID.
|
1274
|
+
#
|
1275
|
+
# @return [Response] A Response object with data of type Array<{OCI::ResourceManager::Models::WorkRequestError WorkRequestError}>
|
1276
|
+
def list_work_request_errors(work_request_id, opts = {})
|
1277
|
+
logger.debug 'Calling operation ResourceManagerClient#list_work_request_errors.' if logger
|
1278
|
+
|
1279
|
+
raise "Missing the required parameter 'work_request_id' when calling list_work_request_errors." if work_request_id.nil?
|
1280
|
+
|
1281
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
1282
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
1283
|
+
end
|
1284
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
1285
|
+
|
1286
|
+
path = '/workRequests/{workRequestId}/errors'.sub('{workRequestId}', work_request_id.to_s)
|
1287
|
+
operation_signing_strategy = :standard
|
1288
|
+
|
1289
|
+
# rubocop:disable Style/NegatedIf
|
1290
|
+
# Query Params
|
1291
|
+
query_params = {}
|
1292
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
1293
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1294
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1295
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1296
|
+
|
1297
|
+
# Header Params
|
1298
|
+
header_params = {}
|
1299
|
+
header_params[:accept] = 'application/json'
|
1300
|
+
header_params[:'content-type'] = 'application/json'
|
1301
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1302
|
+
# rubocop:enable Style/NegatedIf
|
1303
|
+
|
1304
|
+
post_body = nil
|
1305
|
+
|
1306
|
+
# rubocop:disable Metrics/BlockLength
|
1307
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ResourceManagerClient#list_work_request_errors') do
|
1308
|
+
@api_client.call_api(
|
1309
|
+
:GET,
|
1310
|
+
path,
|
1311
|
+
endpoint,
|
1312
|
+
header_params: header_params,
|
1313
|
+
query_params: query_params,
|
1314
|
+
operation_signing_strategy: operation_signing_strategy,
|
1315
|
+
body: post_body,
|
1316
|
+
return_type: 'Array<OCI::ResourceManager::Models::WorkRequestError>'
|
1317
|
+
)
|
1318
|
+
end
|
1319
|
+
# rubocop:enable Metrics/BlockLength
|
1320
|
+
end
|
1321
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1322
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1323
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1324
|
+
|
1325
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1326
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1327
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1328
|
+
|
1329
|
+
|
1330
|
+
# Return a (paginated) list of logs for a given work request.
|
1331
|
+
#
|
1332
|
+
# @param [String] work_request_id The OCID of the work request.
|
1333
|
+
# @param [Hash] opts the optional parameters
|
1334
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1335
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1336
|
+
# @option opts [String] :compartment_id The compartment OCID on which to filter.
|
1337
|
+
# @option opts [Integer] :limit The number of items returned in a paginated `List` call. For information about pagination, see
|
1338
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
1339
|
+
#
|
1340
|
+
# @option opts [String] :page The value of the `opc-next-page` response header from the preceding `List` call.
|
1341
|
+
# For information about pagination, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
1342
|
+
#
|
1343
|
+
# @option opts [String] :sort_order The sort order, either `ASC` (ascending) or `DESC` (descending).
|
1344
|
+
#
|
1345
|
+
# Allowed values are: ASC, DESC
|
1346
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1347
|
+
# particular request, please provide the request ID.
|
1348
|
+
#
|
1349
|
+
# @return [Response] A Response object with data of type Array<{OCI::ResourceManager::Models::WorkRequestLogEntry WorkRequestLogEntry}>
|
1350
|
+
def list_work_request_logs(work_request_id, opts = {})
|
1351
|
+
logger.debug 'Calling operation ResourceManagerClient#list_work_request_logs.' if logger
|
1352
|
+
|
1353
|
+
raise "Missing the required parameter 'work_request_id' when calling list_work_request_logs." if work_request_id.nil?
|
1354
|
+
|
1355
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
1356
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
1357
|
+
end
|
1358
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
1359
|
+
|
1360
|
+
path = '/workRequests/{workRequestId}/logs'.sub('{workRequestId}', work_request_id.to_s)
|
1361
|
+
operation_signing_strategy = :standard
|
1362
|
+
|
1363
|
+
# rubocop:disable Style/NegatedIf
|
1364
|
+
# Query Params
|
1365
|
+
query_params = {}
|
1366
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
1367
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1368
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1369
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1370
|
+
|
1371
|
+
# Header Params
|
1372
|
+
header_params = {}
|
1373
|
+
header_params[:accept] = 'application/json'
|
1374
|
+
header_params[:'content-type'] = 'application/json'
|
1375
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1376
|
+
# rubocop:enable Style/NegatedIf
|
1377
|
+
|
1378
|
+
post_body = nil
|
1379
|
+
|
1380
|
+
# rubocop:disable Metrics/BlockLength
|
1381
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ResourceManagerClient#list_work_request_logs') do
|
1382
|
+
@api_client.call_api(
|
1383
|
+
:GET,
|
1384
|
+
path,
|
1385
|
+
endpoint,
|
1386
|
+
header_params: header_params,
|
1387
|
+
query_params: query_params,
|
1388
|
+
operation_signing_strategy: operation_signing_strategy,
|
1389
|
+
body: post_body,
|
1390
|
+
return_type: 'Array<OCI::ResourceManager::Models::WorkRequestLogEntry>'
|
1391
|
+
)
|
1392
|
+
end
|
1393
|
+
# rubocop:enable Metrics/BlockLength
|
1394
|
+
end
|
1395
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1396
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1397
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1398
|
+
|
1399
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1400
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1401
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1402
|
+
|
1403
|
+
|
1404
|
+
# Lists the work requests in a given compartment or for a given resource.
|
1405
|
+
#
|
1406
|
+
# @param [String] compartment_id The compartment OCID on which to filter.
|
1407
|
+
# @param [Hash] opts the optional parameters
|
1408
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1409
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1410
|
+
# @option opts [String] :resource_id The OCID of the resource.
|
1411
|
+
# @option opts [Integer] :limit The number of items returned in a paginated `List` call. For information about pagination, see
|
1412
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
1413
|
+
#
|
1414
|
+
# @option opts [String] :page The value of the `opc-next-page` response header from the preceding `List` call.
|
1415
|
+
# For information about pagination, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
1416
|
+
#
|
1417
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1418
|
+
# particular request, please provide the request ID.
|
1419
|
+
#
|
1420
|
+
# @return [Response] A Response object with data of type Array<{OCI::ResourceManager::Models::WorkRequestSummary WorkRequestSummary}>
|
1421
|
+
def list_work_requests(compartment_id, opts = {})
|
1422
|
+
logger.debug 'Calling operation ResourceManagerClient#list_work_requests.' if logger
|
1423
|
+
|
1424
|
+
raise "Missing the required parameter 'compartment_id' when calling list_work_requests." if compartment_id.nil?
|
1425
|
+
|
1426
|
+
path = '/workRequests'
|
1427
|
+
operation_signing_strategy = :standard
|
1428
|
+
|
1429
|
+
# rubocop:disable Style/NegatedIf
|
1430
|
+
# Query Params
|
1431
|
+
query_params = {}
|
1432
|
+
query_params[:compartmentId] = compartment_id
|
1433
|
+
query_params[:resourceId] = opts[:resource_id] if opts[:resource_id]
|
1434
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1435
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1436
|
+
|
1437
|
+
# Header Params
|
1438
|
+
header_params = {}
|
1439
|
+
header_params[:accept] = 'application/json'
|
1440
|
+
header_params[:'content-type'] = 'application/json'
|
1441
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1442
|
+
# rubocop:enable Style/NegatedIf
|
1443
|
+
|
1444
|
+
post_body = nil
|
1445
|
+
|
1446
|
+
# rubocop:disable Metrics/BlockLength
|
1447
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ResourceManagerClient#list_work_requests') do
|
1448
|
+
@api_client.call_api(
|
1449
|
+
:GET,
|
1450
|
+
path,
|
1451
|
+
endpoint,
|
1452
|
+
header_params: header_params,
|
1453
|
+
query_params: query_params,
|
1454
|
+
operation_signing_strategy: operation_signing_strategy,
|
1455
|
+
body: post_body,
|
1456
|
+
return_type: 'Array<OCI::ResourceManager::Models::WorkRequestSummary>'
|
1457
|
+
)
|
1458
|
+
end
|
1459
|
+
# rubocop:enable Metrics/BlockLength
|
1460
|
+
end
|
1461
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1462
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1463
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1464
|
+
|
1465
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1466
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1467
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1468
|
+
|
1469
|
+
|
1132
1470
|
# Updates the specified job.
|
1133
1471
|
# @param [String] job_id The job OCID.
|
1134
1472
|
# @param [OCI::ResourceManager::Models::UpdateJobDetails] update_job_details Updates properties for the specified job.
|