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
|
@@ -11,11 +11,24 @@ module OCI
|
|
|
11
11
|
# @return [String]
|
|
12
12
|
attr_accessor :value
|
|
13
13
|
|
|
14
|
+
# If you specify that a value is required, a value is set during resource creation (either by
|
|
15
|
+
# the user creating the resource or another tag defualt). If no value is set, resource
|
|
16
|
+
# creation is blocked.
|
|
17
|
+
#
|
|
18
|
+
# * If the `isRequired` flag is set to \"true\", the value is set during resource creation.
|
|
19
|
+
# * If the `isRequired` flag is set to \"false\", the value you enter is set during resource creation.
|
|
20
|
+
#
|
|
21
|
+
# Example: `false`
|
|
22
|
+
#
|
|
23
|
+
# @return [BOOLEAN]
|
|
24
|
+
attr_accessor :is_required
|
|
25
|
+
|
|
14
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
15
27
|
def self.attribute_map
|
|
16
28
|
{
|
|
17
29
|
# rubocop:disable Style/SymbolLiteral
|
|
18
|
-
'value': :'value'
|
|
30
|
+
'value': :'value',
|
|
31
|
+
'is_required': :'isRequired'
|
|
19
32
|
# rubocop:enable Style/SymbolLiteral
|
|
20
33
|
}
|
|
21
34
|
end
|
|
@@ -24,7 +37,8 @@ module OCI
|
|
|
24
37
|
def self.swagger_types
|
|
25
38
|
{
|
|
26
39
|
# rubocop:disable Style/SymbolLiteral
|
|
27
|
-
'value': :'String'
|
|
40
|
+
'value': :'String',
|
|
41
|
+
'is_required': :'BOOLEAN'
|
|
28
42
|
# rubocop:enable Style/SymbolLiteral
|
|
29
43
|
}
|
|
30
44
|
end
|
|
@@ -36,6 +50,7 @@ module OCI
|
|
|
36
50
|
# Initializes the object
|
|
37
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
38
52
|
# @option attributes [String] :value The value to assign to the {#value} property
|
|
53
|
+
# @option attributes [BOOLEAN] :is_required The value to assign to the {#is_required} property
|
|
39
54
|
def initialize(attributes = {})
|
|
40
55
|
return unless attributes.is_a?(Hash)
|
|
41
56
|
|
|
@@ -43,6 +58,12 @@ module OCI
|
|
|
43
58
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
44
59
|
|
|
45
60
|
self.value = attributes[:'value'] if attributes[:'value']
|
|
61
|
+
|
|
62
|
+
self.is_required = attributes[:'isRequired'] unless attributes[:'isRequired'].nil?
|
|
63
|
+
|
|
64
|
+
raise 'You cannot provide both :isRequired and :is_required' if attributes.key?(:'isRequired') && attributes.key?(:'is_required')
|
|
65
|
+
|
|
66
|
+
self.is_required = attributes[:'is_required'] unless attributes[:'is_required'].nil?
|
|
46
67
|
end
|
|
47
68
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
48
69
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
@@ -56,7 +77,8 @@ module OCI
|
|
|
56
77
|
return true if equal?(other)
|
|
57
78
|
|
|
58
79
|
self.class == other.class &&
|
|
59
|
-
value == other.value
|
|
80
|
+
value == other.value &&
|
|
81
|
+
is_required == other.is_required
|
|
60
82
|
end
|
|
61
83
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
62
84
|
|
|
@@ -72,7 +94,7 @@ module OCI
|
|
|
72
94
|
# Calculates hash code according to all attributes.
|
|
73
95
|
# @return [Fixnum] Hash code
|
|
74
96
|
def hash
|
|
75
|
-
[value].hash
|
|
97
|
+
[value, is_required].hash
|
|
76
98
|
end
|
|
77
99
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
78
100
|
|
|
@@ -35,6 +35,15 @@ module OCI
|
|
|
35
35
|
# @return [BOOLEAN]
|
|
36
36
|
attr_accessor :is_cost_tracking
|
|
37
37
|
|
|
38
|
+
# Additional validation rule for values specified for the tag definition.
|
|
39
|
+
#
|
|
40
|
+
# If no validator is defined for a tag definition, then any (valid) value will be accepted.
|
|
41
|
+
#
|
|
42
|
+
# The default value for `validator` is an empty map (no additional validation).
|
|
43
|
+
#
|
|
44
|
+
# @return [OCI::Identity::Models::BaseTagDefinitionValidator]
|
|
45
|
+
attr_accessor :validator
|
|
46
|
+
|
|
38
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
39
48
|
def self.attribute_map
|
|
40
49
|
{
|
|
@@ -43,7 +52,8 @@ module OCI
|
|
|
43
52
|
'is_retired': :'isRetired',
|
|
44
53
|
'freeform_tags': :'freeformTags',
|
|
45
54
|
'defined_tags': :'definedTags',
|
|
46
|
-
'is_cost_tracking': :'isCostTracking'
|
|
55
|
+
'is_cost_tracking': :'isCostTracking',
|
|
56
|
+
'validator': :'validator'
|
|
47
57
|
# rubocop:enable Style/SymbolLiteral
|
|
48
58
|
}
|
|
49
59
|
end
|
|
@@ -56,7 +66,8 @@ module OCI
|
|
|
56
66
|
'is_retired': :'BOOLEAN',
|
|
57
67
|
'freeform_tags': :'Hash<String, String>',
|
|
58
68
|
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
|
59
|
-
'is_cost_tracking': :'BOOLEAN'
|
|
69
|
+
'is_cost_tracking': :'BOOLEAN',
|
|
70
|
+
'validator': :'OCI::Identity::Models::BaseTagDefinitionValidator'
|
|
60
71
|
# rubocop:enable Style/SymbolLiteral
|
|
61
72
|
}
|
|
62
73
|
end
|
|
@@ -72,6 +83,7 @@ module OCI
|
|
|
72
83
|
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
|
73
84
|
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
|
74
85
|
# @option attributes [BOOLEAN] :is_cost_tracking The value to assign to the {#is_cost_tracking} property
|
|
86
|
+
# @option attributes [OCI::Identity::Models::BaseTagDefinitionValidator] :validator The value to assign to the {#validator} property
|
|
75
87
|
def initialize(attributes = {})
|
|
76
88
|
return unless attributes.is_a?(Hash)
|
|
77
89
|
|
|
@@ -103,6 +115,8 @@ module OCI
|
|
|
103
115
|
raise 'You cannot provide both :isCostTracking and :is_cost_tracking' if attributes.key?(:'isCostTracking') && attributes.key?(:'is_cost_tracking')
|
|
104
116
|
|
|
105
117
|
self.is_cost_tracking = attributes[:'is_cost_tracking'] unless attributes[:'is_cost_tracking'].nil?
|
|
118
|
+
|
|
119
|
+
self.validator = attributes[:'validator'] if attributes[:'validator']
|
|
106
120
|
end
|
|
107
121
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
108
122
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
@@ -120,7 +134,8 @@ module OCI
|
|
|
120
134
|
is_retired == other.is_retired &&
|
|
121
135
|
freeform_tags == other.freeform_tags &&
|
|
122
136
|
defined_tags == other.defined_tags &&
|
|
123
|
-
is_cost_tracking == other.is_cost_tracking
|
|
137
|
+
is_cost_tracking == other.is_cost_tracking &&
|
|
138
|
+
validator == other.validator
|
|
124
139
|
end
|
|
125
140
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
126
141
|
|
|
@@ -136,7 +151,7 @@ module OCI
|
|
|
136
151
|
# Calculates hash code according to all attributes.
|
|
137
152
|
# @return [Fixnum] Hash code
|
|
138
153
|
def hash
|
|
139
|
-
[description, is_retired, freeform_tags, defined_tags, is_cost_tracking].hash
|
|
154
|
+
[description, is_retired, freeform_tags, defined_tags, is_cost_tracking, validator].hash
|
|
140
155
|
end
|
|
141
156
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
142
157
|
|
|
@@ -23,6 +23,9 @@ module OCI
|
|
|
23
23
|
# talk to an administrator. If you're an administrator who needs to write policies to give users access,
|
|
24
24
|
# see [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
|
|
25
25
|
#
|
|
26
|
+
# **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values
|
|
27
|
+
# using the API.
|
|
28
|
+
#
|
|
26
29
|
class Identity::Models::User
|
|
27
30
|
LIFECYCLE_STATE_ENUM = [
|
|
28
31
|
LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
|
3
|
+
module OCI
|
|
4
|
+
module Integration
|
|
5
|
+
# Module containing models for requests made to, and responses received from,
|
|
6
|
+
# OCI Integration services
|
|
7
|
+
module Models
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# Require models
|
|
13
|
+
require 'oci/integration/models/change_integration_instance_compartment_details'
|
|
14
|
+
require 'oci/integration/models/create_integration_instance_details'
|
|
15
|
+
require 'oci/integration/models/integration_instance'
|
|
16
|
+
require 'oci/integration/models/integration_instance_summary'
|
|
17
|
+
require 'oci/integration/models/update_integration_instance_details'
|
|
18
|
+
require 'oci/integration/models/work_request'
|
|
19
|
+
require 'oci/integration/models/work_request_error'
|
|
20
|
+
require 'oci/integration/models/work_request_log_entry'
|
|
21
|
+
require 'oci/integration/models/work_request_resource'
|
|
22
|
+
require 'oci/integration/models/work_request_summary'
|
|
23
|
+
|
|
24
|
+
# Require generated clients
|
|
25
|
+
require 'oci/integration/integration_instance_client'
|
|
26
|
+
require 'oci/integration/integration_instance_client_composite_operations'
|
|
27
|
+
|
|
28
|
+
# Require service utilities
|
|
29
|
+
require 'oci/integration/util'
|
|
@@ -0,0 +1,731 @@
|
|
|
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
|
+
# Oracle Integration API.
|
|
9
|
+
class Integration::IntegrationInstanceClient
|
|
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 IntegrationInstanceClient.
|
|
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 + '/20190131'
|
|
80
|
+
else
|
|
81
|
+
region ||= config.region
|
|
82
|
+
region ||= signer.region if signer.respond_to?(:region)
|
|
83
|
+
self.region = region
|
|
84
|
+
end
|
|
85
|
+
logger.info "IntegrationInstanceClient 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://integration.{region}.ocp.{secondLevelDomain}') + '/20190131'
|
|
98
|
+
logger.info "IntegrationInstanceClient 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
|
+
# Change the compartment for an integration instance
|
|
112
|
+
#
|
|
113
|
+
# @param [String] integration_instance_id Unique Integration Instance identifier.
|
|
114
|
+
# @param [OCI::Integration::Models::ChangeIntegrationInstanceCompartmentDetails] change_integration_instance_compartment_details Details for the update integration instance
|
|
115
|
+
# @param [Hash] opts the optional parameters
|
|
116
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
117
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
118
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
|
119
|
+
# for a resource, set the `if-match` parameter to the value of the
|
|
120
|
+
# etag from a previous GET or POST response for that resource.
|
|
121
|
+
# The resource will be updated or deleted only if the etag you
|
|
122
|
+
# provide matches the resource's current etag value.
|
|
123
|
+
#
|
|
124
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
|
125
|
+
# @return [Response] A Response object with data of type nil
|
|
126
|
+
def change_integration_instance_compartment(integration_instance_id, change_integration_instance_compartment_details, opts = {})
|
|
127
|
+
logger.debug 'Calling operation IntegrationInstanceClient#change_integration_instance_compartment.' if logger
|
|
128
|
+
|
|
129
|
+
raise "Missing the required parameter 'integration_instance_id' when calling change_integration_instance_compartment." if integration_instance_id.nil?
|
|
130
|
+
raise "Missing the required parameter 'change_integration_instance_compartment_details' when calling change_integration_instance_compartment." if change_integration_instance_compartment_details.nil?
|
|
131
|
+
raise "Parameter value for 'integration_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(integration_instance_id)
|
|
132
|
+
|
|
133
|
+
path = '/integrationInstances/{integrationInstanceId}/actions/changeCompartment'.sub('{integrationInstanceId}', integration_instance_id.to_s)
|
|
134
|
+
operation_signing_strategy = :standard
|
|
135
|
+
|
|
136
|
+
# rubocop:disable Style/NegatedIf
|
|
137
|
+
# Query Params
|
|
138
|
+
query_params = {}
|
|
139
|
+
|
|
140
|
+
# Header Params
|
|
141
|
+
header_params = {}
|
|
142
|
+
header_params[:accept] = 'application/json'
|
|
143
|
+
header_params[:'content-type'] = 'application/json'
|
|
144
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
145
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
146
|
+
# rubocop:enable Style/NegatedIf
|
|
147
|
+
|
|
148
|
+
post_body = @api_client.object_to_http_body(change_integration_instance_compartment_details)
|
|
149
|
+
|
|
150
|
+
# rubocop:disable Metrics/BlockLength
|
|
151
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IntegrationInstanceClient#change_integration_instance_compartment') do
|
|
152
|
+
@api_client.call_api(
|
|
153
|
+
:POST,
|
|
154
|
+
path,
|
|
155
|
+
endpoint,
|
|
156
|
+
header_params: header_params,
|
|
157
|
+
query_params: query_params,
|
|
158
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
159
|
+
body: post_body
|
|
160
|
+
)
|
|
161
|
+
end
|
|
162
|
+
# rubocop:enable Metrics/BlockLength
|
|
163
|
+
end
|
|
164
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
165
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
166
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
167
|
+
|
|
168
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
169
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
170
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
# Creates a new Integration Instance.
|
|
174
|
+
#
|
|
175
|
+
# @param [OCI::Integration::Models::CreateIntegrationInstanceDetails] create_integration_instance_details Details for the new Integration Instance.
|
|
176
|
+
# @param [Hash] opts the optional parameters
|
|
177
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
178
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
179
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case
|
|
180
|
+
# of a timeout or server error without risk of executing that same action
|
|
181
|
+
# again. Retry tokens expire after 24 hours, but can be invalidated before
|
|
182
|
+
# then due to conflicting operations. For example, if a resource has been
|
|
183
|
+
# deleted and purged from the system, then a retry of the original creation
|
|
184
|
+
# request might be rejected.
|
|
185
|
+
#
|
|
186
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
|
187
|
+
# @return [Response] A Response object with data of type nil
|
|
188
|
+
def create_integration_instance(create_integration_instance_details, opts = {})
|
|
189
|
+
logger.debug 'Calling operation IntegrationInstanceClient#create_integration_instance.' if logger
|
|
190
|
+
|
|
191
|
+
raise "Missing the required parameter 'create_integration_instance_details' when calling create_integration_instance." if create_integration_instance_details.nil?
|
|
192
|
+
|
|
193
|
+
path = '/integrationInstances'
|
|
194
|
+
operation_signing_strategy = :standard
|
|
195
|
+
|
|
196
|
+
# rubocop:disable Style/NegatedIf
|
|
197
|
+
# Query Params
|
|
198
|
+
query_params = {}
|
|
199
|
+
|
|
200
|
+
# Header Params
|
|
201
|
+
header_params = {}
|
|
202
|
+
header_params[:accept] = 'application/json'
|
|
203
|
+
header_params[:'content-type'] = 'application/json'
|
|
204
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
205
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
206
|
+
# rubocop:enable Style/NegatedIf
|
|
207
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
208
|
+
|
|
209
|
+
post_body = @api_client.object_to_http_body(create_integration_instance_details)
|
|
210
|
+
|
|
211
|
+
# rubocop:disable Metrics/BlockLength
|
|
212
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IntegrationInstanceClient#create_integration_instance') do
|
|
213
|
+
@api_client.call_api(
|
|
214
|
+
:POST,
|
|
215
|
+
path,
|
|
216
|
+
endpoint,
|
|
217
|
+
header_params: header_params,
|
|
218
|
+
query_params: query_params,
|
|
219
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
220
|
+
body: post_body
|
|
221
|
+
)
|
|
222
|
+
end
|
|
223
|
+
# rubocop:enable Metrics/BlockLength
|
|
224
|
+
end
|
|
225
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
226
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
227
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
228
|
+
|
|
229
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
230
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
231
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
# Deletes an Integration Instance resource by identifier.
|
|
235
|
+
# @param [String] integration_instance_id Unique Integration Instance identifier.
|
|
236
|
+
# @param [Hash] opts the optional parameters
|
|
237
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
238
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
239
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
|
240
|
+
# for a resource, set the `if-match` parameter to the value of the
|
|
241
|
+
# etag from a previous GET or POST response for that resource.
|
|
242
|
+
# The resource will be updated or deleted only if the etag you
|
|
243
|
+
# provide matches the resource's current etag value.
|
|
244
|
+
#
|
|
245
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
|
246
|
+
# @return [Response] A Response object with data of type nil
|
|
247
|
+
def delete_integration_instance(integration_instance_id, opts = {})
|
|
248
|
+
logger.debug 'Calling operation IntegrationInstanceClient#delete_integration_instance.' if logger
|
|
249
|
+
|
|
250
|
+
raise "Missing the required parameter 'integration_instance_id' when calling delete_integration_instance." if integration_instance_id.nil?
|
|
251
|
+
raise "Parameter value for 'integration_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(integration_instance_id)
|
|
252
|
+
|
|
253
|
+
path = '/integrationInstances/{integrationInstanceId}'.sub('{integrationInstanceId}', integration_instance_id.to_s)
|
|
254
|
+
operation_signing_strategy = :standard
|
|
255
|
+
|
|
256
|
+
# rubocop:disable Style/NegatedIf
|
|
257
|
+
# Query Params
|
|
258
|
+
query_params = {}
|
|
259
|
+
|
|
260
|
+
# Header Params
|
|
261
|
+
header_params = {}
|
|
262
|
+
header_params[:accept] = 'application/json'
|
|
263
|
+
header_params[:'content-type'] = 'application/json'
|
|
264
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
265
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
266
|
+
# rubocop:enable Style/NegatedIf
|
|
267
|
+
|
|
268
|
+
post_body = nil
|
|
269
|
+
|
|
270
|
+
# rubocop:disable Metrics/BlockLength
|
|
271
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IntegrationInstanceClient#delete_integration_instance') do
|
|
272
|
+
@api_client.call_api(
|
|
273
|
+
:DELETE,
|
|
274
|
+
path,
|
|
275
|
+
endpoint,
|
|
276
|
+
header_params: header_params,
|
|
277
|
+
query_params: query_params,
|
|
278
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
279
|
+
body: post_body
|
|
280
|
+
)
|
|
281
|
+
end
|
|
282
|
+
# rubocop:enable Metrics/BlockLength
|
|
283
|
+
end
|
|
284
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
285
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
286
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
287
|
+
|
|
288
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
289
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
290
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
# Gets a IntegrationInstance by identifier
|
|
294
|
+
# @param [String] integration_instance_id Unique Integration Instance identifier.
|
|
295
|
+
# @param [Hash] opts the optional parameters
|
|
296
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
297
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
298
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
|
299
|
+
# @return [Response] A Response object with data of type {OCI::Integration::Models::IntegrationInstance IntegrationInstance}
|
|
300
|
+
def get_integration_instance(integration_instance_id, opts = {})
|
|
301
|
+
logger.debug 'Calling operation IntegrationInstanceClient#get_integration_instance.' if logger
|
|
302
|
+
|
|
303
|
+
raise "Missing the required parameter 'integration_instance_id' when calling get_integration_instance." if integration_instance_id.nil?
|
|
304
|
+
raise "Parameter value for 'integration_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(integration_instance_id)
|
|
305
|
+
|
|
306
|
+
path = '/integrationInstances/{integrationInstanceId}'.sub('{integrationInstanceId}', integration_instance_id.to_s)
|
|
307
|
+
operation_signing_strategy = :standard
|
|
308
|
+
|
|
309
|
+
# rubocop:disable Style/NegatedIf
|
|
310
|
+
# Query Params
|
|
311
|
+
query_params = {}
|
|
312
|
+
|
|
313
|
+
# Header Params
|
|
314
|
+
header_params = {}
|
|
315
|
+
header_params[:accept] = 'application/json'
|
|
316
|
+
header_params[:'content-type'] = 'application/json'
|
|
317
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
318
|
+
# rubocop:enable Style/NegatedIf
|
|
319
|
+
|
|
320
|
+
post_body = nil
|
|
321
|
+
|
|
322
|
+
# rubocop:disable Metrics/BlockLength
|
|
323
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IntegrationInstanceClient#get_integration_instance') do
|
|
324
|
+
@api_client.call_api(
|
|
325
|
+
:GET,
|
|
326
|
+
path,
|
|
327
|
+
endpoint,
|
|
328
|
+
header_params: header_params,
|
|
329
|
+
query_params: query_params,
|
|
330
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
331
|
+
body: post_body,
|
|
332
|
+
return_type: 'OCI::Integration::Models::IntegrationInstance'
|
|
333
|
+
)
|
|
334
|
+
end
|
|
335
|
+
# rubocop:enable Metrics/BlockLength
|
|
336
|
+
end
|
|
337
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
338
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
339
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
340
|
+
|
|
341
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
342
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
343
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
# Gets the status of the work request with the given ID.
|
|
347
|
+
# @param [String] work_request_id The ID of the asynchronous request.
|
|
348
|
+
# @param [Hash] opts the optional parameters
|
|
349
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
350
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
351
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
|
352
|
+
# @return [Response] A Response object with data of type {OCI::Integration::Models::WorkRequest WorkRequest}
|
|
353
|
+
def get_work_request(work_request_id, opts = {})
|
|
354
|
+
logger.debug 'Calling operation IntegrationInstanceClient#get_work_request.' if logger
|
|
355
|
+
|
|
356
|
+
raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil?
|
|
357
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
|
358
|
+
|
|
359
|
+
path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s)
|
|
360
|
+
operation_signing_strategy = :standard
|
|
361
|
+
|
|
362
|
+
# rubocop:disable Style/NegatedIf
|
|
363
|
+
# Query Params
|
|
364
|
+
query_params = {}
|
|
365
|
+
|
|
366
|
+
# Header Params
|
|
367
|
+
header_params = {}
|
|
368
|
+
header_params[:accept] = 'application/json'
|
|
369
|
+
header_params[:'content-type'] = 'application/json'
|
|
370
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
371
|
+
# rubocop:enable Style/NegatedIf
|
|
372
|
+
|
|
373
|
+
post_body = nil
|
|
374
|
+
|
|
375
|
+
# rubocop:disable Metrics/BlockLength
|
|
376
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IntegrationInstanceClient#get_work_request') do
|
|
377
|
+
@api_client.call_api(
|
|
378
|
+
:GET,
|
|
379
|
+
path,
|
|
380
|
+
endpoint,
|
|
381
|
+
header_params: header_params,
|
|
382
|
+
query_params: query_params,
|
|
383
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
384
|
+
body: post_body,
|
|
385
|
+
return_type: 'OCI::Integration::Models::WorkRequest'
|
|
386
|
+
)
|
|
387
|
+
end
|
|
388
|
+
# rubocop:enable Metrics/BlockLength
|
|
389
|
+
end
|
|
390
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
391
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
392
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
393
|
+
|
|
394
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
395
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
396
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
# Returns a list of Integration Instances.
|
|
400
|
+
#
|
|
401
|
+
# @param [String] compartment_id The ID of the compartment in which to list resources.
|
|
402
|
+
# @param [Hash] opts the optional parameters
|
|
403
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
404
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
405
|
+
# @option opts [String] :display_name A user-friendly name. Does not have to be unique, and it's changeable.
|
|
406
|
+
#
|
|
407
|
+
# Example: `My new resource`
|
|
408
|
+
#
|
|
409
|
+
# @option opts [String] :lifecycle_state Life cycle state to query on.
|
|
410
|
+
# Allowed values are: CREATING, UPDATING, ACTIVE, DELETING, DELETED, FAILED
|
|
411
|
+
# @option opts [Integer] :limit The maximum number of items to return. (default to 10)
|
|
412
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
|
413
|
+
# @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'. (default to ASC)
|
|
414
|
+
# Allowed values are: ASC, DESC
|
|
415
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order
|
|
416
|
+
# for TIMECREATED is descending. Default order for DISPLAYNAME is
|
|
417
|
+
# ascending. If no value is specified TIMECREATED is default.
|
|
418
|
+
# (default to TIMECREATED)
|
|
419
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
|
420
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
|
421
|
+
# @return [Response] A Response object with data of type Array<{OCI::Integration::Models::IntegrationInstanceSummary IntegrationInstanceSummary}>
|
|
422
|
+
def list_integration_instances(compartment_id, opts = {})
|
|
423
|
+
logger.debug 'Calling operation IntegrationInstanceClient#list_integration_instances.' if logger
|
|
424
|
+
|
|
425
|
+
raise "Missing the required parameter 'compartment_id' when calling list_integration_instances." if compartment_id.nil?
|
|
426
|
+
|
|
427
|
+
if opts[:lifecycle_state] && !%w[CREATING UPDATING ACTIVE DELETING DELETED FAILED].include?(opts[:lifecycle_state])
|
|
428
|
+
raise 'Invalid value for "lifecycle_state", must be one of CREATING, UPDATING, ACTIVE, DELETING, DELETED, FAILED.'
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
|
432
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
|
|
436
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
path = '/integrationInstances'
|
|
440
|
+
operation_signing_strategy = :standard
|
|
441
|
+
|
|
442
|
+
# rubocop:disable Style/NegatedIf
|
|
443
|
+
# Query Params
|
|
444
|
+
query_params = {}
|
|
445
|
+
query_params[:compartmentId] = compartment_id
|
|
446
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
|
447
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
|
448
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
|
449
|
+
query_params[:page] = opts[:page] if opts[:page]
|
|
450
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
|
451
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
|
452
|
+
|
|
453
|
+
# Header Params
|
|
454
|
+
header_params = {}
|
|
455
|
+
header_params[:accept] = 'application/json'
|
|
456
|
+
header_params[:'content-type'] = 'application/json'
|
|
457
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
458
|
+
# rubocop:enable Style/NegatedIf
|
|
459
|
+
|
|
460
|
+
post_body = nil
|
|
461
|
+
|
|
462
|
+
# rubocop:disable Metrics/BlockLength
|
|
463
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IntegrationInstanceClient#list_integration_instances') do
|
|
464
|
+
@api_client.call_api(
|
|
465
|
+
:GET,
|
|
466
|
+
path,
|
|
467
|
+
endpoint,
|
|
468
|
+
header_params: header_params,
|
|
469
|
+
query_params: query_params,
|
|
470
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
471
|
+
body: post_body,
|
|
472
|
+
return_type: 'Array<OCI::Integration::Models::IntegrationInstanceSummary>'
|
|
473
|
+
)
|
|
474
|
+
end
|
|
475
|
+
# rubocop:enable Metrics/BlockLength
|
|
476
|
+
end
|
|
477
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
478
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
479
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
480
|
+
|
|
481
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
482
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
483
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
# Get the errors of a work request.
|
|
487
|
+
# @param [String] compartment_id The ID of the compartment in which to list resources.
|
|
488
|
+
# @param [String] work_request_id The ID of the asynchronous request.
|
|
489
|
+
# @param [Hash] opts the optional parameters
|
|
490
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
491
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
492
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
|
493
|
+
# @option opts [Integer] :limit The maximum number of items to return. (default to 10)
|
|
494
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
|
495
|
+
# @return [Response] A Response object with data of type Array<{OCI::Integration::Models::WorkRequestError WorkRequestError}>
|
|
496
|
+
def list_work_request_errors(compartment_id, work_request_id, opts = {})
|
|
497
|
+
logger.debug 'Calling operation IntegrationInstanceClient#list_work_request_errors.' if logger
|
|
498
|
+
|
|
499
|
+
raise "Missing the required parameter 'compartment_id' when calling list_work_request_errors." if compartment_id.nil?
|
|
500
|
+
raise "Missing the required parameter 'work_request_id' when calling list_work_request_errors." if work_request_id.nil?
|
|
501
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
|
502
|
+
|
|
503
|
+
path = '/workRequests/{workRequestId}/errors'.sub('{workRequestId}', work_request_id.to_s)
|
|
504
|
+
operation_signing_strategy = :standard
|
|
505
|
+
|
|
506
|
+
# rubocop:disable Style/NegatedIf
|
|
507
|
+
# Query Params
|
|
508
|
+
query_params = {}
|
|
509
|
+
query_params[:compartmentId] = compartment_id
|
|
510
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
|
511
|
+
query_params[:page] = opts[:page] if opts[:page]
|
|
512
|
+
|
|
513
|
+
# Header Params
|
|
514
|
+
header_params = {}
|
|
515
|
+
header_params[:accept] = 'application/json'
|
|
516
|
+
header_params[:'content-type'] = 'application/json'
|
|
517
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
518
|
+
# rubocop:enable Style/NegatedIf
|
|
519
|
+
|
|
520
|
+
post_body = nil
|
|
521
|
+
|
|
522
|
+
# rubocop:disable Metrics/BlockLength
|
|
523
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IntegrationInstanceClient#list_work_request_errors') do
|
|
524
|
+
@api_client.call_api(
|
|
525
|
+
:GET,
|
|
526
|
+
path,
|
|
527
|
+
endpoint,
|
|
528
|
+
header_params: header_params,
|
|
529
|
+
query_params: query_params,
|
|
530
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
531
|
+
body: post_body,
|
|
532
|
+
return_type: 'Array<OCI::Integration::Models::WorkRequestError>'
|
|
533
|
+
)
|
|
534
|
+
end
|
|
535
|
+
# rubocop:enable Metrics/BlockLength
|
|
536
|
+
end
|
|
537
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
538
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
539
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
540
|
+
|
|
541
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
542
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
543
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
# Get the logs of a work request.
|
|
547
|
+
# @param [String] compartment_id The ID of the compartment in which to list resources.
|
|
548
|
+
# @param [String] work_request_id The ID of the asynchronous request.
|
|
549
|
+
# @param [Hash] opts the optional parameters
|
|
550
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
551
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
552
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
|
553
|
+
# @option opts [Integer] :limit The maximum number of items to return. (default to 10)
|
|
554
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
|
555
|
+
# @return [Response] A Response object with data of type Array<{OCI::Integration::Models::WorkRequestLogEntry WorkRequestLogEntry}>
|
|
556
|
+
def list_work_request_logs(compartment_id, work_request_id, opts = {})
|
|
557
|
+
logger.debug 'Calling operation IntegrationInstanceClient#list_work_request_logs.' if logger
|
|
558
|
+
|
|
559
|
+
raise "Missing the required parameter 'compartment_id' when calling list_work_request_logs." if compartment_id.nil?
|
|
560
|
+
raise "Missing the required parameter 'work_request_id' when calling list_work_request_logs." if work_request_id.nil?
|
|
561
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
|
562
|
+
|
|
563
|
+
path = '/workRequests/{workRequestId}/logs'.sub('{workRequestId}', work_request_id.to_s)
|
|
564
|
+
operation_signing_strategy = :standard
|
|
565
|
+
|
|
566
|
+
# rubocop:disable Style/NegatedIf
|
|
567
|
+
# Query Params
|
|
568
|
+
query_params = {}
|
|
569
|
+
query_params[:compartmentId] = compartment_id
|
|
570
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
|
571
|
+
query_params[:page] = opts[:page] if opts[:page]
|
|
572
|
+
|
|
573
|
+
# Header Params
|
|
574
|
+
header_params = {}
|
|
575
|
+
header_params[:accept] = 'application/json'
|
|
576
|
+
header_params[:'content-type'] = 'application/json'
|
|
577
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
578
|
+
# rubocop:enable Style/NegatedIf
|
|
579
|
+
|
|
580
|
+
post_body = nil
|
|
581
|
+
|
|
582
|
+
# rubocop:disable Metrics/BlockLength
|
|
583
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IntegrationInstanceClient#list_work_request_logs') do
|
|
584
|
+
@api_client.call_api(
|
|
585
|
+
:GET,
|
|
586
|
+
path,
|
|
587
|
+
endpoint,
|
|
588
|
+
header_params: header_params,
|
|
589
|
+
query_params: query_params,
|
|
590
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
591
|
+
body: post_body,
|
|
592
|
+
return_type: 'Array<OCI::Integration::Models::WorkRequestLogEntry>'
|
|
593
|
+
)
|
|
594
|
+
end
|
|
595
|
+
# rubocop:enable Metrics/BlockLength
|
|
596
|
+
end
|
|
597
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
598
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
599
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
600
|
+
|
|
601
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
602
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
603
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
# Lists the work requests in a compartment.
|
|
607
|
+
#
|
|
608
|
+
# @param [String] compartment_id The ID of the compartment in which to list resources.
|
|
609
|
+
# @param [Hash] opts the optional parameters
|
|
610
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
611
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
612
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
|
613
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
|
614
|
+
# @option opts [Integer] :limit The maximum number of items to return. (default to 10)
|
|
615
|
+
# @option opts [String] :integration_instance_id The Integration Instance identifier to use to filter results
|
|
616
|
+
# @return [Response] A Response object with data of type Array<{OCI::Integration::Models::WorkRequestSummary WorkRequestSummary}>
|
|
617
|
+
def list_work_requests(compartment_id, opts = {})
|
|
618
|
+
logger.debug 'Calling operation IntegrationInstanceClient#list_work_requests.' if logger
|
|
619
|
+
|
|
620
|
+
raise "Missing the required parameter 'compartment_id' when calling list_work_requests." if compartment_id.nil?
|
|
621
|
+
|
|
622
|
+
path = '/workRequests'
|
|
623
|
+
operation_signing_strategy = :standard
|
|
624
|
+
|
|
625
|
+
# rubocop:disable Style/NegatedIf
|
|
626
|
+
# Query Params
|
|
627
|
+
query_params = {}
|
|
628
|
+
query_params[:compartmentId] = compartment_id
|
|
629
|
+
query_params[:page] = opts[:page] if opts[:page]
|
|
630
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
|
631
|
+
query_params[:integrationInstanceId] = opts[:integration_instance_id] if opts[:integration_instance_id]
|
|
632
|
+
|
|
633
|
+
# Header Params
|
|
634
|
+
header_params = {}
|
|
635
|
+
header_params[:accept] = 'application/json'
|
|
636
|
+
header_params[:'content-type'] = 'application/json'
|
|
637
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
638
|
+
# rubocop:enable Style/NegatedIf
|
|
639
|
+
|
|
640
|
+
post_body = nil
|
|
641
|
+
|
|
642
|
+
# rubocop:disable Metrics/BlockLength
|
|
643
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IntegrationInstanceClient#list_work_requests') do
|
|
644
|
+
@api_client.call_api(
|
|
645
|
+
:GET,
|
|
646
|
+
path,
|
|
647
|
+
endpoint,
|
|
648
|
+
header_params: header_params,
|
|
649
|
+
query_params: query_params,
|
|
650
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
651
|
+
body: post_body,
|
|
652
|
+
return_type: 'Array<OCI::Integration::Models::WorkRequestSummary>'
|
|
653
|
+
)
|
|
654
|
+
end
|
|
655
|
+
# rubocop:enable Metrics/BlockLength
|
|
656
|
+
end
|
|
657
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
658
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
659
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
660
|
+
|
|
661
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
662
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
663
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
# Updates the Integration Instance.
|
|
667
|
+
# @param [String] integration_instance_id Unique Integration Instance identifier.
|
|
668
|
+
# @param [OCI::Integration::Models::UpdateIntegrationInstanceDetails] update_integration_instance_details The information to be updated.
|
|
669
|
+
# @param [Hash] opts the optional parameters
|
|
670
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
671
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
672
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
|
673
|
+
# for a resource, set the `if-match` parameter to the value of the
|
|
674
|
+
# etag from a previous GET or POST response for that resource.
|
|
675
|
+
# The resource will be updated or deleted only if the etag you
|
|
676
|
+
# provide matches the resource's current etag value.
|
|
677
|
+
#
|
|
678
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
|
679
|
+
# @return [Response] A Response object with data of type nil
|
|
680
|
+
def update_integration_instance(integration_instance_id, update_integration_instance_details, opts = {})
|
|
681
|
+
logger.debug 'Calling operation IntegrationInstanceClient#update_integration_instance.' if logger
|
|
682
|
+
|
|
683
|
+
raise "Missing the required parameter 'integration_instance_id' when calling update_integration_instance." if integration_instance_id.nil?
|
|
684
|
+
raise "Missing the required parameter 'update_integration_instance_details' when calling update_integration_instance." if update_integration_instance_details.nil?
|
|
685
|
+
raise "Parameter value for 'integration_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(integration_instance_id)
|
|
686
|
+
|
|
687
|
+
path = '/integrationInstances/{integrationInstanceId}'.sub('{integrationInstanceId}', integration_instance_id.to_s)
|
|
688
|
+
operation_signing_strategy = :standard
|
|
689
|
+
|
|
690
|
+
# rubocop:disable Style/NegatedIf
|
|
691
|
+
# Query Params
|
|
692
|
+
query_params = {}
|
|
693
|
+
|
|
694
|
+
# Header Params
|
|
695
|
+
header_params = {}
|
|
696
|
+
header_params[:accept] = 'application/json'
|
|
697
|
+
header_params[:'content-type'] = 'application/json'
|
|
698
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
699
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
700
|
+
# rubocop:enable Style/NegatedIf
|
|
701
|
+
|
|
702
|
+
post_body = @api_client.object_to_http_body(update_integration_instance_details)
|
|
703
|
+
|
|
704
|
+
# rubocop:disable Metrics/BlockLength
|
|
705
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IntegrationInstanceClient#update_integration_instance') do
|
|
706
|
+
@api_client.call_api(
|
|
707
|
+
:PUT,
|
|
708
|
+
path,
|
|
709
|
+
endpoint,
|
|
710
|
+
header_params: header_params,
|
|
711
|
+
query_params: query_params,
|
|
712
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
713
|
+
body: post_body
|
|
714
|
+
)
|
|
715
|
+
end
|
|
716
|
+
# rubocop:enable Metrics/BlockLength
|
|
717
|
+
end
|
|
718
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
719
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
720
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
721
|
+
|
|
722
|
+
private
|
|
723
|
+
|
|
724
|
+
def applicable_retry_config(opts = {})
|
|
725
|
+
return @retry_config unless opts.key?(:retry_config)
|
|
726
|
+
|
|
727
|
+
opts[:retry_config]
|
|
728
|
+
end
|
|
729
|
+
end
|
|
730
|
+
end
|
|
731
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|