oci 2.11.0 → 2.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/oci.rb +1 -0
- data/lib/oci/analytics/analytics_client.rb +15 -0
- data/lib/oci/announcements_service/announcement_client.rb +4 -0
- data/lib/oci/apigateway/api_gateway_client.rb +15 -0
- data/lib/oci/apigateway/deployment_client.rb +6 -0
- data/lib/oci/apigateway/gateway_client.rb +6 -0
- data/lib/oci/apigateway/work_requests_client.rb +5 -0
- data/lib/oci/application_migration/application_migration_client.rb +19 -0
- data/lib/oci/audit/audit_client.rb +4 -1
- data/lib/oci/audit/models/audit_event.rb +8 -7
- data/lib/oci/audit/models/data.rb +0 -107
- data/lib/oci/audit/models/identity.rb +0 -17
- data/lib/oci/audit/models/request.rb +0 -46
- data/lib/oci/audit/models/response.rb +0 -34
- data/lib/oci/audit/models/state_change.rb +0 -9
- data/lib/oci/auth/signers/ephemeral_resource_principals_signer.rb +0 -1
- data/lib/oci/auth/signers/resource_principals_signer.rb +1 -1
- data/lib/oci/autoscaling/auto_scaling_client.rb +11 -0
- data/lib/oci/bds/bds_client.rb +16 -0
- data/lib/oci/blockchain/blockchain.rb +1 -0
- data/lib/oci/blockchain/blockchain_platform_client.rb +57 -0
- data/lib/oci/blockchain/models/blockchain_platform.rb +36 -3
- data/lib/oci/blockchain/models/blockchain_platform_by_hostname.rb +1 -1
- data/lib/oci/blockchain/models/blockchain_platform_summary.rb +1 -1
- data/lib/oci/blockchain/models/create_blockchain_platform_details.rb +2 -2
- data/lib/oci/blockchain/models/scaled_blockchain_platform_preview.rb +1 -1
- data/lib/oci/blockchain/models/work_request.rb +1 -0
- data/lib/oci/blockchain/models/work_request_resource.rb +18 -4
- data/lib/oci/blockchain/models/work_request_resource_sub_type_detail.rb +206 -0
- data/lib/oci/blockchain/models/work_request_summary.rb +1 -0
- data/lib/oci/budget/budget_client.rb +10 -0
- data/lib/oci/cims/incident_client.rb +7 -0
- data/lib/oci/cims/user_client.rb +1 -0
- data/lib/oci/cloud_guard/cloud_guard_client.rb +82 -0
- data/lib/oci/cloud_guard/models/rule_summary.rb +1 -0
- data/lib/oci/compute_instance_agent/compute_instance_agent_client.rb +6 -0
- data/lib/oci/container_engine/container_engine_client.rb +18 -0
- data/lib/oci/core/blockstorage_client.rb +53 -0
- data/lib/oci/core/compute_client.rb +71 -0
- data/lib/oci/core/compute_management_client.rb +28 -0
- data/lib/oci/core/virtual_network_client.rb +194 -0
- data/lib/oci/data_catalog/data_catalog.rb +5 -0
- data/lib/oci/data_catalog/data_catalog_client.rb +307 -4
- data/lib/oci/data_catalog/models/attribute.rb +45 -4
- data/lib/oci/data_catalog/models/attribute_summary.rb +45 -4
- data/lib/oci/data_catalog/models/faceted_search_aggregation.rb +55 -4
- data/lib/oci/{database/models/create_autonomous_data_warehouse_backup_details.rb → data_catalog/models/rule_attribute.rb} +25 -18
- data/lib/oci/data_catalog/models/rule_collection.rb +161 -0
- data/lib/oci/data_catalog/models/rule_origin_type.rb +12 -0
- data/lib/oci/data_catalog/models/rule_summary.rb +439 -0
- data/lib/oci/data_catalog/models/rule_type.rb +12 -0
- data/lib/oci/data_catalog/models/search_result_collection.rb +18 -4
- data/lib/oci/data_flow/data_flow_client.rb +24 -0
- data/lib/oci/data_integration/data_integration_client.rb +92 -0
- data/lib/oci/data_safe/data_safe.rb +8 -0
- data/lib/oci/data_safe/data_safe_client.rb +606 -13
- data/lib/oci/data_safe/data_safe_client_composite_operations.rb +198 -0
- data/lib/oci/data_safe/models/change_on_prem_connector_compartment_details.rb +154 -0
- data/lib/oci/data_safe/models/create_data_safe_private_endpoint_details.rb +1 -1
- data/lib/oci/{database/models/update_autonomous_data_warehouse_details.rb → data_safe/models/create_on_prem_connector_details.rb} +27 -49
- data/lib/oci/data_safe/models/data_safe_configuration.rb +5 -5
- data/lib/oci/data_safe/models/data_safe_private_endpoint.rb +2 -2
- data/lib/oci/data_safe/models/data_safe_private_endpoint_summary.rb +1 -1
- data/lib/oci/data_safe/models/enable_data_safe_configuration_details.rb +6 -40
- data/lib/oci/{database/models/generate_autonomous_data_warehouse_wallet_details.rb → data_safe/models/generate_on_prem_connector_configuration_details.rb} +3 -4
- data/lib/oci/{database/models/autonomous_data_warehouse_backup_summary.rb → data_safe/models/on_prem_connector.rb} +98 -98
- data/lib/oci/data_safe/models/on_prem_connector_lifecycle_state.rb +16 -0
- data/lib/oci/{database/models/autonomous_data_warehouse_backup.rb → data_safe/models/on_prem_connector_summary.rb} +90 -99
- data/lib/oci/data_safe/models/service_list.rb +1 -0
- data/lib/oci/data_safe/models/update_data_safe_private_endpoint_details.rb +1 -1
- data/lib/oci/data_safe/models/update_on_prem_connector_details.rb +198 -0
- data/lib/oci/data_safe/models/update_on_prem_connector_wallet_details.rb +156 -0
- data/lib/oci/data_safe/models/work_request.rb +11 -6
- data/lib/oci/data_safe/models/work_request_error.rb +3 -4
- data/lib/oci/data_safe/models/work_request_log_entry.rb +3 -3
- data/lib/oci/data_safe/models/work_request_summary.rb +13 -8
- data/lib/oci/data_science/data_science_client.rb +34 -0
- data/lib/oci/database/database.rb +4 -8
- data/lib/oci/database/database_client.rb +523 -766
- data/lib/oci/database/database_client_composite_operations.rb +1299 -330
- data/lib/oci/database/models/activate_exadata_infrastructure_details.rb +2 -1
- data/lib/oci/database/models/autonomous_container_database.rb +3 -3
- data/lib/oci/database/models/autonomous_container_database_dataguard_association.rb +2 -2
- data/lib/oci/database/models/autonomous_container_database_summary.rb +3 -3
- data/lib/oci/database/models/autonomous_data_warehouse.rb +8 -21
- data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +8 -21
- data/lib/oci/database/models/autonomous_database.rb +35 -3
- data/lib/oci/database/models/autonomous_database_apex.rb +169 -0
- data/lib/oci/database/models/autonomous_database_dataguard_association.rb +2 -2
- data/lib/oci/database/models/autonomous_database_summary.rb +35 -3
- data/lib/oci/database/models/autonomous_db_preview_version_summary.rb +2 -0
- data/lib/oci/database/models/autonomous_db_version_summary.rb +2 -0
- data/lib/oci/database/models/backup.rb +19 -5
- data/lib/oci/database/models/backup_summary.rb +19 -5
- data/lib/oci/database/models/change_cloud_exadata_infrastructure_compartment_details.rb +1 -1
- data/lib/oci/database/models/change_cloud_vm_cluster_compartment_details.rb +1 -1
- data/lib/oci/database/models/cloud_exadata_infrastructure.rb +2 -1
- data/lib/oci/database/models/cloud_exadata_infrastructure_summary.rb +2 -1
- data/lib/oci/database/models/cloud_vm_cluster.rb +1 -1
- data/lib/oci/database/models/cloud_vm_cluster_summary.rb +1 -1
- data/lib/oci/database/models/create_autonomous_container_database_details.rb +1 -1
- data/lib/oci/database/models/create_autonomous_database_base.rb +7 -3
- data/lib/oci/database/models/create_cloud_exadata_infrastructure_details.rb +1 -1
- data/lib/oci/database/models/create_cloud_vm_cluster_details.rb +2 -1
- data/lib/oci/database/models/create_database_base.rb +33 -4
- data/lib/oci/database/models/create_database_from_backup.rb +9 -1
- data/lib/oci/database/models/create_db_home_base.rb +30 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +9 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +9 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_database_details.rb +9 -1
- data/lib/oci/database/models/create_db_home_with_vm_cluster_id_details.rb +9 -1
- data/lib/oci/database/models/create_db_home_with_vm_cluster_id_from_backup_details.rb +9 -1
- data/lib/oci/database/models/create_exadata_infrastructure_details.rb +16 -2
- data/lib/oci/database/models/create_new_database_details.rb +9 -1
- data/lib/oci/database/models/create_vm_cluster_details.rb +2 -1
- data/lib/oci/database/models/database.rb +16 -2
- data/lib/oci/database/models/database_summary.rb +16 -2
- data/lib/oci/database/models/db_home.rb +16 -2
- data/lib/oci/database/models/db_home_summary.rb +16 -2
- data/lib/oci/database/models/db_system.rb +16 -2
- data/lib/oci/database/models/db_system_summary.rb +16 -2
- data/lib/oci/database/models/exadata_db_system_migration.rb +1 -1
- data/lib/oci/database/models/exadata_db_system_migration_summary.rb +1 -1
- data/lib/oci/database/models/exadata_infrastructure.rb +15 -1
- data/lib/oci/database/models/exadata_infrastructure_summary.rb +18 -2
- data/lib/oci/database/models/flex_component_collection.rb +150 -0
- data/lib/oci/database/models/flex_component_summary.rb +197 -0
- data/lib/oci/database/models/generate_recommended_network_details.rb +1 -1
- data/lib/oci/database/models/launch_db_system_base.rb +30 -1
- data/lib/oci/database/models/launch_db_system_details.rb +9 -1
- data/lib/oci/database/models/launch_db_system_from_backup_details.rb +9 -1
- data/lib/oci/database/models/launch_db_system_from_database_details.rb +9 -1
- data/lib/oci/database/models/launch_db_system_from_db_system_details.rb +9 -1
- data/lib/oci/database/models/maintenance_run.rb +2 -1
- data/lib/oci/database/models/maintenance_run_summary.rb +2 -1
- data/lib/oci/database/models/migrate_vault_key_details.rb +170 -0
- data/lib/oci/database/models/update_autonomous_container_database_details.rb +1 -1
- data/lib/oci/database/models/update_autonomous_database_details.rb +6 -2
- data/lib/oci/database/models/update_cloud_exadata_infrastructure_details.rb +1 -1
- data/lib/oci/database/models/update_cloud_vm_cluster_details.rb +3 -2
- data/lib/oci/database/models/update_database_details.rb +1 -1
- data/lib/oci/database/models/update_details.rb +1 -1
- data/lib/oci/database/models/update_exadata_infrastructure_details.rb +16 -2
- data/lib/oci/database/models/update_history_entry_summary.rb +2 -1
- data/lib/oci/database/models/update_summary.rb +1 -1
- data/lib/oci/database/models/update_vm_cluster_details.rb +3 -1
- data/lib/oci/database/models/update_vm_cluster_network_details.rb +1 -1
- data/lib/oci/database/models/vm_cluster.rb +2 -1
- data/lib/oci/database/models/vm_cluster_network_details.rb +1 -1
- data/lib/oci/database/models/vm_cluster_network_summary.rb +2 -1
- data/lib/oci/database/models/vm_cluster_summary.rb +1 -0
- data/lib/oci/database/models/vm_network_details.rb +2 -1
- data/lib/oci/dns/dns_client.rb +49 -0
- data/lib/oci/dts/appliance_export_job_client.rb +6 -0
- data/lib/oci/dts/shipping_vendors_client.rb +1 -0
- data/lib/oci/dts/transfer_appliance_client.rb +8 -0
- data/lib/oci/dts/transfer_appliance_entitlement_client.rb +3 -0
- data/lib/oci/dts/transfer_device_client.rb +5 -0
- data/lib/oci/dts/transfer_job_client.rb +6 -0
- data/lib/oci/dts/transfer_package_client.rb +7 -0
- data/lib/oci/email/email_client.rb +10 -0
- data/lib/oci/events/events_client.rb +6 -0
- data/lib/oci/file_storage/file_storage_client.rb +25 -0
- data/lib/oci/functions/functions_invoke_client.rb +1 -0
- data/lib/oci/functions/functions_management_client.rb +11 -0
- data/lib/oci/healthchecks/health_checks_client.rb +17 -0
- data/lib/oci/identity/identity_client.rb +120 -0
- data/lib/oci/identity/models/saml2_identity_provider.rb +12 -1
- data/lib/oci/integration/integration.rb +3 -0
- data/lib/oci/integration/integration_instance_client.rb +12 -0
- data/lib/oci/integration/models/create_custom_endpoint_details.rb +167 -0
- data/lib/oci/integration/models/create_integration_instance_details.rb +44 -1
- data/lib/oci/integration/models/custom_endpoint_details.rb +180 -0
- data/lib/oci/integration/models/integration_instance.rb +43 -1
- data/lib/oci/integration/models/integration_instance_summary.rb +43 -1
- data/lib/oci/integration/models/update_custom_endpoint_details.rb +167 -0
- data/lib/oci/integration/models/update_integration_instance_details.rb +47 -4
- data/lib/oci/key_management/kms_crypto_client.rb +4 -0
- data/lib/oci/key_management/kms_management_client.rb +31 -0
- data/lib/oci/key_management/kms_vault_client.rb +11 -0
- data/lib/oci/limits/limits_client.rb +4 -0
- data/lib/oci/limits/quotas_client.rb +5 -0
- data/lib/oci/load_balancer/load_balancer.rb +1 -0
- data/lib/oci/load_balancer/load_balancer_client.rb +56 -0
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +16 -1
- data/lib/oci/load_balancer/models/load_balancer.rb +14 -1
- data/lib/oci/load_balancer/models/shape_details.rb +180 -0
- data/lib/oci/load_balancer/models/ssl_configuration.rb +1 -1
- data/lib/oci/load_balancer/models/ssl_configuration_details.rb +1 -1
- data/lib/oci/load_balancer/models/update_load_balancer_shape_details.rb +22 -4
- data/lib/oci/log_analytics/log_analytics_client.rb +126 -0
- data/lib/oci/logging/logging_management_client.rb +32 -0
- data/lib/oci/loggingingestion/logging_client.rb +1 -0
- data/lib/oci/loggingsearch/log_search_client.rb +1 -0
- data/lib/oci/management_agent/management_agent.rb +2 -0
- data/lib/oci/management_agent/management_agent_client.rb +101 -0
- data/lib/oci/management_agent/models/availability_history_summary.rb +217 -0
- data/lib/oci/management_agent/models/availability_status.rb +12 -0
- data/lib/oci/management_agent/models/management_agent.rb +35 -1
- data/lib/oci/management_agent/models/management_agent_summary.rb +49 -1
- data/lib/oci/management_dashboard/dashx_apis_client.rb +14 -0
- data/lib/oci/marketplace/marketplace_client.rb +16 -0
- data/lib/oci/monitoring/monitoring_client.rb +12 -0
- data/lib/oci/mysql/channels_client.rb +625 -0
- data/lib/oci/mysql/channels_client_composite_operations.rb +271 -0
- data/lib/oci/mysql/db_backups_client.rb +11 -0
- data/lib/oci/mysql/db_system_client.rb +17 -0
- data/lib/oci/mysql/models/backup.rb +16 -3
- data/lib/oci/mysql/models/backup_summary.rb +17 -3
- data/lib/oci/mysql/models/ca_certificate.rb +189 -0
- data/lib/oci/mysql/models/channel.rb +340 -0
- data/lib/oci/mysql/models/channel_source.rb +189 -0
- data/lib/oci/mysql/models/channel_source_mysql.rb +230 -0
- data/lib/oci/mysql/models/channel_summary.rb +304 -0
- data/lib/oci/mysql/models/channel_target.rb +189 -0
- data/lib/oci/mysql/models/channel_target_db_system.rb +193 -0
- data/lib/oci/mysql/models/configuration.rb +2 -2
- data/lib/oci/mysql/models/configuration_summary.rb +2 -2
- data/lib/oci/mysql/models/configuration_variables.rb +30 -15
- data/lib/oci/mysql/models/create_backup_details.rb +2 -2
- data/lib/oci/mysql/models/create_backup_policy_details.rb +3 -0
- data/lib/oci/mysql/models/create_channel_details.rb +248 -0
- data/lib/oci/mysql/models/create_channel_source_details.rb +170 -0
- data/lib/oci/mysql/models/create_channel_source_from_mysql_details.rb +224 -0
- data/lib/oci/mysql/models/create_channel_target_details.rb +170 -0
- data/lib/oci/mysql/models/create_channel_target_from_db_system_details.rb +193 -0
- data/lib/oci/mysql/models/create_configuration_details.rb +2 -3
- data/lib/oci/mysql/models/create_db_system_details.rb +1 -1
- data/lib/oci/mysql/models/create_db_system_source_details.rb +1 -0
- data/lib/oci/mysql/models/create_db_system_source_from_none_details.rb +146 -0
- data/lib/oci/mysql/models/db_system.rb +15 -3
- data/lib/oci/mysql/models/db_system_snapshot.rb +437 -0
- data/lib/oci/mysql/models/db_system_source.rb +1 -0
- data/lib/oci/mysql/models/db_system_source_from_none.rb +146 -0
- data/lib/oci/mysql/models/db_system_summary.rb +2 -2
- data/lib/oci/mysql/models/pem_ca_certificate.rb +158 -0
- data/lib/oci/mysql/models/update_backup_details.rb +2 -2
- data/lib/oci/mysql/models/update_backup_policy_details.rb +3 -0
- data/lib/oci/mysql/models/update_channel_details.rb +234 -0
- data/lib/oci/mysql/models/update_channel_source_details.rb +171 -0
- data/lib/oci/mysql/models/update_channel_source_from_mysql_details.rb +224 -0
- data/lib/oci/mysql/models/update_channel_target_details.rb +170 -0
- data/lib/oci/mysql/models/update_channel_target_from_db_system_details.rb +179 -0
- data/lib/oci/mysql/models/update_configuration_details.rb +2 -2
- data/lib/oci/mysql/mysql.rb +23 -0
- data/lib/oci/mysql/mysqlaas_client.rb +7 -0
- data/lib/oci/mysql/work_requests_client.rb +4 -0
- data/lib/oci/nosql/nosql_client.rb +22 -0
- data/lib/oci/object_storage/models/object_lifecycle_rule.rb +11 -9
- data/lib/oci/object_storage/object_storage_client.rb +55 -6
- data/lib/oci/oce/oce_instance_client.rb +10 -0
- data/lib/oci/ocvp/esxi_host_client.rb +5 -0
- data/lib/oci/ocvp/sddc_client.rb +7 -0
- data/lib/oci/ocvp/work_request_client.rb +4 -0
- data/lib/oci/oda/oda_client.rb +12 -0
- data/lib/oci/ons/notification_control_plane_client.rb +6 -0
- data/lib/oci/ons/notification_data_plane_client.rb +10 -0
- data/lib/oci/opsi/models/sql_insight_aggregation.rb +2 -1
- data/lib/oci/opsi/models/sql_insight_thresholds.rb +21 -4
- data/lib/oci/opsi/operations_insights_client.rb +22 -3
- data/lib/oci/optimizer/optimizer_client.rb +22 -0
- data/lib/oci/os_management/os_management_client.rb +53 -0
- data/lib/oci/regions.rb +3 -0
- data/lib/oci/resource_manager/models/configuration_source_provider.rb +5 -1
- data/lib/oci/resource_manager/models/configuration_source_provider_summary.rb +3 -1
- data/lib/oci/resource_manager/models/create_configuration_source_provider_details.rb +4 -1
- data/lib/oci/resource_manager/models/create_github_access_token_configuration_source_provider_details.rb +200 -0
- data/lib/oci/resource_manager/models/create_gitlab_access_token_configuration_source_provider_details.rb +3 -3
- data/lib/oci/resource_manager/models/github_access_token_configuration_source_provider.rb +198 -0
- data/lib/oci/resource_manager/models/github_access_token_configuration_source_provider_summary.rb +198 -0
- data/lib/oci/resource_manager/models/gitlab_access_token_configuration_source_provider.rb +2 -2
- data/lib/oci/resource_manager/models/gitlab_access_token_configuration_source_provider_summary.rb +2 -2
- data/lib/oci/resource_manager/models/update_configuration_source_provider_details.rb +4 -1
- data/lib/oci/resource_manager/models/update_github_access_token_configuration_source_provider_details.rb +196 -0
- data/lib/oci/resource_manager/models/update_gitlab_access_token_configuration_source_provider_details.rb +3 -3
- data/lib/oci/resource_manager/resource_manager.rb +4 -0
- data/lib/oci/resource_manager/resource_manager_client.rb +36 -2
- data/lib/oci/resource_search/resource_search_client.rb +3 -0
- data/lib/oci/rover/models/change_rover_cluster_compartment_details.rb +155 -0
- data/lib/oci/{database/models/autonomous_data_warehouse_console_token_details.rb → rover/models/change_rover_entitlement_compartment_details.rb} +13 -23
- data/lib/oci/rover/models/change_rover_node_compartment_details.rb +155 -0
- data/lib/oci/rover/models/create_rover_cluster_details.rb +459 -0
- data/lib/oci/rover/models/create_rover_entitlement_details.rb +320 -0
- data/lib/oci/rover/models/create_rover_node_details.rb +501 -0
- data/lib/oci/rover/models/enclosure_type.rb +11 -0
- data/lib/oci/rover/models/lifecycle_state.rb +15 -0
- data/lib/oci/rover/models/node_type.rb +11 -0
- data/lib/oci/rover/models/rover_cluster.rb +610 -0
- data/lib/oci/rover/models/rover_cluster_certificate.rb +150 -0
- data/lib/oci/{database/models/restore_autonomous_data_warehouse_details.rb → rover/models/rover_cluster_collection.rb} +11 -12
- data/lib/oci/{database/models/create_autonomous_data_warehouse_details.rb → rover/models/rover_cluster_summary.rb} +99 -84
- data/lib/oci/rover/models/rover_entitlement.rb +363 -0
- data/lib/oci/rover/models/rover_entitlement_collection.rb +150 -0
- data/lib/oci/rover/models/rover_entitlement_summary.rb +285 -0
- data/lib/oci/rover/models/rover_node.rb +661 -0
- data/lib/oci/rover/models/rover_node_action_set_key_details.rb +154 -0
- data/lib/oci/rover/models/rover_node_certificate.rb +150 -0
- data/lib/oci/rover/models/rover_node_collection.rb +150 -0
- data/lib/oci/rover/models/rover_node_encryption_key.rb +154 -0
- data/lib/oci/rover/models/rover_node_get_rpt.rb +168 -0
- data/lib/oci/rover/models/rover_node_set_key.rb +154 -0
- data/lib/oci/rover/models/rover_node_summary.rb +323 -0
- data/lib/oci/rover/models/rover_workload.rb +264 -0
- data/lib/oci/rover/models/shipping_address.rb +276 -0
- data/lib/oci/rover/models/sort_orders.rb +11 -0
- data/lib/oci/rover/models/update_rover_cluster_details.rb +445 -0
- data/lib/oci/rover/models/update_rover_entitlement_details.rb +306 -0
- data/lib/oci/rover/models/update_rover_node_details.rb +487 -0
- data/lib/oci/rover/rover.rb +54 -0
- data/lib/oci/rover/rover_cluster_client.rb +549 -0
- data/lib/oci/rover/rover_cluster_client_composite_operations.rb +144 -0
- data/lib/oci/rover/rover_entitlement_client.rb +514 -0
- data/lib/oci/rover/rover_entitlement_client_composite_operations.rb +144 -0
- data/lib/oci/rover/rover_node_client.rb +738 -0
- data/lib/oci/rover/rover_node_client_composite_operations.rb +144 -0
- data/lib/oci/rover/util.rb +3 -0
- data/lib/oci/sch/service_connector_client.rb +12 -0
- data/lib/oci/secrets/secrets_client.rb +2 -0
- data/lib/oci/streaming/stream_admin_client.rb +18 -0
- data/lib/oci/streaming/stream_client.rb +8 -0
- data/lib/oci/tenant_manager_control_plane/link_client.rb +3 -0
- data/lib/oci/tenant_manager_control_plane/recipient_invitation_client.rb +5 -0
- data/lib/oci/tenant_manager_control_plane/sender_invitation_client.rb +5 -0
- data/lib/oci/tenant_manager_control_plane/work_request_client.rb +4 -0
- data/lib/oci/usage_api/usageapi_client.rb +2 -0
- data/lib/oci/vault/vaults_client.rb +11 -0
- data/lib/oci/version.rb +1 -1
- data/lib/oci/waas/redirect_client.rb +6 -0
- data/lib/oci/waas/waas_client.rb +66 -0
- data/lib/oci/work_requests/work_request_client.rb +4 -0
- metadata +91 -10
data/lib/oci/regions.rb
CHANGED
@@ -31,6 +31,7 @@ module OCI
|
|
31
31
|
REGION_ME_JEDDAH_1 = 'me-jeddah-1'.freeze,
|
32
32
|
|
33
33
|
REGION_SA_SAOPAULO_1 = 'sa-saopaulo-1'.freeze,
|
34
|
+
REGION_SA_SANTIAGO_1 = 'sa-santiago-1'.freeze,
|
34
35
|
|
35
36
|
REGION_UK_CARDIFF_1 = 'uk-cardiff-1'.freeze,
|
36
37
|
REGION_UK_LONDON_1 = 'uk-london-1'.freeze,
|
@@ -68,6 +69,7 @@ module OCI
|
|
68
69
|
'nja': REGION_AP_CHIYODA_1,
|
69
70
|
'nrt': REGION_AP_TOKYO_1,
|
70
71
|
'phx': REGION_US_PHOENIX_1,
|
72
|
+
'scl': REGION_SA_SANTIAGO_1,
|
71
73
|
'sjc': REGION_US_SANJOSE_1,
|
72
74
|
'syd': REGION_AP_SYDNEY_1,
|
73
75
|
'yny': REGION_AP_CHUNCHEON_1,
|
@@ -98,6 +100,7 @@ module OCI
|
|
98
100
|
'me-dubai-1': 'oc1'.freeze,
|
99
101
|
'me-jeddah-1': 'oc1'.freeze,
|
100
102
|
|
103
|
+
'sa-santiago-1': 'oc1.freeze',
|
101
104
|
'sa-saopaulo-1': 'oc1'.freeze,
|
102
105
|
|
103
106
|
'uk-cardiff-1': 'oc1'.freeze,
|
@@ -19,6 +19,7 @@ module OCI
|
|
19
19
|
|
20
20
|
CONFIG_SOURCE_PROVIDER_TYPE_ENUM = [
|
21
21
|
CONFIG_SOURCE_PROVIDER_TYPE_GITLAB_ACCESS_TOKEN = 'GITLAB_ACCESS_TOKEN'.freeze,
|
22
|
+
CONFIG_SOURCE_PROVIDER_TYPE_GITHUB_ACCESS_TOKEN = 'GITHUB_ACCESS_TOKEN'.freeze,
|
22
23
|
CONFIG_SOURCE_PROVIDER_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
23
24
|
].freeze
|
24
25
|
|
@@ -52,7 +53,9 @@ module OCI
|
|
52
53
|
# @return [String]
|
53
54
|
attr_reader :lifecycle_state
|
54
55
|
|
55
|
-
# **[Required]** The type of configuration source provider.
|
56
|
+
# **[Required]** The type of configuration source provider.
|
57
|
+
# The `GITLAB_ACCESS_TOKEN` type corresponds to GitLab.
|
58
|
+
# The `GITHUB_ACCESS_TOKEN` type corresponds to GitHub.
|
56
59
|
#
|
57
60
|
# @return [String]
|
58
61
|
attr_reader :config_source_provider_type
|
@@ -113,6 +116,7 @@ module OCI
|
|
113
116
|
def self.get_subtype(object_hash)
|
114
117
|
type = object_hash[:'configSourceProviderType'] # rubocop:disable Style/SymbolLiteral
|
115
118
|
|
119
|
+
return 'OCI::ResourceManager::Models::GithubAccessTokenConfigurationSourceProvider' if type == 'GITHUB_ACCESS_TOKEN'
|
116
120
|
return 'OCI::ResourceManager::Models::GitlabAccessTokenConfigurationSourceProvider' if type == 'GITLAB_ACCESS_TOKEN'
|
117
121
|
|
118
122
|
# TODO: Log a warning when the subtype is not found.
|
@@ -42,7 +42,8 @@ module OCI
|
|
42
42
|
# @return [String]
|
43
43
|
attr_accessor :lifecycle_state
|
44
44
|
|
45
|
-
# **[Required]** The type of configuration source provider. The `GITLAB_ACCESS_TOKEN` type corresponds to
|
45
|
+
# **[Required]** The type of configuration source provider. The `GITLAB_ACCESS_TOKEN` type corresponds to GitLab.
|
46
|
+
# The `GITHUB_ACCESS_TOKEN` type corresponds to GitHub.
|
46
47
|
#
|
47
48
|
# @return [String]
|
48
49
|
attr_accessor :config_source_provider_type
|
@@ -104,6 +105,7 @@ module OCI
|
|
104
105
|
type = object_hash[:'configSourceProviderType'] # rubocop:disable Style/SymbolLiteral
|
105
106
|
|
106
107
|
return 'OCI::ResourceManager::Models::GitlabAccessTokenConfigurationSourceProviderSummary' if type == 'GITLAB_ACCESS_TOKEN'
|
108
|
+
return 'OCI::ResourceManager::Models::GithubAccessTokenConfigurationSourceProviderSummary' if type == 'GITHUB_ACCESS_TOKEN'
|
107
109
|
|
108
110
|
# TODO: Log a warning when the subtype is not found.
|
109
111
|
'OCI::ResourceManager::Models::ConfigurationSourceProviderSummary'
|
@@ -23,7 +23,9 @@ module OCI
|
|
23
23
|
# @return [String]
|
24
24
|
attr_accessor :description
|
25
25
|
|
26
|
-
# **[Required]** The type of configuration source provider.
|
26
|
+
# **[Required]** The type of configuration source provider.
|
27
|
+
# The `GITLAB_ACCESS_TOKEN` type corresponds to GitLab.
|
28
|
+
# The `GITHUB_ACCESS_TOKEN` type corresponds to GitHub.
|
27
29
|
#
|
28
30
|
# @return [String]
|
29
31
|
attr_accessor :config_source_provider_type
|
@@ -79,6 +81,7 @@ module OCI
|
|
79
81
|
type = object_hash[:'configSourceProviderType'] # rubocop:disable Style/SymbolLiteral
|
80
82
|
|
81
83
|
return 'OCI::ResourceManager::Models::CreateGitlabAccessTokenConfigurationSourceProviderDetails' if type == 'GITLAB_ACCESS_TOKEN'
|
84
|
+
return 'OCI::ResourceManager::Models::CreateGithubAccessTokenConfigurationSourceProviderDetails' if type == 'GITHUB_ACCESS_TOKEN'
|
82
85
|
|
83
86
|
# TODO: Log a warning when the subtype is not found.
|
84
87
|
'OCI::ResourceManager::Models::CreateConfigurationSourceProviderDetails'
|
@@ -0,0 +1,200 @@
|
|
1
|
+
# Copyright (c) 2016, 2020, 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
|
+
require 'date'
|
5
|
+
require_relative 'create_configuration_source_provider_details'
|
6
|
+
|
7
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
8
|
+
module OCI
|
9
|
+
# The details for creating a configuration source provider of the type `GITHUB_ACCESS_TOKEN`.
|
10
|
+
# This type corresponds to a configuration source provider in GitHub that is authenticated with a personal access token.
|
11
|
+
#
|
12
|
+
class ResourceManager::Models::CreateGithubAccessTokenConfigurationSourceProviderDetails < ResourceManager::Models::CreateConfigurationSourceProviderDetails
|
13
|
+
# **[Required]** The GitHub service endpoint.
|
14
|
+
# Example: `https://github.com/`
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
attr_accessor :api_endpoint
|
18
|
+
|
19
|
+
# **[Required]** The personal access token to be configured on the GitHub repository. Avoid entering confidential information.
|
20
|
+
# @return [String]
|
21
|
+
attr_accessor :access_token
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
# rubocop:disable Style/SymbolLiteral
|
27
|
+
'compartment_id': :'compartmentId',
|
28
|
+
'display_name': :'displayName',
|
29
|
+
'description': :'description',
|
30
|
+
'config_source_provider_type': :'configSourceProviderType',
|
31
|
+
'freeform_tags': :'freeformTags',
|
32
|
+
'defined_tags': :'definedTags',
|
33
|
+
'api_endpoint': :'apiEndpoint',
|
34
|
+
'access_token': :'accessToken'
|
35
|
+
# rubocop:enable Style/SymbolLiteral
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
def self.swagger_types
|
41
|
+
{
|
42
|
+
# rubocop:disable Style/SymbolLiteral
|
43
|
+
'compartment_id': :'String',
|
44
|
+
'display_name': :'String',
|
45
|
+
'description': :'String',
|
46
|
+
'config_source_provider_type': :'String',
|
47
|
+
'freeform_tags': :'Hash<String, String>',
|
48
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
49
|
+
'api_endpoint': :'String',
|
50
|
+
'access_token': :'String'
|
51
|
+
# rubocop:enable Style/SymbolLiteral
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
56
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
57
|
+
|
58
|
+
|
59
|
+
# Initializes the object
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
61
|
+
# @option attributes [String] :compartment_id The value to assign to the {OCI::ResourceManager::Models::CreateConfigurationSourceProviderDetails#compartment_id #compartment_id} proprety
|
62
|
+
# @option attributes [String] :display_name The value to assign to the {OCI::ResourceManager::Models::CreateConfigurationSourceProviderDetails#display_name #display_name} proprety
|
63
|
+
# @option attributes [String] :description The value to assign to the {OCI::ResourceManager::Models::CreateConfigurationSourceProviderDetails#description #description} proprety
|
64
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {OCI::ResourceManager::Models::CreateConfigurationSourceProviderDetails#freeform_tags #freeform_tags} proprety
|
65
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {OCI::ResourceManager::Models::CreateConfigurationSourceProviderDetails#defined_tags #defined_tags} proprety
|
66
|
+
# @option attributes [String] :api_endpoint The value to assign to the {#api_endpoint} property
|
67
|
+
# @option attributes [String] :access_token The value to assign to the {#access_token} property
|
68
|
+
def initialize(attributes = {})
|
69
|
+
return unless attributes.is_a?(Hash)
|
70
|
+
|
71
|
+
attributes['configSourceProviderType'] = 'GITHUB_ACCESS_TOKEN'
|
72
|
+
|
73
|
+
super(attributes)
|
74
|
+
|
75
|
+
# convert string to symbol for hash key
|
76
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
77
|
+
|
78
|
+
self.api_endpoint = attributes[:'apiEndpoint'] if attributes[:'apiEndpoint']
|
79
|
+
|
80
|
+
raise 'You cannot provide both :apiEndpoint and :api_endpoint' if attributes.key?(:'apiEndpoint') && attributes.key?(:'api_endpoint')
|
81
|
+
|
82
|
+
self.api_endpoint = attributes[:'api_endpoint'] if attributes[:'api_endpoint']
|
83
|
+
|
84
|
+
self.access_token = attributes[:'accessToken'] if attributes[:'accessToken']
|
85
|
+
|
86
|
+
raise 'You cannot provide both :accessToken and :access_token' if attributes.key?(:'accessToken') && attributes.key?(:'access_token')
|
87
|
+
|
88
|
+
self.access_token = attributes[:'access_token'] if attributes[:'access_token']
|
89
|
+
end
|
90
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
91
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
92
|
+
|
93
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
94
|
+
|
95
|
+
|
96
|
+
# Checks equality by comparing each attribute.
|
97
|
+
# @param [Object] other the other object to be compared
|
98
|
+
def ==(other)
|
99
|
+
return true if equal?(other)
|
100
|
+
|
101
|
+
self.class == other.class &&
|
102
|
+
compartment_id == other.compartment_id &&
|
103
|
+
display_name == other.display_name &&
|
104
|
+
description == other.description &&
|
105
|
+
config_source_provider_type == other.config_source_provider_type &&
|
106
|
+
freeform_tags == other.freeform_tags &&
|
107
|
+
defined_tags == other.defined_tags &&
|
108
|
+
api_endpoint == other.api_endpoint &&
|
109
|
+
access_token == other.access_token
|
110
|
+
end
|
111
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
112
|
+
|
113
|
+
# @see the `==` method
|
114
|
+
# @param [Object] other the other object to be compared
|
115
|
+
def eql?(other)
|
116
|
+
self == other
|
117
|
+
end
|
118
|
+
|
119
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
120
|
+
|
121
|
+
|
122
|
+
# Calculates hash code according to all attributes.
|
123
|
+
# @return [Fixnum] Hash code
|
124
|
+
def hash
|
125
|
+
[compartment_id, display_name, description, config_source_provider_type, freeform_tags, defined_tags, api_endpoint, access_token].hash
|
126
|
+
end
|
127
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
128
|
+
|
129
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
130
|
+
|
131
|
+
|
132
|
+
# Builds the object from hash
|
133
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
134
|
+
# @return [Object] Returns the model itself
|
135
|
+
def build_from_hash(attributes)
|
136
|
+
return nil unless attributes.is_a?(Hash)
|
137
|
+
|
138
|
+
self.class.swagger_types.each_pair do |key, type|
|
139
|
+
if type =~ /^Array<(.*)>/i
|
140
|
+
# check to ensure the input is an array given that the the attribute
|
141
|
+
# is documented as an array but the input is not
|
142
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
143
|
+
public_method("#{key}=").call(
|
144
|
+
attributes[self.class.attribute_map[key]]
|
145
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
146
|
+
)
|
147
|
+
end
|
148
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
149
|
+
public_method("#{key}=").call(
|
150
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
151
|
+
)
|
152
|
+
end
|
153
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
154
|
+
end
|
155
|
+
|
156
|
+
self
|
157
|
+
end
|
158
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
159
|
+
|
160
|
+
# Returns the string representation of the object
|
161
|
+
# @return [String] String presentation of the object
|
162
|
+
def to_s
|
163
|
+
to_hash.to_s
|
164
|
+
end
|
165
|
+
|
166
|
+
# Returns the object in the form of hash
|
167
|
+
# @return [Hash] Returns the object in the form of hash
|
168
|
+
def to_hash
|
169
|
+
hash = {}
|
170
|
+
self.class.attribute_map.each_pair do |attr, param|
|
171
|
+
value = public_method(attr).call
|
172
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
173
|
+
|
174
|
+
hash[param] = _to_hash(value)
|
175
|
+
end
|
176
|
+
hash
|
177
|
+
end
|
178
|
+
|
179
|
+
private
|
180
|
+
|
181
|
+
# Outputs non-array value in the form of hash
|
182
|
+
# For object, use to_hash. Otherwise, just return the value
|
183
|
+
# @param [Object] value Any valid value
|
184
|
+
# @return [Hash] Returns the value in the form of hash
|
185
|
+
def _to_hash(value)
|
186
|
+
if value.is_a?(Array)
|
187
|
+
value.compact.map { |v| _to_hash(v) }
|
188
|
+
elsif value.is_a?(Hash)
|
189
|
+
{}.tap do |hash|
|
190
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
191
|
+
end
|
192
|
+
elsif value.respond_to? :to_hash
|
193
|
+
value.to_hash
|
194
|
+
else
|
195
|
+
value
|
196
|
+
end
|
197
|
+
end
|
198
|
+
end
|
199
|
+
end
|
200
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
@@ -10,13 +10,13 @@ module OCI
|
|
10
10
|
# This type corresponds to a configuration source provider in GitLab that is authenticated with a personal access token.
|
11
11
|
#
|
12
12
|
class ResourceManager::Models::CreateGitlabAccessTokenConfigurationSourceProviderDetails < ResourceManager::Models::CreateConfigurationSourceProviderDetails
|
13
|
-
# **[Required]** The Git service
|
14
|
-
# Example: `https://gitlab.com
|
13
|
+
# **[Required]** The Git service endpoint.
|
14
|
+
# Example: `https://gitlab.com`
|
15
15
|
#
|
16
16
|
# @return [String]
|
17
17
|
attr_accessor :api_endpoint
|
18
18
|
|
19
|
-
# **[Required]** The personal access token to be configured on the
|
19
|
+
# **[Required]** The personal access token to be configured on the GitLab repository. Avoid entering confidential information.
|
20
20
|
# @return [String]
|
21
21
|
attr_accessor :access_token
|
22
22
|
|
@@ -0,0 +1,198 @@
|
|
1
|
+
# Copyright (c) 2016, 2020, 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
|
+
require 'date'
|
5
|
+
require_relative 'configuration_source_provider'
|
6
|
+
|
7
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
8
|
+
module OCI
|
9
|
+
# The properties that define a configuration source provider of the type `GITHUB_ACCESS_TOKEN`.
|
10
|
+
# This type corresponds to a configuration source provider in GitHub that is authenticated with a personal access token.
|
11
|
+
#
|
12
|
+
class ResourceManager::Models::GithubAccessTokenConfigurationSourceProvider < ResourceManager::Models::ConfigurationSourceProvider
|
13
|
+
# The GitHub service endpoint.
|
14
|
+
# Example: `https://github.com/`
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
attr_accessor :api_endpoint
|
18
|
+
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
20
|
+
def self.attribute_map
|
21
|
+
{
|
22
|
+
# rubocop:disable Style/SymbolLiteral
|
23
|
+
'id': :'id',
|
24
|
+
'compartment_id': :'compartmentId',
|
25
|
+
'display_name': :'displayName',
|
26
|
+
'description': :'description',
|
27
|
+
'time_created': :'timeCreated',
|
28
|
+
'lifecycle_state': :'lifecycleState',
|
29
|
+
'config_source_provider_type': :'configSourceProviderType',
|
30
|
+
'freeform_tags': :'freeformTags',
|
31
|
+
'defined_tags': :'definedTags',
|
32
|
+
'api_endpoint': :'apiEndpoint'
|
33
|
+
# rubocop:enable Style/SymbolLiteral
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.swagger_types
|
39
|
+
{
|
40
|
+
# rubocop:disable Style/SymbolLiteral
|
41
|
+
'id': :'String',
|
42
|
+
'compartment_id': :'String',
|
43
|
+
'display_name': :'String',
|
44
|
+
'description': :'String',
|
45
|
+
'time_created': :'DateTime',
|
46
|
+
'lifecycle_state': :'String',
|
47
|
+
'config_source_provider_type': :'String',
|
48
|
+
'freeform_tags': :'Hash<String, String>',
|
49
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
50
|
+
'api_endpoint': :'String'
|
51
|
+
# rubocop:enable Style/SymbolLiteral
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
56
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
57
|
+
|
58
|
+
|
59
|
+
# Initializes the object
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
61
|
+
# @option attributes [String] :id The value to assign to the {OCI::ResourceManager::Models::ConfigurationSourceProvider#id #id} proprety
|
62
|
+
# @option attributes [String] :compartment_id The value to assign to the {OCI::ResourceManager::Models::ConfigurationSourceProvider#compartment_id #compartment_id} proprety
|
63
|
+
# @option attributes [String] :display_name The value to assign to the {OCI::ResourceManager::Models::ConfigurationSourceProvider#display_name #display_name} proprety
|
64
|
+
# @option attributes [String] :description The value to assign to the {OCI::ResourceManager::Models::ConfigurationSourceProvider#description #description} proprety
|
65
|
+
# @option attributes [DateTime] :time_created The value to assign to the {OCI::ResourceManager::Models::ConfigurationSourceProvider#time_created #time_created} proprety
|
66
|
+
# @option attributes [String] :lifecycle_state The value to assign to the {OCI::ResourceManager::Models::ConfigurationSourceProvider#lifecycle_state #lifecycle_state} proprety
|
67
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {OCI::ResourceManager::Models::ConfigurationSourceProvider#freeform_tags #freeform_tags} proprety
|
68
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {OCI::ResourceManager::Models::ConfigurationSourceProvider#defined_tags #defined_tags} proprety
|
69
|
+
# @option attributes [String] :api_endpoint The value to assign to the {#api_endpoint} property
|
70
|
+
def initialize(attributes = {})
|
71
|
+
return unless attributes.is_a?(Hash)
|
72
|
+
|
73
|
+
attributes['configSourceProviderType'] = 'GITHUB_ACCESS_TOKEN'
|
74
|
+
|
75
|
+
super(attributes)
|
76
|
+
|
77
|
+
# convert string to symbol for hash key
|
78
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
79
|
+
|
80
|
+
self.api_endpoint = attributes[:'apiEndpoint'] if attributes[:'apiEndpoint']
|
81
|
+
|
82
|
+
raise 'You cannot provide both :apiEndpoint and :api_endpoint' if attributes.key?(:'apiEndpoint') && attributes.key?(:'api_endpoint')
|
83
|
+
|
84
|
+
self.api_endpoint = attributes[:'api_endpoint'] if attributes[:'api_endpoint']
|
85
|
+
end
|
86
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
87
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
88
|
+
|
89
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
90
|
+
|
91
|
+
|
92
|
+
# Checks equality by comparing each attribute.
|
93
|
+
# @param [Object] other the other object to be compared
|
94
|
+
def ==(other)
|
95
|
+
return true if equal?(other)
|
96
|
+
|
97
|
+
self.class == other.class &&
|
98
|
+
id == other.id &&
|
99
|
+
compartment_id == other.compartment_id &&
|
100
|
+
display_name == other.display_name &&
|
101
|
+
description == other.description &&
|
102
|
+
time_created == other.time_created &&
|
103
|
+
lifecycle_state == other.lifecycle_state &&
|
104
|
+
config_source_provider_type == other.config_source_provider_type &&
|
105
|
+
freeform_tags == other.freeform_tags &&
|
106
|
+
defined_tags == other.defined_tags &&
|
107
|
+
api_endpoint == other.api_endpoint
|
108
|
+
end
|
109
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
110
|
+
|
111
|
+
# @see the `==` method
|
112
|
+
# @param [Object] other the other object to be compared
|
113
|
+
def eql?(other)
|
114
|
+
self == other
|
115
|
+
end
|
116
|
+
|
117
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
118
|
+
|
119
|
+
|
120
|
+
# Calculates hash code according to all attributes.
|
121
|
+
# @return [Fixnum] Hash code
|
122
|
+
def hash
|
123
|
+
[id, compartment_id, display_name, description, time_created, lifecycle_state, config_source_provider_type, freeform_tags, defined_tags, api_endpoint].hash
|
124
|
+
end
|
125
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
126
|
+
|
127
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
128
|
+
|
129
|
+
|
130
|
+
# Builds the object from hash
|
131
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
132
|
+
# @return [Object] Returns the model itself
|
133
|
+
def build_from_hash(attributes)
|
134
|
+
return nil unless attributes.is_a?(Hash)
|
135
|
+
|
136
|
+
self.class.swagger_types.each_pair do |key, type|
|
137
|
+
if type =~ /^Array<(.*)>/i
|
138
|
+
# check to ensure the input is an array given that the the attribute
|
139
|
+
# is documented as an array but the input is not
|
140
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
141
|
+
public_method("#{key}=").call(
|
142
|
+
attributes[self.class.attribute_map[key]]
|
143
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
144
|
+
)
|
145
|
+
end
|
146
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
147
|
+
public_method("#{key}=").call(
|
148
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
149
|
+
)
|
150
|
+
end
|
151
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
152
|
+
end
|
153
|
+
|
154
|
+
self
|
155
|
+
end
|
156
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
157
|
+
|
158
|
+
# Returns the string representation of the object
|
159
|
+
# @return [String] String presentation of the object
|
160
|
+
def to_s
|
161
|
+
to_hash.to_s
|
162
|
+
end
|
163
|
+
|
164
|
+
# Returns the object in the form of hash
|
165
|
+
# @return [Hash] Returns the object in the form of hash
|
166
|
+
def to_hash
|
167
|
+
hash = {}
|
168
|
+
self.class.attribute_map.each_pair do |attr, param|
|
169
|
+
value = public_method(attr).call
|
170
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
171
|
+
|
172
|
+
hash[param] = _to_hash(value)
|
173
|
+
end
|
174
|
+
hash
|
175
|
+
end
|
176
|
+
|
177
|
+
private
|
178
|
+
|
179
|
+
# Outputs non-array value in the form of hash
|
180
|
+
# For object, use to_hash. Otherwise, just return the value
|
181
|
+
# @param [Object] value Any valid value
|
182
|
+
# @return [Hash] Returns the value in the form of hash
|
183
|
+
def _to_hash(value)
|
184
|
+
if value.is_a?(Array)
|
185
|
+
value.compact.map { |v| _to_hash(v) }
|
186
|
+
elsif value.is_a?(Hash)
|
187
|
+
{}.tap do |hash|
|
188
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
189
|
+
end
|
190
|
+
elsif value.respond_to? :to_hash
|
191
|
+
value.to_hash
|
192
|
+
else
|
193
|
+
value
|
194
|
+
end
|
195
|
+
end
|
196
|
+
end
|
197
|
+
end
|
198
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|