oci 2.23.0 → 2.24.0
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 +9 -1
- data/lib/oci/analytics/analytics.rb +5 -0
- data/lib/oci/analytics/analytics_client.rb +422 -52
- data/lib/oci/analytics/analytics_client_composite_operations.rb +188 -27
- data/lib/oci/analytics/models/analytics_instance.rb +32 -15
- data/lib/oci/analytics/models/analytics_instance_summary.rb +9 -8
- data/lib/oci/analytics/models/capacity.rb +2 -2
- data/lib/oci/analytics/models/change_analytics_instance_network_endpoint_details.rb +1 -1
- data/lib/oci/analytics/models/create_analytics_instance_details.rb +8 -6
- data/lib/oci/analytics/models/create_private_access_channel_details.rb +9 -9
- data/lib/oci/analytics/models/create_resource_group_details.rb +190 -0
- data/lib/oci/analytics/models/create_vanity_url_details.rb +5 -5
- data/lib/oci/analytics/models/feature_bundle.rb +1 -0
- data/lib/oci/analytics/models/instance_resource_group.rb +200 -0
- data/lib/oci/analytics/models/instance_resource_group_summary.rb +200 -0
- data/lib/oci/analytics/models/private_access_channel.rb +13 -13
- data/lib/oci/analytics/models/private_endpoint_details.rb +1 -1
- data/lib/oci/analytics/models/private_source_dns_zone.rb +3 -3
- data/lib/oci/analytics/models/private_source_scan_host.rb +4 -4
- data/lib/oci/analytics/models/public_endpoint_details.rb +1 -1
- data/lib/oci/analytics/models/resource_group_sort_by.rb +17 -0
- data/lib/oci/analytics/models/set_feature_bundle_details.rb +1 -0
- data/lib/oci/analytics/models/set_kms_key_details.rb +2 -2
- data/lib/oci/analytics/models/update_analytics_instance_details.rb +3 -3
- data/lib/oci/analytics/models/update_private_access_channel_details.rb +9 -9
- data/lib/oci/analytics/models/update_resource_group_details.rb +190 -0
- data/lib/oci/analytics/models/update_vanity_url_details.rb +4 -4
- data/lib/oci/analytics/models/vanity_url_details.rb +5 -5
- data/lib/oci/analytics/models/work_request.rb +4 -0
- data/lib/oci/analytics/models/work_request_action_result.rb +4 -1
- data/lib/oci/analytics/models/work_request_error.rb +2 -2
- data/lib/oci/analytics/models/work_request_log.rb +1 -1
- data/lib/oci/analytics/models/work_request_operation_type.rb +5 -1
- data/lib/oci/analytics/models/work_request_resource.rb +4 -1
- data/lib/oci/analytics/models/work_request_summary.rb +4 -0
- data/lib/oci/apiaccesscontrol/api_metadata_client.rb +8 -6
- data/lib/oci/apiaccesscontrol/apiaccesscontrol.rb +1 -0
- data/lib/oci/apiaccesscontrol/models/api_metadata.rb +12 -2
- data/lib/oci/apiaccesscontrol/models/api_metadata_by_entity_type_summary.rb +15 -1
- data/lib/oci/apiaccesscontrol/models/approver_detail.rb +15 -1
- data/lib/oci/apiaccesscontrol/models/approver_group_level.rb +169 -0
- data/lib/oci/apiaccesscontrol/models/create_privileged_api_control_details.rb +17 -3
- data/lib/oci/apiaccesscontrol/models/create_privileged_api_request_details.rb +1 -1
- data/lib/oci/apiaccesscontrol/models/privileged_api_control.rb +15 -2
- data/lib/oci/apiaccesscontrol/models/privileged_api_control_summary.rb +0 -1
- data/lib/oci/apiaccesscontrol/models/update_privileged_api_control_details.rb +16 -2
- data/lib/oci/apiaccesscontrol/privileged_api_control_client.rb +4 -3
- data/lib/oci/apiaccesscontrol/privileged_api_requests_client.rb +4 -3
- data/lib/oci/apiaccesscontrol/privileged_api_work_request_client.rb +4 -3
- data/lib/oci/core/core.rb +5 -0
- data/lib/oci/core/models/boot_volume_backup.rb +87 -4
- data/lib/oci/core/models/create_boot_volume_backup_details.rb +59 -4
- data/lib/oci/core/models/create_cross_connect_details.rb +50 -1
- data/lib/oci/core/models/create_cross_connect_group_details.rb +71 -4
- data/lib/oci/core/models/create_dedicated_vm_host_details.rb +21 -4
- data/lib/oci/core/models/create_virtual_circuit_details.rb +63 -4
- data/lib/oci/core/models/create_volume_backup_details.rb +59 -4
- data/lib/oci/core/models/create_volume_group_backup_details.rb +59 -4
- data/lib/oci/core/models/cross_connect.rb +43 -1
- data/lib/oci/core/models/cross_connect_group.rb +63 -4
- data/lib/oci/core/models/dedicated_vm_host.rb +18 -1
- data/lib/oci/core/models/dedicated_vm_host_instance_summary.rb +18 -1
- data/lib/oci/core/models/dedicated_vm_host_summary.rb +18 -1
- data/lib/oci/core/models/instances.rb +140 -0
- data/lib/oci/core/models/letter_of_authority.rb +31 -4
- data/lib/oci/core/models/loa_extension_data.rb +170 -0
- data/lib/oci/core/models/provider_remote_region_name.rb +174 -0
- data/lib/oci/core/models/retention_duration.rb +189 -0
- data/lib/oci/core/models/supported_capabilities.rb +21 -4
- data/lib/oci/core/models/update_boot_volume_backup_details.rb +59 -4
- data/lib/oci/core/models/update_cross_connect_details.rb +32 -4
- data/lib/oci/core/models/update_cross_connect_group_details.rb +49 -4
- data/lib/oci/core/models/update_cross_connect_letter_of_authority_details.rb +195 -0
- data/lib/oci/core/models/update_virtual_circuit_details.rb +30 -1
- data/lib/oci/core/models/update_volume_backup_details.rb +59 -4
- data/lib/oci/core/models/update_volume_group_backup_details.rb +59 -4
- data/lib/oci/core/models/virtual_circuit.rb +80 -1
- data/lib/oci/core/models/volume_backup.rb +87 -4
- data/lib/oci/core/models/volume_backup_schedule.rb +45 -4
- data/lib/oci/core/models/volume_group_backup.rb +73 -4
- data/lib/oci/core/virtual_network_client.rb +136 -2
- data/lib/oci/database/database.rb +13 -0
- data/lib/oci/database/database_client.rb +923 -111
- data/lib/oci/database/database_client_composite_operations.rb +283 -0
- data/lib/oci/database/models/basecc_vm_cluster.rb +713 -0
- data/lib/oci/database/models/basecc_vm_cluster_summary.rb +716 -0
- data/lib/oci/database/models/basecc_vm_cluster_update.rb +342 -0
- data/lib/oci/database/models/basecc_vm_cluster_update_details.rb +198 -0
- data/lib/oci/database/models/basecc_vm_cluster_update_history_entry.rb +318 -0
- data/lib/oci/database/models/basecc_vm_cluster_update_history_entry_summary.rb +321 -0
- data/lib/oci/database/models/basecc_vm_cluster_update_summary.rb +349 -0
- data/lib/oci/database/models/change_basecc_vm_cluster_compartment_details.rb +156 -0
- data/lib/oci/database/models/cloud_vm_cluster.rb +28 -1
- data/lib/oci/database/models/cloud_vm_cluster_summary.rb +28 -1
- data/lib/oci/database/models/create_basecc_vm_cluster_details.rb +506 -0
- data/lib/oci/database/models/create_database_software_image_details.rb +2 -1
- data/lib/oci/database/models/database_software_image.rb +1 -0
- data/lib/oci/database/models/database_software_image_summary.rb +1 -0
- data/lib/oci/database/models/exadata_live_image_version_details.rb +216 -0
- data/lib/oci/database/models/exadb_vm_cluster.rb +53 -4
- data/lib/oci/database/models/exadb_vm_cluster_summary.rb +53 -4
- data/lib/oci/database/models/register_exadb_vm_cluster_pkcs_details.rb +171 -0
- data/lib/oci/database/models/unregister_exadb_vm_cluster_pkcs_details.rb +171 -0
- data/lib/oci/database/models/update.rb +94 -1
- data/lib/oci/database/models/update_basecc_vm_cluster_details.rb +345 -0
- data/lib/oci/database/models/update_details.rb +33 -1
- data/lib/oci/database/models/update_history_entry.rb +39 -1
- data/lib/oci/database/models/update_history_entry_summary.rb +39 -1
- data/lib/oci/database/models/update_summary.rb +94 -1
- data/lib/oci/database/models/vm_cluster.rb +28 -1
- data/lib/oci/database/models/vm_cluster_summary.rb +28 -1
- data/lib/oci/database/models/vm_cluster_update.rb +94 -1
- data/lib/oci/database/models/vm_cluster_update_details.rb +33 -1
- data/lib/oci/database/models/vm_cluster_update_history_entry.rb +39 -1
- data/lib/oci/database/models/vm_cluster_update_history_entry_summary.rb +39 -1
- data/lib/oci/database/models/vm_cluster_update_summary.rb +94 -1
- data/lib/oci/file_storage/models/file_system.rb +37 -4
- data/lib/oci/file_storage/models/file_system_summary.rb +37 -4
- data/lib/oci/file_storage/models/snapshot.rb +19 -4
- data/lib/oci/file_storage/models/snapshot_summary.rb +19 -4
- data/lib/oci/generative_ai/models/create_dedicated_ai_cluster_details.rb +3 -0
- data/lib/oci/generative_ai/models/dedicated_ai_cluster.rb +2 -0
- data/lib/oci/golden_gate/golden_gate.rb +29 -0
- data/lib/oci/golden_gate/golden_gate_client.rb +185 -6
- data/lib/oci/golden_gate/models/ai_model_auth_details.rb +194 -0
- data/lib/oci/golden_gate/models/ai_model_auth_details_summary.rb +194 -0
- data/lib/oci/golden_gate/models/ai_model_auth_type.rb +13 -0
- data/lib/oci/golden_gate/models/ai_model_collection.rb +153 -0
- data/lib/oci/golden_gate/models/ai_model_connection.rb +350 -0
- data/lib/oci/golden_gate/models/ai_model_connection_summary.rb +333 -0
- data/lib/oci/golden_gate/models/ai_model_summary.rb +216 -0
- data/lib/oci/golden_gate/models/ai_provider_collection.rb +153 -0
- data/lib/oci/golden_gate/models/ai_provider_summary.rb +249 -0
- data/lib/oci/golden_gate/models/amazon_kinesis_connection.rb +1 -0
- data/lib/oci/golden_gate/models/amazon_kinesis_connection_summary.rb +1 -0
- data/lib/oci/golden_gate/models/amazon_s3_connection.rb +1 -1
- data/lib/oci/golden_gate/models/amazon_s3_connection_summary.rb +1 -1
- data/lib/oci/golden_gate/models/amazon_s3_iceberg_storage.rb +1 -0
- data/lib/oci/golden_gate/models/amazon_s3_iceberg_storage_summary.rb +1 -0
- data/lib/oci/golden_gate/models/api_key_ai_model_auth_details.rb +199 -0
- data/lib/oci/golden_gate/models/api_key_ai_model_auth_details_summary.rb +181 -0
- data/lib/oci/golden_gate/models/connection.rb +43 -6
- data/lib/oci/golden_gate/models/connection_assignment.rb +63 -1
- data/lib/oci/golden_gate/models/connection_assignment_summary.rb +64 -1
- data/lib/oci/golden_gate/models/connection_summary.rb +42 -6
- data/lib/oci/golden_gate/models/connection_type.rb +2 -1
- data/lib/oci/golden_gate/models/create_ai_model_auth_details.rb +187 -0
- data/lib/oci/golden_gate/models/create_ai_model_connection_details.rb +298 -0
- data/lib/oci/golden_gate/models/create_amazon_kinesis_connection_details.rb +4 -1
- data/lib/oci/golden_gate/models/create_amazon_redshift_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_amazon_s3_connection_details.rb +5 -3
- data/lib/oci/golden_gate/models/create_amazon_s3_iceberg_storage_details.rb +5 -2
- data/lib/oci/golden_gate/models/create_api_key_ai_model_auth_details.rb +199 -0
- data/lib/oci/golden_gate/models/create_azure_data_lake_storage_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/create_azure_data_lake_storage_iceberg_storage_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_azure_synapse_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_connection_details.rb +43 -7
- data/lib/oci/golden_gate/models/create_database_registration_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_databricks_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_db2_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/create_elasticsearch_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_golden_gate_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_google_big_query_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_google_cloud_storage_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_google_cloud_storage_iceberg_storage_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_google_pub_sub_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_iceberg_connection_details.rb +1 -0
- data/lib/oci/golden_gate/models/create_iceberg_storage_details.rb +5 -1
- data/lib/oci/golden_gate/models/create_java_message_service_connection_details.rb +21 -7
- data/lib/oci/golden_gate/models/create_kafka_connection_details.rb +18 -6
- data/lib/oci/golden_gate/models/create_kafka_schema_registry_connection_details.rb +18 -6
- data/lib/oci/golden_gate/models/create_microsoft_fabric_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_microsoft_sqlserver_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_mongo_db_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/create_mysql_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_no_iceberg_storage_details.rb +148 -0
- data/lib/oci/golden_gate/models/create_oci_gen_ai_model_auth_details.rb +242 -0
- data/lib/oci/golden_gate/models/create_oci_object_storage_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_oci_object_storage_s3_api_iceberg_storage_details.rb +228 -0
- data/lib/oci/golden_gate/models/create_oracle_ai_data_platform_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_oracle_connection_details.rb +7 -3
- data/lib/oci/golden_gate/models/create_oracle_nosql_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_postgresql_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_redis_connection_details.rb +15 -5
- data/lib/oci/golden_gate/models/create_snowflake_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/deployment_type_summary.rb +1 -0
- data/lib/oci/golden_gate/models/iceberg_connection.rb +1 -0
- data/lib/oci/golden_gate/models/iceberg_connection_summary.rb +1 -0
- data/lib/oci/golden_gate/models/iceberg_storage.rb +4 -0
- data/lib/oci/golden_gate/models/iceberg_storage_summary.rb +4 -0
- data/lib/oci/golden_gate/models/iceberg_storage_type.rb +3 -1
- data/lib/oci/golden_gate/models/kafka_connection.rb +1 -0
- data/lib/oci/golden_gate/models/no_iceberg_storage.rb +148 -0
- data/lib/oci/golden_gate/models/no_iceberg_storage_summary.rb +148 -0
- data/lib/oci/golden_gate/models/oci_gen_ai_model_auth_details.rb +242 -0
- data/lib/oci/golden_gate/models/oci_gen_ai_model_auth_details_summary.rb +224 -0
- data/lib/oci/golden_gate/models/oci_object_storage_s3_api_iceberg_storage.rb +209 -0
- data/lib/oci/golden_gate/models/oci_object_storage_s3_api_iceberg_storage_summary.rb +209 -0
- data/lib/oci/golden_gate/models/oracle_connection.rb +4 -1
- data/lib/oci/golden_gate/models/oracle_connection_summary.rb +1 -1
- data/lib/oci/golden_gate/models/technology_type.rb +6 -1
- data/lib/oci/golden_gate/models/update_ai_model_auth_details.rb +187 -0
- data/lib/oci/golden_gate/models/update_ai_model_connection_details.rb +237 -0
- data/lib/oci/golden_gate/models/update_amazon_kinesis_connection_details.rb +4 -1
- data/lib/oci/golden_gate/models/update_amazon_redshift_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_amazon_s3_connection_details.rb +5 -3
- data/lib/oci/golden_gate/models/update_amazon_s3_iceberg_storage_details.rb +5 -2
- data/lib/oci/golden_gate/models/update_api_key_ai_model_auth_details.rb +199 -0
- data/lib/oci/golden_gate/models/update_azure_data_lake_storage_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/update_azure_data_lake_storage_iceberg_storage_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_azure_synapse_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_connection_details.rb +43 -7
- data/lib/oci/golden_gate/models/update_database_registration_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_databricks_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_db2_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/update_elasticsearch_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_golden_gate_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_google_big_query_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_google_cloud_storage_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_google_cloud_storage_iceberg_storage_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_google_pub_sub_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_iceberg_storage_details.rb +5 -1
- data/lib/oci/golden_gate/models/update_java_message_service_connection_details.rb +21 -7
- data/lib/oci/golden_gate/models/update_kafka_connection_details.rb +18 -6
- data/lib/oci/golden_gate/models/update_kafka_schema_registry_connection_details.rb +18 -6
- data/lib/oci/golden_gate/models/update_microsoft_fabric_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_microsoft_sqlserver_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_mongo_db_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/update_mysql_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_no_iceberg_storage_details.rb +148 -0
- data/lib/oci/golden_gate/models/update_oci_gen_ai_model_auth_details.rb +242 -0
- data/lib/oci/golden_gate/models/update_oci_object_storage_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_oci_object_storage_s3_api_iceberg_storage_details.rb +228 -0
- data/lib/oci/golden_gate/models/update_oracle_ai_data_platform_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_oracle_connection_details.rb +7 -3
- data/lib/oci/golden_gate/models/update_oracle_nosql_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_postgresql_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_redis_connection_details.rb +15 -5
- data/lib/oci/golden_gate/models/update_snowflake_connection_details.rb +9 -3
- data/lib/oci/regions.rb +8 -1
- data/lib/oci/version.rb +1 -1
- metadata +55 -2
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
3
|
+
|
|
4
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20160918
|
|
5
|
+
require 'date'
|
|
6
|
+
|
|
7
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
8
|
+
module OCI
|
|
9
|
+
# Data related to the extension of the Expiry date of the LOA. It gives you number of remaining extensions along
|
|
10
|
+
# with a history of past extensions made on the LOA.
|
|
11
|
+
#
|
|
12
|
+
class Core::Models::LoaExtensionData
|
|
13
|
+
# The maximum number of times this LOA's expiry can be extended.
|
|
14
|
+
# @return [Integer]
|
|
15
|
+
attr_accessor :remaining_extensions
|
|
16
|
+
|
|
17
|
+
# Chronologically sorted list of date and time when the Letter of Authority's expiration was last updated,
|
|
18
|
+
# most recent first, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). List is empty
|
|
19
|
+
# if the LOA's expiration date has never been extended.
|
|
20
|
+
#
|
|
21
|
+
# @return [Array<String>]
|
|
22
|
+
attr_accessor :history
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
# rubocop:disable Style/SymbolLiteral
|
|
28
|
+
'remaining_extensions': :'remainingExtensions',
|
|
29
|
+
'history': :'history'
|
|
30
|
+
# rubocop:enable Style/SymbolLiteral
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Attribute type mapping.
|
|
35
|
+
def self.swagger_types
|
|
36
|
+
{
|
|
37
|
+
# rubocop:disable Style/SymbolLiteral
|
|
38
|
+
'remaining_extensions': :'Integer',
|
|
39
|
+
'history': :'Array<String>'
|
|
40
|
+
# rubocop:enable Style/SymbolLiteral
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
45
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# Initializes the object
|
|
49
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
50
|
+
# @option attributes [Integer] :remaining_extensions The value to assign to the {#remaining_extensions} property
|
|
51
|
+
# @option attributes [Array<String>] :history The value to assign to the {#history} property
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
return unless attributes.is_a?(Hash)
|
|
54
|
+
|
|
55
|
+
# convert string to symbol for hash key
|
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
57
|
+
|
|
58
|
+
self.remaining_extensions = attributes[:'remainingExtensions'] if attributes[:'remainingExtensions']
|
|
59
|
+
|
|
60
|
+
raise 'You cannot provide both :remainingExtensions and :remaining_extensions' if attributes.key?(:'remainingExtensions') && attributes.key?(:'remaining_extensions')
|
|
61
|
+
|
|
62
|
+
self.remaining_extensions = attributes[:'remaining_extensions'] if attributes[:'remaining_extensions']
|
|
63
|
+
|
|
64
|
+
self.history = attributes[:'history'] if attributes[:'history']
|
|
65
|
+
end
|
|
66
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
67
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
68
|
+
|
|
69
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
# Checks equality by comparing each attribute.
|
|
73
|
+
# @param [Object] other the other object to be compared
|
|
74
|
+
def ==(other)
|
|
75
|
+
return true if equal?(other)
|
|
76
|
+
|
|
77
|
+
self.class == other.class &&
|
|
78
|
+
remaining_extensions == other.remaining_extensions &&
|
|
79
|
+
history == other.history
|
|
80
|
+
end
|
|
81
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
82
|
+
|
|
83
|
+
# @see the `==` method
|
|
84
|
+
# @param [Object] other the other object to be compared
|
|
85
|
+
def eql?(other)
|
|
86
|
+
self == other
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
# Calculates hash code according to all attributes.
|
|
93
|
+
# @return [Fixnum] Hash code
|
|
94
|
+
def hash
|
|
95
|
+
[remaining_extensions, history].hash
|
|
96
|
+
end
|
|
97
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
98
|
+
|
|
99
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
# Builds the object from hash
|
|
103
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
104
|
+
# @return [Object] Returns the model itself
|
|
105
|
+
def build_from_hash(attributes)
|
|
106
|
+
return nil unless attributes.is_a?(Hash)
|
|
107
|
+
|
|
108
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
109
|
+
if type =~ /^Array<(.*)>/i
|
|
110
|
+
# check to ensure the input is an array given that the the attribute
|
|
111
|
+
# is documented as an array but the input is not
|
|
112
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
113
|
+
public_method("#{key}=").call(
|
|
114
|
+
attributes[self.class.attribute_map[key]]
|
|
115
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
116
|
+
)
|
|
117
|
+
end
|
|
118
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
119
|
+
public_method("#{key}=").call(
|
|
120
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
121
|
+
)
|
|
122
|
+
end
|
|
123
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
self
|
|
127
|
+
end
|
|
128
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
129
|
+
|
|
130
|
+
# Returns the string representation of the object
|
|
131
|
+
# @return [String] String presentation of the object
|
|
132
|
+
def to_s
|
|
133
|
+
to_hash.to_s
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Returns the object in the form of hash
|
|
137
|
+
# @return [Hash] Returns the object in the form of hash
|
|
138
|
+
def to_hash
|
|
139
|
+
hash = {}
|
|
140
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
141
|
+
value = public_method(attr).call
|
|
142
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
143
|
+
|
|
144
|
+
hash[param] = _to_hash(value)
|
|
145
|
+
end
|
|
146
|
+
hash
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
private
|
|
150
|
+
|
|
151
|
+
# Outputs non-array value in the form of hash
|
|
152
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
153
|
+
# @param [Object] value Any valid value
|
|
154
|
+
# @return [Hash] Returns the value in the form of hash
|
|
155
|
+
def _to_hash(value)
|
|
156
|
+
if value.is_a?(Array)
|
|
157
|
+
value.compact.map { |v| _to_hash(v) }
|
|
158
|
+
elsif value.is_a?(Hash)
|
|
159
|
+
{}.tap do |hash|
|
|
160
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
161
|
+
end
|
|
162
|
+
elsif value.respond_to? :to_hash
|
|
163
|
+
value.to_hash
|
|
164
|
+
else
|
|
165
|
+
value
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
3
|
+
|
|
4
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20160918
|
|
5
|
+
require 'date'
|
|
6
|
+
|
|
7
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
8
|
+
module OCI
|
|
9
|
+
# A pair of OCI region and Provider remote region names for FastConnect MultiCloud interconnect.
|
|
10
|
+
#
|
|
11
|
+
class Core::Models::ProviderRemoteRegionName
|
|
12
|
+
# **[Required]** The OCI region name associated with the provider remote region.
|
|
13
|
+
# Example: `us-ashburn-1`.
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :oci_region_name
|
|
17
|
+
|
|
18
|
+
# **[Required]** The provider remote region name associated with the OCI region.
|
|
19
|
+
# Example: `us-east-1`.
|
|
20
|
+
#
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :provider_region_name
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
# rubocop:disable Style/SymbolLiteral
|
|
28
|
+
'oci_region_name': :'ociRegionName',
|
|
29
|
+
'provider_region_name': :'providerRegionName'
|
|
30
|
+
# rubocop:enable Style/SymbolLiteral
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Attribute type mapping.
|
|
35
|
+
def self.swagger_types
|
|
36
|
+
{
|
|
37
|
+
# rubocop:disable Style/SymbolLiteral
|
|
38
|
+
'oci_region_name': :'String',
|
|
39
|
+
'provider_region_name': :'String'
|
|
40
|
+
# rubocop:enable Style/SymbolLiteral
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
45
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# Initializes the object
|
|
49
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
50
|
+
# @option attributes [String] :oci_region_name The value to assign to the {#oci_region_name} property
|
|
51
|
+
# @option attributes [String] :provider_region_name The value to assign to the {#provider_region_name} property
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
return unless attributes.is_a?(Hash)
|
|
54
|
+
|
|
55
|
+
# convert string to symbol for hash key
|
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
57
|
+
|
|
58
|
+
self.oci_region_name = attributes[:'ociRegionName'] if attributes[:'ociRegionName']
|
|
59
|
+
|
|
60
|
+
raise 'You cannot provide both :ociRegionName and :oci_region_name' if attributes.key?(:'ociRegionName') && attributes.key?(:'oci_region_name')
|
|
61
|
+
|
|
62
|
+
self.oci_region_name = attributes[:'oci_region_name'] if attributes[:'oci_region_name']
|
|
63
|
+
|
|
64
|
+
self.provider_region_name = attributes[:'providerRegionName'] if attributes[:'providerRegionName']
|
|
65
|
+
|
|
66
|
+
raise 'You cannot provide both :providerRegionName and :provider_region_name' if attributes.key?(:'providerRegionName') && attributes.key?(:'provider_region_name')
|
|
67
|
+
|
|
68
|
+
self.provider_region_name = attributes[:'provider_region_name'] if attributes[:'provider_region_name']
|
|
69
|
+
end
|
|
70
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
71
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
72
|
+
|
|
73
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
# Checks equality by comparing each attribute.
|
|
77
|
+
# @param [Object] other the other object to be compared
|
|
78
|
+
def ==(other)
|
|
79
|
+
return true if equal?(other)
|
|
80
|
+
|
|
81
|
+
self.class == other.class &&
|
|
82
|
+
oci_region_name == other.oci_region_name &&
|
|
83
|
+
provider_region_name == other.provider_region_name
|
|
84
|
+
end
|
|
85
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
86
|
+
|
|
87
|
+
# @see the `==` method
|
|
88
|
+
# @param [Object] other the other object to be compared
|
|
89
|
+
def eql?(other)
|
|
90
|
+
self == other
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
# Calculates hash code according to all attributes.
|
|
97
|
+
# @return [Fixnum] Hash code
|
|
98
|
+
def hash
|
|
99
|
+
[oci_region_name, provider_region_name].hash
|
|
100
|
+
end
|
|
101
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
102
|
+
|
|
103
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
# Builds the object from hash
|
|
107
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
108
|
+
# @return [Object] Returns the model itself
|
|
109
|
+
def build_from_hash(attributes)
|
|
110
|
+
return nil unless attributes.is_a?(Hash)
|
|
111
|
+
|
|
112
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
113
|
+
if type =~ /^Array<(.*)>/i
|
|
114
|
+
# check to ensure the input is an array given that the the attribute
|
|
115
|
+
# is documented as an array but the input is not
|
|
116
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
117
|
+
public_method("#{key}=").call(
|
|
118
|
+
attributes[self.class.attribute_map[key]]
|
|
119
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
120
|
+
)
|
|
121
|
+
end
|
|
122
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
123
|
+
public_method("#{key}=").call(
|
|
124
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
125
|
+
)
|
|
126
|
+
end
|
|
127
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
self
|
|
131
|
+
end
|
|
132
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
133
|
+
|
|
134
|
+
# Returns the string representation of the object
|
|
135
|
+
# @return [String] String presentation of the object
|
|
136
|
+
def to_s
|
|
137
|
+
to_hash.to_s
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Returns the object in the form of hash
|
|
141
|
+
# @return [Hash] Returns the object in the form of hash
|
|
142
|
+
def to_hash
|
|
143
|
+
hash = {}
|
|
144
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
145
|
+
value = public_method(attr).call
|
|
146
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
147
|
+
|
|
148
|
+
hash[param] = _to_hash(value)
|
|
149
|
+
end
|
|
150
|
+
hash
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
private
|
|
154
|
+
|
|
155
|
+
# Outputs non-array value in the form of hash
|
|
156
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
157
|
+
# @param [Object] value Any valid value
|
|
158
|
+
# @return [Hash] Returns the value in the form of hash
|
|
159
|
+
def _to_hash(value)
|
|
160
|
+
if value.is_a?(Array)
|
|
161
|
+
value.compact.map { |v| _to_hash(v) }
|
|
162
|
+
elsif value.is_a?(Hash)
|
|
163
|
+
{}.tap do |hash|
|
|
164
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
165
|
+
end
|
|
166
|
+
elsif value.respond_to? :to_hash
|
|
167
|
+
value.to_hash
|
|
168
|
+
else
|
|
169
|
+
value
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
3
|
+
|
|
4
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20160918
|
|
5
|
+
require 'date'
|
|
6
|
+
require 'logger'
|
|
7
|
+
|
|
8
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
9
|
+
module OCI
|
|
10
|
+
# This field is used to define the retention period for backups. This is an optional field. If it is not specified, it is set to null, no retention period will be applied to the backups.
|
|
11
|
+
class Core::Models::RetentionDuration
|
|
12
|
+
RETENTION_TIME_UNIT_ENUM = [
|
|
13
|
+
RETENTION_TIME_UNIT_YEARS = 'YEARS'.freeze,
|
|
14
|
+
RETENTION_TIME_UNIT_DAYS = 'DAYS'.freeze,
|
|
15
|
+
RETENTION_TIME_UNIT_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
|
16
|
+
].freeze
|
|
17
|
+
|
|
18
|
+
# **[Required]** The value you can assign to the Time Unit property for this Duration may be either \"YEARS\" or \"DAYS\".
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_reader :retention_time_unit
|
|
21
|
+
|
|
22
|
+
# **[Required]** The value to enter for the amount of retention time should be a numerical figure (such as 1, 7, 30, etc.) that corresponds to the period specified in the retention time unit property (such as YEARS, DAYS). The combination of these two properties determines the total length of the retention period.
|
|
23
|
+
# @return [Integer]
|
|
24
|
+
attr_accessor :retention_time_amount
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
# rubocop:disable Style/SymbolLiteral
|
|
30
|
+
'retention_time_unit': :'retentionTimeUnit',
|
|
31
|
+
'retention_time_amount': :'retentionTimeAmount'
|
|
32
|
+
# rubocop:enable Style/SymbolLiteral
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Attribute type mapping.
|
|
37
|
+
def self.swagger_types
|
|
38
|
+
{
|
|
39
|
+
# rubocop:disable Style/SymbolLiteral
|
|
40
|
+
'retention_time_unit': :'String',
|
|
41
|
+
'retention_time_amount': :'Integer'
|
|
42
|
+
# rubocop:enable Style/SymbolLiteral
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
47
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
+
# @option attributes [String] :retention_time_unit The value to assign to the {#retention_time_unit} property
|
|
53
|
+
# @option attributes [Integer] :retention_time_amount The value to assign to the {#retention_time_amount} property
|
|
54
|
+
def initialize(attributes = {})
|
|
55
|
+
return unless attributes.is_a?(Hash)
|
|
56
|
+
|
|
57
|
+
# convert string to symbol for hash key
|
|
58
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
59
|
+
|
|
60
|
+
self.retention_time_unit = attributes[:'retentionTimeUnit'] if attributes[:'retentionTimeUnit']
|
|
61
|
+
|
|
62
|
+
raise 'You cannot provide both :retentionTimeUnit and :retention_time_unit' if attributes.key?(:'retentionTimeUnit') && attributes.key?(:'retention_time_unit')
|
|
63
|
+
|
|
64
|
+
self.retention_time_unit = attributes[:'retention_time_unit'] if attributes[:'retention_time_unit']
|
|
65
|
+
|
|
66
|
+
self.retention_time_amount = attributes[:'retentionTimeAmount'] if attributes[:'retentionTimeAmount']
|
|
67
|
+
|
|
68
|
+
raise 'You cannot provide both :retentionTimeAmount and :retention_time_amount' if attributes.key?(:'retentionTimeAmount') && attributes.key?(:'retention_time_amount')
|
|
69
|
+
|
|
70
|
+
self.retention_time_amount = attributes[:'retention_time_amount'] if attributes[:'retention_time_amount']
|
|
71
|
+
end
|
|
72
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
73
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
74
|
+
|
|
75
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
76
|
+
# @param [Object] retention_time_unit Object to be assigned
|
|
77
|
+
def retention_time_unit=(retention_time_unit)
|
|
78
|
+
# rubocop:disable Style/ConditionalAssignment
|
|
79
|
+
if retention_time_unit && !RETENTION_TIME_UNIT_ENUM.include?(retention_time_unit)
|
|
80
|
+
OCI.logger.debug("Unknown value for 'retention_time_unit' [" + retention_time_unit + "]. Mapping to 'RETENTION_TIME_UNIT_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
|
81
|
+
@retention_time_unit = RETENTION_TIME_UNIT_UNKNOWN_ENUM_VALUE
|
|
82
|
+
else
|
|
83
|
+
@retention_time_unit = retention_time_unit
|
|
84
|
+
end
|
|
85
|
+
# rubocop:enable Style/ConditionalAssignment
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
# Checks equality by comparing each attribute.
|
|
92
|
+
# @param [Object] other the other object to be compared
|
|
93
|
+
def ==(other)
|
|
94
|
+
return true if equal?(other)
|
|
95
|
+
|
|
96
|
+
self.class == other.class &&
|
|
97
|
+
retention_time_unit == other.retention_time_unit &&
|
|
98
|
+
retention_time_amount == other.retention_time_amount
|
|
99
|
+
end
|
|
100
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
101
|
+
|
|
102
|
+
# @see the `==` method
|
|
103
|
+
# @param [Object] other the other object to be compared
|
|
104
|
+
def eql?(other)
|
|
105
|
+
self == other
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
# Calculates hash code according to all attributes.
|
|
112
|
+
# @return [Fixnum] Hash code
|
|
113
|
+
def hash
|
|
114
|
+
[retention_time_unit, retention_time_amount].hash
|
|
115
|
+
end
|
|
116
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
117
|
+
|
|
118
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
# Builds the object from hash
|
|
122
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
123
|
+
# @return [Object] Returns the model itself
|
|
124
|
+
def build_from_hash(attributes)
|
|
125
|
+
return nil unless attributes.is_a?(Hash)
|
|
126
|
+
|
|
127
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
128
|
+
if type =~ /^Array<(.*)>/i
|
|
129
|
+
# check to ensure the input is an array given that the the attribute
|
|
130
|
+
# is documented as an array but the input is not
|
|
131
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
132
|
+
public_method("#{key}=").call(
|
|
133
|
+
attributes[self.class.attribute_map[key]]
|
|
134
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
135
|
+
)
|
|
136
|
+
end
|
|
137
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
138
|
+
public_method("#{key}=").call(
|
|
139
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
140
|
+
)
|
|
141
|
+
end
|
|
142
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
self
|
|
146
|
+
end
|
|
147
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
148
|
+
|
|
149
|
+
# Returns the string representation of the object
|
|
150
|
+
# @return [String] String presentation of the object
|
|
151
|
+
def to_s
|
|
152
|
+
to_hash.to_s
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Returns the object in the form of hash
|
|
156
|
+
# @return [Hash] Returns the object in the form of hash
|
|
157
|
+
def to_hash
|
|
158
|
+
hash = {}
|
|
159
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
160
|
+
value = public_method(attr).call
|
|
161
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
162
|
+
|
|
163
|
+
hash[param] = _to_hash(value)
|
|
164
|
+
end
|
|
165
|
+
hash
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
private
|
|
169
|
+
|
|
170
|
+
# Outputs non-array value in the form of hash
|
|
171
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
172
|
+
# @param [Object] value Any valid value
|
|
173
|
+
# @return [Hash] Returns the value in the form of hash
|
|
174
|
+
def _to_hash(value)
|
|
175
|
+
if value.is_a?(Array)
|
|
176
|
+
value.compact.map { |v| _to_hash(v) }
|
|
177
|
+
elsif value.is_a?(Hash)
|
|
178
|
+
{}.tap do |hash|
|
|
179
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
180
|
+
end
|
|
181
|
+
elsif value.respond_to? :to_hash
|
|
182
|
+
value.to_hash
|
|
183
|
+
else
|
|
184
|
+
value
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
@@ -14,11 +14,17 @@ module OCI
|
|
|
14
14
|
# @return [BOOLEAN]
|
|
15
15
|
attr_accessor :is_memory_encryption_supported
|
|
16
16
|
|
|
17
|
+
# Specifies if the Dedicated Virtual Machine Host (DVMH) is to running only Burstable VMs. If `true`, only Burstable VMs can be launched. If `false`, Burstable VMs cannot be launched.
|
|
18
|
+
#
|
|
19
|
+
# @return [BOOLEAN]
|
|
20
|
+
attr_accessor :is_burstable_supported
|
|
21
|
+
|
|
17
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
18
23
|
def self.attribute_map
|
|
19
24
|
{
|
|
20
25
|
# rubocop:disable Style/SymbolLiteral
|
|
21
|
-
'is_memory_encryption_supported': :'isMemoryEncryptionSupported'
|
|
26
|
+
'is_memory_encryption_supported': :'isMemoryEncryptionSupported',
|
|
27
|
+
'is_burstable_supported': :'isBurstableSupported'
|
|
22
28
|
# rubocop:enable Style/SymbolLiteral
|
|
23
29
|
}
|
|
24
30
|
end
|
|
@@ -27,7 +33,8 @@ module OCI
|
|
|
27
33
|
def self.swagger_types
|
|
28
34
|
{
|
|
29
35
|
# rubocop:disable Style/SymbolLiteral
|
|
30
|
-
'is_memory_encryption_supported': :'BOOLEAN'
|
|
36
|
+
'is_memory_encryption_supported': :'BOOLEAN',
|
|
37
|
+
'is_burstable_supported': :'BOOLEAN'
|
|
31
38
|
# rubocop:enable Style/SymbolLiteral
|
|
32
39
|
}
|
|
33
40
|
end
|
|
@@ -39,6 +46,7 @@ module OCI
|
|
|
39
46
|
# Initializes the object
|
|
40
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
41
48
|
# @option attributes [BOOLEAN] :is_memory_encryption_supported The value to assign to the {#is_memory_encryption_supported} property
|
|
49
|
+
# @option attributes [BOOLEAN] :is_burstable_supported The value to assign to the {#is_burstable_supported} property
|
|
42
50
|
def initialize(attributes = {})
|
|
43
51
|
return unless attributes.is_a?(Hash)
|
|
44
52
|
|
|
@@ -52,6 +60,14 @@ module OCI
|
|
|
52
60
|
|
|
53
61
|
self.is_memory_encryption_supported = attributes[:'is_memory_encryption_supported'] unless attributes[:'is_memory_encryption_supported'].nil?
|
|
54
62
|
self.is_memory_encryption_supported = false if is_memory_encryption_supported.nil? && !attributes.key?(:'isMemoryEncryptionSupported') && !attributes.key?(:'is_memory_encryption_supported') # rubocop:disable Style/StringLiterals
|
|
63
|
+
|
|
64
|
+
self.is_burstable_supported = attributes[:'isBurstableSupported'] unless attributes[:'isBurstableSupported'].nil?
|
|
65
|
+
self.is_burstable_supported = false if is_burstable_supported.nil? && !attributes.key?(:'isBurstableSupported') # rubocop:disable Style/StringLiterals
|
|
66
|
+
|
|
67
|
+
raise 'You cannot provide both :isBurstableSupported and :is_burstable_supported' if attributes.key?(:'isBurstableSupported') && attributes.key?(:'is_burstable_supported')
|
|
68
|
+
|
|
69
|
+
self.is_burstable_supported = attributes[:'is_burstable_supported'] unless attributes[:'is_burstable_supported'].nil?
|
|
70
|
+
self.is_burstable_supported = false if is_burstable_supported.nil? && !attributes.key?(:'isBurstableSupported') && !attributes.key?(:'is_burstable_supported') # rubocop:disable Style/StringLiterals
|
|
55
71
|
end
|
|
56
72
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
57
73
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
@@ -65,7 +81,8 @@ module OCI
|
|
|
65
81
|
return true if equal?(other)
|
|
66
82
|
|
|
67
83
|
self.class == other.class &&
|
|
68
|
-
is_memory_encryption_supported == other.is_memory_encryption_supported
|
|
84
|
+
is_memory_encryption_supported == other.is_memory_encryption_supported &&
|
|
85
|
+
is_burstable_supported == other.is_burstable_supported
|
|
69
86
|
end
|
|
70
87
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
71
88
|
|
|
@@ -81,7 +98,7 @@ module OCI
|
|
|
81
98
|
# Calculates hash code according to all attributes.
|
|
82
99
|
# @return [Fixnum] Hash code
|
|
83
100
|
def hash
|
|
84
|
-
[is_memory_encryption_supported].hash
|
|
101
|
+
[is_memory_encryption_supported, is_burstable_supported].hash
|
|
85
102
|
end
|
|
86
103
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
87
104
|
|