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,187 @@
|
|
|
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: 20200407
|
|
5
|
+
require 'date'
|
|
6
|
+
|
|
7
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
8
|
+
module OCI
|
|
9
|
+
# The information about new authentication details for an AI Model connection.
|
|
10
|
+
#
|
|
11
|
+
# This class has direct subclasses. If you are using this class as input to a service operations then you should favor using a subclass over the base class
|
|
12
|
+
class GoldenGate::Models::CreateAiModelAuthDetails
|
|
13
|
+
AUTH_TYPE_ENUM = [
|
|
14
|
+
AUTH_TYPE_OCI_GEN_AI = 'OCI_GEN_AI'.freeze,
|
|
15
|
+
AUTH_TYPE_API_KEY = 'API_KEY'.freeze
|
|
16
|
+
].freeze
|
|
17
|
+
|
|
18
|
+
# **[Required]** Authentication type used by the AI model connection.
|
|
19
|
+
#
|
|
20
|
+
# @return [String]
|
|
21
|
+
attr_reader :auth_type
|
|
22
|
+
|
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
|
+
def self.attribute_map
|
|
25
|
+
{
|
|
26
|
+
# rubocop:disable Style/SymbolLiteral
|
|
27
|
+
'auth_type': :'authType'
|
|
28
|
+
# rubocop:enable Style/SymbolLiteral
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Attribute type mapping.
|
|
33
|
+
def self.swagger_types
|
|
34
|
+
{
|
|
35
|
+
# rubocop:disable Style/SymbolLiteral
|
|
36
|
+
'auth_type': :'String'
|
|
37
|
+
# rubocop:enable Style/SymbolLiteral
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity, Metrics/AbcSize
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
# Given the hash representation of a subtype of this class,
|
|
45
|
+
# use the info in the hash to return the class of the subtype.
|
|
46
|
+
def self.get_subtype(object_hash)
|
|
47
|
+
type = object_hash[:'authType'] # rubocop:disable Style/SymbolLiteral
|
|
48
|
+
|
|
49
|
+
return 'OCI::GoldenGate::Models::CreateApiKeyAiModelAuthDetails' if type == 'API_KEY'
|
|
50
|
+
return 'OCI::GoldenGate::Models::CreateOciGenAiModelAuthDetails' if type == 'OCI_GEN_AI'
|
|
51
|
+
|
|
52
|
+
# TODO: Log a warning when the subtype is not found.
|
|
53
|
+
'OCI::GoldenGate::Models::CreateAiModelAuthDetails'
|
|
54
|
+
end
|
|
55
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity, Metrics/AbcSize
|
|
56
|
+
|
|
57
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
58
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
# Initializes the object
|
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
|
+
# @option attributes [String] :auth_type The value to assign to the {#auth_type} property
|
|
64
|
+
def initialize(attributes = {})
|
|
65
|
+
return unless attributes.is_a?(Hash)
|
|
66
|
+
|
|
67
|
+
# convert string to symbol for hash key
|
|
68
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
69
|
+
|
|
70
|
+
self.auth_type = attributes[:'authType'] if attributes[:'authType']
|
|
71
|
+
|
|
72
|
+
raise 'You cannot provide both :authType and :auth_type' if attributes.key?(:'authType') && attributes.key?(:'auth_type')
|
|
73
|
+
|
|
74
|
+
self.auth_type = attributes[:'auth_type'] if attributes[:'auth_type']
|
|
75
|
+
end
|
|
76
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
77
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
78
|
+
|
|
79
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
80
|
+
# @param [Object] auth_type Object to be assigned
|
|
81
|
+
def auth_type=(auth_type)
|
|
82
|
+
raise "Invalid value for 'auth_type': this must be one of the values in AUTH_TYPE_ENUM." if auth_type && !AUTH_TYPE_ENUM.include?(auth_type)
|
|
83
|
+
|
|
84
|
+
@auth_type = auth_type
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
# Checks equality by comparing each attribute.
|
|
91
|
+
# @param [Object] other the other object to be compared
|
|
92
|
+
def ==(other)
|
|
93
|
+
return true if equal?(other)
|
|
94
|
+
|
|
95
|
+
self.class == other.class &&
|
|
96
|
+
auth_type == other.auth_type
|
|
97
|
+
end
|
|
98
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
99
|
+
|
|
100
|
+
# @see the `==` method
|
|
101
|
+
# @param [Object] other the other object to be compared
|
|
102
|
+
def eql?(other)
|
|
103
|
+
self == other
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
# Calculates hash code according to all attributes.
|
|
110
|
+
# @return [Fixnum] Hash code
|
|
111
|
+
def hash
|
|
112
|
+
[auth_type].hash
|
|
113
|
+
end
|
|
114
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
115
|
+
|
|
116
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
# Builds the object from hash
|
|
120
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
121
|
+
# @return [Object] Returns the model itself
|
|
122
|
+
def build_from_hash(attributes)
|
|
123
|
+
return nil unless attributes.is_a?(Hash)
|
|
124
|
+
|
|
125
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
126
|
+
if type =~ /^Array<(.*)>/i
|
|
127
|
+
# check to ensure the input is an array given that the the attribute
|
|
128
|
+
# is documented as an array but the input is not
|
|
129
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
130
|
+
public_method("#{key}=").call(
|
|
131
|
+
attributes[self.class.attribute_map[key]]
|
|
132
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
133
|
+
)
|
|
134
|
+
end
|
|
135
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
136
|
+
public_method("#{key}=").call(
|
|
137
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
138
|
+
)
|
|
139
|
+
end
|
|
140
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
self
|
|
144
|
+
end
|
|
145
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
146
|
+
|
|
147
|
+
# Returns the string representation of the object
|
|
148
|
+
# @return [String] String presentation of the object
|
|
149
|
+
def to_s
|
|
150
|
+
to_hash.to_s
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Returns the object in the form of hash
|
|
154
|
+
# @return [Hash] Returns the object in the form of hash
|
|
155
|
+
def to_hash
|
|
156
|
+
hash = {}
|
|
157
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
158
|
+
value = public_method(attr).call
|
|
159
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
160
|
+
|
|
161
|
+
hash[param] = _to_hash(value)
|
|
162
|
+
end
|
|
163
|
+
hash
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
private
|
|
167
|
+
|
|
168
|
+
# Outputs non-array value in the form of hash
|
|
169
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
170
|
+
# @param [Object] value Any valid value
|
|
171
|
+
# @return [Hash] Returns the value in the form of hash
|
|
172
|
+
def _to_hash(value)
|
|
173
|
+
if value.is_a?(Array)
|
|
174
|
+
value.compact.map { |v| _to_hash(v) }
|
|
175
|
+
elsif value.is_a?(Hash)
|
|
176
|
+
{}.tap do |hash|
|
|
177
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
178
|
+
end
|
|
179
|
+
elsif value.respond_to? :to_hash
|
|
180
|
+
value.to_hash
|
|
181
|
+
else
|
|
182
|
+
value
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
@@ -0,0 +1,298 @@
|
|
|
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: 20200407
|
|
5
|
+
require 'date'
|
|
6
|
+
require_relative 'create_connection_details'
|
|
7
|
+
|
|
8
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
9
|
+
module OCI
|
|
10
|
+
# The information about a new AI Model Connection.
|
|
11
|
+
#
|
|
12
|
+
class GoldenGate::Models::CreateAiModelConnectionDetails < GoldenGate::Models::CreateConnectionDetails
|
|
13
|
+
PROVIDER_TYPE_ENUM = [
|
|
14
|
+
PROVIDER_TYPE_OCI_GENERATIVE_AI = 'OCI_GENERATIVE_AI'.freeze,
|
|
15
|
+
PROVIDER_TYPE_GEMINI = 'GEMINI'.freeze,
|
|
16
|
+
PROVIDER_TYPE_OPEN_AI = 'OPEN_AI'.freeze,
|
|
17
|
+
PROVIDER_TYPE_VOYAGE_AI = 'VOYAGE_AI'.freeze
|
|
18
|
+
].freeze
|
|
19
|
+
|
|
20
|
+
# **[Required]** The AI Model technology type.
|
|
21
|
+
#
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :technology_type
|
|
24
|
+
|
|
25
|
+
# AI Provider type used by the AI Model Connection.
|
|
26
|
+
#
|
|
27
|
+
# @return [String]
|
|
28
|
+
attr_reader :provider_type
|
|
29
|
+
|
|
30
|
+
# **[Required]** AI model identifier.
|
|
31
|
+
#
|
|
32
|
+
# @return [String]
|
|
33
|
+
attr_accessor :model_key
|
|
34
|
+
|
|
35
|
+
# Maximum number of input characters supported by this AI model connection.
|
|
36
|
+
#
|
|
37
|
+
# @return [Integer]
|
|
38
|
+
attr_accessor :max_input_chars
|
|
39
|
+
|
|
40
|
+
# @return [OCI::GoldenGate::Models::CreateAiModelAuthDetails]
|
|
41
|
+
attr_accessor :auth_details
|
|
42
|
+
|
|
43
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
44
|
+
def self.attribute_map
|
|
45
|
+
{
|
|
46
|
+
# rubocop:disable Style/SymbolLiteral
|
|
47
|
+
'connection_type': :'connectionType',
|
|
48
|
+
'display_name': :'displayName',
|
|
49
|
+
'description': :'description',
|
|
50
|
+
'compartment_id': :'compartmentId',
|
|
51
|
+
'freeform_tags': :'freeformTags',
|
|
52
|
+
'defined_tags': :'definedTags',
|
|
53
|
+
'locks': :'locks',
|
|
54
|
+
'vault_id': :'vaultId',
|
|
55
|
+
'key_id': :'keyId',
|
|
56
|
+
'nsg_ids': :'nsgIds',
|
|
57
|
+
'subnet_id': :'subnetId',
|
|
58
|
+
'routing_method': :'routingMethod',
|
|
59
|
+
'does_use_secret_ids': :'doesUseSecretIds',
|
|
60
|
+
'subscription_id': :'subscriptionId',
|
|
61
|
+
'cluster_placement_group_id': :'clusterPlacementGroupId',
|
|
62
|
+
'security_attributes': :'securityAttributes',
|
|
63
|
+
'technology_type': :'technologyType',
|
|
64
|
+
'provider_type': :'providerType',
|
|
65
|
+
'model_key': :'modelKey',
|
|
66
|
+
'max_input_chars': :'maxInputChars',
|
|
67
|
+
'auth_details': :'authDetails'
|
|
68
|
+
# rubocop:enable Style/SymbolLiteral
|
|
69
|
+
}
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Attribute type mapping.
|
|
73
|
+
def self.swagger_types
|
|
74
|
+
{
|
|
75
|
+
# rubocop:disable Style/SymbolLiteral
|
|
76
|
+
'connection_type': :'String',
|
|
77
|
+
'display_name': :'String',
|
|
78
|
+
'description': :'String',
|
|
79
|
+
'compartment_id': :'String',
|
|
80
|
+
'freeform_tags': :'Hash<String, String>',
|
|
81
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
|
82
|
+
'locks': :'Array<OCI::GoldenGate::Models::AddResourceLockDetails>',
|
|
83
|
+
'vault_id': :'String',
|
|
84
|
+
'key_id': :'String',
|
|
85
|
+
'nsg_ids': :'Array<String>',
|
|
86
|
+
'subnet_id': :'String',
|
|
87
|
+
'routing_method': :'String',
|
|
88
|
+
'does_use_secret_ids': :'BOOLEAN',
|
|
89
|
+
'subscription_id': :'String',
|
|
90
|
+
'cluster_placement_group_id': :'String',
|
|
91
|
+
'security_attributes': :'Hash<String, Hash<String, Object>>',
|
|
92
|
+
'technology_type': :'String',
|
|
93
|
+
'provider_type': :'String',
|
|
94
|
+
'model_key': :'String',
|
|
95
|
+
'max_input_chars': :'Integer',
|
|
96
|
+
'auth_details': :'OCI::GoldenGate::Models::CreateAiModelAuthDetails'
|
|
97
|
+
# rubocop:enable Style/SymbolLiteral
|
|
98
|
+
}
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
102
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
# Initializes the object
|
|
106
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
107
|
+
# @option attributes [String] :display_name The value to assign to the {OCI::GoldenGate::Models::CreateConnectionDetails#display_name #display_name} proprety
|
|
108
|
+
# @option attributes [String] :description The value to assign to the {OCI::GoldenGate::Models::CreateConnectionDetails#description #description} proprety
|
|
109
|
+
# @option attributes [String] :compartment_id The value to assign to the {OCI::GoldenGate::Models::CreateConnectionDetails#compartment_id #compartment_id} proprety
|
|
110
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {OCI::GoldenGate::Models::CreateConnectionDetails#freeform_tags #freeform_tags} proprety
|
|
111
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {OCI::GoldenGate::Models::CreateConnectionDetails#defined_tags #defined_tags} proprety
|
|
112
|
+
# @option attributes [Array<OCI::GoldenGate::Models::AddResourceLockDetails>] :locks The value to assign to the {OCI::GoldenGate::Models::CreateConnectionDetails#locks #locks} proprety
|
|
113
|
+
# @option attributes [String] :vault_id The value to assign to the {OCI::GoldenGate::Models::CreateConnectionDetails#vault_id #vault_id} proprety
|
|
114
|
+
# @option attributes [String] :key_id The value to assign to the {OCI::GoldenGate::Models::CreateConnectionDetails#key_id #key_id} proprety
|
|
115
|
+
# @option attributes [Array<String>] :nsg_ids The value to assign to the {OCI::GoldenGate::Models::CreateConnectionDetails#nsg_ids #nsg_ids} proprety
|
|
116
|
+
# @option attributes [String] :subnet_id The value to assign to the {OCI::GoldenGate::Models::CreateConnectionDetails#subnet_id #subnet_id} proprety
|
|
117
|
+
# @option attributes [String] :routing_method The value to assign to the {OCI::GoldenGate::Models::CreateConnectionDetails#routing_method #routing_method} proprety
|
|
118
|
+
# @option attributes [BOOLEAN] :does_use_secret_ids The value to assign to the {OCI::GoldenGate::Models::CreateConnectionDetails#does_use_secret_ids #does_use_secret_ids} proprety
|
|
119
|
+
# @option attributes [String] :subscription_id The value to assign to the {OCI::GoldenGate::Models::CreateConnectionDetails#subscription_id #subscription_id} proprety
|
|
120
|
+
# @option attributes [String] :cluster_placement_group_id The value to assign to the {OCI::GoldenGate::Models::CreateConnectionDetails#cluster_placement_group_id #cluster_placement_group_id} proprety
|
|
121
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :security_attributes The value to assign to the {OCI::GoldenGate::Models::CreateConnectionDetails#security_attributes #security_attributes} proprety
|
|
122
|
+
# @option attributes [String] :technology_type The value to assign to the {#technology_type} property
|
|
123
|
+
# @option attributes [String] :provider_type The value to assign to the {#provider_type} property
|
|
124
|
+
# @option attributes [String] :model_key The value to assign to the {#model_key} property
|
|
125
|
+
# @option attributes [Integer] :max_input_chars The value to assign to the {#max_input_chars} property
|
|
126
|
+
# @option attributes [OCI::GoldenGate::Models::CreateAiModelAuthDetails] :auth_details The value to assign to the {#auth_details} property
|
|
127
|
+
def initialize(attributes = {})
|
|
128
|
+
return unless attributes.is_a?(Hash)
|
|
129
|
+
|
|
130
|
+
attributes['connectionType'] = 'AI_MODEL'
|
|
131
|
+
|
|
132
|
+
super(attributes)
|
|
133
|
+
|
|
134
|
+
# convert string to symbol for hash key
|
|
135
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
136
|
+
|
|
137
|
+
self.technology_type = attributes[:'technologyType'] if attributes[:'technologyType']
|
|
138
|
+
|
|
139
|
+
raise 'You cannot provide both :technologyType and :technology_type' if attributes.key?(:'technologyType') && attributes.key?(:'technology_type')
|
|
140
|
+
|
|
141
|
+
self.technology_type = attributes[:'technology_type'] if attributes[:'technology_type']
|
|
142
|
+
|
|
143
|
+
self.provider_type = attributes[:'providerType'] if attributes[:'providerType']
|
|
144
|
+
|
|
145
|
+
raise 'You cannot provide both :providerType and :provider_type' if attributes.key?(:'providerType') && attributes.key?(:'provider_type')
|
|
146
|
+
|
|
147
|
+
self.provider_type = attributes[:'provider_type'] if attributes[:'provider_type']
|
|
148
|
+
|
|
149
|
+
self.model_key = attributes[:'modelKey'] if attributes[:'modelKey']
|
|
150
|
+
|
|
151
|
+
raise 'You cannot provide both :modelKey and :model_key' if attributes.key?(:'modelKey') && attributes.key?(:'model_key')
|
|
152
|
+
|
|
153
|
+
self.model_key = attributes[:'model_key'] if attributes[:'model_key']
|
|
154
|
+
|
|
155
|
+
self.max_input_chars = attributes[:'maxInputChars'] if attributes[:'maxInputChars']
|
|
156
|
+
|
|
157
|
+
raise 'You cannot provide both :maxInputChars and :max_input_chars' if attributes.key?(:'maxInputChars') && attributes.key?(:'max_input_chars')
|
|
158
|
+
|
|
159
|
+
self.max_input_chars = attributes[:'max_input_chars'] if attributes[:'max_input_chars']
|
|
160
|
+
|
|
161
|
+
self.auth_details = attributes[:'authDetails'] if attributes[:'authDetails']
|
|
162
|
+
|
|
163
|
+
raise 'You cannot provide both :authDetails and :auth_details' if attributes.key?(:'authDetails') && attributes.key?(:'auth_details')
|
|
164
|
+
|
|
165
|
+
self.auth_details = attributes[:'auth_details'] if attributes[:'auth_details']
|
|
166
|
+
end
|
|
167
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
168
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
169
|
+
|
|
170
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
171
|
+
# @param [Object] provider_type Object to be assigned
|
|
172
|
+
def provider_type=(provider_type)
|
|
173
|
+
raise "Invalid value for 'provider_type': this must be one of the values in PROVIDER_TYPE_ENUM." if provider_type && !PROVIDER_TYPE_ENUM.include?(provider_type)
|
|
174
|
+
|
|
175
|
+
@provider_type = provider_type
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
# Checks equality by comparing each attribute.
|
|
182
|
+
# @param [Object] other the other object to be compared
|
|
183
|
+
def ==(other)
|
|
184
|
+
return true if equal?(other)
|
|
185
|
+
|
|
186
|
+
self.class == other.class &&
|
|
187
|
+
connection_type == other.connection_type &&
|
|
188
|
+
display_name == other.display_name &&
|
|
189
|
+
description == other.description &&
|
|
190
|
+
compartment_id == other.compartment_id &&
|
|
191
|
+
freeform_tags == other.freeform_tags &&
|
|
192
|
+
defined_tags == other.defined_tags &&
|
|
193
|
+
locks == other.locks &&
|
|
194
|
+
vault_id == other.vault_id &&
|
|
195
|
+
key_id == other.key_id &&
|
|
196
|
+
nsg_ids == other.nsg_ids &&
|
|
197
|
+
subnet_id == other.subnet_id &&
|
|
198
|
+
routing_method == other.routing_method &&
|
|
199
|
+
does_use_secret_ids == other.does_use_secret_ids &&
|
|
200
|
+
subscription_id == other.subscription_id &&
|
|
201
|
+
cluster_placement_group_id == other.cluster_placement_group_id &&
|
|
202
|
+
security_attributes == other.security_attributes &&
|
|
203
|
+
technology_type == other.technology_type &&
|
|
204
|
+
provider_type == other.provider_type &&
|
|
205
|
+
model_key == other.model_key &&
|
|
206
|
+
max_input_chars == other.max_input_chars &&
|
|
207
|
+
auth_details == other.auth_details
|
|
208
|
+
end
|
|
209
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
210
|
+
|
|
211
|
+
# @see the `==` method
|
|
212
|
+
# @param [Object] other the other object to be compared
|
|
213
|
+
def eql?(other)
|
|
214
|
+
self == other
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
# Calculates hash code according to all attributes.
|
|
221
|
+
# @return [Fixnum] Hash code
|
|
222
|
+
def hash
|
|
223
|
+
[connection_type, display_name, description, compartment_id, freeform_tags, defined_tags, locks, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, subscription_id, cluster_placement_group_id, security_attributes, technology_type, provider_type, model_key, max_input_chars, auth_details].hash
|
|
224
|
+
end
|
|
225
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
226
|
+
|
|
227
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
# Builds the object from hash
|
|
231
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
232
|
+
# @return [Object] Returns the model itself
|
|
233
|
+
def build_from_hash(attributes)
|
|
234
|
+
return nil unless attributes.is_a?(Hash)
|
|
235
|
+
|
|
236
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
237
|
+
if type =~ /^Array<(.*)>/i
|
|
238
|
+
# check to ensure the input is an array given that the the attribute
|
|
239
|
+
# is documented as an array but the input is not
|
|
240
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
241
|
+
public_method("#{key}=").call(
|
|
242
|
+
attributes[self.class.attribute_map[key]]
|
|
243
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
244
|
+
)
|
|
245
|
+
end
|
|
246
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
247
|
+
public_method("#{key}=").call(
|
|
248
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
249
|
+
)
|
|
250
|
+
end
|
|
251
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
self
|
|
255
|
+
end
|
|
256
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
257
|
+
|
|
258
|
+
# Returns the string representation of the object
|
|
259
|
+
# @return [String] String presentation of the object
|
|
260
|
+
def to_s
|
|
261
|
+
to_hash.to_s
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
# Returns the object in the form of hash
|
|
265
|
+
# @return [Hash] Returns the object in the form of hash
|
|
266
|
+
def to_hash
|
|
267
|
+
hash = {}
|
|
268
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
269
|
+
value = public_method(attr).call
|
|
270
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
271
|
+
|
|
272
|
+
hash[param] = _to_hash(value)
|
|
273
|
+
end
|
|
274
|
+
hash
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
private
|
|
278
|
+
|
|
279
|
+
# Outputs non-array value in the form of hash
|
|
280
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
281
|
+
# @param [Object] value Any valid value
|
|
282
|
+
# @return [Hash] Returns the value in the form of hash
|
|
283
|
+
def _to_hash(value)
|
|
284
|
+
if value.is_a?(Array)
|
|
285
|
+
value.compact.map { |v| _to_hash(v) }
|
|
286
|
+
elsif value.is_a?(Hash)
|
|
287
|
+
{}.tap do |hash|
|
|
288
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
289
|
+
end
|
|
290
|
+
elsif value.respond_to? :to_hash
|
|
291
|
+
value.to_hash
|
|
292
|
+
else
|
|
293
|
+
value
|
|
294
|
+
end
|
|
295
|
+
end
|
|
296
|
+
end
|
|
297
|
+
end
|
|
298
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
@@ -15,12 +15,15 @@ module OCI
|
|
|
15
15
|
attr_accessor :technology_type
|
|
16
16
|
|
|
17
17
|
# **[Required]** Access key ID to access the Amazon Kinesis.
|
|
18
|
+
# Note: Despite the \"Id\" suffix, this value is not an OCI OCID.
|
|
18
19
|
#
|
|
19
20
|
# @return [String]
|
|
20
21
|
attr_accessor :access_key_id
|
|
21
22
|
|
|
22
23
|
# Secret access key to access the Amazon Kinesis.
|
|
23
|
-
# Deprecated: This field is deprecated and replaced by \"secretAccessKeySecretId\".
|
|
24
|
+
# Deprecated: This field is deprecated and replaced by \"secretAccessKeySecretId\".
|
|
25
|
+
# This change follows the GoldenGate \"Plain Text Fields in Connections\" deprecation:
|
|
26
|
+
# https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate
|
|
24
27
|
#
|
|
25
28
|
# @return [String]
|
|
26
29
|
attr_accessor :secret_access_key
|
|
@@ -29,7 +29,9 @@ module OCI
|
|
|
29
29
|
|
|
30
30
|
# The password Oracle GoldenGate uses to connect the associated system of the given technology.
|
|
31
31
|
# It must conform to the specific security requirements including length, case sensitivity, and so on.
|
|
32
|
-
# Deprecated: This field is deprecated and replaced by \"passwordSecretId\".
|
|
32
|
+
# Deprecated: This field is deprecated and replaced by \"passwordSecretId\".
|
|
33
|
+
# This change follows the GoldenGate \"Plain Text Fields in Connections\" deprecation:
|
|
34
|
+
# https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate
|
|
33
35
|
#
|
|
34
36
|
# @return [String]
|
|
35
37
|
attr_accessor :password
|
|
@@ -15,14 +15,16 @@ module OCI
|
|
|
15
15
|
attr_accessor :technology_type
|
|
16
16
|
|
|
17
17
|
# **[Required]** Access key ID to access the Amazon S3 bucket.
|
|
18
|
-
#
|
|
18
|
+
# Note: Despite the \"Id\" suffix, this value is not an OCI OCID.
|
|
19
19
|
#
|
|
20
20
|
# @return [String]
|
|
21
21
|
attr_accessor :access_key_id
|
|
22
22
|
|
|
23
23
|
# Secret access key to access the Amazon S3 bucket.
|
|
24
|
-
#
|
|
25
|
-
# Deprecated: This field is deprecated and replaced by \"secretAccessKeySecretId\".
|
|
24
|
+
#
|
|
25
|
+
# Deprecated: This field is deprecated and replaced by \"secretAccessKeySecretId\".
|
|
26
|
+
# This change follows the GoldenGate \"Plain Text Fields in Connections\" deprecation:
|
|
27
|
+
# https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate
|
|
26
28
|
#
|
|
27
29
|
# @return [String]
|
|
28
30
|
attr_accessor :secret_access_key
|
|
@@ -22,6 +22,7 @@ module OCI
|
|
|
22
22
|
attr_accessor :endpoint
|
|
23
23
|
|
|
24
24
|
# **[Required]** Access key ID to access the Amazon S3 bucket.
|
|
25
|
+
# Note: Despite the \"Id\" suffix, this value is not an OCI OCID.
|
|
25
26
|
#
|
|
26
27
|
# @return [String]
|
|
27
28
|
attr_accessor :access_key_id
|
|
@@ -32,8 +33,10 @@ module OCI
|
|
|
32
33
|
attr_accessor :secret_access_key_secret_id
|
|
33
34
|
|
|
34
35
|
# Secret access key to access the Amazon S3 bucket.
|
|
35
|
-
#
|
|
36
|
-
# Deprecated: This field is deprecated and replaced by \"secretAccessKeySecretId\".
|
|
36
|
+
#
|
|
37
|
+
# Deprecated: This field is deprecated and replaced by \"secretAccessKeySecretId\".
|
|
38
|
+
# This change follows the GoldenGate \"Plain Text Fields in Connections\" deprecation:
|
|
39
|
+
# https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate
|
|
37
40
|
#
|
|
38
41
|
# @return [String]
|
|
39
42
|
attr_accessor :secret_access_key
|