oci 2.6.0 → 2.7.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 +6 -1
- data/lib/oci.rb +4 -0
- data/lib/oci/analytics/analytics.rb +42 -0
- data/lib/oci/analytics/analytics_client.rb +1134 -0
- data/lib/oci/analytics/analytics_client_composite_operations.rb +371 -0
- data/lib/oci/analytics/models/analytics_instance.rb +406 -0
- data/lib/oci/analytics/models/analytics_instance_lifecycle_state.rb +15 -0
- data/lib/oci/analytics/models/analytics_instance_summary.rb +370 -0
- data/lib/oci/analytics/models/capacity.rb +191 -0
- data/lib/oci/analytics/models/capacity_type.rb +10 -0
- data/lib/oci/analytics/models/change_compartment_details.rb +155 -0
- data/lib/oci/analytics/models/create_analytics_instance_details.rb +309 -0
- data/lib/oci/analytics/models/feature_set.rb +10 -0
- data/lib/oci/analytics/models/license_type.rb +10 -0
- data/lib/oci/analytics/models/scale_analytics_instance_details.rb +150 -0
- data/lib/oci/analytics/models/sort_by.rb +13 -0
- data/lib/oci/analytics/models/sort_order.rb +10 -0
- data/lib/oci/analytics/models/update_analytics_instance_details.rb +231 -0
- data/lib/oci/analytics/models/work_request.rb +316 -0
- data/lib/oci/analytics/models/work_request_action_result.rb +15 -0
- data/lib/oci/analytics/models/work_request_error.rb +176 -0
- data/lib/oci/analytics/models/work_request_log.rb +164 -0
- data/lib/oci/analytics/models/work_request_operation_type.rb +14 -0
- data/lib/oci/analytics/models/work_request_resource.rb +248 -0
- data/lib/oci/analytics/models/work_request_resource_type.rb +9 -0
- data/lib/oci/analytics/models/work_request_sort_by.rb +14 -0
- data/lib/oci/analytics/models/work_request_status.rb +14 -0
- data/lib/oci/analytics/models/work_request_summary.rb +300 -0
- data/lib/oci/analytics/util.rb +2 -0
- data/lib/oci/audit/audit.rb +5 -0
- data/lib/oci/audit/audit_client.rb +30 -14
- data/lib/oci/audit/models/audit_event.rb +81 -261
- data/lib/oci/audit/models/configuration.rb +7 -2
- data/lib/oci/audit/models/data.rb +464 -0
- data/lib/oci/audit/models/identity.rb +313 -0
- data/lib/oci/audit/models/request.rb +285 -0
- data/lib/oci/audit/models/response.rb +273 -0
- data/lib/oci/audit/models/state_change.rb +175 -0
- data/lib/oci/audit/models/update_configuration_details.rb +7 -2
- data/lib/oci/container_engine/container_engine.rb +4 -0
- data/lib/oci/container_engine/models/cluster.rb +15 -1
- data/lib/oci/container_engine/models/create_cluster_details.rb +17 -1
- data/lib/oci/container_engine/models/create_cluster_kubeconfig_content_details.rb +4 -1
- data/lib/oci/container_engine/models/create_node_pool_details.rb +29 -6
- data/lib/oci/container_engine/models/create_node_pool_node_config_details.rb +170 -0
- data/lib/oci/container_engine/models/node_pool.rb +18 -4
- data/lib/oci/container_engine/models/node_pool_node_config_details.rb +170 -0
- data/lib/oci/container_engine/models/node_pool_options.rb +1 -1
- data/lib/oci/container_engine/models/node_pool_placement_config_details.rb +169 -0
- data/lib/oci/container_engine/models/node_pool_summary.rb +18 -4
- data/lib/oci/container_engine/models/update_node_pool_details.rb +45 -19
- data/lib/oci/container_engine/models/update_node_pool_node_config_details.rb +170 -0
- data/lib/oci/core/blockstorage_client.rb +197 -0
- data/lib/oci/core/compute_client.rb +132 -17
- data/lib/oci/core/compute_client_composite_operations.rb +1 -1
- data/lib/oci/core/compute_management_client.rb +493 -0
- data/lib/oci/core/compute_management_client_composite_operations.rb +119 -0
- data/lib/oci/core/core.rb +11 -0
- data/lib/oci/core/models/boot_volume.rb +17 -1
- data/lib/oci/core/models/boot_volume_backup.rb +17 -1
- data/lib/oci/core/models/change_cluster_network_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_dedicated_vm_host_compartment_details.rb +2 -2
- data/lib/oci/core/models/change_drg_compartment_details.rb +155 -0
- data/lib/oci/core/models/cluster_network.rb +313 -0
- data/lib/oci/core/models/cluster_network_placement_configuration_details.rb +183 -0
- data/lib/oci/core/models/cluster_network_summary.rb +299 -0
- data/lib/oci/core/models/create_cluster_network_details.rb +231 -0
- data/lib/oci/core/models/create_cluster_network_instance_pool_details.rb +213 -0
- data/lib/oci/core/models/create_dedicated_vm_host_details.rb +10 -8
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +4 -0
- data/lib/oci/core/models/create_ip_sec_connection_tunnel_details.rb +29 -1
- data/lib/oci/core/models/create_volume_backup_policy_details.rb +215 -0
- data/lib/oci/core/models/dedicated_vm_host.rb +10 -8
- data/lib/oci/core/models/image_shape_compatibility_entry.rb +163 -0
- data/lib/oci/core/models/instance.rb +17 -1
- data/lib/oci/core/models/ip_sec_connection.rb +4 -0
- data/lib/oci/core/models/ip_sec_connection_tunnel.rb +35 -1
- data/lib/oci/core/models/launch_instance_details.rb +14 -1
- data/lib/oci/core/models/launch_options.rb +4 -4
- data/lib/oci/core/models/service_gateway.rb +0 -1
- data/lib/oci/core/models/update_cluster_network_details.rb +189 -0
- data/lib/oci/core/models/update_dedicated_vm_host_details.rb +1 -1
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +4 -0
- data/lib/oci/core/models/update_ip_sec_connection_tunnel_details.rb +29 -1
- data/lib/oci/core/models/update_service_gateway_details.rb +0 -1
- data/lib/oci/core/models/update_volume_backup_policy_details.rb +201 -0
- data/lib/oci/core/models/volume.rb +17 -1
- data/lib/oci/core/models/volume_backup.rb +17 -1
- data/lib/oci/core/models/volume_backup_policy.rb +54 -4
- data/lib/oci/core/models/volume_backup_schedule.rb +177 -4
- data/lib/oci/core/virtual_network_client.rb +67 -0
- data/lib/oci/database/database.rb +35 -1
- data/lib/oci/database/database_client.rb +3351 -1159
- data/lib/oci/database/database_client_composite_operations.rb +522 -1
- data/lib/oci/database/models/activate_exadata_infrastructure_details.rb +153 -0
- data/lib/oci/database/models/associated_database_details.rb +163 -0
- data/lib/oci/database/models/autonomous_container_database.rb +0 -2
- data/lib/oci/database/models/autonomous_container_database_summary.rb +0 -2
- data/lib/oci/database/models/autonomous_data_warehouse.rb +0 -2
- data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +0 -2
- data/lib/oci/database/models/autonomous_database.rb +65 -4
- data/lib/oci/database/models/autonomous_database_summary.rb +65 -4
- data/lib/oci/database/models/autonomous_database_wallet.rb +188 -0
- data/lib/oci/database/models/autonomous_exadata_infrastructure.rb +16 -3
- data/lib/oci/database/models/autonomous_exadata_infrastructure_summary.rb +16 -3
- data/lib/oci/database/models/backup_destination.rb +359 -0
- data/lib/oci/database/models/backup_destination_details.rb +243 -0
- data/lib/oci/database/models/backup_destination_summary.rb +362 -0
- data/lib/oci/database/models/change_exadata_infrastructure_compartment_details.rb +155 -0
- data/lib/oci/database/models/change_vm_cluster_compartment_details.rb +155 -0
- data/lib/oci/database/models/create_autonomous_container_database_details.rb +0 -2
- data/lib/oci/database/models/create_autonomous_data_warehouse_details.rb +0 -2
- data/lib/oci/database/models/create_autonomous_database_base.rb +19 -4
- data/lib/oci/database/models/create_autonomous_database_clone_details.rb +6 -2
- data/lib/oci/database/models/create_autonomous_database_details.rb +5 -1
- data/lib/oci/database/models/create_backup_destination_details.rb +241 -0
- data/lib/oci/database/models/create_database_details.rb +15 -3
- data/lib/oci/database/models/create_database_from_backup_details.rb +15 -1
- data/lib/oci/database/models/{create_db_home_with_db_system_id_base.rb → create_db_home_base.rb} +8 -18
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +18 -8
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +18 -8
- data/lib/oci/database/models/create_db_home_with_vm_cluster_id_details.rb +190 -0
- data/lib/oci/database/models/create_db_home_with_vm_cluster_id_from_backup_details.rb +176 -0
- data/lib/oci/database/models/create_exadata_infrastructure_details.rb +348 -0
- data/lib/oci/database/models/create_nfs_backup_destination_details.rb +178 -0
- data/lib/oci/database/models/create_recovery_appliance_backup_destination_details.rb +191 -0
- data/lib/oci/database/models/create_vm_cluster_details.rb +344 -0
- data/lib/oci/database/models/database.rb +0 -2
- data/lib/oci/database/models/database_summary.rb +0 -2
- data/lib/oci/database/models/db_backup_config.rb +65 -4
- data/lib/oci/database/models/db_home.rb +15 -1
- data/lib/oci/database/models/db_home_summary.rb +15 -1
- data/lib/oci/database/models/db_system.rb +14 -3
- data/lib/oci/database/models/db_system_options.rb +173 -0
- data/lib/oci/database/models/db_system_shape_summary.rb +15 -1
- data/lib/oci/database/models/db_system_summary.rb +14 -3
- data/lib/oci/database/models/exadata_infrastructure.rb +450 -0
- data/lib/oci/database/models/exadata_infrastructure_summary.rb +453 -0
- data/lib/oci/database/models/generate_autonomous_database_wallet_details.rb +31 -1
- data/lib/oci/database/models/generate_recommended_network_details.rb +232 -0
- data/lib/oci/database/models/gi_version_summary.rb +152 -0
- data/lib/oci/database/models/info_for_network_gen_details.rb +231 -0
- data/lib/oci/database/models/launch_autonomous_exadata_infrastructure_details.rb +16 -3
- data/lib/oci/database/models/launch_db_system_base.rb +14 -3
- data/lib/oci/database/models/launch_db_system_details.rb +5 -1
- data/lib/oci/database/models/launch_db_system_from_backup_details.rb +5 -1
- data/lib/oci/database/models/node_details.rb +183 -0
- data/lib/oci/database/models/scan_details.rb +170 -0
- data/lib/oci/database/models/update_autonomous_container_database_details.rb +0 -2
- data/lib/oci/database/models/update_autonomous_data_warehouse_details.rb +0 -2
- data/lib/oci/database/models/update_autonomous_database_details.rb +19 -4
- data/lib/oci/database/models/update_autonomous_database_wallet_details.rb +156 -0
- data/lib/oci/database/models/update_autonomous_exadata_infrastructure_details.rb +16 -3
- data/lib/oci/database/models/update_backup_destination_details.rb +218 -0
- data/lib/oci/database/models/update_database_details.rb +0 -2
- data/lib/oci/database/models/update_db_system_details.rb +0 -2
- data/lib/oci/database/models/update_exadata_infrastructure_details.rb +307 -0
- data/lib/oci/database/models/update_vm_cluster_details.rb +229 -0
- data/lib/oci/database/models/update_vm_cluster_network_details.rb +218 -0
- data/lib/oci/database/models/vm_cluster.rb +449 -0
- data/lib/oci/database/models/vm_cluster_network.rb +350 -0
- data/lib/oci/database/models/vm_cluster_network_details.rb +246 -0
- data/lib/oci/database/models/vm_cluster_network_summary.rb +353 -0
- data/lib/oci/database/models/vm_cluster_summary.rb +452 -0
- data/lib/oci/database/models/vm_network_details.rb +231 -0
- data/lib/oci/dns/dns.rb +4 -0
- data/lib/oci/dns/dns_client.rb +103 -103
- data/lib/oci/dns/dns_client_composite_operations.rb +1 -1
- data/lib/oci/dns/models/create_migrated_dynect_zone_details.rb +179 -0
- data/lib/oci/dns/models/create_zone_base_details.rb +252 -0
- data/lib/oci/dns/models/create_zone_details.rb +18 -56
- data/lib/oci/dns/models/dynect_migration_details.rb +192 -0
- data/lib/oci/dns/models/migration_replacement.rb +187 -0
- data/lib/oci/dts/dts.rb +2 -0
- data/lib/oci/dts/models/create_transfer_appliance_entitlement_details.rb +49 -4
- data/lib/oci/dts/models/transfer_appliance.rb +2 -0
- data/lib/oci/dts/models/transfer_appliance_entitlement.rb +102 -33
- data/lib/oci/dts/models/transfer_appliance_entitlement_summary.rb +261 -0
- data/lib/oci/dts/models/transfer_appliance_summary.rb +2 -0
- data/lib/oci/dts/models/transfer_job.rb +0 -4
- data/lib/oci/dts/models/update_transfer_appliance_details.rb +1 -0
- data/lib/oci/dts/shipping_vendors_client.rb +1 -1
- data/lib/oci/dts/transfer_appliance_client.rb +4 -4
- data/lib/oci/dts/transfer_appliance_entitlement_client.rb +86 -10
- data/lib/oci/dts/transfer_appliance_entitlement_client_composite_operations.rb +39 -0
- data/lib/oci/dts/transfer_device_client.rb +1 -1
- data/lib/oci/dts/transfer_job_client.rb +1 -1
- data/lib/oci/dts/transfer_package_client.rb +1 -1
- data/lib/oci/functions/functions_invoke_client.rb +1 -1
- data/lib/oci/functions/functions_management_client.rb +1 -1
- data/lib/oci/healthchecks/health_checks_client.rb +18 -14
- data/lib/oci/healthchecks/models/http_monitor.rb +31 -1
- data/lib/oci/healthchecks/models/http_monitor_summary.rb +31 -1
- data/lib/oci/healthchecks/models/http_probe.rb +31 -1
- data/lib/oci/healthchecks/models/ping_monitor.rb +31 -1
- data/lib/oci/healthchecks/models/ping_monitor_summary.rb +31 -1
- data/lib/oci/healthchecks/models/ping_probe.rb +31 -1
- data/lib/oci/identity/identity.rb +7 -0
- data/lib/oci/identity/identity_client.rb +348 -9
- data/lib/oci/identity/models/base_tag_definition_validator.rb +200 -0
- data/lib/oci/identity/models/compartment.rb +3 -0
- data/lib/oci/identity/models/create_region_subscription_details.rb +3 -0
- data/lib/oci/identity/models/create_tag_default_details.rb +26 -4
- data/lib/oci/identity/models/create_tag_details.rb +21 -5
- data/lib/oci/identity/models/default_tag_definition_validator.rb +146 -0
- data/lib/oci/identity/models/dynamic_group.rb +3 -0
- data/lib/oci/identity/models/enum_tag_definition_validator.rb +161 -0
- data/lib/oci/identity/models/group.rb +3 -0
- data/lib/oci/identity/models/identity_provider.rb +3 -0
- data/lib/oci/identity/models/move_compartment_details.rb +2 -2
- data/lib/oci/identity/models/policy.rb +3 -0
- data/lib/oci/identity/models/region.rb +9 -3
- data/lib/oci/identity/models/region_subscription.rb +8 -2
- data/lib/oci/identity/models/tag.rb +25 -6
- data/lib/oci/identity/models/tag_default.rb +26 -4
- data/lib/oci/identity/models/tag_default_summary.rb +26 -4
- data/lib/oci/identity/models/tag_namespace.rb +5 -2
- data/lib/oci/identity/models/tag_summary.rb +3 -2
- data/lib/oci/identity/models/tagging_work_request.rb +305 -0
- data/lib/oci/identity/models/tagging_work_request_error_summary.rb +172 -0
- data/lib/oci/identity/models/tagging_work_request_log_summary.rb +162 -0
- data/lib/oci/identity/models/tagging_work_request_summary.rb +304 -0
- data/lib/oci/identity/models/tenancy.rb +3 -0
- data/lib/oci/identity/models/update_tag_default_details.rb +26 -4
- data/lib/oci/identity/models/update_tag_details.rb +19 -4
- data/lib/oci/identity/models/user.rb +3 -0
- data/lib/oci/integration/integration.rb +29 -0
- data/lib/oci/integration/integration_instance_client.rb +731 -0
- data/lib/oci/integration/integration_instance_client_composite_operations.rb +222 -0
- data/lib/oci/integration/models/change_integration_instance_compartment_details.rb +153 -0
- data/lib/oci/integration/models/create_integration_instance_details.rb +270 -0
- data/lib/oci/integration/models/integration_instance.rb +366 -0
- data/lib/oci/integration/models/integration_instance_summary.rb +332 -0
- data/lib/oci/integration/models/update_integration_instance_details.rb +242 -0
- data/lib/oci/integration/models/work_request.rb +310 -0
- data/lib/oci/integration/models/work_request_error.rb +170 -0
- data/lib/oci/integration/models/work_request_log_entry.rb +159 -0
- data/lib/oci/integration/models/work_request_resource.rb +218 -0
- data/lib/oci/integration/models/work_request_summary.rb +310 -0
- data/lib/oci/integration/util.rb +2 -0
- data/lib/oci/load_balancer/load_balancer_client.rb +3 -3
- data/lib/oci/load_balancer/load_balancer_client_composite_operations.rb +2 -2
- data/lib/oci/load_balancer/models/backend.rb +2 -0
- data/lib/oci/load_balancer/models/backend_details.rb +2 -0
- data/lib/oci/load_balancer/models/create_backend_details.rb +2 -0
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +12 -1
- data/lib/oci/load_balancer/models/health_checker.rb +2 -1
- data/lib/oci/load_balancer/models/health_checker_details.rb +2 -1
- data/lib/oci/load_balancer/models/lb_cookie_session_persistence_configuration_details.rb +2 -2
- data/lib/oci/load_balancer/models/load_balancer.rb +33 -2
- data/lib/oci/load_balancer/models/update_backend_details.rb +2 -0
- data/lib/oci/load_balancer/models/update_health_checker_details.rb +2 -1
- data/lib/oci/load_balancer/models/update_network_security_groups_details.rb +15 -2
- data/lib/oci/monitoring/models/alarm.rb +6 -5
- data/lib/oci/monitoring/models/create_alarm_details.rb +6 -5
- data/lib/oci/monitoring/models/update_alarm_details.rb +6 -5
- data/lib/oci/monitoring/monitoring_client.rb +25 -9
- data/lib/oci/object_storage/models/bucket.rb +17 -1
- data/lib/oci/object_storage/models/create_bucket_details.rb +17 -1
- data/lib/oci/object_storage/models/update_bucket_details.rb +18 -2
- data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +1 -1
- data/lib/oci/object_storage/models/work_request.rb +7 -4
- data/lib/oci/object_storage/models/work_request_summary.rb +7 -4
- data/lib/oci/object_storage/object_storage_client.rb +75 -4
- data/lib/oci/object_storage/object_storage_client_composite_operations.rb +52 -0
- data/lib/oci/oce/models/change_oce_instance_compartment_details.rb +155 -0
- data/lib/oci/oce/models/create_oce_instance_details.rb +275 -0
- data/lib/oci/oce/models/delete_oce_instance_details.rb +153 -0
- data/lib/oci/oce/models/oce_instance.rb +387 -0
- data/lib/oci/oce/models/oce_instance_summary.rb +387 -0
- data/lib/oci/oce/models/update_oce_instance_details.rb +181 -0
- data/lib/oci/oce/models/work_request.rb +319 -0
- data/lib/oci/oce/models/work_request_error.rb +172 -0
- data/lib/oci/oce/models/work_request_log_entry.rb +159 -0
- data/lib/oci/oce/models/work_request_resource.rb +217 -0
- data/lib/oci/oce/models/workflow_monitor.rb +181 -0
- data/lib/oci/oce/models/workflow_step.rb +163 -0
- data/lib/oci/oce/oce.rb +31 -0
- data/lib/oci/oce/oce_instance_client.rb +733 -0
- data/lib/oci/oce/oce_instance_client_composite_operations.rb +223 -0
- data/lib/oci/oce/util.rb +2 -0
- data/lib/oci/oda/models/change_oda_instance_compartment_details.rb +153 -0
- data/lib/oci/oda/models/create_oda_instance_details.rb +237 -0
- data/lib/oci/oda/models/error_body.rb +159 -0
- data/lib/oci/oda/models/oda_instance.rb +399 -0
- data/lib/oci/oda/models/oda_instance_summary.rb +369 -0
- data/lib/oci/oda/models/update_oda_instance_details.rb +196 -0
- data/lib/oci/oda/models/work_request.rb +340 -0
- data/lib/oci/oda/models/work_request_error.rb +176 -0
- data/lib/oci/oda/models/work_request_log_entry.rb +163 -0
- data/lib/oci/oda/models/work_request_resource.rb +272 -0
- data/lib/oci/oda/models/work_request_summary.rb +262 -0
- data/lib/oci/oda/oda.rb +30 -0
- data/lib/oci/oda/oda_client.rb +842 -0
- data/lib/oci/oda/oda_client_composite_operations.rb +212 -0
- data/lib/oci/oda/util.rb +2 -0
- data/lib/oci/ons/models/backoff_retry_policy.rb +2 -1
- data/lib/oci/ons/models/confirmation_result.rb +5 -3
- data/lib/oci/ons/models/create_subscription_details.rb +19 -4
- data/lib/oci/ons/models/notification_topic.rb +2 -1
- data/lib/oci/ons/models/subscription.rb +8 -3
- data/lib/oci/ons/models/subscription_summary.rb +5 -3
- data/lib/oci/ons/notification_control_plane_client.rb +4 -3
- data/lib/oci/ons/notification_data_plane_client.rb +28 -4
- data/lib/oci/regions.rb +3 -0
- data/lib/oci/resource_manager/models/apply_job_operation_details.rb +201 -0
- data/lib/oci/resource_manager/models/apply_job_operation_details_summary.rb +180 -0
- data/lib/oci/resource_manager/models/apply_job_plan_resolution.rb +4 -5
- data/lib/oci/resource_manager/models/config_source.rb +3 -2
- data/lib/oci/resource_manager/models/create_apply_job_operation_details.rb +179 -0
- data/lib/oci/resource_manager/models/create_config_source_details.rb +2 -1
- data/lib/oci/resource_manager/models/create_destroy_job_operation_details.rb +165 -0
- data/lib/oci/resource_manager/models/create_import_tf_state_job_operation_details.rb +163 -0
- data/lib/oci/resource_manager/models/create_job_details.rb +16 -3
- data/lib/oci/resource_manager/models/create_job_operation_details.rb +169 -0
- data/lib/oci/resource_manager/models/create_plan_job_operation_details.rb +145 -0
- data/lib/oci/resource_manager/models/create_stack_details.rb +17 -2
- data/lib/oci/resource_manager/models/destroy_job_operation_details.rb +184 -0
- data/lib/oci/resource_manager/models/destroy_job_operation_details_summary.rb +165 -0
- data/lib/oci/resource_manager/models/import_tf_state_job_operation_details.rb +145 -0
- data/lib/oci/resource_manager/models/import_tf_state_job_operation_details_summary.rb +145 -0
- data/lib/oci/resource_manager/models/job.rb +23 -5
- data/lib/oci/resource_manager/models/job_operation_details.rb +169 -0
- data/lib/oci/resource_manager/models/job_operation_details_summary.rb +169 -0
- data/lib/oci/resource_manager/models/job_summary.rb +20 -5
- data/lib/oci/resource_manager/models/plan_job_operation_details.rb +145 -0
- data/lib/oci/resource_manager/models/plan_job_operation_details_summary.rb +145 -0
- data/lib/oci/resource_manager/models/stack.rb +18 -6
- data/lib/oci/resource_manager/models/stack_summary.rb +16 -1
- data/lib/oci/resource_manager/models/terraform_version_collection.rb +150 -0
- data/lib/oci/resource_manager/models/terraform_version_summary.rb +151 -0
- data/lib/oci/resource_manager/models/update_config_source_details.rb +3 -1
- data/lib/oci/resource_manager/models/update_stack_details.rb +16 -1
- data/lib/oci/resource_manager/models/work_request.rb +2 -2
- data/lib/oci/resource_manager/models/work_request_resource.rb +1 -1
- data/lib/oci/resource_manager/models/work_request_summary.rb +2 -2
- data/lib/oci/resource_manager/resource_manager.rb +17 -0
- data/lib/oci/resource_manager/resource_manager_client.rb +187 -29
- data/lib/oci/resource_manager/resource_manager_client_composite_operations.rb +6 -6
- data/lib/oci/version.rb +1 -1
- data/lib/oci/waas/models/access_rule.rb +2 -2
- data/lib/oci/waas/models/access_rule_criteria.rb +1 -1
- data/lib/oci/waas/models/address_list.rb +1 -0
- data/lib/oci/waas/models/address_rate_limiting.rb +1 -1
- data/lib/oci/waas/models/block_challenge_settings.rb +1 -1
- data/lib/oci/waas/models/caching_rule.rb +9 -8
- data/lib/oci/waas/models/caching_rule_criteria.rb +1 -5
- data/lib/oci/waas/models/caching_rule_summary.rb +9 -8
- data/lib/oci/waas/models/change_address_list_compartment_details.rb +1 -1
- data/lib/oci/waas/models/change_certificate_compartment_details.rb +1 -0
- data/lib/oci/waas/models/change_custom_protection_rule_compartment_details.rb +1 -1
- data/lib/oci/waas/models/change_http_redirect_compartment_details.rb +154 -0
- data/lib/oci/waas/models/change_waas_policy_compartment_details.rb +1 -0
- data/lib/oci/waas/models/create_address_list_details.rb +1 -1
- data/lib/oci/waas/models/create_custom_protection_rule_details.rb +17 -12
- data/lib/oci/waas/models/create_http_redirect_details.rb +238 -0
- data/lib/oci/waas/models/create_waas_policy_details.rb +2 -1
- data/lib/oci/waas/models/custom_protection_rule.rb +20 -16
- data/lib/oci/waas/models/custom_protection_rule_setting.rb +4 -3
- data/lib/oci/waas/models/custom_protection_rule_summary.rb +6 -6
- data/lib/oci/waas/models/http_redirect.rb +301 -0
- data/lib/oci/waas/models/http_redirect_summary.rb +301 -0
- data/lib/oci/waas/models/http_redirect_target.rb +209 -0
- data/lib/oci/waas/models/origin_group_origins.rb +2 -2
- data/lib/oci/waas/models/policy_config.rb +14 -7
- data/lib/oci/waas/models/protection_settings.rb +1 -1
- data/lib/oci/waas/models/purge_cache.rb +2 -2
- data/lib/oci/waas/models/update_address_list_details.rb +1 -1
- data/lib/oci/waas/models/update_custom_protection_rule_details.rb +16 -12
- data/lib/oci/waas/models/update_http_redirect_details.rb +215 -0
- data/lib/oci/waas/models/update_waas_policy_details.rb +2 -1
- data/lib/oci/waas/models/waas_policy.rb +1 -1
- data/lib/oci/waas/models/waas_policy_custom_protection_rule_summary.rb +5 -4
- data/lib/oci/waas/models/waf_config.rb +2 -1
- data/lib/oci/waas/models/waf_config_details.rb +2 -1
- data/lib/oci/waas/models/work_request.rb +3 -0
- data/lib/oci/waas/models/work_request_operation_types.rb +3 -0
- data/lib/oci/waas/models/work_request_summary.rb +3 -0
- data/lib/oci/waas/redirect_client.rb +493 -0
- data/lib/oci/waas/redirect_client_composite_operations.rb +172 -0
- data/lib/oci/waas/waas.rb +8 -0
- data/lib/oci/waas/waas_client.rb +35 -23
- data/lib/oci/waas/waas_client_composite_operations.rb +4 -4
- metadata +166 -3
data/lib/oci/oda/oda.rb
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
|
3
|
+
module OCI
|
|
4
|
+
module Oda
|
|
5
|
+
# Module containing models for requests made to, and responses received from,
|
|
6
|
+
# OCI Oda services
|
|
7
|
+
module Models
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# Require models
|
|
13
|
+
require 'oci/oda/models/change_oda_instance_compartment_details'
|
|
14
|
+
require 'oci/oda/models/create_oda_instance_details'
|
|
15
|
+
require 'oci/oda/models/error_body'
|
|
16
|
+
require 'oci/oda/models/oda_instance'
|
|
17
|
+
require 'oci/oda/models/oda_instance_summary'
|
|
18
|
+
require 'oci/oda/models/update_oda_instance_details'
|
|
19
|
+
require 'oci/oda/models/work_request'
|
|
20
|
+
require 'oci/oda/models/work_request_error'
|
|
21
|
+
require 'oci/oda/models/work_request_log_entry'
|
|
22
|
+
require 'oci/oda/models/work_request_resource'
|
|
23
|
+
require 'oci/oda/models/work_request_summary'
|
|
24
|
+
|
|
25
|
+
# Require generated clients
|
|
26
|
+
require 'oci/oda/oda_client'
|
|
27
|
+
require 'oci/oda/oda_client_composite_operations'
|
|
28
|
+
|
|
29
|
+
# Require service utilities
|
|
30
|
+
require 'oci/oda/util'
|
|
@@ -0,0 +1,842 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
|
3
|
+
require 'uri'
|
|
4
|
+
require 'logger'
|
|
5
|
+
|
|
6
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
7
|
+
module OCI
|
|
8
|
+
# API to create and maintain Oracle Digital Assistant service instances.
|
|
9
|
+
class Oda::OdaClient
|
|
10
|
+
# Client used to make HTTP requests.
|
|
11
|
+
# @return [OCI::ApiClient]
|
|
12
|
+
attr_reader :api_client
|
|
13
|
+
|
|
14
|
+
# Fully qualified endpoint URL
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_reader :endpoint
|
|
17
|
+
|
|
18
|
+
# The default retry configuration to apply to all operations in this service client. This can be overridden
|
|
19
|
+
# on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
|
|
20
|
+
# will not perform any retries
|
|
21
|
+
# @return [OCI::Retry::RetryConfig]
|
|
22
|
+
attr_reader :retry_config
|
|
23
|
+
|
|
24
|
+
# The region, which will usually correspond to a value in {OCI::Regions::REGION_ENUM}.
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_reader :region
|
|
27
|
+
|
|
28
|
+
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# Creates a new OdaClient.
|
|
32
|
+
# Notes:
|
|
33
|
+
# If a config is not specified, then the global OCI.config will be used.
|
|
34
|
+
#
|
|
35
|
+
# This client is not thread-safe
|
|
36
|
+
#
|
|
37
|
+
# Either a region or an endpoint must be specified. If an endpoint is specified, it will be used instead of the
|
|
38
|
+
# region. A region may be specified in the config or via or the region parameter. If specified in both, then the
|
|
39
|
+
# region parameter will be used.
|
|
40
|
+
# @param [Config] config A Config object.
|
|
41
|
+
# @param [String] region A region used to determine the service endpoint. This will usually
|
|
42
|
+
# correspond to a value in {OCI::Regions::REGION_ENUM}, but may be an arbitrary string.
|
|
43
|
+
# @param [String] endpoint The fully qualified endpoint URL
|
|
44
|
+
# @param [OCI::BaseSigner] signer A signer implementation which can be used by this client. If this is not provided then
|
|
45
|
+
# a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication,
|
|
46
|
+
# so that the instance principals signer can be provided to the client
|
|
47
|
+
# @param [OCI::ApiClientProxySettings] proxy_settings If your environment requires you to use a proxy server for outgoing HTTP requests
|
|
48
|
+
# the details for the proxy can be provided in this parameter
|
|
49
|
+
# @param [OCI::Retry::RetryConfig] retry_config The retry configuration for this service client. This represents the default retry configuration to
|
|
50
|
+
# apply across all operations. This can be overridden on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
|
|
51
|
+
# will not perform any retries
|
|
52
|
+
def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil)
|
|
53
|
+
# If the signer is an InstancePrincipalsSecurityTokenSigner and no config was supplied (which is valid for instance principals)
|
|
54
|
+
# then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
|
|
55
|
+
# and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
|
|
56
|
+
# pass it to this constructor.
|
|
57
|
+
#
|
|
58
|
+
# If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid
|
|
59
|
+
# so try and load the config from the default file.
|
|
60
|
+
config ||= OCI.config unless signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner)
|
|
61
|
+
config ||= OCI::Config.new if signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner)
|
|
62
|
+
config.validate unless signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner)
|
|
63
|
+
|
|
64
|
+
if signer.nil?
|
|
65
|
+
signer = OCI::Signer.new(
|
|
66
|
+
config.user,
|
|
67
|
+
config.fingerprint,
|
|
68
|
+
config.tenancy,
|
|
69
|
+
config.key_file,
|
|
70
|
+
pass_phrase: config.pass_phrase,
|
|
71
|
+
private_key_content: config.key_content
|
|
72
|
+
)
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
@api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings)
|
|
76
|
+
@retry_config = retry_config
|
|
77
|
+
|
|
78
|
+
if endpoint
|
|
79
|
+
@endpoint = endpoint + '/20190506'
|
|
80
|
+
else
|
|
81
|
+
region ||= config.region
|
|
82
|
+
region ||= signer.region if signer.respond_to?(:region)
|
|
83
|
+
self.region = region
|
|
84
|
+
end
|
|
85
|
+
logger.info "OdaClient endpoint set to '#{@endpoint}'." if logger
|
|
86
|
+
end
|
|
87
|
+
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
|
|
88
|
+
|
|
89
|
+
# Set the region that will be used to determine the service endpoint.
|
|
90
|
+
# This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
|
|
91
|
+
# but may be an arbitrary string.
|
|
92
|
+
def region=(new_region)
|
|
93
|
+
@region = new_region
|
|
94
|
+
|
|
95
|
+
raise 'A region must be specified.' unless @region
|
|
96
|
+
|
|
97
|
+
@endpoint = OCI::Regions.get_service_endpoint_for_template(@region, 'https://digitalassistant-api.{region}.oci.{secondLevelDomain}') + '/20190506'
|
|
98
|
+
logger.info "OdaClient endpoint set to '#{@endpoint} from region #{@region}'." if logger
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# @return [Logger] The logger for this client. May be nil.
|
|
102
|
+
def logger
|
|
103
|
+
@api_client.config.logger
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
107
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
108
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
# Moves an Digital Assistant instance into a different compartment. When provided, If-Match is checked against
|
|
112
|
+
# ETag values of the resource.
|
|
113
|
+
#
|
|
114
|
+
# @param [String] oda_instance_id Unique Digital Assistant instance identifier.
|
|
115
|
+
# @param [OCI::Oda::Models::ChangeOdaInstanceCompartmentDetails] change_oda_instance_compartment_details The compartment to which the Digital Assistant instance should be moved.
|
|
116
|
+
# @param [Hash] opts the optional parameters
|
|
117
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
118
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
119
|
+
# @option opts [String] :if_match For optimistic concurrency control in a PUT or DELETE call for
|
|
120
|
+
# a Digital Assistant instance, set the `if-match` query parameter
|
|
121
|
+
# to the value of the `ETAG` header from a previous GET or POST
|
|
122
|
+
# response for that instance. The service updates or deletes the
|
|
123
|
+
# instance only if the etag that you provide matches the instance's
|
|
124
|
+
# current etag value.
|
|
125
|
+
#
|
|
126
|
+
# @option opts [String] :opc_request_id The client request ID for tracing. This value is included in the opc-request-id response header.
|
|
127
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so that you can retry the request if there's
|
|
128
|
+
# a timeout or server error without the risk of executing that same action again.
|
|
129
|
+
#
|
|
130
|
+
# Retry tokens expire after 24 hours, but they can become invalid before then if there are
|
|
131
|
+
# conflicting operations. For example, if an instance was deleted and purged from the system,
|
|
132
|
+
# then the service might reject a retry of the original creation request.
|
|
133
|
+
#
|
|
134
|
+
# @return [Response] A Response object with data of type nil
|
|
135
|
+
def change_oda_instance_compartment(oda_instance_id, change_oda_instance_compartment_details, opts = {})
|
|
136
|
+
logger.debug 'Calling operation OdaClient#change_oda_instance_compartment.' if logger
|
|
137
|
+
|
|
138
|
+
raise "Missing the required parameter 'oda_instance_id' when calling change_oda_instance_compartment." if oda_instance_id.nil?
|
|
139
|
+
raise "Missing the required parameter 'change_oda_instance_compartment_details' when calling change_oda_instance_compartment." if change_oda_instance_compartment_details.nil?
|
|
140
|
+
raise "Parameter value for 'oda_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(oda_instance_id)
|
|
141
|
+
|
|
142
|
+
path = '/odaInstances/{odaInstanceId}/actions/changeCompartment'.sub('{odaInstanceId}', oda_instance_id.to_s)
|
|
143
|
+
operation_signing_strategy = :standard
|
|
144
|
+
|
|
145
|
+
# rubocop:disable Style/NegatedIf
|
|
146
|
+
# Query Params
|
|
147
|
+
query_params = {}
|
|
148
|
+
|
|
149
|
+
# Header Params
|
|
150
|
+
header_params = {}
|
|
151
|
+
header_params[:accept] = 'application/json'
|
|
152
|
+
header_params[:'content-type'] = 'application/json'
|
|
153
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
154
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
155
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
156
|
+
# rubocop:enable Style/NegatedIf
|
|
157
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
158
|
+
|
|
159
|
+
post_body = @api_client.object_to_http_body(change_oda_instance_compartment_details)
|
|
160
|
+
|
|
161
|
+
# rubocop:disable Metrics/BlockLength
|
|
162
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OdaClient#change_oda_instance_compartment') do
|
|
163
|
+
@api_client.call_api(
|
|
164
|
+
:POST,
|
|
165
|
+
path,
|
|
166
|
+
endpoint,
|
|
167
|
+
header_params: header_params,
|
|
168
|
+
query_params: query_params,
|
|
169
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
170
|
+
body: post_body
|
|
171
|
+
)
|
|
172
|
+
end
|
|
173
|
+
# rubocop:enable Metrics/BlockLength
|
|
174
|
+
end
|
|
175
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
176
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
177
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
178
|
+
|
|
179
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
180
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
181
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
# Starts an asynchronous job to create a Digital Assistant instance.
|
|
185
|
+
#
|
|
186
|
+
# To monitor the status of the job, take the `opc-work-request-id` response
|
|
187
|
+
# header value and use it to call `GET /workRequests/{workRequestID}`.
|
|
188
|
+
#
|
|
189
|
+
# @param [OCI::Oda::Models::CreateOdaInstanceDetails] create_oda_instance_details Details for the new Digital Assistant instance.
|
|
190
|
+
# @param [Hash] opts the optional parameters
|
|
191
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
192
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
193
|
+
# @option opts [String] :opc_request_id The client request ID for tracing. This value is included in the opc-request-id response header.
|
|
194
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so that you can retry the request if there's
|
|
195
|
+
# a timeout or server error without the risk of executing that same action again.
|
|
196
|
+
#
|
|
197
|
+
# Retry tokens expire after 24 hours, but they can become invalid before then if there are
|
|
198
|
+
# conflicting operations. For example, if an instance was deleted and purged from the system,
|
|
199
|
+
# then the service might reject a retry of the original creation request.
|
|
200
|
+
#
|
|
201
|
+
# @return [Response] A Response object with data of type {OCI::Oda::Models::OdaInstance OdaInstance}
|
|
202
|
+
def create_oda_instance(create_oda_instance_details, opts = {})
|
|
203
|
+
logger.debug 'Calling operation OdaClient#create_oda_instance.' if logger
|
|
204
|
+
|
|
205
|
+
raise "Missing the required parameter 'create_oda_instance_details' when calling create_oda_instance." if create_oda_instance_details.nil?
|
|
206
|
+
|
|
207
|
+
path = '/odaInstances'
|
|
208
|
+
operation_signing_strategy = :standard
|
|
209
|
+
|
|
210
|
+
# rubocop:disable Style/NegatedIf
|
|
211
|
+
# Query Params
|
|
212
|
+
query_params = {}
|
|
213
|
+
|
|
214
|
+
# Header Params
|
|
215
|
+
header_params = {}
|
|
216
|
+
header_params[:accept] = 'application/json'
|
|
217
|
+
header_params[:'content-type'] = 'application/json'
|
|
218
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
219
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
220
|
+
# rubocop:enable Style/NegatedIf
|
|
221
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
222
|
+
|
|
223
|
+
post_body = @api_client.object_to_http_body(create_oda_instance_details)
|
|
224
|
+
|
|
225
|
+
# rubocop:disable Metrics/BlockLength
|
|
226
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OdaClient#create_oda_instance') do
|
|
227
|
+
@api_client.call_api(
|
|
228
|
+
:POST,
|
|
229
|
+
path,
|
|
230
|
+
endpoint,
|
|
231
|
+
header_params: header_params,
|
|
232
|
+
query_params: query_params,
|
|
233
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
234
|
+
body: post_body,
|
|
235
|
+
return_type: 'OCI::Oda::Models::OdaInstance'
|
|
236
|
+
)
|
|
237
|
+
end
|
|
238
|
+
# rubocop:enable Metrics/BlockLength
|
|
239
|
+
end
|
|
240
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
241
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
242
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
243
|
+
|
|
244
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
245
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
246
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
# Starts an asynchronous job to delete the specified Digital Assistant instance.
|
|
250
|
+
# To monitor the status of the job, take the `opc-work-request-id` response header value and use it to call `GET /workRequests/{workRequestID}`.
|
|
251
|
+
# @param [String] oda_instance_id Unique Digital Assistant instance identifier.
|
|
252
|
+
# @param [Hash] opts the optional parameters
|
|
253
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
254
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
255
|
+
# @option opts [String] :if_match For optimistic concurrency control in a PUT or DELETE call for
|
|
256
|
+
# a Digital Assistant instance, set the `if-match` query parameter
|
|
257
|
+
# to the value of the `ETAG` header from a previous GET or POST
|
|
258
|
+
# response for that instance. The service updates or deletes the
|
|
259
|
+
# instance only if the etag that you provide matches the instance's
|
|
260
|
+
# current etag value.
|
|
261
|
+
#
|
|
262
|
+
# @option opts [String] :opc_request_id The client request ID for tracing. This value is included in the opc-request-id response header.
|
|
263
|
+
# @return [Response] A Response object with data of type nil
|
|
264
|
+
def delete_oda_instance(oda_instance_id, opts = {})
|
|
265
|
+
logger.debug 'Calling operation OdaClient#delete_oda_instance.' if logger
|
|
266
|
+
|
|
267
|
+
raise "Missing the required parameter 'oda_instance_id' when calling delete_oda_instance." if oda_instance_id.nil?
|
|
268
|
+
raise "Parameter value for 'oda_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(oda_instance_id)
|
|
269
|
+
|
|
270
|
+
path = '/odaInstances/{odaInstanceId}'.sub('{odaInstanceId}', oda_instance_id.to_s)
|
|
271
|
+
operation_signing_strategy = :standard
|
|
272
|
+
|
|
273
|
+
# rubocop:disable Style/NegatedIf
|
|
274
|
+
# Query Params
|
|
275
|
+
query_params = {}
|
|
276
|
+
|
|
277
|
+
# Header Params
|
|
278
|
+
header_params = {}
|
|
279
|
+
header_params[:accept] = 'application/json'
|
|
280
|
+
header_params[:'content-type'] = 'application/json'
|
|
281
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
282
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
283
|
+
# rubocop:enable Style/NegatedIf
|
|
284
|
+
|
|
285
|
+
post_body = nil
|
|
286
|
+
|
|
287
|
+
# rubocop:disable Metrics/BlockLength
|
|
288
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OdaClient#delete_oda_instance') do
|
|
289
|
+
@api_client.call_api(
|
|
290
|
+
:DELETE,
|
|
291
|
+
path,
|
|
292
|
+
endpoint,
|
|
293
|
+
header_params: header_params,
|
|
294
|
+
query_params: query_params,
|
|
295
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
296
|
+
body: post_body
|
|
297
|
+
)
|
|
298
|
+
end
|
|
299
|
+
# rubocop:enable Metrics/BlockLength
|
|
300
|
+
end
|
|
301
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
302
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
303
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
304
|
+
|
|
305
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
306
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
307
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
# Gets the specified Digital Assistant instance.
|
|
311
|
+
# @param [String] oda_instance_id Unique Digital Assistant instance identifier.
|
|
312
|
+
# @param [Hash] opts the optional parameters
|
|
313
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
314
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
315
|
+
# @option opts [String] :opc_request_id The client request ID for tracing. This value is included in the opc-request-id response header.
|
|
316
|
+
# @return [Response] A Response object with data of type {OCI::Oda::Models::OdaInstance OdaInstance}
|
|
317
|
+
def get_oda_instance(oda_instance_id, opts = {})
|
|
318
|
+
logger.debug 'Calling operation OdaClient#get_oda_instance.' if logger
|
|
319
|
+
|
|
320
|
+
raise "Missing the required parameter 'oda_instance_id' when calling get_oda_instance." if oda_instance_id.nil?
|
|
321
|
+
raise "Parameter value for 'oda_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(oda_instance_id)
|
|
322
|
+
|
|
323
|
+
path = '/odaInstances/{odaInstanceId}'.sub('{odaInstanceId}', oda_instance_id.to_s)
|
|
324
|
+
operation_signing_strategy = :standard
|
|
325
|
+
|
|
326
|
+
# rubocop:disable Style/NegatedIf
|
|
327
|
+
# Query Params
|
|
328
|
+
query_params = {}
|
|
329
|
+
|
|
330
|
+
# Header Params
|
|
331
|
+
header_params = {}
|
|
332
|
+
header_params[:accept] = 'application/json'
|
|
333
|
+
header_params[:'content-type'] = 'application/json'
|
|
334
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
335
|
+
# rubocop:enable Style/NegatedIf
|
|
336
|
+
|
|
337
|
+
post_body = nil
|
|
338
|
+
|
|
339
|
+
# rubocop:disable Metrics/BlockLength
|
|
340
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OdaClient#get_oda_instance') do
|
|
341
|
+
@api_client.call_api(
|
|
342
|
+
:GET,
|
|
343
|
+
path,
|
|
344
|
+
endpoint,
|
|
345
|
+
header_params: header_params,
|
|
346
|
+
query_params: query_params,
|
|
347
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
348
|
+
body: post_body,
|
|
349
|
+
return_type: 'OCI::Oda::Models::OdaInstance'
|
|
350
|
+
)
|
|
351
|
+
end
|
|
352
|
+
# rubocop:enable Metrics/BlockLength
|
|
353
|
+
end
|
|
354
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
355
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
356
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
357
|
+
|
|
358
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
359
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
360
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
# Gets information about the work request with the specified ID, including its status.
|
|
364
|
+
#
|
|
365
|
+
# You can use this operation to monitor the status of jobs that you
|
|
366
|
+
# requested to create, delete, and update instances.
|
|
367
|
+
#
|
|
368
|
+
# @param [String] work_request_id The identifier of the asynchronous work request.
|
|
369
|
+
# @param [Hash] opts the optional parameters
|
|
370
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
371
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
372
|
+
# @option opts [String] :opc_request_id The client request ID for tracing. This value is included in the opc-request-id response header.
|
|
373
|
+
# @return [Response] A Response object with data of type {OCI::Oda::Models::WorkRequest WorkRequest}
|
|
374
|
+
def get_work_request(work_request_id, opts = {})
|
|
375
|
+
logger.debug 'Calling operation OdaClient#get_work_request.' if logger
|
|
376
|
+
|
|
377
|
+
raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil?
|
|
378
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
|
379
|
+
|
|
380
|
+
path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s)
|
|
381
|
+
operation_signing_strategy = :standard
|
|
382
|
+
|
|
383
|
+
# rubocop:disable Style/NegatedIf
|
|
384
|
+
# Query Params
|
|
385
|
+
query_params = {}
|
|
386
|
+
|
|
387
|
+
# Header Params
|
|
388
|
+
header_params = {}
|
|
389
|
+
header_params[:accept] = 'application/json'
|
|
390
|
+
header_params[:'content-type'] = 'application/json'
|
|
391
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
392
|
+
# rubocop:enable Style/NegatedIf
|
|
393
|
+
|
|
394
|
+
post_body = nil
|
|
395
|
+
|
|
396
|
+
# rubocop:disable Metrics/BlockLength
|
|
397
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OdaClient#get_work_request') do
|
|
398
|
+
@api_client.call_api(
|
|
399
|
+
:GET,
|
|
400
|
+
path,
|
|
401
|
+
endpoint,
|
|
402
|
+
header_params: header_params,
|
|
403
|
+
query_params: query_params,
|
|
404
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
405
|
+
body: post_body,
|
|
406
|
+
return_type: 'OCI::Oda::Models::WorkRequest'
|
|
407
|
+
)
|
|
408
|
+
end
|
|
409
|
+
# rubocop:enable Metrics/BlockLength
|
|
410
|
+
end
|
|
411
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
412
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
413
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
414
|
+
|
|
415
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
416
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
417
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
# Returns a page of Digital Assistant instances that belong to the specified
|
|
421
|
+
# compartment.
|
|
422
|
+
#
|
|
423
|
+
# If the `opc-next-page` header appears in the response, then
|
|
424
|
+
# there are more items to retrieve. To get the next page in the subsequent
|
|
425
|
+
# GET request, include the header's value as the `page` query parameter.
|
|
426
|
+
#
|
|
427
|
+
# @param [String] compartment_id List the Digital Assistant instances that belong to this compartment.
|
|
428
|
+
# @param [Hash] opts the optional parameters
|
|
429
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
430
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
431
|
+
# @option opts [String] :display_name List only the information for the Digital Assistant instance with this user-friendly name. These names don't have to be unique and may change.
|
|
432
|
+
#
|
|
433
|
+
# Example: `My new resource`
|
|
434
|
+
#
|
|
435
|
+
# @option opts [String] :lifecycle_state List only the Digital Assistant instances that are in this lifecycle state.
|
|
436
|
+
# Allowed values are: CREATING, UPDATING, ACTIVE, INACTIVE, DELETING, DELETED, FAILED
|
|
437
|
+
# @option opts [Integer] :limit The maximum number of items to return per page. (default to 100)
|
|
438
|
+
# @option opts [String] :page The page at which to start retrieving results.
|
|
439
|
+
#
|
|
440
|
+
# You get this value from the `opc-next-page` header in a previous list request.
|
|
441
|
+
# To retireve the first page, omit this query parameter.
|
|
442
|
+
#
|
|
443
|
+
# Example: `MToxMA==`
|
|
444
|
+
#
|
|
445
|
+
# @option opts [String] :sort_order Sort the results in this order, use either `ASC` (ascending) or `DESC` (descending).
|
|
446
|
+
# Allowed values are: ASC, DESC
|
|
447
|
+
# @option opts [String] :sort_by Sort on this field. You can specify one sort order only. The default sort field is `TIMECREATED`.
|
|
448
|
+
#
|
|
449
|
+
# The default sort order for `TIMECREATED` is descending, and the default sort order for `DISPLAYNAME` is ascending.
|
|
450
|
+
# (default to TIMECREATED)
|
|
451
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
|
452
|
+
# @option opts [String] :opc_request_id The client request ID for tracing. This value is included in the opc-request-id response header.
|
|
453
|
+
# @return [Response] A Response object with data of type Array<{OCI::Oda::Models::OdaInstanceSummary OdaInstanceSummary}>
|
|
454
|
+
def list_oda_instances(compartment_id, opts = {})
|
|
455
|
+
logger.debug 'Calling operation OdaClient#list_oda_instances.' if logger
|
|
456
|
+
|
|
457
|
+
raise "Missing the required parameter 'compartment_id' when calling list_oda_instances." if compartment_id.nil?
|
|
458
|
+
|
|
459
|
+
if opts[:lifecycle_state] && !%w[CREATING UPDATING ACTIVE INACTIVE DELETING DELETED FAILED].include?(opts[:lifecycle_state])
|
|
460
|
+
raise 'Invalid value for "lifecycle_state", must be one of CREATING, UPDATING, ACTIVE, INACTIVE, DELETING, DELETED, FAILED.'
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
|
464
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
|
|
468
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
path = '/odaInstances'
|
|
472
|
+
operation_signing_strategy = :standard
|
|
473
|
+
|
|
474
|
+
# rubocop:disable Style/NegatedIf
|
|
475
|
+
# Query Params
|
|
476
|
+
query_params = {}
|
|
477
|
+
query_params[:compartmentId] = compartment_id
|
|
478
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
|
479
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
|
480
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
|
481
|
+
query_params[:page] = opts[:page] if opts[:page]
|
|
482
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
|
483
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
|
484
|
+
|
|
485
|
+
# Header Params
|
|
486
|
+
header_params = {}
|
|
487
|
+
header_params[:accept] = 'application/json'
|
|
488
|
+
header_params[:'content-type'] = 'application/json'
|
|
489
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
490
|
+
# rubocop:enable Style/NegatedIf
|
|
491
|
+
|
|
492
|
+
post_body = nil
|
|
493
|
+
|
|
494
|
+
# rubocop:disable Metrics/BlockLength
|
|
495
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OdaClient#list_oda_instances') do
|
|
496
|
+
@api_client.call_api(
|
|
497
|
+
:GET,
|
|
498
|
+
path,
|
|
499
|
+
endpoint,
|
|
500
|
+
header_params: header_params,
|
|
501
|
+
query_params: query_params,
|
|
502
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
503
|
+
body: post_body,
|
|
504
|
+
return_type: 'Array<OCI::Oda::Models::OdaInstanceSummary>'
|
|
505
|
+
)
|
|
506
|
+
end
|
|
507
|
+
# rubocop:enable Metrics/BlockLength
|
|
508
|
+
end
|
|
509
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
510
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
511
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
512
|
+
|
|
513
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
514
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
515
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
# Returns a page of errors for the specified work request.
|
|
519
|
+
#
|
|
520
|
+
# If the `opc-next-page` header appears in the response, then
|
|
521
|
+
# there are more items to retrieve. To get the next page in the subsequent
|
|
522
|
+
# GET request, include the header's value as the `page` query parameter.
|
|
523
|
+
#
|
|
524
|
+
# @param [String] work_request_id The identifier of the asynchronous work request.
|
|
525
|
+
# @param [Hash] opts the optional parameters
|
|
526
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
527
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
528
|
+
# @option opts [String] :opc_request_id The client request ID for tracing. This value is included in the opc-request-id response header.
|
|
529
|
+
# @option opts [String] :page The page at which to start retrieving results.
|
|
530
|
+
#
|
|
531
|
+
# You get this value from the `opc-next-page` header in a previous list request.
|
|
532
|
+
# To retireve the first page, omit this query parameter.
|
|
533
|
+
#
|
|
534
|
+
# Example: `MToxMA==`
|
|
535
|
+
#
|
|
536
|
+
# @option opts [Integer] :limit The maximum number of items to return per page. (default to 100)
|
|
537
|
+
# @option opts [String] :sort_by The field to sort by. You can specify only one sort order. If no value is specified, then the default is `TIMESTAMP`.
|
|
538
|
+
#
|
|
539
|
+
# The default sort order for both `TIMESTAMP` and `CODE` is ascending.
|
|
540
|
+
# (default to TIMESTAMP)
|
|
541
|
+
# Allowed values are: CODE, TIMESTAMP
|
|
542
|
+
# @option opts [String] :sort_order Sort the results in this order, use either `ASC` (ascending) or `DESC` (descending).
|
|
543
|
+
# Allowed values are: ASC, DESC
|
|
544
|
+
# @return [Response] A Response object with data of type Array<{OCI::Oda::Models::WorkRequestError WorkRequestError}>
|
|
545
|
+
def list_work_request_errors(work_request_id, opts = {})
|
|
546
|
+
logger.debug 'Calling operation OdaClient#list_work_request_errors.' if logger
|
|
547
|
+
|
|
548
|
+
raise "Missing the required parameter 'work_request_id' when calling list_work_request_errors." if work_request_id.nil?
|
|
549
|
+
|
|
550
|
+
if opts[:sort_by] && !%w[CODE TIMESTAMP].include?(opts[:sort_by])
|
|
551
|
+
raise 'Invalid value for "sort_by", must be one of CODE, TIMESTAMP.'
|
|
552
|
+
end
|
|
553
|
+
|
|
554
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
|
555
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
|
556
|
+
end
|
|
557
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
|
558
|
+
|
|
559
|
+
path = '/workRequests/{workRequestId}/errors'.sub('{workRequestId}', work_request_id.to_s)
|
|
560
|
+
operation_signing_strategy = :standard
|
|
561
|
+
|
|
562
|
+
# rubocop:disable Style/NegatedIf
|
|
563
|
+
# Query Params
|
|
564
|
+
query_params = {}
|
|
565
|
+
query_params[:page] = opts[:page] if opts[:page]
|
|
566
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
|
567
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
|
568
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
|
569
|
+
|
|
570
|
+
# Header Params
|
|
571
|
+
header_params = {}
|
|
572
|
+
header_params[:accept] = 'application/json'
|
|
573
|
+
header_params[:'content-type'] = 'application/json'
|
|
574
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
575
|
+
# rubocop:enable Style/NegatedIf
|
|
576
|
+
|
|
577
|
+
post_body = nil
|
|
578
|
+
|
|
579
|
+
# rubocop:disable Metrics/BlockLength
|
|
580
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OdaClient#list_work_request_errors') do
|
|
581
|
+
@api_client.call_api(
|
|
582
|
+
:GET,
|
|
583
|
+
path,
|
|
584
|
+
endpoint,
|
|
585
|
+
header_params: header_params,
|
|
586
|
+
query_params: query_params,
|
|
587
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
588
|
+
body: post_body,
|
|
589
|
+
return_type: 'Array<OCI::Oda::Models::WorkRequestError>'
|
|
590
|
+
)
|
|
591
|
+
end
|
|
592
|
+
# rubocop:enable Metrics/BlockLength
|
|
593
|
+
end
|
|
594
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
595
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
596
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
597
|
+
|
|
598
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
599
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
600
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
# Returns a page of of log messages for a given work request.
|
|
604
|
+
#
|
|
605
|
+
# If the `opc-next-page` header appears in the response, then
|
|
606
|
+
# there are more items to retrieve. To get the next page in the subsequent
|
|
607
|
+
# GET request, include the header's value as the `page` query parameter.
|
|
608
|
+
#
|
|
609
|
+
# @param [String] work_request_id The identifier of the asynchronous work request.
|
|
610
|
+
# @param [Hash] opts the optional parameters
|
|
611
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
612
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
613
|
+
# @option opts [String] :opc_request_id The client request ID for tracing. This value is included in the opc-request-id response header.
|
|
614
|
+
# @option opts [String] :page The page at which to start retrieving results.
|
|
615
|
+
#
|
|
616
|
+
# You get this value from the `opc-next-page` header in a previous list request.
|
|
617
|
+
# To retireve the first page, omit this query parameter.
|
|
618
|
+
#
|
|
619
|
+
# Example: `MToxMA==`
|
|
620
|
+
#
|
|
621
|
+
# @option opts [Integer] :limit The maximum number of items to return per page. (default to 100)
|
|
622
|
+
# @option opts [String] :sort_by The field to sort by. You can specify only one sort order. If no value is specified, then the default is `TIMESTAMP`.
|
|
623
|
+
#
|
|
624
|
+
# The default sort order for both `TIMESTAMP` and `MESSAGE` is ascending.
|
|
625
|
+
# (default to TIMESTAMP)
|
|
626
|
+
# Allowed values are: MESSAGE, TIMESTAMP
|
|
627
|
+
# @option opts [String] :sort_order Sort the results in this order, use either `ASC` (ascending) or `DESC` (descending).
|
|
628
|
+
# Allowed values are: ASC, DESC
|
|
629
|
+
# @return [Response] A Response object with data of type Array<{OCI::Oda::Models::WorkRequestLogEntry WorkRequestLogEntry}>
|
|
630
|
+
def list_work_request_logs(work_request_id, opts = {})
|
|
631
|
+
logger.debug 'Calling operation OdaClient#list_work_request_logs.' if logger
|
|
632
|
+
|
|
633
|
+
raise "Missing the required parameter 'work_request_id' when calling list_work_request_logs." if work_request_id.nil?
|
|
634
|
+
|
|
635
|
+
if opts[:sort_by] && !%w[MESSAGE TIMESTAMP].include?(opts[:sort_by])
|
|
636
|
+
raise 'Invalid value for "sort_by", must be one of MESSAGE, TIMESTAMP.'
|
|
637
|
+
end
|
|
638
|
+
|
|
639
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
|
640
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
|
641
|
+
end
|
|
642
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
|
643
|
+
|
|
644
|
+
path = '/workRequests/{workRequestId}/logs'.sub('{workRequestId}', work_request_id.to_s)
|
|
645
|
+
operation_signing_strategy = :standard
|
|
646
|
+
|
|
647
|
+
# rubocop:disable Style/NegatedIf
|
|
648
|
+
# Query Params
|
|
649
|
+
query_params = {}
|
|
650
|
+
query_params[:page] = opts[:page] if opts[:page]
|
|
651
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
|
652
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
|
653
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
|
654
|
+
|
|
655
|
+
# Header Params
|
|
656
|
+
header_params = {}
|
|
657
|
+
header_params[:accept] = 'application/json'
|
|
658
|
+
header_params[:'content-type'] = 'application/json'
|
|
659
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
660
|
+
# rubocop:enable Style/NegatedIf
|
|
661
|
+
|
|
662
|
+
post_body = nil
|
|
663
|
+
|
|
664
|
+
# rubocop:disable Metrics/BlockLength
|
|
665
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OdaClient#list_work_request_logs') do
|
|
666
|
+
@api_client.call_api(
|
|
667
|
+
:GET,
|
|
668
|
+
path,
|
|
669
|
+
endpoint,
|
|
670
|
+
header_params: header_params,
|
|
671
|
+
query_params: query_params,
|
|
672
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
673
|
+
body: post_body,
|
|
674
|
+
return_type: 'Array<OCI::Oda::Models::WorkRequestLogEntry>'
|
|
675
|
+
)
|
|
676
|
+
end
|
|
677
|
+
# rubocop:enable Metrics/BlockLength
|
|
678
|
+
end
|
|
679
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
680
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
681
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
682
|
+
|
|
683
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
684
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
685
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
# Returns a page of work requests for the specified compartment.
|
|
689
|
+
#
|
|
690
|
+
# If the `opc-next-page` header appears in the response, then
|
|
691
|
+
# there are more items to retrieve. To get the next page in the subsequent
|
|
692
|
+
# GET request, include the header's value as the `page` query parameter.
|
|
693
|
+
#
|
|
694
|
+
# @param [String] compartment_id List the Digital Assistant instances that belong to this compartment.
|
|
695
|
+
# @param [Hash] opts the optional parameters
|
|
696
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
697
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
698
|
+
# @option opts [String] :opc_request_id The client request ID for tracing. This value is included in the opc-request-id response header.
|
|
699
|
+
# @option opts [String] :oda_instance_id List only the information for this Digital Assistant instance.
|
|
700
|
+
# @option opts [String] :page The page at which to start retrieving results.
|
|
701
|
+
#
|
|
702
|
+
# You get this value from the `opc-next-page` header in a previous list request.
|
|
703
|
+
# To retireve the first page, omit this query parameter.
|
|
704
|
+
#
|
|
705
|
+
# Example: `MToxMA==`
|
|
706
|
+
#
|
|
707
|
+
# @option opts [Integer] :limit The maximum number of items to return per page. (default to 100)
|
|
708
|
+
# @option opts [String] :sort_by The field to sort by. You can specify only one sort order. If no value is specified, then the default is `TIME_ACCEPTED`.
|
|
709
|
+
#
|
|
710
|
+
# The default sort order for the time fields is descending. The default order for `DISPLAYNAME` and `STATUS` is ascending.default: TIME_ACCEPTED
|
|
711
|
+
# (default to TIME_ACCEPTED)
|
|
712
|
+
# Allowed values are: OPERATION_TYPE, STATUS, TIME_ACCEPTED, TIME_STARTED, TIME_FINISHED
|
|
713
|
+
# @option opts [String] :sort_order Sort the results in this order, use either `ASC` (ascending) or `DESC` (descending).
|
|
714
|
+
# Allowed values are: ASC, DESC
|
|
715
|
+
# @return [Response] A Response object with data of type Array<{OCI::Oda::Models::WorkRequestSummary WorkRequestSummary}>
|
|
716
|
+
def list_work_requests(compartment_id, opts = {})
|
|
717
|
+
logger.debug 'Calling operation OdaClient#list_work_requests.' if logger
|
|
718
|
+
|
|
719
|
+
raise "Missing the required parameter 'compartment_id' when calling list_work_requests." if compartment_id.nil?
|
|
720
|
+
|
|
721
|
+
if opts[:sort_by] && !%w[OPERATION_TYPE STATUS TIME_ACCEPTED TIME_STARTED TIME_FINISHED].include?(opts[:sort_by])
|
|
722
|
+
raise 'Invalid value for "sort_by", must be one of OPERATION_TYPE, STATUS, TIME_ACCEPTED, TIME_STARTED, TIME_FINISHED.'
|
|
723
|
+
end
|
|
724
|
+
|
|
725
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
|
726
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
|
727
|
+
end
|
|
728
|
+
|
|
729
|
+
path = '/workRequests'
|
|
730
|
+
operation_signing_strategy = :standard
|
|
731
|
+
|
|
732
|
+
# rubocop:disable Style/NegatedIf
|
|
733
|
+
# Query Params
|
|
734
|
+
query_params = {}
|
|
735
|
+
query_params[:compartmentId] = compartment_id
|
|
736
|
+
query_params[:odaInstanceId] = opts[:oda_instance_id] if opts[:oda_instance_id]
|
|
737
|
+
query_params[:page] = opts[:page] if opts[:page]
|
|
738
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
|
739
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
|
740
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
|
741
|
+
|
|
742
|
+
# Header Params
|
|
743
|
+
header_params = {}
|
|
744
|
+
header_params[:accept] = 'application/json'
|
|
745
|
+
header_params[:'content-type'] = 'application/json'
|
|
746
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
747
|
+
# rubocop:enable Style/NegatedIf
|
|
748
|
+
|
|
749
|
+
post_body = nil
|
|
750
|
+
|
|
751
|
+
# rubocop:disable Metrics/BlockLength
|
|
752
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OdaClient#list_work_requests') do
|
|
753
|
+
@api_client.call_api(
|
|
754
|
+
:GET,
|
|
755
|
+
path,
|
|
756
|
+
endpoint,
|
|
757
|
+
header_params: header_params,
|
|
758
|
+
query_params: query_params,
|
|
759
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
760
|
+
body: post_body,
|
|
761
|
+
return_type: 'Array<OCI::Oda::Models::WorkRequestSummary>'
|
|
762
|
+
)
|
|
763
|
+
end
|
|
764
|
+
# rubocop:enable Metrics/BlockLength
|
|
765
|
+
end
|
|
766
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
767
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
768
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
769
|
+
|
|
770
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
771
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
772
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
# Updates the specified Digital Assistant instance with the information in the request body.
|
|
776
|
+
# @param [String] oda_instance_id Unique Digital Assistant instance identifier.
|
|
777
|
+
# @param [OCI::Oda::Models::UpdateOdaInstanceDetails] update_oda_instance_details The information to update.
|
|
778
|
+
# @param [Hash] opts the optional parameters
|
|
779
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
780
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
781
|
+
# @option opts [String] :if_match For optimistic concurrency control in a PUT or DELETE call for
|
|
782
|
+
# a Digital Assistant instance, set the `if-match` query parameter
|
|
783
|
+
# to the value of the `ETAG` header from a previous GET or POST
|
|
784
|
+
# response for that instance. The service updates or deletes the
|
|
785
|
+
# instance only if the etag that you provide matches the instance's
|
|
786
|
+
# current etag value.
|
|
787
|
+
#
|
|
788
|
+
# @option opts [String] :opc_request_id The client request ID for tracing. This value is included in the opc-request-id response header.
|
|
789
|
+
# @return [Response] A Response object with data of type {OCI::Oda::Models::OdaInstance OdaInstance}
|
|
790
|
+
def update_oda_instance(oda_instance_id, update_oda_instance_details, opts = {})
|
|
791
|
+
logger.debug 'Calling operation OdaClient#update_oda_instance.' if logger
|
|
792
|
+
|
|
793
|
+
raise "Missing the required parameter 'oda_instance_id' when calling update_oda_instance." if oda_instance_id.nil?
|
|
794
|
+
raise "Missing the required parameter 'update_oda_instance_details' when calling update_oda_instance." if update_oda_instance_details.nil?
|
|
795
|
+
raise "Parameter value for 'oda_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(oda_instance_id)
|
|
796
|
+
|
|
797
|
+
path = '/odaInstances/{odaInstanceId}'.sub('{odaInstanceId}', oda_instance_id.to_s)
|
|
798
|
+
operation_signing_strategy = :standard
|
|
799
|
+
|
|
800
|
+
# rubocop:disable Style/NegatedIf
|
|
801
|
+
# Query Params
|
|
802
|
+
query_params = {}
|
|
803
|
+
|
|
804
|
+
# Header Params
|
|
805
|
+
header_params = {}
|
|
806
|
+
header_params[:accept] = 'application/json'
|
|
807
|
+
header_params[:'content-type'] = 'application/json'
|
|
808
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
809
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
810
|
+
# rubocop:enable Style/NegatedIf
|
|
811
|
+
|
|
812
|
+
post_body = @api_client.object_to_http_body(update_oda_instance_details)
|
|
813
|
+
|
|
814
|
+
# rubocop:disable Metrics/BlockLength
|
|
815
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OdaClient#update_oda_instance') do
|
|
816
|
+
@api_client.call_api(
|
|
817
|
+
:PUT,
|
|
818
|
+
path,
|
|
819
|
+
endpoint,
|
|
820
|
+
header_params: header_params,
|
|
821
|
+
query_params: query_params,
|
|
822
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
823
|
+
body: post_body,
|
|
824
|
+
return_type: 'OCI::Oda::Models::OdaInstance'
|
|
825
|
+
)
|
|
826
|
+
end
|
|
827
|
+
# rubocop:enable Metrics/BlockLength
|
|
828
|
+
end
|
|
829
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
830
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
831
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
832
|
+
|
|
833
|
+
private
|
|
834
|
+
|
|
835
|
+
def applicable_retry_config(opts = {})
|
|
836
|
+
return @retry_config unless opts.key?(:retry_config)
|
|
837
|
+
|
|
838
|
+
opts[:retry_config]
|
|
839
|
+
end
|
|
840
|
+
end
|
|
841
|
+
end
|
|
842
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|