oci 2.5.10 → 2.5.11
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 +4 -1
- data/lib/oci.rb +3 -0
- data/lib/oci/budget/budget.rb +1 -0
- data/lib/oci/budget/budget_client.rb +21 -1
- data/lib/oci/budget/models/budget.rb +52 -2
- data/lib/oci/budget/models/budget_summary.rb +52 -2
- data/lib/oci/budget/models/create_budget_details.rb +55 -2
- data/lib/oci/budget/models/target_type.rb +10 -0
- data/lib/oci/core/blockstorage_client.rb +18 -6
- data/lib/oci/core/compute_client.rb +75 -0
- data/lib/oci/core/compute_management_client.rb +4 -1
- data/lib/oci/core/core.rb +12 -0
- data/lib/oci/core/models/add_security_rule_details.rb +2 -2
- data/lib/oci/core/models/boot_volume_backup.rb +19 -1
- data/lib/oci/core/models/change_boot_volume_backup_compartment_details.rb +2 -2
- data/lib/oci/core/models/change_boot_volume_compartment_details.rb +2 -2
- data/lib/oci/core/models/change_cpe_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_cross_connect_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_cross_connect_group_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_instance_compartment_details.rb +154 -0
- data/lib/oci/core/models/change_ip_sec_connection_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_remote_peering_connection_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_virtual_circuit_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_volume_backup_compartment_details.rb +2 -2
- data/lib/oci/core/models/change_volume_compartment_details.rb +2 -2
- data/lib/oci/core/models/change_volume_group_backup_compartment_details.rb +2 -2
- data/lib/oci/core/models/change_volume_group_compartment_details.rb +2 -2
- data/lib/oci/core/models/copy_volume_backup_details.rb +27 -4
- data/lib/oci/core/models/create_cross_connect_details.rb +37 -1
- data/lib/oci/core/models/create_cross_connect_group_details.rb +40 -4
- data/lib/oci/core/models/create_instance_configuration_base.rb +250 -0
- data/lib/oci/core/models/create_instance_configuration_details.rb +15 -57
- data/lib/oci/core/models/create_instance_configuration_from_instance_details.rb +179 -0
- data/lib/oci/core/models/create_ipv6_details.rb +249 -0
- data/lib/oci/core/models/create_remote_peering_connection_details.rb +40 -4
- data/lib/oci/core/models/create_service_gateway_details.rb +23 -1
- data/lib/oci/core/models/create_subnet_details.rb +24 -1
- data/lib/oci/core/models/create_vcn_details.rb +56 -4
- data/lib/oci/core/models/create_virtual_circuit_details.rb +38 -2
- data/lib/oci/core/models/cross_connect.rb +37 -1
- data/lib/oci/core/models/cross_connect_group.rb +37 -1
- data/lib/oci/core/models/cross_connect_mapping.rb +50 -1
- data/lib/oci/core/models/egress_security_rule.rb +10 -7
- data/lib/oci/core/models/ingress_security_rule.rb +10 -7
- data/lib/oci/core/models/instance.rb +1 -0
- data/lib/oci/core/models/ipv6.rb +375 -0
- data/lib/oci/core/models/private_ip.rb +1 -0
- data/lib/oci/core/models/remote_peering_connection.rb +37 -1
- data/lib/oci/core/models/route_rule.rb +4 -1
- data/lib/oci/core/models/security_rule.rb +2 -2
- data/lib/oci/core/models/service_gateway.rb +18 -1
- data/lib/oci/core/models/subnet.rb +56 -1
- data/lib/oci/core/models/update_cross_connect_details.rb +37 -1
- data/lib/oci/core/models/update_cross_connect_group_details.rb +40 -4
- data/lib/oci/core/models/update_ipv6_details.rb +229 -0
- data/lib/oci/core/models/update_remote_peering_connection_details.rb +40 -4
- data/lib/oci/core/models/update_security_rule_details.rb +2 -2
- data/lib/oci/core/models/update_service_gateway_details.rb +18 -1
- data/lib/oci/core/models/update_virtual_circuit_details.rb +37 -1
- data/lib/oci/core/models/vcn.rb +42 -1
- data/lib/oci/core/models/virtual_circuit.rb +37 -1
- data/lib/oci/core/models/volume_backup.rb +19 -1
- data/lib/oci/core/virtual_network_client.rb +744 -10
- data/lib/oci/core/virtual_network_client_composite_operations.rb +119 -0
- data/lib/oci/database/database.rb +3 -0
- data/lib/oci/database/database_client.rb +320 -36
- data/lib/oci/database/models/autonomous_data_warehouse.rb +1 -0
- data/lib/oci/database/models/autonomous_data_warehouse_console_token_details.rb +164 -0
- data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +1 -0
- data/lib/oci/database/models/autonomous_database.rb +5 -3
- data/lib/oci/database/models/autonomous_database_connection_urls.rb +1 -1
- data/lib/oci/database/models/autonomous_database_console_token_details.rb +163 -0
- data/lib/oci/database/models/autonomous_database_summary.rb +5 -3
- data/lib/oci/database/models/autonomous_db_preview_version_summary.rb +1 -3
- data/lib/oci/database/models/change_compartment_details.rb +155 -0
- data/lib/oci/database/models/create_autonomous_database_base.rb +5 -4
- data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +2 -5
- data/lib/oci/database/models/create_database_details.rb +1 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +2 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +2 -1
- data/lib/oci/database/models/db_system.rb +2 -5
- data/lib/oci/database/models/db_system_summary.rb +2 -5
- data/lib/oci/database/models/launch_db_system_base.rb +3 -5
- data/lib/oci/database/models/maintenance_window.rb +2 -1
- data/lib/oci/database/models/update_autonomous_database_details.rb +5 -3
- data/lib/oci/database/models/update_db_system_details.rb +2 -5
- data/lib/oci/dns/dns.rb +2 -0
- data/lib/oci/dns/dns_client.rb +138 -1
- data/lib/oci/dns/models/change_steering_policy_compartment_details.rb +155 -0
- data/lib/oci/dns/models/change_zone_compartment_details.rb +155 -0
- data/lib/oci/events/events.rb +34 -0
- data/lib/oci/events/events_client.rb +537 -0
- data/lib/oci/events/events_client_composite_operations.rb +145 -0
- data/lib/oci/events/models/action.rb +275 -0
- data/lib/oci/events/models/action_details.rb +222 -0
- data/lib/oci/events/models/action_details_list.rb +150 -0
- data/lib/oci/events/models/action_list.rb +151 -0
- data/lib/oci/events/models/change_rule_compartment_details.rb +156 -0
- data/lib/oci/events/models/create_faa_s_action_details.rb +170 -0
- data/lib/oci/events/models/create_notification_service_action_details.rb +170 -0
- data/lib/oci/events/models/create_rule_details.rb +284 -0
- data/lib/oci/events/models/create_streaming_service_action_details.rb +170 -0
- data/lib/oci/events/models/faa_s_action.rb +178 -0
- data/lib/oci/events/models/notification_service_action.rb +179 -0
- data/lib/oci/events/models/rule.rb +372 -0
- data/lib/oci/events/models/rule_summary.rb +321 -0
- data/lib/oci/events/models/streaming_service_action.rb +178 -0
- data/lib/oci/events/models/update_rule_details.rb +266 -0
- data/lib/oci/events/util.rb +2 -0
- data/lib/oci/functions/functions.rb +29 -0
- data/lib/oci/functions/functions_invoke_client.rb +237 -0
- data/lib/oci/functions/functions_invoke_client_composite_operations.rb +24 -0
- data/lib/oci/functions/functions_management_client.rb +851 -0
- data/lib/oci/functions/functions_management_client_composite_operations.rb +266 -0
- data/lib/oci/functions/models/application.rb +322 -0
- data/lib/oci/functions/models/application_summary.rb +281 -0
- data/lib/oci/functions/models/change_application_compartment_details.rb +156 -0
- data/lib/oci/functions/models/create_application_details.rb +236 -0
- data/lib/oci/functions/models/create_function_details.rb +280 -0
- data/lib/oci/functions/models/function.rb +397 -0
- data/lib/oci/functions/models/function_summary.rb +381 -0
- data/lib/oci/functions/models/update_application_details.rb +191 -0
- data/lib/oci/functions/models/update_function_details.rb +250 -0
- data/lib/oci/functions/util.rb +2 -0
- data/lib/oci/healthchecks/health_checks_client.rb +147 -1
- data/lib/oci/healthchecks/healthchecks.rb +2 -0
- data/lib/oci/healthchecks/models/change_http_monitor_compartment_details.rb +155 -0
- data/lib/oci/healthchecks/models/change_ping_monitor_compartment_details.rb +155 -0
- data/lib/oci/healthchecks/models/create_http_monitor_details.rb +2 -1
- data/lib/oci/healthchecks/models/create_on_demand_http_probe_details.rb +2 -1
- data/lib/oci/healthchecks/models/create_on_demand_ping_probe_details.rb +2 -1
- data/lib/oci/healthchecks/models/create_ping_monitor_details.rb +2 -1
- data/lib/oci/healthchecks/models/http_monitor.rb +2 -0
- data/lib/oci/healthchecks/models/http_probe.rb +2 -0
- data/lib/oci/healthchecks/models/ping_monitor.rb +2 -0
- data/lib/oci/healthchecks/models/ping_probe.rb +2 -0
- data/lib/oci/healthchecks/models/update_http_monitor_details.rb +2 -0
- data/lib/oci/healthchecks/models/update_ping_monitor_details.rb +2 -0
- data/lib/oci/identity/identity.rb +1 -0
- data/lib/oci/identity/identity_client.rb +70 -0
- data/lib/oci/identity/identity_client_composite_operations.rb +50 -0
- data/lib/oci/identity/models/move_compartment_details.rb +155 -0
- data/lib/oci/key_management/key_management.rb +2 -0
- data/lib/oci/key_management/kms_management_client.rb +73 -0
- data/lib/oci/key_management/kms_vault_client.rb +73 -0
- data/lib/oci/key_management/models/change_key_compartment_details.rb +153 -0
- data/lib/oci/key_management/models/change_vault_compartment_details.rb +153 -0
- data/lib/oci/key_management/models/key.rb +1 -0
- data/lib/oci/key_management/models/key_summary.rb +1 -0
- data/lib/oci/key_management/models/vault.rb +1 -0
- data/lib/oci/key_management/models/vault_summary.rb +1 -0
- data/lib/oci/limits/limits.rb +23 -0
- data/lib/oci/limits/models/create_quota_details.rb +220 -0
- data/lib/oci/limits/models/quota.rb +287 -0
- data/lib/oci/limits/models/quota_summary.rb +273 -0
- data/lib/oci/limits/models/update_quota_details.rb +194 -0
- data/lib/oci/limits/quotas_client.rb +439 -0
- data/lib/oci/limits/quotas_client_composite_operations.rb +143 -0
- data/lib/oci/limits/util.rb +2 -0
- data/lib/oci/load_balancer/load_balancer.rb +9 -0
- data/lib/oci/load_balancer/load_balancer_client.rb +139 -0
- data/lib/oci/load_balancer/load_balancer_client_composite_operations.rb +50 -0
- data/lib/oci/load_balancer/models/allow_rule.rb +181 -0
- data/lib/oci/load_balancer/models/backend_set.rb +21 -4
- data/lib/oci/load_balancer/models/backend_set_details.rb +21 -4
- data/lib/oci/load_balancer/models/change_load_balancer_compartment_details.rb +156 -0
- data/lib/oci/load_balancer/models/control_access_using_http_methods_rule.rb +205 -0
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +21 -4
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +37 -1
- data/lib/oci/load_balancer/models/lb_cookie_session_persistence_configuration_details.rb +334 -0
- data/lib/oci/load_balancer/models/listener_rule_summary.rb +166 -0
- data/lib/oci/load_balancer/models/rule.rb +4 -0
- data/lib/oci/load_balancer/models/rule_condition.rb +192 -0
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +6 -0
- data/lib/oci/load_balancer/models/source_ip_address_condition.rb +167 -0
- data/lib/oci/load_balancer/models/source_vcn_id_condition.rb +169 -0
- data/lib/oci/load_balancer/models/source_vcn_ip_address_condition.rb +171 -0
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +21 -4
- data/lib/oci/monitoring/models/alarm.rb +4 -3
- data/lib/oci/monitoring/models/alarm_summary.rb +4 -3
- data/lib/oci/monitoring/models/change_alarm_compartment_details.rb +155 -0
- data/lib/oci/monitoring/models/create_alarm_details.rb +4 -3
- data/lib/oci/monitoring/models/datapoint.rb +1 -1
- data/lib/oci/monitoring/models/list_metrics_details.rb +4 -4
- data/lib/oci/monitoring/models/metric_data.rb +14 -0
- data/lib/oci/monitoring/models/metric_data_details.rb +6 -4
- data/lib/oci/monitoring/models/summarize_metrics_data_details.rb +3 -0
- data/lib/oci/monitoring/models/update_alarm_details.rb +4 -3
- data/lib/oci/monitoring/monitoring.rb +1 -0
- data/lib/oci/monitoring/monitoring_client.rb +140 -5
- data/lib/oci/ons/models/backoff_retry_policy.rb +2 -2
- data/lib/oci/ons/models/change_compartment_details.rb +156 -0
- data/lib/oci/ons/models/confirmation_result.rb +5 -6
- data/lib/oci/ons/models/create_topic_details.rb +1 -1
- data/lib/oci/ons/models/notification_topic.rb +2 -2
- data/lib/oci/ons/models/notification_topic_summary.rb +2 -2
- data/lib/oci/ons/models/subscription.rb +47 -4
- data/lib/oci/ons/models/subscription_summary.rb +19 -3
- data/lib/oci/ons/notification_control_plane_client.rb +95 -8
- data/lib/oci/ons/notification_data_plane_client.rb +109 -8
- data/lib/oci/ons/ons.rb +1 -0
- data/lib/oci/regions.rb +3 -0
- data/lib/oci/streaming/models/change_stream_compartment_details.rb +155 -0
- data/lib/oci/streaming/stream_admin_client.rb +58 -0
- data/lib/oci/streaming/streaming.rb +1 -0
- data/lib/oci/version.rb +1 -1
- data/lib/oci/waas/models/access_rule_criteria.rb +14 -2
- data/lib/oci/waas/models/change_certificate_compartment_details.rb +154 -0
- data/lib/oci/waas/models/change_waas_policy_compartment_details.rb +154 -0
- data/lib/oci/waas/models/create_certificate_details.rb +2 -2
- data/lib/oci/waas/models/protection_rule_exclusion.rb +16 -1
- data/lib/oci/waas/models/protection_settings.rb +9 -5
- data/lib/oci/waas/models/waas_policy.rb +1 -1
- data/lib/oci/waas/models/waf_config_details.rb +8 -8
- data/lib/oci/waas/models/waf_log.rb +40 -19
- data/lib/oci/waas/waas.rb +2 -0
- data/lib/oci/waas/waas_client.rb +155 -27
- data/lib/oci/work_requests/models/work_request.rb +14 -8
- data/lib/oci/work_requests/models/work_request_error.rb +3 -3
- data/lib/oci/work_requests/models/work_request_log_entry.rb +2 -2
- data/lib/oci/work_requests/models/work_request_resource.rb +9 -7
- data/lib/oci/work_requests/models/work_request_summary.rb +12 -6
- data/lib/oci/work_requests/work_request_client.rb +33 -16
- metadata +81 -2
|
@@ -7,6 +7,7 @@ module OCI
|
|
|
7
7
|
# A *private IP* is a conceptual term that refers to an IPv4 private IP address and related properties.
|
|
8
8
|
# The `privateIp` object is the API representation of a private IP.
|
|
9
9
|
#
|
|
10
|
+
# **Note:** For information about IPv6 addresses, see {Ipv6}.
|
|
10
11
|
#
|
|
11
12
|
# Each instance has a *primary private IP* that is automatically created and
|
|
12
13
|
# assigned to the primary VNIC during instance launch. If you add a secondary
|
|
@@ -40,6 +40,14 @@ module OCI
|
|
|
40
40
|
# @return [String]
|
|
41
41
|
attr_accessor :compartment_id
|
|
42
42
|
|
|
43
|
+
# Defined tags for this resource. Each key is predefined and scoped to a
|
|
44
|
+
# namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
|
45
|
+
#
|
|
46
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
|
47
|
+
#
|
|
48
|
+
# @return [Hash<String, Hash<String, Object>>]
|
|
49
|
+
attr_accessor :defined_tags
|
|
50
|
+
|
|
43
51
|
# **[Required]** A user-friendly name. Does not have to be unique, and it's changeable.
|
|
44
52
|
# Avoid entering confidential information.
|
|
45
53
|
#
|
|
@@ -50,6 +58,14 @@ module OCI
|
|
|
50
58
|
# @return [String]
|
|
51
59
|
attr_accessor :drg_id
|
|
52
60
|
|
|
61
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
|
62
|
+
# predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
|
63
|
+
#
|
|
64
|
+
# Example: `{\"Department\": \"Finance\"}`
|
|
65
|
+
#
|
|
66
|
+
# @return [Hash<String, String>]
|
|
67
|
+
attr_accessor :freeform_tags
|
|
68
|
+
|
|
53
69
|
# **[Required]** The OCID of the RPC.
|
|
54
70
|
# @return [String]
|
|
55
71
|
attr_accessor :id
|
|
@@ -101,8 +117,10 @@ module OCI
|
|
|
101
117
|
{
|
|
102
118
|
# rubocop:disable Style/SymbolLiteral
|
|
103
119
|
'compartment_id': :'compartmentId',
|
|
120
|
+
'defined_tags': :'definedTags',
|
|
104
121
|
'display_name': :'displayName',
|
|
105
122
|
'drg_id': :'drgId',
|
|
123
|
+
'freeform_tags': :'freeformTags',
|
|
106
124
|
'id': :'id',
|
|
107
125
|
'is_cross_tenancy_peering': :'isCrossTenancyPeering',
|
|
108
126
|
'lifecycle_state': :'lifecycleState',
|
|
@@ -120,8 +138,10 @@ module OCI
|
|
|
120
138
|
{
|
|
121
139
|
# rubocop:disable Style/SymbolLiteral
|
|
122
140
|
'compartment_id': :'String',
|
|
141
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
|
123
142
|
'display_name': :'String',
|
|
124
143
|
'drg_id': :'String',
|
|
144
|
+
'freeform_tags': :'Hash<String, String>',
|
|
125
145
|
'id': :'String',
|
|
126
146
|
'is_cross_tenancy_peering': :'BOOLEAN',
|
|
127
147
|
'lifecycle_state': :'String',
|
|
@@ -141,8 +161,10 @@ module OCI
|
|
|
141
161
|
# Initializes the object
|
|
142
162
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
143
163
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
164
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
|
144
165
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
|
145
166
|
# @option attributes [String] :drg_id The value to assign to the {#drg_id} property
|
|
167
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
|
146
168
|
# @option attributes [String] :id The value to assign to the {#id} property
|
|
147
169
|
# @option attributes [BOOLEAN] :is_cross_tenancy_peering The value to assign to the {#is_cross_tenancy_peering} property
|
|
148
170
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
|
@@ -163,6 +185,12 @@ module OCI
|
|
|
163
185
|
|
|
164
186
|
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
165
187
|
|
|
188
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
|
189
|
+
|
|
190
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
|
191
|
+
|
|
192
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
|
193
|
+
|
|
166
194
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
|
167
195
|
|
|
168
196
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
|
@@ -175,6 +203,12 @@ module OCI
|
|
|
175
203
|
|
|
176
204
|
self.drg_id = attributes[:'drg_id'] if attributes[:'drg_id']
|
|
177
205
|
|
|
206
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
|
207
|
+
|
|
208
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
|
209
|
+
|
|
210
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
|
211
|
+
|
|
178
212
|
self.id = attributes[:'id'] if attributes[:'id']
|
|
179
213
|
|
|
180
214
|
self.is_cross_tenancy_peering = attributes[:'isCrossTenancyPeering'] unless attributes[:'isCrossTenancyPeering'].nil?
|
|
@@ -258,8 +292,10 @@ module OCI
|
|
|
258
292
|
|
|
259
293
|
self.class == other.class &&
|
|
260
294
|
compartment_id == other.compartment_id &&
|
|
295
|
+
defined_tags == other.defined_tags &&
|
|
261
296
|
display_name == other.display_name &&
|
|
262
297
|
drg_id == other.drg_id &&
|
|
298
|
+
freeform_tags == other.freeform_tags &&
|
|
263
299
|
id == other.id &&
|
|
264
300
|
is_cross_tenancy_peering == other.is_cross_tenancy_peering &&
|
|
265
301
|
lifecycle_state == other.lifecycle_state &&
|
|
@@ -283,7 +319,7 @@ module OCI
|
|
|
283
319
|
# Calculates hash code according to all attributes.
|
|
284
320
|
# @return [Fixnum] Hash code
|
|
285
321
|
def hash
|
|
286
|
-
[compartment_id, display_name, drg_id, id, is_cross_tenancy_peering, lifecycle_state, peer_id, peer_region_name, peer_tenancy_id, peering_status, time_created].hash
|
|
322
|
+
[compartment_id, defined_tags, display_name, drg_id, freeform_tags, id, is_cross_tenancy_peering, lifecycle_state, peer_id, peer_region_name, peer_tenancy_id, peering_status, time_created].hash
|
|
287
323
|
end
|
|
288
324
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
289
325
|
|
|
@@ -21,6 +21,7 @@ module OCI
|
|
|
21
21
|
# A destination IP address range in CIDR notation. Matching packets will
|
|
22
22
|
# be routed to the indicated network entity (the target).
|
|
23
23
|
#
|
|
24
|
+
# Cannot be an IPv6 CIDR.
|
|
24
25
|
#
|
|
25
26
|
# Example: `0.0.0.0/0`
|
|
26
27
|
#
|
|
@@ -32,7 +33,9 @@ module OCI
|
|
|
32
33
|
#
|
|
33
34
|
# Allowed values:
|
|
34
35
|
#
|
|
35
|
-
# * IP address range in CIDR notation. For example: `192.168.1.0/24`
|
|
36
|
+
# * IP address range in CIDR notation. Can be an IPv4 or IPv6 CIDR. For example: `192.168.1.0/24`
|
|
37
|
+
# or `2001:0db8:0123:45::/56`. If you set this to an IPv6 CIDR, the route rule's target
|
|
38
|
+
# can only be a DRG or internet gateway.
|
|
36
39
|
#
|
|
37
40
|
# * The `cidrBlock` value for a {Service}, if you're
|
|
38
41
|
# setting up a route rule for traffic destined for a particular `Service` through
|
|
@@ -40,7 +40,7 @@ module OCI
|
|
|
40
40
|
#
|
|
41
41
|
# Allowed values:
|
|
42
42
|
#
|
|
43
|
-
# * An IP address range in CIDR notation. For example: `192.168.1.0/24`
|
|
43
|
+
# * An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`
|
|
44
44
|
#
|
|
45
45
|
# * The `cidrBlock` value for a {Service}, if you're
|
|
46
46
|
# setting up a security rule for traffic destined for a particular `Service` through
|
|
@@ -124,7 +124,7 @@ module OCI
|
|
|
124
124
|
#
|
|
125
125
|
# Allowed values:
|
|
126
126
|
#
|
|
127
|
-
# * An IP address range in CIDR notation. For example: `192.168.1.0/24`
|
|
127
|
+
# * An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`
|
|
128
128
|
#
|
|
129
129
|
# * The `cidrBlock` value for a {Service}, if you're
|
|
130
130
|
# setting up a security rule for traffic coming from a particular `Service` through
|
|
@@ -74,6 +74,13 @@ module OCI
|
|
|
74
74
|
# @return [String]
|
|
75
75
|
attr_reader :lifecycle_state
|
|
76
76
|
|
|
77
|
+
# The OCID of the route table the service gateway is using. For information about why you
|
|
78
|
+
# would associate a route table with a service gateway, see
|
|
79
|
+
# [Transit Routing: Private Access to Oracle Services Network](https://docs.cloud.oracle.com/Content/Network/Tasks/transitroutingoracleservices.htm).
|
|
80
|
+
#
|
|
81
|
+
# @return [String]
|
|
82
|
+
attr_accessor :route_table_id
|
|
83
|
+
|
|
77
84
|
# **[Required]** List of the {Service} objects enabled for this service gateway.
|
|
78
85
|
# The list can be empty. You can enable a particular `Service` by using
|
|
79
86
|
# {#attach_service_id attach_service_id} or
|
|
@@ -106,6 +113,7 @@ module OCI
|
|
|
106
113
|
'freeform_tags': :'freeformTags',
|
|
107
114
|
'id': :'id',
|
|
108
115
|
'lifecycle_state': :'lifecycleState',
|
|
116
|
+
'route_table_id': :'routeTableId',
|
|
109
117
|
'services': :'services',
|
|
110
118
|
'time_created': :'timeCreated',
|
|
111
119
|
'vcn_id': :'vcnId'
|
|
@@ -124,6 +132,7 @@ module OCI
|
|
|
124
132
|
'freeform_tags': :'Hash<String, String>',
|
|
125
133
|
'id': :'String',
|
|
126
134
|
'lifecycle_state': :'String',
|
|
135
|
+
'route_table_id': :'String',
|
|
127
136
|
'services': :'Array<OCI::Core::Models::ServiceIdResponseDetails>',
|
|
128
137
|
'time_created': :'DateTime',
|
|
129
138
|
'vcn_id': :'String'
|
|
@@ -144,6 +153,7 @@ module OCI
|
|
|
144
153
|
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
|
145
154
|
# @option attributes [String] :id The value to assign to the {#id} property
|
|
146
155
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
|
156
|
+
# @option attributes [String] :route_table_id The value to assign to the {#route_table_id} property
|
|
147
157
|
# @option attributes [Array<OCI::Core::Models::ServiceIdResponseDetails>] :services The value to assign to the {#services} property
|
|
148
158
|
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
|
149
159
|
# @option attributes [String] :vcn_id The value to assign to the {#vcn_id} property
|
|
@@ -193,6 +203,12 @@ module OCI
|
|
|
193
203
|
|
|
194
204
|
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
|
195
205
|
|
|
206
|
+
self.route_table_id = attributes[:'routeTableId'] if attributes[:'routeTableId']
|
|
207
|
+
|
|
208
|
+
raise 'You cannot provide both :routeTableId and :route_table_id' if attributes.key?(:'routeTableId') && attributes.key?(:'route_table_id')
|
|
209
|
+
|
|
210
|
+
self.route_table_id = attributes[:'route_table_id'] if attributes[:'route_table_id']
|
|
211
|
+
|
|
196
212
|
self.services = attributes[:'services'] if attributes[:'services']
|
|
197
213
|
|
|
198
214
|
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
|
@@ -239,6 +255,7 @@ module OCI
|
|
|
239
255
|
freeform_tags == other.freeform_tags &&
|
|
240
256
|
id == other.id &&
|
|
241
257
|
lifecycle_state == other.lifecycle_state &&
|
|
258
|
+
route_table_id == other.route_table_id &&
|
|
242
259
|
services == other.services &&
|
|
243
260
|
time_created == other.time_created &&
|
|
244
261
|
vcn_id == other.vcn_id
|
|
@@ -257,7 +274,7 @@ module OCI
|
|
|
257
274
|
# Calculates hash code according to all attributes.
|
|
258
275
|
# @return [Fixnum] Hash code
|
|
259
276
|
def hash
|
|
260
|
-
[block_traffic, compartment_id, defined_tags, display_name, freeform_tags, id, lifecycle_state, services, time_created, vcn_id].hash
|
|
277
|
+
[block_traffic, compartment_id, defined_tags, display_name, freeform_tags, id, lifecycle_state, route_table_id, services, time_created, vcn_id].hash
|
|
261
278
|
end
|
|
262
279
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
263
280
|
|
|
@@ -94,6 +94,31 @@ module OCI
|
|
|
94
94
|
# @return [String]
|
|
95
95
|
attr_accessor :id
|
|
96
96
|
|
|
97
|
+
# For an IPv6-enabled subnet, this is the IPv6 CIDR block for the subnet's private IP address
|
|
98
|
+
# space. The subnet size is always /64.
|
|
99
|
+
#
|
|
100
|
+
# Example: `2001:0db8:0123:1111::/64`
|
|
101
|
+
#
|
|
102
|
+
# @return [String]
|
|
103
|
+
attr_accessor :ipv6_cidr_block
|
|
104
|
+
|
|
105
|
+
# For an IPv6-enabled subnet, this is the IPv6 CIDR block for the subnet's public IP address
|
|
106
|
+
# space. The subnet size is always /64. The left 48 bits are inherited from the
|
|
107
|
+
# `ipv6PublicCidrBlock` of the {Vcn},
|
|
108
|
+
# and the remaining 16 bits are from the subnet's `ipv6CidrBlock`.
|
|
109
|
+
#
|
|
110
|
+
# Example: `2001:0db8:0123:1111::/64`
|
|
111
|
+
#
|
|
112
|
+
# @return [String]
|
|
113
|
+
attr_accessor :ipv6_public_cidr_block
|
|
114
|
+
|
|
115
|
+
# For an IPv6-enabled subnet, this is the IPv6 address of the virtual router.
|
|
116
|
+
#
|
|
117
|
+
# Example: `2001:0db8:0123:1111:89ab:cdef:1234:5678`
|
|
118
|
+
#
|
|
119
|
+
# @return [String]
|
|
120
|
+
attr_accessor :ipv6_virtual_router_ip
|
|
121
|
+
|
|
97
122
|
# **[Required]** The subnet's current state.
|
|
98
123
|
# @return [String]
|
|
99
124
|
attr_reader :lifecycle_state
|
|
@@ -173,6 +198,9 @@ module OCI
|
|
|
173
198
|
'dns_label': :'dnsLabel',
|
|
174
199
|
'freeform_tags': :'freeformTags',
|
|
175
200
|
'id': :'id',
|
|
201
|
+
'ipv6_cidr_block': :'ipv6CidrBlock',
|
|
202
|
+
'ipv6_public_cidr_block': :'ipv6PublicCidrBlock',
|
|
203
|
+
'ipv6_virtual_router_ip': :'ipv6VirtualRouterIp',
|
|
176
204
|
'lifecycle_state': :'lifecycleState',
|
|
177
205
|
'prohibit_public_ip_on_vnic': :'prohibitPublicIpOnVnic',
|
|
178
206
|
'route_table_id': :'routeTableId',
|
|
@@ -199,6 +227,9 @@ module OCI
|
|
|
199
227
|
'dns_label': :'String',
|
|
200
228
|
'freeform_tags': :'Hash<String, String>',
|
|
201
229
|
'id': :'String',
|
|
230
|
+
'ipv6_cidr_block': :'String',
|
|
231
|
+
'ipv6_public_cidr_block': :'String',
|
|
232
|
+
'ipv6_virtual_router_ip': :'String',
|
|
202
233
|
'lifecycle_state': :'String',
|
|
203
234
|
'prohibit_public_ip_on_vnic': :'BOOLEAN',
|
|
204
235
|
'route_table_id': :'String',
|
|
@@ -227,6 +258,9 @@ module OCI
|
|
|
227
258
|
# @option attributes [String] :dns_label The value to assign to the {#dns_label} property
|
|
228
259
|
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
|
229
260
|
# @option attributes [String] :id The value to assign to the {#id} property
|
|
261
|
+
# @option attributes [String] :ipv6_cidr_block The value to assign to the {#ipv6_cidr_block} property
|
|
262
|
+
# @option attributes [String] :ipv6_public_cidr_block The value to assign to the {#ipv6_public_cidr_block} property
|
|
263
|
+
# @option attributes [String] :ipv6_virtual_router_ip The value to assign to the {#ipv6_virtual_router_ip} property
|
|
230
264
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
|
231
265
|
# @option attributes [BOOLEAN] :prohibit_public_ip_on_vnic The value to assign to the {#prohibit_public_ip_on_vnic} property
|
|
232
266
|
# @option attributes [String] :route_table_id The value to assign to the {#route_table_id} property
|
|
@@ -292,6 +326,24 @@ module OCI
|
|
|
292
326
|
|
|
293
327
|
self.id = attributes[:'id'] if attributes[:'id']
|
|
294
328
|
|
|
329
|
+
self.ipv6_cidr_block = attributes[:'ipv6CidrBlock'] if attributes[:'ipv6CidrBlock']
|
|
330
|
+
|
|
331
|
+
raise 'You cannot provide both :ipv6CidrBlock and :ipv6_cidr_block' if attributes.key?(:'ipv6CidrBlock') && attributes.key?(:'ipv6_cidr_block')
|
|
332
|
+
|
|
333
|
+
self.ipv6_cidr_block = attributes[:'ipv6_cidr_block'] if attributes[:'ipv6_cidr_block']
|
|
334
|
+
|
|
335
|
+
self.ipv6_public_cidr_block = attributes[:'ipv6PublicCidrBlock'] if attributes[:'ipv6PublicCidrBlock']
|
|
336
|
+
|
|
337
|
+
raise 'You cannot provide both :ipv6PublicCidrBlock and :ipv6_public_cidr_block' if attributes.key?(:'ipv6PublicCidrBlock') && attributes.key?(:'ipv6_public_cidr_block')
|
|
338
|
+
|
|
339
|
+
self.ipv6_public_cidr_block = attributes[:'ipv6_public_cidr_block'] if attributes[:'ipv6_public_cidr_block']
|
|
340
|
+
|
|
341
|
+
self.ipv6_virtual_router_ip = attributes[:'ipv6VirtualRouterIp'] if attributes[:'ipv6VirtualRouterIp']
|
|
342
|
+
|
|
343
|
+
raise 'You cannot provide both :ipv6VirtualRouterIp and :ipv6_virtual_router_ip' if attributes.key?(:'ipv6VirtualRouterIp') && attributes.key?(:'ipv6_virtual_router_ip')
|
|
344
|
+
|
|
345
|
+
self.ipv6_virtual_router_ip = attributes[:'ipv6_virtual_router_ip'] if attributes[:'ipv6_virtual_router_ip']
|
|
346
|
+
|
|
295
347
|
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
|
296
348
|
|
|
297
349
|
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
|
@@ -380,6 +432,9 @@ module OCI
|
|
|
380
432
|
dns_label == other.dns_label &&
|
|
381
433
|
freeform_tags == other.freeform_tags &&
|
|
382
434
|
id == other.id &&
|
|
435
|
+
ipv6_cidr_block == other.ipv6_cidr_block &&
|
|
436
|
+
ipv6_public_cidr_block == other.ipv6_public_cidr_block &&
|
|
437
|
+
ipv6_virtual_router_ip == other.ipv6_virtual_router_ip &&
|
|
383
438
|
lifecycle_state == other.lifecycle_state &&
|
|
384
439
|
prohibit_public_ip_on_vnic == other.prohibit_public_ip_on_vnic &&
|
|
385
440
|
route_table_id == other.route_table_id &&
|
|
@@ -404,7 +459,7 @@ module OCI
|
|
|
404
459
|
# Calculates hash code according to all attributes.
|
|
405
460
|
# @return [Fixnum] Hash code
|
|
406
461
|
def hash
|
|
407
|
-
[availability_domain, cidr_block, compartment_id, defined_tags, dhcp_options_id, display_name, dns_label, freeform_tags, id, lifecycle_state, prohibit_public_ip_on_vnic, route_table_id, security_list_ids, subnet_domain_name, time_created, vcn_id, virtual_router_ip, virtual_router_mac].hash
|
|
462
|
+
[availability_domain, cidr_block, compartment_id, defined_tags, dhcp_options_id, display_name, dns_label, freeform_tags, id, ipv6_cidr_block, ipv6_public_cidr_block, ipv6_virtual_router_ip, lifecycle_state, prohibit_public_ip_on_vnic, route_table_id, security_list_ids, subnet_domain_name, time_created, vcn_id, virtual_router_ip, virtual_router_mac].hash
|
|
408
463
|
end
|
|
409
464
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
410
465
|
|
|
@@ -7,12 +7,28 @@ module OCI
|
|
|
7
7
|
# Update a CrossConnect
|
|
8
8
|
#
|
|
9
9
|
class Core::Models::UpdateCrossConnectDetails
|
|
10
|
+
# Defined tags for this resource. Each key is predefined and scoped to a
|
|
11
|
+
# namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
|
12
|
+
#
|
|
13
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
|
14
|
+
#
|
|
15
|
+
# @return [Hash<String, Hash<String, Object>>]
|
|
16
|
+
attr_accessor :defined_tags
|
|
17
|
+
|
|
10
18
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
|
11
19
|
# Avoid entering confidential information.
|
|
12
20
|
#
|
|
13
21
|
# @return [String]
|
|
14
22
|
attr_accessor :display_name
|
|
15
23
|
|
|
24
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
|
25
|
+
# predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
|
26
|
+
#
|
|
27
|
+
# Example: `{\"Department\": \"Finance\"}`
|
|
28
|
+
#
|
|
29
|
+
# @return [Hash<String, String>]
|
|
30
|
+
attr_accessor :freeform_tags
|
|
31
|
+
|
|
16
32
|
# Set to true to activate the cross-connect. You activate it after the physical cabling
|
|
17
33
|
# is complete, and you've confirmed the cross-connect's light levels are good and your side
|
|
18
34
|
# of the interface is up. Activation indicates to Oracle that the physical connection is ready.
|
|
@@ -32,7 +48,9 @@ module OCI
|
|
|
32
48
|
def self.attribute_map
|
|
33
49
|
{
|
|
34
50
|
# rubocop:disable Style/SymbolLiteral
|
|
51
|
+
'defined_tags': :'definedTags',
|
|
35
52
|
'display_name': :'displayName',
|
|
53
|
+
'freeform_tags': :'freeformTags',
|
|
36
54
|
'is_active': :'isActive',
|
|
37
55
|
'customer_reference_name': :'customerReferenceName'
|
|
38
56
|
# rubocop:enable Style/SymbolLiteral
|
|
@@ -43,7 +61,9 @@ module OCI
|
|
|
43
61
|
def self.swagger_types
|
|
44
62
|
{
|
|
45
63
|
# rubocop:disable Style/SymbolLiteral
|
|
64
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
|
46
65
|
'display_name': :'String',
|
|
66
|
+
'freeform_tags': :'Hash<String, String>',
|
|
47
67
|
'is_active': :'BOOLEAN',
|
|
48
68
|
'customer_reference_name': :'String'
|
|
49
69
|
# rubocop:enable Style/SymbolLiteral
|
|
@@ -56,7 +76,9 @@ module OCI
|
|
|
56
76
|
|
|
57
77
|
# Initializes the object
|
|
58
78
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
79
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
|
59
80
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
|
81
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
|
60
82
|
# @option attributes [BOOLEAN] :is_active The value to assign to the {#is_active} property
|
|
61
83
|
# @option attributes [String] :customer_reference_name The value to assign to the {#customer_reference_name} property
|
|
62
84
|
def initialize(attributes = {})
|
|
@@ -65,12 +87,24 @@ module OCI
|
|
|
65
87
|
# convert string to symbol for hash key
|
|
66
88
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
67
89
|
|
|
90
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
|
91
|
+
|
|
92
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
|
93
|
+
|
|
94
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
|
95
|
+
|
|
68
96
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
|
69
97
|
|
|
70
98
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
|
71
99
|
|
|
72
100
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
|
73
101
|
|
|
102
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
|
103
|
+
|
|
104
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
|
105
|
+
|
|
106
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
|
107
|
+
|
|
74
108
|
self.is_active = attributes[:'isActive'] unless attributes[:'isActive'].nil?
|
|
75
109
|
|
|
76
110
|
raise 'You cannot provide both :isActive and :is_active' if attributes.key?(:'isActive') && attributes.key?(:'is_active')
|
|
@@ -95,7 +129,9 @@ module OCI
|
|
|
95
129
|
return true if equal?(other)
|
|
96
130
|
|
|
97
131
|
self.class == other.class &&
|
|
132
|
+
defined_tags == other.defined_tags &&
|
|
98
133
|
display_name == other.display_name &&
|
|
134
|
+
freeform_tags == other.freeform_tags &&
|
|
99
135
|
is_active == other.is_active &&
|
|
100
136
|
customer_reference_name == other.customer_reference_name
|
|
101
137
|
end
|
|
@@ -113,7 +149,7 @@ module OCI
|
|
|
113
149
|
# Calculates hash code according to all attributes.
|
|
114
150
|
# @return [Fixnum] Hash code
|
|
115
151
|
def hash
|
|
116
|
-
[display_name, is_active, customer_reference_name].hash
|
|
152
|
+
[defined_tags, display_name, freeform_tags, is_active, customer_reference_name].hash
|
|
117
153
|
end
|
|
118
154
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
119
155
|
|
|
@@ -6,6 +6,14 @@ require 'date'
|
|
|
6
6
|
module OCI
|
|
7
7
|
# UpdateCrossConnectGroupDetails model.
|
|
8
8
|
class Core::Models::UpdateCrossConnectGroupDetails
|
|
9
|
+
# Defined tags for this resource. Each key is predefined and scoped to a
|
|
10
|
+
# namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
|
11
|
+
#
|
|
12
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
|
13
|
+
#
|
|
14
|
+
# @return [Hash<String, Hash<String, Object>>]
|
|
15
|
+
attr_accessor :defined_tags
|
|
16
|
+
|
|
9
17
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
|
10
18
|
# Avoid entering confidential information.
|
|
11
19
|
#
|
|
@@ -18,12 +26,22 @@ module OCI
|
|
|
18
26
|
# @return [String]
|
|
19
27
|
attr_accessor :customer_reference_name
|
|
20
28
|
|
|
29
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
|
30
|
+
# predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
|
31
|
+
#
|
|
32
|
+
# Example: `{\"Department\": \"Finance\"}`
|
|
33
|
+
#
|
|
34
|
+
# @return [Hash<String, String>]
|
|
35
|
+
attr_accessor :freeform_tags
|
|
36
|
+
|
|
21
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
38
|
def self.attribute_map
|
|
23
39
|
{
|
|
24
40
|
# rubocop:disable Style/SymbolLiteral
|
|
41
|
+
'defined_tags': :'definedTags',
|
|
25
42
|
'display_name': :'displayName',
|
|
26
|
-
'customer_reference_name': :'customerReferenceName'
|
|
43
|
+
'customer_reference_name': :'customerReferenceName',
|
|
44
|
+
'freeform_tags': :'freeformTags'
|
|
27
45
|
# rubocop:enable Style/SymbolLiteral
|
|
28
46
|
}
|
|
29
47
|
end
|
|
@@ -32,8 +50,10 @@ module OCI
|
|
|
32
50
|
def self.swagger_types
|
|
33
51
|
{
|
|
34
52
|
# rubocop:disable Style/SymbolLiteral
|
|
53
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
|
35
54
|
'display_name': :'String',
|
|
36
|
-
'customer_reference_name': :'String'
|
|
55
|
+
'customer_reference_name': :'String',
|
|
56
|
+
'freeform_tags': :'Hash<String, String>'
|
|
37
57
|
# rubocop:enable Style/SymbolLiteral
|
|
38
58
|
}
|
|
39
59
|
end
|
|
@@ -44,14 +64,22 @@ module OCI
|
|
|
44
64
|
|
|
45
65
|
# Initializes the object
|
|
46
66
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
67
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
|
47
68
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
|
48
69
|
# @option attributes [String] :customer_reference_name The value to assign to the {#customer_reference_name} property
|
|
70
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
|
49
71
|
def initialize(attributes = {})
|
|
50
72
|
return unless attributes.is_a?(Hash)
|
|
51
73
|
|
|
52
74
|
# convert string to symbol for hash key
|
|
53
75
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
54
76
|
|
|
77
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
|
78
|
+
|
|
79
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
|
80
|
+
|
|
81
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
|
82
|
+
|
|
55
83
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
|
56
84
|
|
|
57
85
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
|
@@ -63,6 +91,12 @@ module OCI
|
|
|
63
91
|
raise 'You cannot provide both :customerReferenceName and :customer_reference_name' if attributes.key?(:'customerReferenceName') && attributes.key?(:'customer_reference_name')
|
|
64
92
|
|
|
65
93
|
self.customer_reference_name = attributes[:'customer_reference_name'] if attributes[:'customer_reference_name']
|
|
94
|
+
|
|
95
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
|
96
|
+
|
|
97
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
|
98
|
+
|
|
99
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
|
66
100
|
end
|
|
67
101
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
68
102
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
@@ -76,8 +110,10 @@ module OCI
|
|
|
76
110
|
return true if equal?(other)
|
|
77
111
|
|
|
78
112
|
self.class == other.class &&
|
|
113
|
+
defined_tags == other.defined_tags &&
|
|
79
114
|
display_name == other.display_name &&
|
|
80
|
-
customer_reference_name == other.customer_reference_name
|
|
115
|
+
customer_reference_name == other.customer_reference_name &&
|
|
116
|
+
freeform_tags == other.freeform_tags
|
|
81
117
|
end
|
|
82
118
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
83
119
|
|
|
@@ -93,7 +129,7 @@ module OCI
|
|
|
93
129
|
# Calculates hash code according to all attributes.
|
|
94
130
|
# @return [Fixnum] Hash code
|
|
95
131
|
def hash
|
|
96
|
-
[display_name, customer_reference_name].hash
|
|
132
|
+
[defined_tags, display_name, customer_reference_name, freeform_tags].hash
|
|
97
133
|
end
|
|
98
134
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
99
135
|
|