oci 2.13.0 → 2.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +6 -4
- data/README.md +6 -1
- data/lib/oci.rb +4 -0
- data/lib/oci/ai_language/ai_language.rb +35 -0
- data/lib/oci/ai_language/ai_service_language_client.rb +396 -0
- data/lib/oci/ai_language/ai_service_language_client_composite_operations.rb +25 -0
- data/lib/oci/ai_language/models/detect_dominant_language_details.rb +150 -0
- data/lib/oci/ai_language/models/detect_dominant_language_result.rb +154 -0
- data/lib/oci/ai_language/models/detect_language_entities_details.rb +150 -0
- data/lib/oci/ai_language/models/detect_language_entities_result.rb +150 -0
- data/lib/oci/ai_language/models/detect_language_key_phrases_details.rb +150 -0
- data/lib/oci/ai_language/models/detect_language_key_phrases_result.rb +154 -0
- data/lib/oci/ai_language/models/detect_language_sentiments_details.rb +150 -0
- data/lib/oci/ai_language/models/detect_language_sentiments_result.rb +150 -0
- data/lib/oci/ai_language/models/detect_language_text_classification_details.rb +150 -0
- data/lib/oci/ai_language/models/detect_language_text_classification_result.rb +154 -0
- data/lib/oci/ai_language/models/detected_language.rb +172 -0
- data/lib/oci/ai_language/models/entity.rb +205 -0
- data/lib/oci/ai_language/models/key_phrase.rb +160 -0
- data/lib/oci/ai_language/models/ner_model_version.rb +11 -0
- data/lib/oci/ai_language/models/sentiment_aspect.rb +192 -0
- data/lib/oci/ai_language/models/text_classification.rb +160 -0
- data/lib/oci/ai_language/util.rb +3 -0
- data/lib/oci/api_client.rb +3 -6
- data/lib/oci/apigateway/apigateway.rb +17 -0
- data/lib/oci/apigateway/models/api_specification_route_request_policies.rb +56 -4
- data/lib/oci/apigateway/models/api_specification_route_response_policies.rb +17 -4
- data/lib/oci/apigateway/models/body_validation_request_policy.rb +211 -0
- data/lib/oci/apigateway/models/content_validation.rb +194 -0
- data/lib/oci/apigateway/models/create_gateway_details.rb +14 -1
- data/lib/oci/apigateway/models/external_resp_cache.rb +269 -0
- data/lib/oci/apigateway/models/fixed_ttl_response_cache_store_policy.rb +164 -0
- data/lib/oci/apigateway/models/gateway.rb +14 -1
- data/lib/oci/apigateway/models/header_validation_item.rb +161 -0
- data/lib/oci/apigateway/models/header_validation_request_policy.rb +188 -0
- data/lib/oci/apigateway/models/no_cache.rb +146 -0
- data/lib/oci/apigateway/models/no_content_validation.rb +145 -0
- data/lib/oci/apigateway/models/query_parameter_validation_item.rb +161 -0
- data/lib/oci/apigateway/models/query_parameter_validation_request_policy.rb +195 -0
- data/lib/oci/apigateway/models/request_parameter_validation.rb +150 -0
- data/lib/oci/apigateway/models/response_cache_details.rb +188 -0
- data/lib/oci/apigateway/models/response_cache_lookup_policy.rb +225 -0
- data/lib/oci/apigateway/models/response_cache_resp_server.rb +161 -0
- data/lib/oci/apigateway/models/response_cache_store_policy.rb +186 -0
- data/lib/oci/apigateway/models/simple_lookup_policy.rb +173 -0
- data/lib/oci/apigateway/models/update_gateway_details.rb +14 -1
- data/lib/oci/apigateway/models/validation_request_policy.rb +179 -0
- data/lib/oci/auth/signers/resource_principals_federation_signer.rb +15 -17
- data/lib/oci/cloud_guard/cloud_guard.rb +13 -0
- data/lib/oci/cloud_guard/cloud_guard_client.rb +426 -9
- data/lib/oci/cloud_guard/cloud_guard_client_composite_operations.rb +119 -0
- data/lib/oci/cloud_guard/models/all_targets_selected.rb +145 -0
- data/lib/oci/cloud_guard/models/create_data_mask_rule_details.rb +335 -0
- data/lib/oci/cloud_guard/models/create_managed_list_details.rb +2 -1
- data/lib/oci/cloud_guard/models/data_mask_category.rb +15 -0
- data/lib/oci/cloud_guard/models/data_mask_rule.rb +425 -0
- data/lib/oci/cloud_guard/models/data_mask_rule_collection.rb +150 -0
- data/lib/oci/cloud_guard/models/data_mask_rule_status.rb +11 -0
- data/lib/oci/cloud_guard/models/data_mask_rule_summary.rb +425 -0
- data/lib/oci/cloud_guard/models/detector_recipe.rb +2 -2
- data/lib/oci/cloud_guard/models/detector_recipe_detector_rule.rb +1 -0
- data/lib/oci/cloud_guard/models/detector_recipe_detector_rule_summary.rb +1 -0
- data/lib/oci/cloud_guard/models/detector_rule.rb +1 -0
- data/lib/oci/cloud_guard/models/detector_rule_summary.rb +1 -0
- data/lib/oci/cloud_guard/models/managed_list.rb +1 -0
- data/lib/oci/cloud_guard/models/managed_list_summary.rb +1 -0
- data/lib/oci/cloud_guard/models/managed_list_type.rb +2 -1
- data/lib/oci/cloud_guard/models/policy_collection.rb +150 -0
- data/lib/oci/cloud_guard/models/policy_summary.rb +150 -0
- data/lib/oci/cloud_guard/models/problem.rb +35 -1
- data/lib/oci/cloud_guard/models/security_rating.rb +2 -1
- data/lib/oci/cloud_guard/models/security_score_aggregation.rb +1 -0
- data/lib/oci/cloud_guard/models/security_score_trend_aggregation.rb +1 -0
- data/lib/oci/cloud_guard/models/target_detector_recipe_detector_rule.rb +1 -0
- data/lib/oci/cloud_guard/models/target_detector_recipe_detector_rule_summary.rb +1 -0
- data/lib/oci/cloud_guard/models/target_ids_selected.rb +158 -0
- data/lib/oci/cloud_guard/models/target_resource_types_selected.rb +186 -0
- data/lib/oci/cloud_guard/models/target_selected.rb +189 -0
- data/lib/oci/cloud_guard/models/update_bulk_problem_status_details.rb +14 -4
- data/lib/oci/cloud_guard/models/update_data_mask_rule_details.rb +292 -0
- data/lib/oci/config.rb +1 -3
- data/lib/oci/core/compute_client.rb +6 -5
- data/lib/oci/core/core.rb +47 -0
- data/lib/oci/core/models/add_drg_route_distribution_statement_details.rb +195 -0
- data/lib/oci/core/models/add_drg_route_distribution_statements_details.rb +152 -0
- data/lib/oci/core/models/add_drg_route_rule_details.rb +202 -0
- data/lib/oci/core/models/add_drg_route_rules_details.rb +156 -0
- data/lib/oci/core/models/add_security_rule_details.rb +2 -2
- data/lib/oci/core/models/bgp_session_info.rb +90 -4
- data/lib/oci/core/models/block_volume_replica.rb +19 -4
- data/lib/oci/core/models/boot_volume_replica.rb +19 -4
- data/lib/oci/core/models/create_drg_attachment_details.rb +72 -4
- data/lib/oci/core/models/create_drg_details.rb +1 -1
- data/lib/oci/core/models/create_drg_route_distribution_details.rb +235 -0
- data/lib/oci/core/models/create_drg_route_table_details.rb +242 -0
- data/lib/oci/core/models/create_image_details.rb +2 -2
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +3 -3
- data/lib/oci/core/models/create_ip_sec_tunnel_bgp_session_details.rb +53 -1
- data/lib/oci/core/models/create_ipv6_details.rb +1 -23
- data/lib/oci/core/models/create_subnet_details.rb +26 -3
- data/lib/oci/core/models/create_vcn_details.rb +3 -36
- data/lib/oci/core/models/create_vnic_details.rb +20 -1
- data/lib/oci/core/models/cross_connect_mapping.rb +1 -1
- data/lib/oci/core/models/cross_connect_mapping_details.rb +356 -0
- data/lib/oci/core/models/cross_connect_mapping_details_collection.rb +150 -0
- data/lib/oci/core/models/default_drg_route_tables.rb +206 -0
- data/lib/oci/core/models/drg.rb +38 -10
- data/lib/oci/core/models/drg_attachment.rb +115 -10
- data/lib/oci/core/models/drg_attachment_id_drg_route_distribution_match_criteria.rb +164 -0
- data/lib/oci/core/models/drg_attachment_info.rb +152 -0
- data/lib/oci/core/models/drg_attachment_network_create_details.rb +189 -0
- data/lib/oci/core/models/drg_attachment_network_details.rb +202 -0
- data/lib/oci/core/models/drg_attachment_network_update_details.rb +178 -0
- data/lib/oci/core/models/drg_attachment_type_drg_route_distribution_match_criteria.rb +188 -0
- data/lib/oci/core/models/drg_redundancy_status.rb +1 -1
- data/lib/oci/core/models/drg_route_distribution.rb +336 -0
- data/lib/oci/core/models/drg_route_distribution_match_criteria.rb +194 -0
- data/lib/oci/core/models/drg_route_distribution_statement.rb +215 -0
- data/lib/oci/core/models/drg_route_rule.rb +341 -0
- data/lib/oci/core/models/drg_route_table.rb +332 -0
- data/lib/oci/core/models/image.rb +2 -2
- data/lib/oci/core/models/ingress_security_rule.rb +1 -1
- data/lib/oci/core/models/instance.rb +15 -2
- data/lib/oci/core/models/instance_availability_config.rb +18 -1
- data/lib/oci/core/models/instance_configuration_create_vnic_details.rb +17 -1
- data/lib/oci/core/models/instance_configuration_launch_instance_details.rb +18 -5
- data/lib/oci/core/models/instance_configuration_launch_instance_shape_config_details.rb +46 -4
- data/lib/oci/core/models/instance_configuration_launch_options.rb +5 -5
- data/lib/oci/core/models/instance_shape_config.rb +43 -1
- data/lib/oci/core/models/ip_sec_connection.rb +4 -4
- data/lib/oci/core/models/ipsec_tunnel_drg_attachment_network_details.rb +166 -0
- data/lib/oci/core/models/ipv6.rb +4 -54
- data/lib/oci/core/models/launch_instance_availability_config_details.rb +20 -2
- data/lib/oci/core/models/launch_instance_details.rb +14 -1
- data/lib/oci/core/models/launch_instance_shape_config_details.rb +39 -4
- data/lib/oci/core/models/launch_options.rb +5 -5
- data/lib/oci/core/models/local_peering_gateway.rb +15 -1
- data/lib/oci/core/models/networking_topology.rb +158 -0
- data/lib/oci/core/models/port_range.rb +2 -2
- data/lib/oci/core/models/preemptible_instance_config_details.rb +155 -0
- data/lib/oci/core/models/preemption_action.rb +186 -0
- data/lib/oci/core/models/remote_peering_connection_drg_attachment_network_details.rb +149 -0
- data/lib/oci/core/models/remove_drg_route_distribution_statements_details.rb +156 -0
- data/lib/oci/core/models/remove_drg_route_rules_details.rb +156 -0
- data/lib/oci/core/models/route_rule.rb +3 -2
- data/lib/oci/core/models/route_table.rb +1 -1
- data/lib/oci/core/models/security_rule.rb +4 -4
- data/lib/oci/core/models/shape.rb +75 -1
- data/lib/oci/core/models/subnet.rb +30 -24
- data/lib/oci/core/models/terminate_preemption_action.rb +166 -0
- data/lib/oci/core/models/topology.rb +214 -0
- data/lib/oci/core/models/topology_associated_with_entity_relationship.rb +157 -0
- data/lib/oci/core/models/topology_contains_entity_relationship.rb +157 -0
- data/lib/oci/core/models/topology_entity_relationship.rb +209 -0
- data/lib/oci/core/models/topology_routes_to_entity_relationship.rb +173 -0
- data/lib/oci/core/models/topology_routes_to_relationship_details.rb +183 -0
- data/lib/oci/core/models/update_cluster_network_details.rb +19 -4
- data/lib/oci/core/models/update_cluster_network_instance_pool_details.rb +212 -0
- data/lib/oci/core/models/update_drg_attachment_details.rb +88 -2
- data/lib/oci/core/models/update_drg_details.rb +14 -1
- data/lib/oci/core/models/update_drg_route_distribution_details.rb +195 -0
- data/lib/oci/core/models/update_drg_route_distribution_statement_details.rb +179 -0
- data/lib/oci/core/models/update_drg_route_distribution_statements_details.rb +152 -0
- data/lib/oci/core/models/update_drg_route_rule_details.rb +212 -0
- data/lib/oci/core/models/update_drg_route_rules_details.rb +155 -0
- data/lib/oci/core/models/update_drg_route_table_details.rb +227 -0
- data/lib/oci/core/models/update_instance_availability_config_details.rb +20 -2
- data/lib/oci/core/models/update_instance_shape_config_details.rb +39 -4
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +3 -2
- data/lib/oci/core/models/update_ip_sec_tunnel_bgp_session_details.rb +53 -1
- data/lib/oci/core/models/update_ipv6_details.rb +1 -23
- data/lib/oci/core/models/update_launch_options.rb +1 -1
- data/lib/oci/core/models/update_security_rule_details.rb +2 -2
- data/lib/oci/core/models/update_subnet_details.rb +27 -4
- data/lib/oci/core/models/upgrade_status.rb +203 -0
- data/lib/oci/core/models/vcn.rb +12 -38
- data/lib/oci/core/models/vcn_drg_attachment_network_create_details.rb +174 -0
- data/lib/oci/core/models/vcn_drg_attachment_network_details.rb +172 -0
- data/lib/oci/core/models/vcn_drg_attachment_network_update_details.rb +168 -0
- data/lib/oci/core/models/vcn_topology.rb +175 -0
- data/lib/oci/core/models/virtual_circuit.rb +35 -2
- data/lib/oci/core/models/virtual_circuit_drg_attachment_network_details.rb +149 -0
- data/lib/oci/core/virtual_network_client.rb +2092 -236
- data/lib/oci/core/virtual_network_client_composite_operations.rb +446 -32
- data/lib/oci/data_catalog/data_catalog.rb +2 -0
- data/lib/oci/data_catalog/data_catalog_client.rb +91 -0
- data/lib/oci/data_catalog/models/attribute.rb +15 -1
- data/lib/oci/data_catalog/models/attribute_summary.rb +29 -1
- data/lib/oci/data_catalog/models/create_attribute_details.rb +15 -1
- data/lib/oci/data_catalog/models/create_connection_details.rb +1 -1
- data/lib/oci/data_catalog/models/create_custom_property_details.rb +17 -1
- data/lib/oci/data_catalog/models/create_entity_details.rb +15 -1
- data/lib/oci/data_catalog/models/create_folder_details.rb +15 -1
- data/lib/oci/data_catalog/models/custom_property.rb +17 -1
- data/lib/oci/data_catalog/models/custom_property_get_usage.rb +17 -1
- data/lib/oci/data_catalog/models/custom_property_summary.rb +17 -1
- data/lib/oci/data_catalog/models/entity.rb +15 -1
- data/lib/oci/data_catalog/models/entity_summary.rb +29 -1
- data/lib/oci/data_catalog/models/folder.rb +15 -1
- data/lib/oci/data_catalog/models/folder_summary.rb +15 -1
- data/lib/oci/data_catalog/models/job.rb +15 -1
- data/lib/oci/data_catalog/models/job_definition_summary.rb +18 -4
- data/lib/oci/data_catalog/models/job_summary.rb +15 -1
- data/lib/oci/data_catalog/models/search_result.rb +55 -1
- data/lib/oci/data_catalog/models/suggest_list_item.rb +166 -0
- data/lib/oci/data_catalog/models/suggest_results.rb +194 -0
- data/lib/oci/data_catalog/models/update_attribute_details.rb +15 -1
- data/lib/oci/data_catalog/models/update_connection_details.rb +1 -1
- data/lib/oci/data_catalog/models/update_custom_property_details.rb +17 -1
- data/lib/oci/data_catalog/models/update_entity_details.rb +15 -1
- data/lib/oci/data_catalog/models/update_folder_details.rb +15 -1
- data/lib/oci/data_flow/data_flow_client.rb +4 -4
- data/lib/oci/data_flow/data_flow_client_composite_operations.rb +1 -1
- data/lib/oci/data_flow/models/application.rb +16 -1
- data/lib/oci/data_flow/models/change_private_endpoint_compartment_details.rb +1 -1
- data/lib/oci/data_flow/models/create_application_details.rb +16 -1
- data/lib/oci/data_flow/models/create_private_endpoint_details.rb +1 -1
- data/lib/oci/data_flow/models/create_run_details.rb +66 -4
- data/lib/oci/data_flow/models/private_endpoint_collection.rb +2 -2
- data/lib/oci/data_flow/models/run.rb +16 -1
- data/lib/oci/data_flow/models/update_application_details.rb +16 -1
- data/lib/oci/data_flow/models/update_private_endpoint_details.rb +1 -1
- data/lib/oci/data_flow/models/work_request_summary.rb +1 -1
- data/lib/oci/data_science/data_science_client.rb +8 -7
- data/lib/oci/data_science/data_science_client_composite_operations.rb +4 -3
- data/lib/oci/database/database.rb +5 -0
- data/lib/oci/database/database_client.rb +278 -0
- data/lib/oci/database/database_client_composite_operations.rb +200 -0
- data/lib/oci/database/models/autonomous_container_database_dataguard_association.rb +4 -2
- data/lib/oci/database/models/autonomous_database.rb +20 -5
- data/lib/oci/database/models/autonomous_database_connection_urls.rb +18 -4
- data/lib/oci/database/models/autonomous_database_dataguard_association.rb +4 -2
- data/lib/oci/database/models/autonomous_database_summary.rb +20 -5
- data/lib/oci/database/models/create_autonomous_database_base.rb +18 -4
- data/lib/oci/database/models/create_autonomous_database_clone_details.rb +5 -1
- data/lib/oci/database/models/create_autonomous_database_details.rb +8 -4
- data/lib/oci/database/models/create_autonomous_database_from_backup_details.rb +5 -1
- data/lib/oci/database/models/create_autonomous_database_from_backup_timestamp_details.rb +5 -1
- data/lib/oci/database/models/create_database_details.rb +1 -1
- data/lib/oci/database/models/create_database_software_image_details.rb +2 -2
- data/lib/oci/database/models/create_refreshable_autonomous_database_clone_details.rb +5 -1
- data/lib/oci/database/models/customer_contact.rb +151 -0
- data/lib/oci/database/models/database.rb +1 -1
- data/lib/oci/database/models/database_summary.rb +1 -1
- data/lib/oci/database/models/enable_external_database_operations_insights_details_base.rb +156 -0
- data/lib/oci/database/models/enable_external_non_container_database_operations_insights_details.rb +153 -0
- data/lib/oci/database/models/enable_external_pluggable_database_operations_insights_details.rb +153 -0
- data/lib/oci/database/models/exadata_infrastructure.rb +29 -1
- data/lib/oci/database/models/exadata_infrastructure_summary.rb +29 -1
- data/lib/oci/database/models/external_container_database.rb +34 -1
- data/lib/oci/database/models/external_container_database_summary.rb +34 -1
- data/lib/oci/database/models/external_database_base.rb +28 -1
- data/lib/oci/database/models/external_non_container_database.rb +50 -1
- data/lib/oci/database/models/external_non_container_database_summary.rb +50 -1
- data/lib/oci/database/models/external_pluggable_database.rb +47 -1
- data/lib/oci/database/models/external_pluggable_database_summary.rb +47 -1
- data/lib/oci/database/models/maintenance_run.rb +51 -4
- data/lib/oci/database/models/maintenance_run_summary.rb +51 -4
- data/lib/oci/database/models/operations_insights_config.rb +194 -0
- data/lib/oci/database/models/update_autonomous_database_details.rb +18 -4
- data/lib/oci/database/models/update_maintenance_run_details.rb +31 -4
- data/lib/oci/database_management/database_management.rb +6 -0
- data/lib/oci/database_management/db_management_client.rb +70 -3
- data/lib/oci/database_management/models/activity_time_series_metrics.rb +13 -4
- data/lib/oci/database_management/models/change_database_parameters_details.rb +1 -1
- data/lib/oci/database_management/models/cluster_cache_metric.rb +156 -0
- data/lib/oci/database_management/models/database_home_metrics.rb +18 -4
- data/lib/oci/database_management/models/database_instance_home_metrics_definition.rb +234 -0
- data/lib/oci/database_management/models/database_parameter_summary.rb +1 -1
- data/lib/oci/database_management/models/database_parameters_collection.rb +1 -1
- data/lib/oci/database_management/models/database_time_aggregate_metrics.rb +13 -4
- data/lib/oci/database_management/models/instance_details.rb +205 -0
- data/lib/oci/database_management/models/managed_database.rb +88 -1
- data/lib/oci/database_management/models/pdb_status_details.rb +181 -0
- data/lib/oci/database_management/models/reset_database_parameters_details.rb +8 -7
- data/lib/oci/database_management/models/time_series_metric_data_point.rb +180 -0
- data/lib/oci/database_management/models/time_series_metric_definition.rb +166 -0
- data/lib/oci/database_management/models/update_database_parameters_result.rb +1 -1
- data/lib/oci/database_migration/database_migration.rb +132 -0
- data/lib/oci/database_migration/database_migration_client.rb +2579 -0
- data/lib/oci/database_migration/database_migration_client_composite_operations.rb +736 -0
- data/lib/oci/database_migration/models/admin_credentials.rb +152 -0
- data/lib/oci/database_migration/models/agent.rb +356 -0
- data/lib/oci/database_migration/models/agent_collection.rb +152 -0
- data/lib/oci/database_migration/models/agent_image_collection.rb +152 -0
- data/lib/oci/database_migration/models/agent_image_summary.rb +167 -0
- data/lib/oci/database_migration/models/agent_summary.rb +341 -0
- data/lib/oci/database_migration/models/change_agent_compartment_details.rb +156 -0
- data/lib/oci/database_migration/models/change_connection_compartment_details.rb +156 -0
- data/lib/oci/database_migration/models/change_migration_compartment_details.rb +156 -0
- data/lib/oci/database_migration/models/clone_migration_details.rb +292 -0
- data/lib/oci/database_migration/models/connect_descriptor.rb +193 -0
- data/lib/oci/database_migration/models/connection.rb +461 -0
- data/lib/oci/database_migration/models/connection_collection.rb +152 -0
- data/lib/oci/database_migration/models/connection_summary.rb +366 -0
- data/lib/oci/database_migration/models/create_admin_credentials.rb +163 -0
- data/lib/oci/database_migration/models/create_agent_details.rb +244 -0
- data/lib/oci/database_migration/models/create_connect_descriptor.rb +198 -0
- data/lib/oci/database_migration/models/create_connection_details.rb +360 -0
- data/lib/oci/database_migration/models/create_data_pump_parameters.rb +261 -0
- data/lib/oci/database_migration/models/create_data_pump_settings.rb +228 -0
- data/lib/oci/database_migration/models/create_data_transfer_medium_details.rb +168 -0
- data/lib/oci/database_migration/models/create_database_link_details.rb +152 -0
- data/lib/oci/database_migration/models/create_directory_object.rb +165 -0
- data/lib/oci/database_migration/models/create_extract.rb +188 -0
- data/lib/oci/database_migration/models/create_golden_gate_details.rb +160 -0
- data/lib/oci/database_migration/models/create_golden_gate_hub.rb +253 -0
- data/lib/oci/database_migration/models/create_golden_gate_settings.rb +174 -0
- data/lib/oci/database_migration/models/create_migration_details.rb +355 -0
- data/lib/oci/database_migration/models/create_object_store_bucket.rb +171 -0
- data/lib/oci/database_migration/models/create_private_endpoint.rb +189 -0
- data/lib/oci/database_migration/models/create_replicat.rb +186 -0
- data/lib/oci/database_migration/models/create_ssh_details.rb +190 -0
- data/lib/oci/database_migration/models/create_vault_details.rb +186 -0
- data/lib/oci/database_migration/models/data_pump_estimate.rb +11 -0
- data/lib/oci/database_migration/models/data_pump_exclude_parameters.rb +12 -0
- data/lib/oci/database_migration/models/data_pump_job_mode.rb +14 -0
- data/lib/oci/database_migration/models/data_pump_parameters.rb +274 -0
- data/lib/oci/database_migration/models/data_pump_settings.rb +235 -0
- data/lib/oci/database_migration/models/data_pump_table_exists_action.rb +13 -0
- data/lib/oci/database_migration/models/data_transfer_medium_details.rb +167 -0
- data/lib/oci/database_migration/models/database_connection_types.rb +12 -0
- data/lib/oci/database_migration/models/database_link_details.rb +152 -0
- data/lib/oci/database_migration/models/database_object.rb +167 -0
- data/lib/oci/database_migration/models/directory_object.rb +163 -0
- data/lib/oci/database_migration/models/extract.rb +195 -0
- data/lib/oci/database_migration/models/extract_performance_profile.rb +12 -0
- data/lib/oci/database_migration/models/generate_token.rb +156 -0
- data/lib/oci/database_migration/models/golden_gate_details.rb +160 -0
- data/lib/oci/database_migration/models/golden_gate_hub.rb +253 -0
- data/lib/oci/database_migration/models/golden_gate_settings.rb +174 -0
- data/lib/oci/database_migration/models/job.rb +372 -0
- data/lib/oci/database_migration/models/job_collection.rb +152 -0
- data/lib/oci/database_migration/models/job_lifecycle_states.rb +18 -0
- data/lib/oci/database_migration/models/job_output_summary.rb +152 -0
- data/lib/oci/database_migration/models/job_output_summary_collection.rb +152 -0
- data/lib/oci/database_migration/models/job_phase_status.rb +13 -0
- data/lib/oci/database_migration/models/job_summary.rb +357 -0
- data/lib/oci/database_migration/models/job_types.rb +11 -0
- data/lib/oci/database_migration/models/lifecycle_states.rb +16 -0
- data/lib/oci/database_migration/models/metadata_remap.rb +205 -0
- data/lib/oci/database_migration/models/migration.rb +590 -0
- data/lib/oci/database_migration/models/migration_collection.rb +152 -0
- data/lib/oci/database_migration/models/migration_job_progress_resource.rb +237 -0
- data/lib/oci/database_migration/models/migration_job_progress_summary.rb +241 -0
- data/lib/oci/database_migration/models/migration_phase_collection.rb +152 -0
- data/lib/oci/database_migration/models/migration_phase_summary.rb +234 -0
- data/lib/oci/database_migration/models/migration_status.rb +16 -0
- data/lib/oci/database_migration/models/migration_summary.rb +472 -0
- data/lib/oci/database_migration/models/migration_types.rb +11 -0
- data/lib/oci/database_migration/models/object_store_bucket.rb +171 -0
- data/lib/oci/database_migration/models/odms_job_phases.rb +25 -0
- data/lib/oci/database_migration/models/odms_phase_actions.rb +10 -0
- data/lib/oci/database_migration/models/operation_status.rb +15 -0
- data/lib/oci/database_migration/models/operation_types.rb +20 -0
- data/lib/oci/database_migration/models/par_link.rb +156 -0
- data/lib/oci/database_migration/models/phase_status.rb +244 -0
- data/lib/oci/database_migration/models/private_endpoint_details.rb +199 -0
- data/lib/oci/database_migration/models/replicat.rb +186 -0
- data/lib/oci/database_migration/models/resume_job_details.rb +184 -0
- data/lib/oci/database_migration/models/sort_orders.rb +11 -0
- data/lib/oci/database_migration/models/ssh_details.rb +178 -0
- data/lib/oci/database_migration/models/start_migration_details.rb +184 -0
- data/lib/oci/database_migration/models/unsupported_database_object.rb +197 -0
- data/lib/oci/database_migration/models/update_admin_credentials.rb +163 -0
- data/lib/oci/database_migration/models/update_agent_details.rb +244 -0
- data/lib/oci/database_migration/models/update_connect_descriptor.rb +197 -0
- data/lib/oci/database_migration/models/update_connection_details.rb +312 -0
- data/lib/oci/database_migration/models/update_data_pump_parameters.rb +262 -0
- data/lib/oci/database_migration/models/update_data_pump_settings.rb +229 -0
- data/lib/oci/database_migration/models/update_data_transfer_medium_details.rb +169 -0
- data/lib/oci/database_migration/models/update_database_link_details.rb +152 -0
- data/lib/oci/database_migration/models/update_directory_object.rb +166 -0
- data/lib/oci/database_migration/models/update_extract.rb +189 -0
- data/lib/oci/database_migration/models/update_golden_gate_details.rb +159 -0
- data/lib/oci/database_migration/models/update_golden_gate_hub.rb +250 -0
- data/lib/oci/database_migration/models/update_golden_gate_settings.rb +175 -0
- data/lib/oci/database_migration/models/update_job_details.rb +188 -0
- data/lib/oci/database_migration/models/update_migration_details.rb +342 -0
- data/lib/oci/database_migration/models/update_object_store_bucket.rb +171 -0
- data/lib/oci/database_migration/models/update_private_endpoint.rb +189 -0
- data/lib/oci/database_migration/models/update_replicat.rb +187 -0
- data/lib/oci/database_migration/models/update_ssh_details.rb +189 -0
- data/lib/oci/database_migration/models/update_vault_details.rb +186 -0
- data/lib/oci/database_migration/models/vault_details.rb +186 -0
- data/lib/oci/database_migration/models/work_request.rb +319 -0
- data/lib/oci/database_migration/models/work_request_collection.rb +152 -0
- data/lib/oci/database_migration/models/work_request_error.rb +180 -0
- data/lib/oci/database_migration/models/work_request_error_collection.rb +152 -0
- data/lib/oci/database_migration/models/work_request_log_entry.rb +167 -0
- data/lib/oci/database_migration/models/work_request_log_entry_collection.rb +152 -0
- data/lib/oci/database_migration/models/work_request_resource.rb +223 -0
- data/lib/oci/database_migration/models/work_request_summary.rb +280 -0
- data/lib/oci/database_migration/util.rb +3 -0
- data/lib/oci/functions/functions.rb +2 -0
- data/lib/oci/functions/models/application.rb +14 -1
- data/lib/oci/functions/models/application_summary.rb +14 -1
- data/lib/oci/functions/models/application_trace_config.rb +171 -0
- data/lib/oci/functions/models/create_application_details.rb +14 -1
- data/lib/oci/functions/models/create_function_details.rb +14 -1
- data/lib/oci/functions/models/function.rb +14 -1
- data/lib/oci/functions/models/function_summary.rb +14 -1
- data/lib/oci/functions/models/function_trace_config.rb +156 -0
- data/lib/oci/functions/models/update_application_details.rb +14 -1
- data/lib/oci/functions/models/update_function_details.rb +14 -1
- data/lib/oci/limits/limits_client.rb +3 -3
- data/lib/oci/limits/models/limit_definition_summary.rb +34 -4
- data/lib/oci/limits/models/resource_availability.rb +54 -6
- data/lib/oci/limits/quotas_client.rb +1 -1
- data/lib/oci/loggingsearch/models/search_result.rb +1 -0
- data/lib/oci/object_storage/models/bucket.rb +40 -4
- data/lib/oci/object_storage/models/create_bucket_details.rb +22 -4
- data/lib/oci/object_storage/models/update_bucket_details.rb +21 -4
- data/lib/oci/object_storage/object_storage_client.rb +8 -5
- data/lib/oci/ocvp/models/create_esxi_host_details.rb +66 -1
- data/lib/oci/ocvp/models/create_sddc_details.rb +34 -1
- data/lib/oci/ocvp/models/esxi_host.rb +94 -1
- data/lib/oci/ocvp/models/esxi_host_summary.rb +94 -1
- data/lib/oci/ocvp/models/sddc.rb +40 -1
- data/lib/oci/ocvp/models/sku.rb +13 -0
- data/lib/oci/ocvp/models/supported_sku_summary.rb +173 -0
- data/lib/oci/ocvp/models/supported_sku_summary_collection.rb +150 -0
- data/lib/oci/ocvp/models/update_esxi_host_details.rb +32 -1
- data/lib/oci/ocvp/ocvp.rb +3 -0
- data/lib/oci/ocvp/sddc_client.rb +68 -0
- data/lib/oci/operator_access_control/access_requests_client.rb +515 -0
- data/lib/oci/operator_access_control/access_requests_client_composite_operations.rb +25 -0
- data/lib/oci/operator_access_control/models/access_request.rb +583 -0
- data/lib/oci/operator_access_control/models/access_request_collection.rb +150 -0
- data/lib/oci/operator_access_control/models/access_request_history_collection.rb +150 -0
- data/lib/oci/operator_access_control/models/access_request_history_summary.rb +269 -0
- data/lib/oci/operator_access_control/models/access_request_lifecycle_states.rb +29 -0
- data/lib/oci/operator_access_control/models/access_request_severities.rb +13 -0
- data/lib/oci/operator_access_control/models/access_request_summary.rb +403 -0
- data/lib/oci/operator_access_control/models/approve_access_request_details.rb +185 -0
- data/lib/oci/operator_access_control/models/change_operator_control_assignment_compartment_details.rb +154 -0
- data/lib/oci/operator_access_control/models/change_operator_control_compartment_details.rb +154 -0
- data/lib/oci/operator_access_control/models/create_operator_control_assignment_details.rb +322 -0
- data/lib/oci/operator_access_control/models/create_operator_control_details.rb +302 -0
- data/lib/oci/operator_access_control/models/infrastrcuture_layers.rb +12 -0
- data/lib/oci/operator_access_control/models/operator_action.rb +198 -0
- data/lib/oci/operator_access_control/models/operator_action_categories.rb +14 -0
- data/lib/oci/operator_access_control/models/operator_action_collection.rb +150 -0
- data/lib/oci/operator_access_control/models/operator_action_lifecycle_states.rb +11 -0
- data/lib/oci/operator_access_control/models/operator_action_properties.rb +160 -0
- data/lib/oci/operator_access_control/models/operator_action_summary.rb +230 -0
- data/lib/oci/operator_access_control/models/operator_control.rb +407 -0
- data/lib/oci/operator_access_control/models/operator_control_assignment.rb +448 -0
- data/lib/oci/operator_access_control/models/operator_control_assignment_collection.rb +150 -0
- data/lib/oci/operator_access_control/models/operator_control_assignment_lifecycle_states.rb +13 -0
- data/lib/oci/operator_access_control/models/operator_control_assignment_summary.rb +331 -0
- data/lib/oci/operator_access_control/models/operator_control_collection.rb +150 -0
- data/lib/oci/operator_access_control/models/operator_control_lifecycle_states.rb +13 -0
- data/lib/oci/operator_access_control/models/operator_control_summary.rb +303 -0
- data/lib/oci/operator_access_control/models/reject_access_request_details.rb +154 -0
- data/lib/oci/operator_access_control/models/resource_types.rb +10 -0
- data/lib/oci/operator_access_control/models/revoke_access_request_details.rb +154 -0
- data/lib/oci/operator_access_control/models/sort_orders.rb +11 -0
- data/lib/oci/operator_access_control/models/update_operator_control_assignment_details.rb +224 -0
- data/lib/oci/operator_access_control/models/update_operator_control_details.rb +283 -0
- data/lib/oci/operator_access_control/operator_access_control.rb +57 -0
- data/lib/oci/operator_access_control/operator_actions_client.rb +243 -0
- data/lib/oci/operator_access_control/operator_actions_client_composite_operations.rb +25 -0
- data/lib/oci/operator_access_control/operator_control_assignment_client.rb +501 -0
- data/lib/oci/operator_access_control/operator_control_assignment_client_composite_operations.rb +105 -0
- data/lib/oci/operator_access_control/operator_control_client.rb +507 -0
- data/lib/oci/operator_access_control/operator_control_client_composite_operations.rb +144 -0
- data/lib/oci/operator_access_control/util.rb +3 -0
- data/lib/oci/opsi/models/action_type.rb +14 -0
- data/lib/oci/opsi/models/autonomous_database_insight.rb +271 -0
- data/lib/oci/opsi/models/autonomous_database_insight_summary.rb +230 -0
- data/lib/oci/opsi/models/change_database_insight_compartment_details.rb +155 -0
- data/lib/oci/opsi/models/change_enterprise_manager_bridge_compartment_details.rb +155 -0
- data/lib/oci/opsi/models/change_host_insight_compartment_details.rb +155 -0
- data/lib/oci/opsi/models/connection_details.rb +208 -0
- data/lib/oci/opsi/models/create_database_insight_details.rb +228 -0
- data/lib/oci/opsi/models/create_em_managed_external_database_insight_details.rb +202 -0
- data/lib/oci/opsi/models/create_enterprise_manager_bridge_details.rb +224 -0
- data/lib/oci/opsi/models/create_host_insight_details.rb +228 -0
- data/lib/oci/opsi/models/create_macs_managed_external_host_insight_details.rb +174 -0
- data/lib/oci/opsi/models/credential_details.rb +204 -0
- data/lib/oci/opsi/models/credentials_by_source.rb +150 -0
- data/lib/oci/opsi/models/database_configuration_metric_group.rb +204 -0
- data/lib/oci/opsi/models/database_details.rb +24 -4
- data/lib/oci/opsi/models/database_entity_source.rb +10 -0
- data/lib/oci/opsi/models/database_entity_source_all.rb +12 -0
- data/lib/oci/opsi/models/database_insight.rb +416 -0
- data/lib/oci/opsi/models/database_insight_summary.rb +191 -5
- data/lib/oci/opsi/models/db_external_instance.rb +300 -0
- data/lib/oci/opsi/models/db_external_properties.rb +280 -0
- data/lib/oci/opsi/models/dbos_config_instance.rb +236 -0
- data/lib/oci/opsi/models/em_managed_external_database_insight.rb +284 -0
- data/lib/oci/opsi/models/em_managed_external_database_insight_summary.rb +300 -0
- data/lib/oci/opsi/models/enable_database_insight_details.rb +182 -0
- data/lib/oci/opsi/models/enable_em_managed_external_database_insight_details.rb +145 -0
- data/lib/oci/opsi/models/enable_host_insight_details.rb +182 -0
- data/lib/oci/opsi/models/enable_macs_managed_external_host_insight_details.rb +145 -0
- data/lib/oci/opsi/models/enterprise_manager_bridge.rb +344 -0
- data/lib/oci/opsi/models/enterprise_manager_bridge_collection.rb +150 -0
- data/lib/oci/opsi/models/enterprise_manager_bridge_summary.rb +334 -0
- data/lib/oci/opsi/models/enterprise_manager_bridges.rb +154 -0
- data/lib/oci/opsi/models/host_configuration_metric_group.rb +212 -0
- data/lib/oci/opsi/models/host_cpu_hardware_configuration.rb +289 -0
- data/lib/oci/opsi/models/host_cpu_statistics.rb +174 -0
- data/lib/oci/opsi/models/host_cpu_usage.rb +279 -0
- data/lib/oci/opsi/models/host_details.rb +225 -0
- data/lib/oci/opsi/models/host_entities.rb +181 -0
- data/lib/oci/opsi/models/host_entity_source.rb +10 -0
- data/lib/oci/opsi/models/host_hardware_configuration.rb +167 -0
- data/lib/oci/opsi/models/host_insight.rb +426 -0
- data/lib/oci/opsi/models/host_insight_resource_statistics_aggregation.rb +169 -0
- data/lib/oci/opsi/models/host_insight_summary.rb +426 -0
- data/lib/oci/opsi/models/host_insight_summary_collection.rb +150 -0
- data/lib/oci/opsi/models/host_insights.rb +154 -0
- data/lib/oci/opsi/models/host_instance_map.rb +168 -0
- data/lib/oci/opsi/models/host_memory_configuration.rb +223 -0
- data/lib/oci/opsi/models/host_memory_statistics.rb +260 -0
- data/lib/oci/opsi/models/host_memory_usage.rb +349 -0
- data/lib/oci/opsi/models/host_network_activity_summary.rb +195 -0
- data/lib/oci/opsi/models/host_network_configuration.rb +195 -0
- data/lib/oci/opsi/models/host_performance_metric_group.rb +204 -0
- data/lib/oci/opsi/models/host_product.rb +183 -0
- data/lib/oci/opsi/models/host_resource_allocation.rb +181 -0
- data/lib/oci/opsi/models/host_resource_capacity_trend_aggregation.rb +165 -0
- data/lib/oci/opsi/models/host_resource_statistics.rb +243 -0
- data/lib/oci/opsi/models/hosted_entity_collection.rb +180 -0
- data/lib/oci/opsi/models/hosted_entity_summary.rb +183 -0
- data/lib/oci/opsi/models/importable_enterprise_manager_entity.rb +210 -0
- data/lib/oci/opsi/models/importable_enterprise_manager_entity_collection.rb +150 -0
- data/lib/oci/opsi/models/ingest_database_configuration_details.rb +150 -0
- data/lib/oci/opsi/models/ingest_database_configuration_response_details.rb +152 -0
- data/lib/oci/opsi/models/ingest_host_configuration_details.rb +151 -0
- data/lib/oci/opsi/models/ingest_host_configuration_response_details.rb +152 -0
- data/lib/oci/opsi/models/ingest_host_metrics_details.rb +151 -0
- data/lib/oci/opsi/models/ingest_host_metrics_response_details.rb +152 -0
- data/lib/oci/opsi/models/lifecycle_state.rb +15 -0
- data/lib/oci/opsi/models/macs_managed_external_database_insight.rb +325 -0
- data/lib/oci/opsi/models/macs_managed_external_database_insight_summary.rb +258 -0
- data/lib/oci/opsi/models/macs_managed_external_host_insight.rb +279 -0
- data/lib/oci/opsi/models/macs_managed_external_host_insight_summary.rb +251 -0
- data/lib/oci/opsi/models/operation_status.rb +15 -0
- data/lib/oci/opsi/models/operation_type.rb +25 -0
- data/lib/oci/opsi/models/resource_status.rb +12 -0
- data/lib/oci/opsi/models/sql_plan_collection.rb +11 -1
- data/lib/oci/opsi/models/sql_plan_insight_aggregation_collection.rb +11 -1
- data/lib/oci/opsi/models/sql_response_time_distribution_aggregation_collection.rb +11 -1
- data/lib/oci/opsi/models/sql_search_summary.rb +11 -1
- data/lib/oci/opsi/models/sql_statistics_time_series_by_plan_aggregation_collection.rb +11 -1
- data/lib/oci/opsi/models/sql_text_summary.rb +11 -1
- data/lib/oci/opsi/models/summarize_database_insight_resource_capacity_trend_aggregation_collection.rb +5 -1
- data/lib/oci/opsi/models/summarize_database_insight_resource_forecast_trend_aggregation.rb +5 -1
- data/lib/oci/opsi/models/summarize_database_insight_resource_statistics_aggregation_collection.rb +5 -1
- data/lib/oci/opsi/models/summarize_database_insight_resource_usage_aggregation.rb +5 -1
- data/lib/oci/opsi/models/summarize_database_insight_resource_usage_trend_aggregation_collection.rb +5 -1
- data/lib/oci/opsi/models/summarize_database_insight_resource_utilization_insight_aggregation.rb +5 -1
- data/lib/oci/opsi/models/summarize_database_insight_tablespace_usage_trend_aggregation_collection.rb +232 -0
- data/lib/oci/opsi/models/summarize_host_insight_resource_capacity_trend_aggregation_collection.rb +271 -0
- data/lib/oci/opsi/models/summarize_host_insight_resource_forecast_trend_aggregation.rb +304 -0
- data/lib/oci/opsi/models/summarize_host_insight_resource_statistics_aggregation_collection.rb +251 -0
- data/lib/oci/opsi/models/summarize_host_insight_resource_usage_aggregation.rb +277 -0
- data/lib/oci/opsi/models/summarize_host_insight_resource_usage_trend_aggregation_collection.rb +271 -0
- data/lib/oci/opsi/models/summarize_host_insight_resource_utilization_insight_aggregation.rb +233 -0
- data/lib/oci/opsi/models/summary_statistics.rb +209 -0
- data/lib/oci/opsi/models/tablespace_usage_trend.rb +176 -0
- data/lib/oci/opsi/models/tablespace_usage_trend_aggregation.rb +182 -0
- data/lib/oci/opsi/models/update_autonomous_database_insight_details.rb +153 -0
- data/lib/oci/opsi/models/update_database_insight_details.rb +218 -0
- data/lib/oci/opsi/models/update_em_managed_external_database_insight_details.rb +153 -0
- data/lib/oci/opsi/models/update_enterprise_manager_bridge_details.rb +196 -0
- data/lib/oci/opsi/models/update_host_insight_details.rb +214 -0
- data/lib/oci/opsi/models/update_macs_managed_external_database_insight_details.rb +153 -0
- data/lib/oci/opsi/models/update_macs_managed_external_host_insight_details.rb +153 -0
- data/lib/oci/opsi/models/work_request.rb +320 -0
- data/lib/oci/opsi/models/work_request_collection.rb +150 -0
- data/lib/oci/opsi/models/work_request_error.rb +173 -0
- data/lib/oci/opsi/models/work_request_error_collection.rb +150 -0
- data/lib/oci/opsi/models/work_request_log_entry.rb +160 -0
- data/lib/oci/opsi/models/work_request_log_entry_collection.rb +150 -0
- data/lib/oci/opsi/models/work_request_resource.rb +219 -0
- data/lib/oci/opsi/models/work_requests.rb +154 -0
- data/lib/oci/opsi/operations_insights_client.rb +3475 -411
- data/lib/oci/opsi/operations_insights_client_composite_operations.rb +792 -0
- data/lib/oci/opsi/opsi.rb +99 -0
- data/lib/oci/regions.rb +1 -1
- data/lib/oci/resource_manager/models/config_source.rb +2 -0
- data/lib/oci/resource_manager/models/config_source_record.rb +2 -0
- data/lib/oci/resource_manager/models/create_config_source_details.rb +1 -0
- data/lib/oci/resource_manager/models/create_object_storage_config_source_details.rb +189 -0
- data/lib/oci/resource_manager/models/object_storage_config_source.rb +189 -0
- data/lib/oci/resource_manager/models/object_storage_config_source_record.rb +185 -0
- data/lib/oci/resource_manager/models/update_config_source_details.rb +1 -0
- data/lib/oci/resource_manager/models/update_object_storage_config_source_details.rb +188 -0
- data/lib/oci/resource_manager/resource_manager.rb +4 -0
- data/lib/oci/resource_manager/resource_manager_client.rb +1 -0
- data/lib/oci/retry/functions/should_retry_on_error.rb +31 -0
- data/lib/oci/retry/retry.rb +15 -0
- data/lib/oci/sch/models/function_task_details.rb +194 -0
- data/lib/oci/sch/models/latest_streaming_cursor.rb +146 -0
- data/lib/oci/sch/models/source_details.rb +2 -0
- data/lib/oci/sch/models/streaming_cursor_details.rb +189 -0
- data/lib/oci/sch/models/streaming_source_details.rb +173 -0
- data/lib/oci/sch/models/task_details.rb +2 -0
- data/lib/oci/sch/models/trim_horizon_streaming_cursor.rb +146 -0
- data/lib/oci/sch/sch.rb +5 -0
- data/lib/oci/service_catalog/models/action_type.rb +13 -0
- data/lib/oci/service_catalog/models/application_collection.rb +150 -0
- data/lib/oci/service_catalog/models/application_summary.rb +295 -0
- data/lib/oci/service_catalog/models/bulk_replace_service_catalog_associations_details.rb +150 -0
- data/lib/oci/service_catalog/models/change_private_application_compartment_details.rb +155 -0
- data/lib/oci/service_catalog/models/change_service_catalog_compartment_details.rb +154 -0
- data/lib/oci/service_catalog/models/create_private_application_details.rb +259 -0
- data/lib/oci/service_catalog/models/create_private_application_package.rb +192 -0
- data/lib/oci/service_catalog/models/create_private_application_stack_package.rb +166 -0
- data/lib/oci/service_catalog/models/create_service_catalog_association_details.rb +182 -0
- data/lib/oci/service_catalog/models/create_service_catalog_details.rb +200 -0
- data/lib/oci/service_catalog/models/error_entity.rb +160 -0
- data/lib/oci/service_catalog/models/operation_status.rb +12 -0
- data/lib/oci/service_catalog/models/operation_type.rb +13 -0
- data/lib/oci/service_catalog/models/package_type_enum.rb +10 -0
- data/lib/oci/service_catalog/models/pricing_type_enum.rb +12 -0
- data/lib/oci/service_catalog/models/private_application.rb +354 -0
- data/lib/oci/service_catalog/models/private_application_collection.rb +150 -0
- data/lib/oci/service_catalog/models/private_application_package.rb +257 -0
- data/lib/oci/service_catalog/models/private_application_package_collection.rb +150 -0
- data/lib/oci/service_catalog/models/private_application_package_summary.rb +241 -0
- data/lib/oci/service_catalog/models/private_application_stack_package.rb +196 -0
- data/lib/oci/service_catalog/models/private_application_summary.rb +268 -0
- data/lib/oci/service_catalog/models/publisher_summary.rb +164 -0
- data/lib/oci/service_catalog/models/service_catalog.rb +280 -0
- data/lib/oci/service_catalog/models/service_catalog_association.rb +206 -0
- data/lib/oci/service_catalog/models/service_catalog_association_collection.rb +150 -0
- data/lib/oci/service_catalog/models/service_catalog_association_summary.rb +206 -0
- data/lib/oci/service_catalog/models/service_catalog_collection.rb +150 -0
- data/lib/oci/service_catalog/models/service_catalog_summary.rb +210 -0
- data/lib/oci/service_catalog/models/update_private_application_details.rb +230 -0
- data/lib/oci/service_catalog/models/update_service_catalog_details.rb +186 -0
- data/lib/oci/service_catalog/models/upload_data.rb +182 -0
- data/lib/oci/service_catalog/models/work_request.rb +305 -0
- data/lib/oci/service_catalog/models/work_request_error.rb +173 -0
- data/lib/oci/service_catalog/models/work_request_error_collection.rb +150 -0
- data/lib/oci/service_catalog/models/work_request_log_entry.rb +160 -0
- data/lib/oci/service_catalog/models/work_request_log_entry_collection.rb +150 -0
- data/lib/oci/service_catalog/models/work_request_resource.rb +222 -0
- data/lib/oci/service_catalog/models/work_request_summary.rb +305 -0
- data/lib/oci/service_catalog/models/work_request_summary_collection.rb +150 -0
- data/lib/oci/service_catalog/service_catalog.rb +61 -0
- data/lib/oci/service_catalog/service_catalog_client.rb +1957 -0
- data/lib/oci/service_catalog/service_catalog_client_composite_operations.rb +342 -0
- data/lib/oci/service_catalog/util.rb +3 -0
- data/lib/oci/version.rb +1 -1
- data/lib/oci/waas/models/access_rule.rb +1 -1
- 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/certificate.rb +36 -4
- data/lib/oci/waas/models/load_balancing_method.rb +3 -3
- data/lib/oci/waas/models/origin.rb +2 -2
- data/lib/oci/waas/redirect_client.rb +1 -1
- data/lib/oci/waas/waas_client.rb +1 -1
- metadata +428 -2
@@ -0,0 +1,150 @@
|
|
1
|
+
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
3
|
+
|
4
|
+
require 'date'
|
5
|
+
|
6
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
7
|
+
module OCI
|
8
|
+
# Results of a workRequest search. Contains both WorkRequest items and other information, such as metadata.
|
9
|
+
class ServiceCatalog::Models::WorkRequestSummaryCollection
|
10
|
+
# **[Required]** List of workRequestSummary objects.
|
11
|
+
# @return [Array<OCI::ServiceCatalog::Models::WorkRequestSummary>]
|
12
|
+
attr_accessor :items
|
13
|
+
|
14
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
15
|
+
def self.attribute_map
|
16
|
+
{
|
17
|
+
# rubocop:disable Style/SymbolLiteral
|
18
|
+
'items': :'items'
|
19
|
+
# rubocop:enable Style/SymbolLiteral
|
20
|
+
}
|
21
|
+
end
|
22
|
+
|
23
|
+
# Attribute type mapping.
|
24
|
+
def self.swagger_types
|
25
|
+
{
|
26
|
+
# rubocop:disable Style/SymbolLiteral
|
27
|
+
'items': :'Array<OCI::ServiceCatalog::Models::WorkRequestSummary>'
|
28
|
+
# rubocop:enable Style/SymbolLiteral
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
33
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
34
|
+
|
35
|
+
|
36
|
+
# Initializes the object
|
37
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
38
|
+
# @option attributes [Array<OCI::ServiceCatalog::Models::WorkRequestSummary>] :items The value to assign to the {#items} property
|
39
|
+
def initialize(attributes = {})
|
40
|
+
return unless attributes.is_a?(Hash)
|
41
|
+
|
42
|
+
# convert string to symbol for hash key
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
44
|
+
|
45
|
+
self.items = attributes[:'items'] if attributes[:'items']
|
46
|
+
end
|
47
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
48
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
49
|
+
|
50
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
51
|
+
|
52
|
+
|
53
|
+
# Checks equality by comparing each attribute.
|
54
|
+
# @param [Object] other the other object to be compared
|
55
|
+
def ==(other)
|
56
|
+
return true if equal?(other)
|
57
|
+
|
58
|
+
self.class == other.class &&
|
59
|
+
items == other.items
|
60
|
+
end
|
61
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
62
|
+
|
63
|
+
# @see the `==` method
|
64
|
+
# @param [Object] other the other object to be compared
|
65
|
+
def eql?(other)
|
66
|
+
self == other
|
67
|
+
end
|
68
|
+
|
69
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
70
|
+
|
71
|
+
|
72
|
+
# Calculates hash code according to all attributes.
|
73
|
+
# @return [Fixnum] Hash code
|
74
|
+
def hash
|
75
|
+
[items].hash
|
76
|
+
end
|
77
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
78
|
+
|
79
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
80
|
+
|
81
|
+
|
82
|
+
# Builds the object from hash
|
83
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
84
|
+
# @return [Object] Returns the model itself
|
85
|
+
def build_from_hash(attributes)
|
86
|
+
return nil unless attributes.is_a?(Hash)
|
87
|
+
|
88
|
+
self.class.swagger_types.each_pair do |key, type|
|
89
|
+
if type =~ /^Array<(.*)>/i
|
90
|
+
# check to ensure the input is an array given that the the attribute
|
91
|
+
# is documented as an array but the input is not
|
92
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
93
|
+
public_method("#{key}=").call(
|
94
|
+
attributes[self.class.attribute_map[key]]
|
95
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
96
|
+
)
|
97
|
+
end
|
98
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
99
|
+
public_method("#{key}=").call(
|
100
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
101
|
+
)
|
102
|
+
end
|
103
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
104
|
+
end
|
105
|
+
|
106
|
+
self
|
107
|
+
end
|
108
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
109
|
+
|
110
|
+
# Returns the string representation of the object
|
111
|
+
# @return [String] String presentation of the object
|
112
|
+
def to_s
|
113
|
+
to_hash.to_s
|
114
|
+
end
|
115
|
+
|
116
|
+
# Returns the object in the form of hash
|
117
|
+
# @return [Hash] Returns the object in the form of hash
|
118
|
+
def to_hash
|
119
|
+
hash = {}
|
120
|
+
self.class.attribute_map.each_pair do |attr, param|
|
121
|
+
value = public_method(attr).call
|
122
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
123
|
+
|
124
|
+
hash[param] = _to_hash(value)
|
125
|
+
end
|
126
|
+
hash
|
127
|
+
end
|
128
|
+
|
129
|
+
private
|
130
|
+
|
131
|
+
# Outputs non-array value in the form of hash
|
132
|
+
# For object, use to_hash. Otherwise, just return the value
|
133
|
+
# @param [Object] value Any valid value
|
134
|
+
# @return [Hash] Returns the value in the form of hash
|
135
|
+
def _to_hash(value)
|
136
|
+
if value.is_a?(Array)
|
137
|
+
value.compact.map { |v| _to_hash(v) }
|
138
|
+
elsif value.is_a?(Hash)
|
139
|
+
{}.tap do |hash|
|
140
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
141
|
+
end
|
142
|
+
elsif value.respond_to? :to_hash
|
143
|
+
value.to_hash
|
144
|
+
else
|
145
|
+
value
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
150
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
3
|
+
|
4
|
+
module OCI
|
5
|
+
module ServiceCatalog
|
6
|
+
# Module containing models for requests made to, and responses received from,
|
7
|
+
# OCI ServiceCatalog services
|
8
|
+
module Models
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
# Require models
|
14
|
+
require 'oci/service_catalog/models/action_type'
|
15
|
+
require 'oci/service_catalog/models/application_collection'
|
16
|
+
require 'oci/service_catalog/models/application_summary'
|
17
|
+
require 'oci/service_catalog/models/bulk_replace_service_catalog_associations_details'
|
18
|
+
require 'oci/service_catalog/models/change_private_application_compartment_details'
|
19
|
+
require 'oci/service_catalog/models/change_service_catalog_compartment_details'
|
20
|
+
require 'oci/service_catalog/models/create_private_application_details'
|
21
|
+
require 'oci/service_catalog/models/create_private_application_package'
|
22
|
+
require 'oci/service_catalog/models/create_private_application_stack_package'
|
23
|
+
require 'oci/service_catalog/models/create_service_catalog_association_details'
|
24
|
+
require 'oci/service_catalog/models/create_service_catalog_details'
|
25
|
+
require 'oci/service_catalog/models/error_entity'
|
26
|
+
require 'oci/service_catalog/models/operation_status'
|
27
|
+
require 'oci/service_catalog/models/operation_type'
|
28
|
+
require 'oci/service_catalog/models/package_type_enum'
|
29
|
+
require 'oci/service_catalog/models/pricing_type_enum'
|
30
|
+
require 'oci/service_catalog/models/private_application'
|
31
|
+
require 'oci/service_catalog/models/private_application_collection'
|
32
|
+
require 'oci/service_catalog/models/private_application_package'
|
33
|
+
require 'oci/service_catalog/models/private_application_package_collection'
|
34
|
+
require 'oci/service_catalog/models/private_application_package_summary'
|
35
|
+
require 'oci/service_catalog/models/private_application_stack_package'
|
36
|
+
require 'oci/service_catalog/models/private_application_summary'
|
37
|
+
require 'oci/service_catalog/models/publisher_summary'
|
38
|
+
require 'oci/service_catalog/models/service_catalog'
|
39
|
+
require 'oci/service_catalog/models/service_catalog_association'
|
40
|
+
require 'oci/service_catalog/models/service_catalog_association_collection'
|
41
|
+
require 'oci/service_catalog/models/service_catalog_association_summary'
|
42
|
+
require 'oci/service_catalog/models/service_catalog_collection'
|
43
|
+
require 'oci/service_catalog/models/service_catalog_summary'
|
44
|
+
require 'oci/service_catalog/models/update_private_application_details'
|
45
|
+
require 'oci/service_catalog/models/update_service_catalog_details'
|
46
|
+
require 'oci/service_catalog/models/upload_data'
|
47
|
+
require 'oci/service_catalog/models/work_request'
|
48
|
+
require 'oci/service_catalog/models/work_request_error'
|
49
|
+
require 'oci/service_catalog/models/work_request_error_collection'
|
50
|
+
require 'oci/service_catalog/models/work_request_log_entry'
|
51
|
+
require 'oci/service_catalog/models/work_request_log_entry_collection'
|
52
|
+
require 'oci/service_catalog/models/work_request_resource'
|
53
|
+
require 'oci/service_catalog/models/work_request_summary'
|
54
|
+
require 'oci/service_catalog/models/work_request_summary_collection'
|
55
|
+
|
56
|
+
# Require generated clients
|
57
|
+
require 'oci/service_catalog/service_catalog_client'
|
58
|
+
require 'oci/service_catalog/service_catalog_client_composite_operations'
|
59
|
+
|
60
|
+
# Require service utilities
|
61
|
+
require 'oci/service_catalog/util'
|
@@ -0,0 +1,1957 @@
|
|
1
|
+
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
3
|
+
|
4
|
+
require 'uri'
|
5
|
+
require 'logger'
|
6
|
+
|
7
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
8
|
+
module OCI
|
9
|
+
# Manage solutions in Oracle Cloud Infrastructure Service Catalog.
|
10
|
+
class ServiceCatalog::ServiceCatalogClient
|
11
|
+
# Client used to make HTTP requests.
|
12
|
+
# @return [OCI::ApiClient]
|
13
|
+
attr_reader :api_client
|
14
|
+
|
15
|
+
# Fully qualified endpoint URL
|
16
|
+
# @return [String]
|
17
|
+
attr_reader :endpoint
|
18
|
+
|
19
|
+
# The default retry configuration to apply to all operations in this service client. This can be overridden
|
20
|
+
# on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
|
21
|
+
# will not perform any retries
|
22
|
+
# @return [OCI::Retry::RetryConfig]
|
23
|
+
attr_reader :retry_config
|
24
|
+
|
25
|
+
# The region, which will usually correspond to a value in {OCI::Regions::REGION_ENUM}.
|
26
|
+
# @return [String]
|
27
|
+
attr_reader :region
|
28
|
+
|
29
|
+
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
|
30
|
+
|
31
|
+
|
32
|
+
# Creates a new ServiceCatalogClient.
|
33
|
+
# Notes:
|
34
|
+
# If a config is not specified, then the global OCI.config will be used.
|
35
|
+
#
|
36
|
+
# This client is not thread-safe
|
37
|
+
#
|
38
|
+
# Either a region or an endpoint must be specified. If an endpoint is specified, it will be used instead of the
|
39
|
+
# region. A region may be specified in the config or via or the region parameter. If specified in both, then the
|
40
|
+
# region parameter will be used.
|
41
|
+
# @param [Config] config A Config object.
|
42
|
+
# @param [String] region A region used to determine the service endpoint. This will usually
|
43
|
+
# correspond to a value in {OCI::Regions::REGION_ENUM}, but may be an arbitrary string.
|
44
|
+
# @param [String] endpoint The fully qualified endpoint URL
|
45
|
+
# @param [OCI::BaseSigner] signer A signer implementation which can be used by this client. If this is not provided then
|
46
|
+
# a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication,
|
47
|
+
# so that the instance principals signer can be provided to the client
|
48
|
+
# @param [OCI::ApiClientProxySettings] proxy_settings If your environment requires you to use a proxy server for outgoing HTTP requests
|
49
|
+
# the details for the proxy can be provided in this parameter
|
50
|
+
# @param [OCI::Retry::RetryConfig] retry_config The retry configuration for this service client. This represents the default retry configuration to
|
51
|
+
# 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
|
52
|
+
# will not perform any retries
|
53
|
+
def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil)
|
54
|
+
# If the signer is an InstancePrincipalsSecurityTokenSigner or SecurityTokenSigner and no config was supplied (they are self-sufficient signers)
|
55
|
+
# then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
|
56
|
+
# and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
|
57
|
+
# pass it to this constructor.
|
58
|
+
#
|
59
|
+
# If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid
|
60
|
+
# so try and load the config from the default file.
|
61
|
+
config = OCI::Config.validate_and_build_config_with_signer(config, signer)
|
62
|
+
|
63
|
+
signer = OCI::Signer.config_file_auth_builder(config) if signer.nil?
|
64
|
+
|
65
|
+
@api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings)
|
66
|
+
@retry_config = retry_config
|
67
|
+
|
68
|
+
if endpoint
|
69
|
+
@endpoint = endpoint + '/20210527'
|
70
|
+
else
|
71
|
+
region ||= config.region
|
72
|
+
region ||= signer.region if signer.respond_to?(:region)
|
73
|
+
self.region = region
|
74
|
+
end
|
75
|
+
logger.info "ServiceCatalogClient endpoint set to '#{@endpoint}'." if logger
|
76
|
+
end
|
77
|
+
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
|
78
|
+
|
79
|
+
# Set the region that will be used to determine the service endpoint.
|
80
|
+
# This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
|
81
|
+
# but may be an arbitrary string.
|
82
|
+
def region=(new_region)
|
83
|
+
@region = new_region
|
84
|
+
|
85
|
+
raise 'A region must be specified.' unless @region
|
86
|
+
|
87
|
+
@endpoint = OCI::Regions.get_service_endpoint_for_template(@region, 'https://service-catalog.{region}.oci.{secondLevelDomain}') + '/20210527'
|
88
|
+
logger.info "ServiceCatalogClient endpoint set to '#{@endpoint} from region #{@region}'." if logger
|
89
|
+
end
|
90
|
+
|
91
|
+
# @return [Logger] The logger for this client. May be nil.
|
92
|
+
def logger
|
93
|
+
@api_client.config.logger
|
94
|
+
end
|
95
|
+
|
96
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
97
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
98
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
99
|
+
|
100
|
+
|
101
|
+
# Replace all associations of a given service catalog in one bulk transaction.
|
102
|
+
# @param [String] service_catalog_id The unique identifier for the service catalog.
|
103
|
+
# @param [OCI::ServiceCatalog::Models::BulkReplaceServiceCatalogAssociationsDetails] bulk_replace_service_catalog_associations_details Details of the service catalog update operation.
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
106
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
107
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to
|
108
|
+
# the value of the etag from a previous GET or POST response for that resource. The resource will be updated or
|
109
|
+
# deleted only if the etag you provide matches the resource's current etag value.
|
110
|
+
#
|
111
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
112
|
+
# please provide the request ID.
|
113
|
+
#
|
114
|
+
# @return [Response] A Response object with data of type nil
|
115
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/bulk_replace_service_catalog_associations.rb.html) to see an example of how to use bulk_replace_service_catalog_associations API.
|
116
|
+
def bulk_replace_service_catalog_associations(service_catalog_id, bulk_replace_service_catalog_associations_details, opts = {})
|
117
|
+
logger.debug 'Calling operation ServiceCatalogClient#bulk_replace_service_catalog_associations.' if logger
|
118
|
+
|
119
|
+
raise "Missing the required parameter 'service_catalog_id' when calling bulk_replace_service_catalog_associations." if service_catalog_id.nil?
|
120
|
+
raise "Missing the required parameter 'bulk_replace_service_catalog_associations_details' when calling bulk_replace_service_catalog_associations." if bulk_replace_service_catalog_associations_details.nil?
|
121
|
+
raise "Parameter value for 'service_catalog_id' must not be blank" if OCI::Internal::Util.blank_string?(service_catalog_id)
|
122
|
+
|
123
|
+
path = '/serviceCatalogs/{serviceCatalogId}/actions/bulkReplaceAssociations'.sub('{serviceCatalogId}', service_catalog_id.to_s)
|
124
|
+
operation_signing_strategy = :standard
|
125
|
+
|
126
|
+
# rubocop:disable Style/NegatedIf
|
127
|
+
# Query Params
|
128
|
+
query_params = {}
|
129
|
+
|
130
|
+
# Header Params
|
131
|
+
header_params = {}
|
132
|
+
header_params[:accept] = 'application/json'
|
133
|
+
header_params[:'content-type'] = 'application/json'
|
134
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
135
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
136
|
+
# rubocop:enable Style/NegatedIf
|
137
|
+
|
138
|
+
post_body = @api_client.object_to_http_body(bulk_replace_service_catalog_associations_details)
|
139
|
+
|
140
|
+
# rubocop:disable Metrics/BlockLength
|
141
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#bulk_replace_service_catalog_associations') do
|
142
|
+
@api_client.call_api(
|
143
|
+
:PUT,
|
144
|
+
path,
|
145
|
+
endpoint,
|
146
|
+
header_params: header_params,
|
147
|
+
query_params: query_params,
|
148
|
+
operation_signing_strategy: operation_signing_strategy,
|
149
|
+
body: post_body
|
150
|
+
)
|
151
|
+
end
|
152
|
+
# rubocop:enable Metrics/BlockLength
|
153
|
+
end
|
154
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
155
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
156
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
157
|
+
|
158
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
159
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
160
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
161
|
+
|
162
|
+
|
163
|
+
# Moves the specified private application from one compartment to another.
|
164
|
+
# @param [String] private_application_id The unique identifier for the private application.
|
165
|
+
# @param [OCI::ServiceCatalog::Models::ChangePrivateApplicationCompartmentDetails] change_private_application_compartment_details The details of the request to change the compartment of a given private application.
|
166
|
+
# @param [Hash] opts the optional parameters
|
167
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
168
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
169
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
170
|
+
# please provide the request ID.
|
171
|
+
#
|
172
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to
|
173
|
+
# the value of the etag from a previous GET or POST response for that resource. The resource will be updated or
|
174
|
+
# deleted only if the etag you provide matches the resource's current etag value.
|
175
|
+
#
|
176
|
+
# @return [Response] A Response object with data of type nil
|
177
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/change_private_application_compartment.rb.html) to see an example of how to use change_private_application_compartment API.
|
178
|
+
def change_private_application_compartment(private_application_id, change_private_application_compartment_details, opts = {})
|
179
|
+
logger.debug 'Calling operation ServiceCatalogClient#change_private_application_compartment.' if logger
|
180
|
+
|
181
|
+
raise "Missing the required parameter 'private_application_id' when calling change_private_application_compartment." if private_application_id.nil?
|
182
|
+
raise "Missing the required parameter 'change_private_application_compartment_details' when calling change_private_application_compartment." if change_private_application_compartment_details.nil?
|
183
|
+
raise "Parameter value for 'private_application_id' must not be blank" if OCI::Internal::Util.blank_string?(private_application_id)
|
184
|
+
|
185
|
+
path = '/privateApplications/{privateApplicationId}/actions/changeCompartment'.sub('{privateApplicationId}', private_application_id.to_s)
|
186
|
+
operation_signing_strategy = :standard
|
187
|
+
|
188
|
+
# rubocop:disable Style/NegatedIf
|
189
|
+
# Query Params
|
190
|
+
query_params = {}
|
191
|
+
|
192
|
+
# Header Params
|
193
|
+
header_params = {}
|
194
|
+
header_params[:accept] = 'application/json'
|
195
|
+
header_params[:'content-type'] = 'application/json'
|
196
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
197
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
198
|
+
# rubocop:enable Style/NegatedIf
|
199
|
+
|
200
|
+
post_body = @api_client.object_to_http_body(change_private_application_compartment_details)
|
201
|
+
|
202
|
+
# rubocop:disable Metrics/BlockLength
|
203
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#change_private_application_compartment') do
|
204
|
+
@api_client.call_api(
|
205
|
+
:POST,
|
206
|
+
path,
|
207
|
+
endpoint,
|
208
|
+
header_params: header_params,
|
209
|
+
query_params: query_params,
|
210
|
+
operation_signing_strategy: operation_signing_strategy,
|
211
|
+
body: post_body
|
212
|
+
)
|
213
|
+
end
|
214
|
+
# rubocop:enable Metrics/BlockLength
|
215
|
+
end
|
216
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
217
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
218
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
219
|
+
|
220
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
221
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
222
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
223
|
+
|
224
|
+
|
225
|
+
# Moves the specified service catalog from one compartment to another.
|
226
|
+
# @param [String] service_catalog_id The unique identifier for the service catalog.
|
227
|
+
# @param [OCI::ServiceCatalog::Models::ChangeServiceCatalogCompartmentDetails] change_service_catalog_compartment_details The details of the request to change the compartment of a given service catalog.
|
228
|
+
# @param [Hash] opts the optional parameters
|
229
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
230
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
231
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
232
|
+
# please provide the request ID.
|
233
|
+
#
|
234
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to
|
235
|
+
# the value of the etag from a previous GET or POST response for that resource. The resource will be updated or
|
236
|
+
# deleted only if the etag you provide matches the resource's current etag value.
|
237
|
+
#
|
238
|
+
# @return [Response] A Response object with data of type nil
|
239
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/change_service_catalog_compartment.rb.html) to see an example of how to use change_service_catalog_compartment API.
|
240
|
+
def change_service_catalog_compartment(service_catalog_id, change_service_catalog_compartment_details, opts = {})
|
241
|
+
logger.debug 'Calling operation ServiceCatalogClient#change_service_catalog_compartment.' if logger
|
242
|
+
|
243
|
+
raise "Missing the required parameter 'service_catalog_id' when calling change_service_catalog_compartment." if service_catalog_id.nil?
|
244
|
+
raise "Missing the required parameter 'change_service_catalog_compartment_details' when calling change_service_catalog_compartment." if change_service_catalog_compartment_details.nil?
|
245
|
+
raise "Parameter value for 'service_catalog_id' must not be blank" if OCI::Internal::Util.blank_string?(service_catalog_id)
|
246
|
+
|
247
|
+
path = '/serviceCatalogs/{serviceCatalogId}/actions/changeCompartment'.sub('{serviceCatalogId}', service_catalog_id.to_s)
|
248
|
+
operation_signing_strategy = :standard
|
249
|
+
|
250
|
+
# rubocop:disable Style/NegatedIf
|
251
|
+
# Query Params
|
252
|
+
query_params = {}
|
253
|
+
|
254
|
+
# Header Params
|
255
|
+
header_params = {}
|
256
|
+
header_params[:accept] = 'application/json'
|
257
|
+
header_params[:'content-type'] = 'application/json'
|
258
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
259
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
260
|
+
# rubocop:enable Style/NegatedIf
|
261
|
+
|
262
|
+
post_body = @api_client.object_to_http_body(change_service_catalog_compartment_details)
|
263
|
+
|
264
|
+
# rubocop:disable Metrics/BlockLength
|
265
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#change_service_catalog_compartment') do
|
266
|
+
@api_client.call_api(
|
267
|
+
:POST,
|
268
|
+
path,
|
269
|
+
endpoint,
|
270
|
+
header_params: header_params,
|
271
|
+
query_params: query_params,
|
272
|
+
operation_signing_strategy: operation_signing_strategy,
|
273
|
+
body: post_body
|
274
|
+
)
|
275
|
+
end
|
276
|
+
# rubocop:enable Metrics/BlockLength
|
277
|
+
end
|
278
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
279
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
280
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
281
|
+
|
282
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
283
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
284
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
285
|
+
|
286
|
+
|
287
|
+
# Creates a private application along with a single package to be hosted.
|
288
|
+
# @param [OCI::ServiceCatalog::Models::CreatePrivateApplicationDetails] create_private_application_details Private application creation details.
|
289
|
+
# @param [Hash] opts the optional parameters
|
290
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
291
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
292
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or server error without
|
293
|
+
# risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before
|
294
|
+
# then due to conflicting operations (for example, if a resource has been deleted and purged from the system,
|
295
|
+
# then a retry of the original creation request might be rejected).
|
296
|
+
#
|
297
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
298
|
+
# please provide the request ID.
|
299
|
+
#
|
300
|
+
# @return [Response] A Response object with data of type {OCI::ServiceCatalog::Models::PrivateApplication PrivateApplication}
|
301
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/create_private_application.rb.html) to see an example of how to use create_private_application API.
|
302
|
+
def create_private_application(create_private_application_details, opts = {})
|
303
|
+
logger.debug 'Calling operation ServiceCatalogClient#create_private_application.' if logger
|
304
|
+
|
305
|
+
raise "Missing the required parameter 'create_private_application_details' when calling create_private_application." if create_private_application_details.nil?
|
306
|
+
|
307
|
+
path = '/privateApplications'
|
308
|
+
operation_signing_strategy = :standard
|
309
|
+
|
310
|
+
# rubocop:disable Style/NegatedIf
|
311
|
+
# Query Params
|
312
|
+
query_params = {}
|
313
|
+
|
314
|
+
# Header Params
|
315
|
+
header_params = {}
|
316
|
+
header_params[:accept] = 'application/json'
|
317
|
+
header_params[:'content-type'] = 'application/json'
|
318
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
319
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
320
|
+
# rubocop:enable Style/NegatedIf
|
321
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
322
|
+
|
323
|
+
post_body = @api_client.object_to_http_body(create_private_application_details)
|
324
|
+
|
325
|
+
# rubocop:disable Metrics/BlockLength
|
326
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#create_private_application') do
|
327
|
+
@api_client.call_api(
|
328
|
+
:POST,
|
329
|
+
path,
|
330
|
+
endpoint,
|
331
|
+
header_params: header_params,
|
332
|
+
query_params: query_params,
|
333
|
+
operation_signing_strategy: operation_signing_strategy,
|
334
|
+
body: post_body,
|
335
|
+
return_type: 'OCI::ServiceCatalog::Models::PrivateApplication'
|
336
|
+
)
|
337
|
+
end
|
338
|
+
# rubocop:enable Metrics/BlockLength
|
339
|
+
end
|
340
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
341
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
342
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
343
|
+
|
344
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
345
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
346
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
347
|
+
|
348
|
+
|
349
|
+
# Creates a brand new service catalog in a given compartment.
|
350
|
+
# @param [OCI::ServiceCatalog::Models::CreateServiceCatalogDetails] create_service_catalog_details The details for creating a service catalog.
|
351
|
+
# @param [Hash] opts the optional parameters
|
352
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
353
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
354
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or server error without
|
355
|
+
# risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before
|
356
|
+
# then due to conflicting operations (for example, if a resource has been deleted and purged from the system,
|
357
|
+
# then a retry of the original creation request might be rejected).
|
358
|
+
#
|
359
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
360
|
+
# please provide the request ID.
|
361
|
+
#
|
362
|
+
# @return [Response] A Response object with data of type {OCI::ServiceCatalog::Models::ServiceCatalog ServiceCatalog}
|
363
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/create_service_catalog.rb.html) to see an example of how to use create_service_catalog API.
|
364
|
+
def create_service_catalog(create_service_catalog_details, opts = {})
|
365
|
+
logger.debug 'Calling operation ServiceCatalogClient#create_service_catalog.' if logger
|
366
|
+
|
367
|
+
raise "Missing the required parameter 'create_service_catalog_details' when calling create_service_catalog." if create_service_catalog_details.nil?
|
368
|
+
|
369
|
+
path = '/serviceCatalogs'
|
370
|
+
operation_signing_strategy = :standard
|
371
|
+
|
372
|
+
# rubocop:disable Style/NegatedIf
|
373
|
+
# Query Params
|
374
|
+
query_params = {}
|
375
|
+
|
376
|
+
# Header Params
|
377
|
+
header_params = {}
|
378
|
+
header_params[:accept] = 'application/json'
|
379
|
+
header_params[:'content-type'] = 'application/json'
|
380
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
381
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
382
|
+
# rubocop:enable Style/NegatedIf
|
383
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
384
|
+
|
385
|
+
post_body = @api_client.object_to_http_body(create_service_catalog_details)
|
386
|
+
|
387
|
+
# rubocop:disable Metrics/BlockLength
|
388
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#create_service_catalog') do
|
389
|
+
@api_client.call_api(
|
390
|
+
:POST,
|
391
|
+
path,
|
392
|
+
endpoint,
|
393
|
+
header_params: header_params,
|
394
|
+
query_params: query_params,
|
395
|
+
operation_signing_strategy: operation_signing_strategy,
|
396
|
+
body: post_body,
|
397
|
+
return_type: 'OCI::ServiceCatalog::Models::ServiceCatalog'
|
398
|
+
)
|
399
|
+
end
|
400
|
+
# rubocop:enable Metrics/BlockLength
|
401
|
+
end
|
402
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
403
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
404
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
405
|
+
|
406
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
407
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
408
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
409
|
+
|
410
|
+
|
411
|
+
# Creates an association between service catalog and a resource.
|
412
|
+
# @param [OCI::ServiceCatalog::Models::CreateServiceCatalogAssociationDetails] create_service_catalog_association_details The details for creating the association between resource and service catalog.
|
413
|
+
# @param [Hash] opts the optional parameters
|
414
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
415
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
416
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or server error without
|
417
|
+
# risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before
|
418
|
+
# then due to conflicting operations (for example, if a resource has been deleted and purged from the system,
|
419
|
+
# then a retry of the original creation request might be rejected).
|
420
|
+
#
|
421
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
422
|
+
# please provide the request ID.
|
423
|
+
#
|
424
|
+
# @return [Response] A Response object with data of type {OCI::ServiceCatalog::Models::ServiceCatalogAssociation ServiceCatalogAssociation}
|
425
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/create_service_catalog_association.rb.html) to see an example of how to use create_service_catalog_association API.
|
426
|
+
def create_service_catalog_association(create_service_catalog_association_details, opts = {})
|
427
|
+
logger.debug 'Calling operation ServiceCatalogClient#create_service_catalog_association.' if logger
|
428
|
+
|
429
|
+
raise "Missing the required parameter 'create_service_catalog_association_details' when calling create_service_catalog_association." if create_service_catalog_association_details.nil?
|
430
|
+
|
431
|
+
path = '/serviceCatalogAssociations'
|
432
|
+
operation_signing_strategy = :standard
|
433
|
+
|
434
|
+
# rubocop:disable Style/NegatedIf
|
435
|
+
# Query Params
|
436
|
+
query_params = {}
|
437
|
+
|
438
|
+
# Header Params
|
439
|
+
header_params = {}
|
440
|
+
header_params[:accept] = 'application/json'
|
441
|
+
header_params[:'content-type'] = 'application/json'
|
442
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
443
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
444
|
+
# rubocop:enable Style/NegatedIf
|
445
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
446
|
+
|
447
|
+
post_body = @api_client.object_to_http_body(create_service_catalog_association_details)
|
448
|
+
|
449
|
+
# rubocop:disable Metrics/BlockLength
|
450
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#create_service_catalog_association') do
|
451
|
+
@api_client.call_api(
|
452
|
+
:POST,
|
453
|
+
path,
|
454
|
+
endpoint,
|
455
|
+
header_params: header_params,
|
456
|
+
query_params: query_params,
|
457
|
+
operation_signing_strategy: operation_signing_strategy,
|
458
|
+
body: post_body,
|
459
|
+
return_type: 'OCI::ServiceCatalog::Models::ServiceCatalogAssociation'
|
460
|
+
)
|
461
|
+
end
|
462
|
+
# rubocop:enable Metrics/BlockLength
|
463
|
+
end
|
464
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
465
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
466
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
467
|
+
|
468
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
469
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
470
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
471
|
+
|
472
|
+
|
473
|
+
# Deletes an existing private application.
|
474
|
+
# @param [String] private_application_id The unique identifier for the private application.
|
475
|
+
# @param [Hash] opts the optional parameters
|
476
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
477
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
478
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to
|
479
|
+
# the value of the etag from a previous GET or POST response for that resource. The resource will be updated or
|
480
|
+
# deleted only if the etag you provide matches the resource's current etag value.
|
481
|
+
#
|
482
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
483
|
+
# please provide the request ID.
|
484
|
+
#
|
485
|
+
# @return [Response] A Response object with data of type nil
|
486
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/delete_private_application.rb.html) to see an example of how to use delete_private_application API.
|
487
|
+
def delete_private_application(private_application_id, opts = {})
|
488
|
+
logger.debug 'Calling operation ServiceCatalogClient#delete_private_application.' if logger
|
489
|
+
|
490
|
+
raise "Missing the required parameter 'private_application_id' when calling delete_private_application." if private_application_id.nil?
|
491
|
+
raise "Parameter value for 'private_application_id' must not be blank" if OCI::Internal::Util.blank_string?(private_application_id)
|
492
|
+
|
493
|
+
path = '/privateApplications/{privateApplicationId}'.sub('{privateApplicationId}', private_application_id.to_s)
|
494
|
+
operation_signing_strategy = :standard
|
495
|
+
|
496
|
+
# rubocop:disable Style/NegatedIf
|
497
|
+
# Query Params
|
498
|
+
query_params = {}
|
499
|
+
|
500
|
+
# Header Params
|
501
|
+
header_params = {}
|
502
|
+
header_params[:accept] = 'application/json'
|
503
|
+
header_params[:'content-type'] = 'application/json'
|
504
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
505
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
506
|
+
# rubocop:enable Style/NegatedIf
|
507
|
+
|
508
|
+
post_body = nil
|
509
|
+
|
510
|
+
# rubocop:disable Metrics/BlockLength
|
511
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#delete_private_application') do
|
512
|
+
@api_client.call_api(
|
513
|
+
:DELETE,
|
514
|
+
path,
|
515
|
+
endpoint,
|
516
|
+
header_params: header_params,
|
517
|
+
query_params: query_params,
|
518
|
+
operation_signing_strategy: operation_signing_strategy,
|
519
|
+
body: post_body
|
520
|
+
)
|
521
|
+
end
|
522
|
+
# rubocop:enable Metrics/BlockLength
|
523
|
+
end
|
524
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
525
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
526
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
527
|
+
|
528
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
529
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
530
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
531
|
+
|
532
|
+
|
533
|
+
# Deletes the specified service catalog from the compartment.
|
534
|
+
# @param [String] service_catalog_id The unique identifier for the service catalog.
|
535
|
+
# @param [Hash] opts the optional parameters
|
536
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
537
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
538
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to
|
539
|
+
# the value of the etag from a previous GET or POST response for that resource. The resource will be updated or
|
540
|
+
# deleted only if the etag you provide matches the resource's current etag value.
|
541
|
+
#
|
542
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
543
|
+
# please provide the request ID.
|
544
|
+
#
|
545
|
+
# @return [Response] A Response object with data of type nil
|
546
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/delete_service_catalog.rb.html) to see an example of how to use delete_service_catalog API.
|
547
|
+
def delete_service_catalog(service_catalog_id, opts = {})
|
548
|
+
logger.debug 'Calling operation ServiceCatalogClient#delete_service_catalog.' if logger
|
549
|
+
|
550
|
+
raise "Missing the required parameter 'service_catalog_id' when calling delete_service_catalog." if service_catalog_id.nil?
|
551
|
+
raise "Parameter value for 'service_catalog_id' must not be blank" if OCI::Internal::Util.blank_string?(service_catalog_id)
|
552
|
+
|
553
|
+
path = '/serviceCatalogs/{serviceCatalogId}'.sub('{serviceCatalogId}', service_catalog_id.to_s)
|
554
|
+
operation_signing_strategy = :standard
|
555
|
+
|
556
|
+
# rubocop:disable Style/NegatedIf
|
557
|
+
# Query Params
|
558
|
+
query_params = {}
|
559
|
+
|
560
|
+
# Header Params
|
561
|
+
header_params = {}
|
562
|
+
header_params[:accept] = 'application/json'
|
563
|
+
header_params[:'content-type'] = 'application/json'
|
564
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
565
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
566
|
+
# rubocop:enable Style/NegatedIf
|
567
|
+
|
568
|
+
post_body = nil
|
569
|
+
|
570
|
+
# rubocop:disable Metrics/BlockLength
|
571
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#delete_service_catalog') do
|
572
|
+
@api_client.call_api(
|
573
|
+
:DELETE,
|
574
|
+
path,
|
575
|
+
endpoint,
|
576
|
+
header_params: header_params,
|
577
|
+
query_params: query_params,
|
578
|
+
operation_signing_strategy: operation_signing_strategy,
|
579
|
+
body: post_body
|
580
|
+
)
|
581
|
+
end
|
582
|
+
# rubocop:enable Metrics/BlockLength
|
583
|
+
end
|
584
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
585
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
586
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
587
|
+
|
588
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
589
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
590
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
591
|
+
|
592
|
+
|
593
|
+
# Removes an association between service catalog and a resource.
|
594
|
+
# @param [String] service_catalog_association_id The unique identifier of the service catalog association.
|
595
|
+
# @param [Hash] opts the optional parameters
|
596
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
597
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
598
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to
|
599
|
+
# the value of the etag from a previous GET or POST response for that resource. The resource will be updated or
|
600
|
+
# deleted only if the etag you provide matches the resource's current etag value.
|
601
|
+
#
|
602
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
603
|
+
# please provide the request ID.
|
604
|
+
#
|
605
|
+
# @return [Response] A Response object with data of type nil
|
606
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/delete_service_catalog_association.rb.html) to see an example of how to use delete_service_catalog_association API.
|
607
|
+
def delete_service_catalog_association(service_catalog_association_id, opts = {})
|
608
|
+
logger.debug 'Calling operation ServiceCatalogClient#delete_service_catalog_association.' if logger
|
609
|
+
|
610
|
+
raise "Missing the required parameter 'service_catalog_association_id' when calling delete_service_catalog_association." if service_catalog_association_id.nil?
|
611
|
+
raise "Parameter value for 'service_catalog_association_id' must not be blank" if OCI::Internal::Util.blank_string?(service_catalog_association_id)
|
612
|
+
|
613
|
+
path = '/serviceCatalogAssociations/{serviceCatalogAssociationId}'.sub('{serviceCatalogAssociationId}', service_catalog_association_id.to_s)
|
614
|
+
operation_signing_strategy = :standard
|
615
|
+
|
616
|
+
# rubocop:disable Style/NegatedIf
|
617
|
+
# Query Params
|
618
|
+
query_params = {}
|
619
|
+
|
620
|
+
# Header Params
|
621
|
+
header_params = {}
|
622
|
+
header_params[:accept] = 'application/json'
|
623
|
+
header_params[:'content-type'] = 'application/json'
|
624
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
625
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
626
|
+
# rubocop:enable Style/NegatedIf
|
627
|
+
|
628
|
+
post_body = nil
|
629
|
+
|
630
|
+
# rubocop:disable Metrics/BlockLength
|
631
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#delete_service_catalog_association') do
|
632
|
+
@api_client.call_api(
|
633
|
+
:DELETE,
|
634
|
+
path,
|
635
|
+
endpoint,
|
636
|
+
header_params: header_params,
|
637
|
+
query_params: query_params,
|
638
|
+
operation_signing_strategy: operation_signing_strategy,
|
639
|
+
body: post_body
|
640
|
+
)
|
641
|
+
end
|
642
|
+
# rubocop:enable Metrics/BlockLength
|
643
|
+
end
|
644
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
645
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
646
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
647
|
+
|
648
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
649
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
650
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
651
|
+
|
652
|
+
|
653
|
+
# Gets the details of the specified private application.
|
654
|
+
# @param [String] private_application_id The unique identifier for the private application.
|
655
|
+
# @param [Hash] opts the optional parameters
|
656
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
657
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
658
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
659
|
+
# please provide the request ID.
|
660
|
+
#
|
661
|
+
# @return [Response] A Response object with data of type {OCI::ServiceCatalog::Models::PrivateApplication PrivateApplication}
|
662
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/get_private_application.rb.html) to see an example of how to use get_private_application API.
|
663
|
+
def get_private_application(private_application_id, opts = {})
|
664
|
+
logger.debug 'Calling operation ServiceCatalogClient#get_private_application.' if logger
|
665
|
+
|
666
|
+
raise "Missing the required parameter 'private_application_id' when calling get_private_application." if private_application_id.nil?
|
667
|
+
raise "Parameter value for 'private_application_id' must not be blank" if OCI::Internal::Util.blank_string?(private_application_id)
|
668
|
+
|
669
|
+
path = '/privateApplications/{privateApplicationId}'.sub('{privateApplicationId}', private_application_id.to_s)
|
670
|
+
operation_signing_strategy = :standard
|
671
|
+
|
672
|
+
# rubocop:disable Style/NegatedIf
|
673
|
+
# Query Params
|
674
|
+
query_params = {}
|
675
|
+
|
676
|
+
# Header Params
|
677
|
+
header_params = {}
|
678
|
+
header_params[:accept] = 'application/json'
|
679
|
+
header_params[:'content-type'] = 'application/json'
|
680
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
681
|
+
# rubocop:enable Style/NegatedIf
|
682
|
+
|
683
|
+
post_body = nil
|
684
|
+
|
685
|
+
# rubocop:disable Metrics/BlockLength
|
686
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#get_private_application') do
|
687
|
+
@api_client.call_api(
|
688
|
+
:GET,
|
689
|
+
path,
|
690
|
+
endpoint,
|
691
|
+
header_params: header_params,
|
692
|
+
query_params: query_params,
|
693
|
+
operation_signing_strategy: operation_signing_strategy,
|
694
|
+
body: post_body,
|
695
|
+
return_type: 'OCI::ServiceCatalog::Models::PrivateApplication'
|
696
|
+
)
|
697
|
+
end
|
698
|
+
# rubocop:enable Metrics/BlockLength
|
699
|
+
end
|
700
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
701
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
702
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
703
|
+
|
704
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
705
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
706
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
707
|
+
|
708
|
+
|
709
|
+
# Downloads the binary payload of the logo image of the private application.
|
710
|
+
# @param [String] private_application_id The unique identifier for the private application.
|
711
|
+
# @param [Hash] opts the optional parameters
|
712
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
713
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
714
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
715
|
+
# please provide the request ID.
|
716
|
+
#
|
717
|
+
# @option opts [String, IO] :response_target Streaming http body into a file (specified by file name or File object) or IO object if the block is not given
|
718
|
+
# @option [Block] &block Streaming http body to the block
|
719
|
+
# @return [Response] A Response object with data of type String if response_target and block are not given, otherwise with nil data
|
720
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/get_private_application_action_download_logo.rb.html) to see an example of how to use get_private_application_action_download_logo API.
|
721
|
+
def get_private_application_action_download_logo(private_application_id, opts = {}, &block)
|
722
|
+
logger.debug 'Calling operation ServiceCatalogClient#get_private_application_action_download_logo.' if logger
|
723
|
+
|
724
|
+
raise "Missing the required parameter 'private_application_id' when calling get_private_application_action_download_logo." if private_application_id.nil?
|
725
|
+
raise "Parameter value for 'private_application_id' must not be blank" if OCI::Internal::Util.blank_string?(private_application_id)
|
726
|
+
|
727
|
+
path = '/privateApplications/{privateApplicationId}/actions/downloadLogo'.sub('{privateApplicationId}', private_application_id.to_s)
|
728
|
+
operation_signing_strategy = :standard
|
729
|
+
|
730
|
+
# rubocop:disable Style/NegatedIf
|
731
|
+
# Query Params
|
732
|
+
query_params = {}
|
733
|
+
|
734
|
+
# Header Params
|
735
|
+
header_params = {}
|
736
|
+
header_params[:accept] = opts[:accept] if opts[:accept]
|
737
|
+
header_params[:accept] ||= 'image/bmp, image/gif, image/jpeg, image/png, image/tiff'
|
738
|
+
header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding]
|
739
|
+
header_params[:'content-type'] = 'application/json'
|
740
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
741
|
+
# rubocop:enable Style/NegatedIf
|
742
|
+
|
743
|
+
post_body = nil
|
744
|
+
|
745
|
+
# rubocop:disable Metrics/BlockLength
|
746
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#get_private_application_action_download_logo') do
|
747
|
+
if !block.nil?
|
748
|
+
@api_client.call_api(
|
749
|
+
:GET,
|
750
|
+
path,
|
751
|
+
endpoint,
|
752
|
+
header_params: header_params,
|
753
|
+
query_params: query_params,
|
754
|
+
operation_signing_strategy: operation_signing_strategy,
|
755
|
+
body: post_body,
|
756
|
+
return_type: 'Stream',
|
757
|
+
&block
|
758
|
+
)
|
759
|
+
elsif opts[:response_target]
|
760
|
+
if opts[:response_target].respond_to? :write
|
761
|
+
@api_client.call_api(
|
762
|
+
:GET,
|
763
|
+
path,
|
764
|
+
endpoint,
|
765
|
+
header_params: header_params,
|
766
|
+
query_params: query_params,
|
767
|
+
operation_signing_strategy: operation_signing_strategy,
|
768
|
+
body: post_body,
|
769
|
+
return_type: 'Stream',
|
770
|
+
&proc { |chunk, _response| opts[:response_target].write(chunk) }
|
771
|
+
)
|
772
|
+
elsif opts[:response_target].is_a?(String)
|
773
|
+
File.open(opts[:response_target], 'wb') do |output|
|
774
|
+
return @api_client.call_api(
|
775
|
+
:GET,
|
776
|
+
path,
|
777
|
+
endpoint,
|
778
|
+
header_params: header_params,
|
779
|
+
query_params: query_params,
|
780
|
+
operation_signing_strategy: operation_signing_strategy,
|
781
|
+
body: post_body,
|
782
|
+
return_type: 'Stream',
|
783
|
+
&proc { |chunk, _response| output.write(chunk) }
|
784
|
+
)
|
785
|
+
end
|
786
|
+
end
|
787
|
+
else
|
788
|
+
@api_client.call_api(
|
789
|
+
:GET,
|
790
|
+
path,
|
791
|
+
endpoint,
|
792
|
+
header_params: header_params,
|
793
|
+
query_params: query_params,
|
794
|
+
operation_signing_strategy: operation_signing_strategy,
|
795
|
+
body: post_body,
|
796
|
+
return_type: 'String'
|
797
|
+
)
|
798
|
+
end
|
799
|
+
end
|
800
|
+
# rubocop:enable Metrics/BlockLength
|
801
|
+
end
|
802
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
803
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
804
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
805
|
+
|
806
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
807
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
808
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
809
|
+
|
810
|
+
|
811
|
+
# Gets the details of a specific package within a given private application.
|
812
|
+
# @param [String] private_application_package_id The unique identifier for the private application package.
|
813
|
+
# @param [Hash] opts the optional parameters
|
814
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
815
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
816
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
817
|
+
# please provide the request ID.
|
818
|
+
#
|
819
|
+
# @return [Response] A Response object with data of type {OCI::ServiceCatalog::Models::PrivateApplicationPackage PrivateApplicationPackage}
|
820
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/get_private_application_package.rb.html) to see an example of how to use get_private_application_package API.
|
821
|
+
def get_private_application_package(private_application_package_id, opts = {})
|
822
|
+
logger.debug 'Calling operation ServiceCatalogClient#get_private_application_package.' if logger
|
823
|
+
|
824
|
+
raise "Missing the required parameter 'private_application_package_id' when calling get_private_application_package." if private_application_package_id.nil?
|
825
|
+
raise "Parameter value for 'private_application_package_id' must not be blank" if OCI::Internal::Util.blank_string?(private_application_package_id)
|
826
|
+
|
827
|
+
path = '/privateApplicationPackages/{privateApplicationPackageId}'.sub('{privateApplicationPackageId}', private_application_package_id.to_s)
|
828
|
+
operation_signing_strategy = :standard
|
829
|
+
|
830
|
+
# rubocop:disable Style/NegatedIf
|
831
|
+
# Query Params
|
832
|
+
query_params = {}
|
833
|
+
|
834
|
+
# Header Params
|
835
|
+
header_params = {}
|
836
|
+
header_params[:accept] = 'application/json'
|
837
|
+
header_params[:'content-type'] = 'application/json'
|
838
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
839
|
+
# rubocop:enable Style/NegatedIf
|
840
|
+
|
841
|
+
post_body = nil
|
842
|
+
|
843
|
+
# rubocop:disable Metrics/BlockLength
|
844
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#get_private_application_package') do
|
845
|
+
@api_client.call_api(
|
846
|
+
:GET,
|
847
|
+
path,
|
848
|
+
endpoint,
|
849
|
+
header_params: header_params,
|
850
|
+
query_params: query_params,
|
851
|
+
operation_signing_strategy: operation_signing_strategy,
|
852
|
+
body: post_body,
|
853
|
+
return_type: 'OCI::ServiceCatalog::Models::PrivateApplicationPackage'
|
854
|
+
)
|
855
|
+
end
|
856
|
+
# rubocop:enable Metrics/BlockLength
|
857
|
+
end
|
858
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
859
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
860
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
861
|
+
|
862
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
863
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
864
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
865
|
+
|
866
|
+
|
867
|
+
# Downloads the configuration that was used to create the private application package.
|
868
|
+
# @param [String] private_application_package_id The unique identifier for the private application package.
|
869
|
+
# @param [Hash] opts the optional parameters
|
870
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
871
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
872
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
873
|
+
# please provide the request ID.
|
874
|
+
#
|
875
|
+
# @option opts [String, IO] :response_target Streaming http body into a file (specified by file name or File object) or IO object if the block is not given
|
876
|
+
# @option [Block] &block Streaming http body to the block
|
877
|
+
# @return [Response] A Response object with data of type String if response_target and block are not given, otherwise with nil data
|
878
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/get_private_application_package_action_download_config.rb.html) to see an example of how to use get_private_application_package_action_download_config API.
|
879
|
+
def get_private_application_package_action_download_config(private_application_package_id, opts = {}, &block)
|
880
|
+
logger.debug 'Calling operation ServiceCatalogClient#get_private_application_package_action_download_config.' if logger
|
881
|
+
|
882
|
+
raise "Missing the required parameter 'private_application_package_id' when calling get_private_application_package_action_download_config." if private_application_package_id.nil?
|
883
|
+
raise "Parameter value for 'private_application_package_id' must not be blank" if OCI::Internal::Util.blank_string?(private_application_package_id)
|
884
|
+
|
885
|
+
path = '/privateApplicationPackages/{privateApplicationPackageId}/actions/downloadConfig'.sub('{privateApplicationPackageId}', private_application_package_id.to_s)
|
886
|
+
operation_signing_strategy = :standard
|
887
|
+
|
888
|
+
# rubocop:disable Style/NegatedIf
|
889
|
+
# Query Params
|
890
|
+
query_params = {}
|
891
|
+
|
892
|
+
# Header Params
|
893
|
+
header_params = {}
|
894
|
+
header_params[:accept] = opts[:accept] if opts[:accept]
|
895
|
+
header_params[:accept] ||= 'application/zip'
|
896
|
+
header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding]
|
897
|
+
header_params[:'content-type'] = 'application/json'
|
898
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
899
|
+
# rubocop:enable Style/NegatedIf
|
900
|
+
|
901
|
+
post_body = nil
|
902
|
+
|
903
|
+
# rubocop:disable Metrics/BlockLength
|
904
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#get_private_application_package_action_download_config') do
|
905
|
+
if !block.nil?
|
906
|
+
@api_client.call_api(
|
907
|
+
:GET,
|
908
|
+
path,
|
909
|
+
endpoint,
|
910
|
+
header_params: header_params,
|
911
|
+
query_params: query_params,
|
912
|
+
operation_signing_strategy: operation_signing_strategy,
|
913
|
+
body: post_body,
|
914
|
+
return_type: 'Stream',
|
915
|
+
&block
|
916
|
+
)
|
917
|
+
elsif opts[:response_target]
|
918
|
+
if opts[:response_target].respond_to? :write
|
919
|
+
@api_client.call_api(
|
920
|
+
:GET,
|
921
|
+
path,
|
922
|
+
endpoint,
|
923
|
+
header_params: header_params,
|
924
|
+
query_params: query_params,
|
925
|
+
operation_signing_strategy: operation_signing_strategy,
|
926
|
+
body: post_body,
|
927
|
+
return_type: 'Stream',
|
928
|
+
&proc { |chunk, _response| opts[:response_target].write(chunk) }
|
929
|
+
)
|
930
|
+
elsif opts[:response_target].is_a?(String)
|
931
|
+
File.open(opts[:response_target], 'wb') do |output|
|
932
|
+
return @api_client.call_api(
|
933
|
+
:GET,
|
934
|
+
path,
|
935
|
+
endpoint,
|
936
|
+
header_params: header_params,
|
937
|
+
query_params: query_params,
|
938
|
+
operation_signing_strategy: operation_signing_strategy,
|
939
|
+
body: post_body,
|
940
|
+
return_type: 'Stream',
|
941
|
+
&proc { |chunk, _response| output.write(chunk) }
|
942
|
+
)
|
943
|
+
end
|
944
|
+
end
|
945
|
+
else
|
946
|
+
@api_client.call_api(
|
947
|
+
:GET,
|
948
|
+
path,
|
949
|
+
endpoint,
|
950
|
+
header_params: header_params,
|
951
|
+
query_params: query_params,
|
952
|
+
operation_signing_strategy: operation_signing_strategy,
|
953
|
+
body: post_body,
|
954
|
+
return_type: 'String'
|
955
|
+
)
|
956
|
+
end
|
957
|
+
end
|
958
|
+
# rubocop:enable Metrics/BlockLength
|
959
|
+
end
|
960
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
961
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
962
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
963
|
+
|
964
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
965
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
966
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
967
|
+
|
968
|
+
|
969
|
+
# Gets detailed information about the service catalog including name, compartmentId
|
970
|
+
# @param [String] service_catalog_id The unique identifier for the service catalog.
|
971
|
+
# @param [Hash] opts the optional parameters
|
972
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
973
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
974
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
975
|
+
# please provide the request ID.
|
976
|
+
#
|
977
|
+
# @return [Response] A Response object with data of type {OCI::ServiceCatalog::Models::ServiceCatalog ServiceCatalog}
|
978
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/get_service_catalog.rb.html) to see an example of how to use get_service_catalog API.
|
979
|
+
def get_service_catalog(service_catalog_id, opts = {})
|
980
|
+
logger.debug 'Calling operation ServiceCatalogClient#get_service_catalog.' if logger
|
981
|
+
|
982
|
+
raise "Missing the required parameter 'service_catalog_id' when calling get_service_catalog." if service_catalog_id.nil?
|
983
|
+
raise "Parameter value for 'service_catalog_id' must not be blank" if OCI::Internal::Util.blank_string?(service_catalog_id)
|
984
|
+
|
985
|
+
path = '/serviceCatalogs/{serviceCatalogId}'.sub('{serviceCatalogId}', service_catalog_id.to_s)
|
986
|
+
operation_signing_strategy = :standard
|
987
|
+
|
988
|
+
# rubocop:disable Style/NegatedIf
|
989
|
+
# Query Params
|
990
|
+
query_params = {}
|
991
|
+
|
992
|
+
# Header Params
|
993
|
+
header_params = {}
|
994
|
+
header_params[:accept] = 'application/json'
|
995
|
+
header_params[:'content-type'] = 'application/json'
|
996
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
997
|
+
# rubocop:enable Style/NegatedIf
|
998
|
+
|
999
|
+
post_body = nil
|
1000
|
+
|
1001
|
+
# rubocop:disable Metrics/BlockLength
|
1002
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#get_service_catalog') do
|
1003
|
+
@api_client.call_api(
|
1004
|
+
:GET,
|
1005
|
+
path,
|
1006
|
+
endpoint,
|
1007
|
+
header_params: header_params,
|
1008
|
+
query_params: query_params,
|
1009
|
+
operation_signing_strategy: operation_signing_strategy,
|
1010
|
+
body: post_body,
|
1011
|
+
return_type: 'OCI::ServiceCatalog::Models::ServiceCatalog'
|
1012
|
+
)
|
1013
|
+
end
|
1014
|
+
# rubocop:enable Metrics/BlockLength
|
1015
|
+
end
|
1016
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1017
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1018
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1019
|
+
|
1020
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1021
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1022
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1023
|
+
|
1024
|
+
|
1025
|
+
# Gets detailed information about specific service catalog association.
|
1026
|
+
# @param [String] service_catalog_association_id The unique identifier of the service catalog association.
|
1027
|
+
# @param [Hash] opts the optional parameters
|
1028
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1029
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1030
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
1031
|
+
# please provide the request ID.
|
1032
|
+
#
|
1033
|
+
# @return [Response] A Response object with data of type {OCI::ServiceCatalog::Models::ServiceCatalogAssociation ServiceCatalogAssociation}
|
1034
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/get_service_catalog_association.rb.html) to see an example of how to use get_service_catalog_association API.
|
1035
|
+
def get_service_catalog_association(service_catalog_association_id, opts = {})
|
1036
|
+
logger.debug 'Calling operation ServiceCatalogClient#get_service_catalog_association.' if logger
|
1037
|
+
|
1038
|
+
raise "Missing the required parameter 'service_catalog_association_id' when calling get_service_catalog_association." if service_catalog_association_id.nil?
|
1039
|
+
raise "Parameter value for 'service_catalog_association_id' must not be blank" if OCI::Internal::Util.blank_string?(service_catalog_association_id)
|
1040
|
+
|
1041
|
+
path = '/serviceCatalogAssociations/{serviceCatalogAssociationId}'.sub('{serviceCatalogAssociationId}', service_catalog_association_id.to_s)
|
1042
|
+
operation_signing_strategy = :standard
|
1043
|
+
|
1044
|
+
# rubocop:disable Style/NegatedIf
|
1045
|
+
# Query Params
|
1046
|
+
query_params = {}
|
1047
|
+
|
1048
|
+
# Header Params
|
1049
|
+
header_params = {}
|
1050
|
+
header_params[:accept] = 'application/json'
|
1051
|
+
header_params[:'content-type'] = 'application/json'
|
1052
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1053
|
+
# rubocop:enable Style/NegatedIf
|
1054
|
+
|
1055
|
+
post_body = nil
|
1056
|
+
|
1057
|
+
# rubocop:disable Metrics/BlockLength
|
1058
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#get_service_catalog_association') do
|
1059
|
+
@api_client.call_api(
|
1060
|
+
:GET,
|
1061
|
+
path,
|
1062
|
+
endpoint,
|
1063
|
+
header_params: header_params,
|
1064
|
+
query_params: query_params,
|
1065
|
+
operation_signing_strategy: operation_signing_strategy,
|
1066
|
+
body: post_body,
|
1067
|
+
return_type: 'OCI::ServiceCatalog::Models::ServiceCatalogAssociation'
|
1068
|
+
)
|
1069
|
+
end
|
1070
|
+
# rubocop:enable Metrics/BlockLength
|
1071
|
+
end
|
1072
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1073
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1074
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1075
|
+
|
1076
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1077
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1078
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1079
|
+
|
1080
|
+
|
1081
|
+
# Gets the status of the work request with the given ID.
|
1082
|
+
# @param [String] work_request_id The ID of the asynchronous request.
|
1083
|
+
# @param [Hash] opts the optional parameters
|
1084
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1085
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1086
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
1087
|
+
# please provide the request ID.
|
1088
|
+
#
|
1089
|
+
# @return [Response] A Response object with data of type {OCI::ServiceCatalog::Models::WorkRequest WorkRequest}
|
1090
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/get_work_request.rb.html) to see an example of how to use get_work_request API.
|
1091
|
+
def get_work_request(work_request_id, opts = {})
|
1092
|
+
logger.debug 'Calling operation ServiceCatalogClient#get_work_request.' if logger
|
1093
|
+
|
1094
|
+
raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil?
|
1095
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
1096
|
+
|
1097
|
+
path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s)
|
1098
|
+
operation_signing_strategy = :standard
|
1099
|
+
|
1100
|
+
# rubocop:disable Style/NegatedIf
|
1101
|
+
# Query Params
|
1102
|
+
query_params = {}
|
1103
|
+
|
1104
|
+
# Header Params
|
1105
|
+
header_params = {}
|
1106
|
+
header_params[:accept] = 'application/json'
|
1107
|
+
header_params[:'content-type'] = 'application/json'
|
1108
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1109
|
+
# rubocop:enable Style/NegatedIf
|
1110
|
+
|
1111
|
+
post_body = nil
|
1112
|
+
|
1113
|
+
# rubocop:disable Metrics/BlockLength
|
1114
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#get_work_request') do
|
1115
|
+
@api_client.call_api(
|
1116
|
+
:GET,
|
1117
|
+
path,
|
1118
|
+
endpoint,
|
1119
|
+
header_params: header_params,
|
1120
|
+
query_params: query_params,
|
1121
|
+
operation_signing_strategy: operation_signing_strategy,
|
1122
|
+
body: post_body,
|
1123
|
+
return_type: 'OCI::ServiceCatalog::Models::WorkRequest'
|
1124
|
+
)
|
1125
|
+
end
|
1126
|
+
# rubocop:enable Metrics/BlockLength
|
1127
|
+
end
|
1128
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1129
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1130
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1131
|
+
|
1132
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1133
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1134
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1135
|
+
|
1136
|
+
|
1137
|
+
# Lists all the applications in a service catalog or a tenancy.
|
1138
|
+
# If no parameter is specified, all catalogs from all compartments in
|
1139
|
+
# the tenancy will be scanned for any type of content.
|
1140
|
+
#
|
1141
|
+
# @param [Hash] opts the optional parameters
|
1142
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1143
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1144
|
+
# @option opts [String] :compartment_id The unique identifier for the compartment.
|
1145
|
+
# @option opts [String] :service_catalog_id The unique identifier for the service catalog.
|
1146
|
+
# @option opts [String] :entity_type The type of the application in the service catalog.
|
1147
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
1148
|
+
# please provide the request ID.
|
1149
|
+
#
|
1150
|
+
# @option opts [Integer] :limit How many records to return. Specify a value greater than zero and less than or equal to 1000. The default is 30.
|
1151
|
+
# (default to 30)
|
1152
|
+
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
1153
|
+
# @option opts [String] :display_name Exact match name filter.
|
1154
|
+
# @option opts [String] :entity_id The unique identifier of the entity associated with service catalog.
|
1155
|
+
# @option opts [Array<String>] :publisher_id Limit results to just this publisher.
|
1156
|
+
# @option opts [Array<String>] :package_type Name of the package type. If multiple package types are provided, then any resource with
|
1157
|
+
# one or more matching package types will be returned.
|
1158
|
+
#
|
1159
|
+
# Allowed values are: STACK
|
1160
|
+
# @option opts [Array<String>] :pricing Name of the pricing type. If multiple pricing types are provided, then any resource with
|
1161
|
+
# one or more matching pricing models will be returned.
|
1162
|
+
#
|
1163
|
+
# Allowed values are: FREE, BYOL, PAYGO
|
1164
|
+
# @option opts [BOOLEAN] :is_featured Indicates whether to show only featured resources. If this is set to `false` or is omitted, then all resources will be returned.
|
1165
|
+
# (default to false)
|
1166
|
+
# @option opts [String] :sort_order The sort order to apply, either `ASC` or `DESC`. Default is `ASC`. (default to ASC)
|
1167
|
+
# Allowed values are: ASC, DESC
|
1168
|
+
# @return [Response] A Response object with data of type {OCI::ServiceCatalog::Models::ApplicationCollection ApplicationCollection}
|
1169
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/list_applications.rb.html) to see an example of how to use list_applications API.
|
1170
|
+
def list_applications(opts = {})
|
1171
|
+
logger.debug 'Calling operation ServiceCatalogClient#list_applications.' if logger
|
1172
|
+
|
1173
|
+
|
1174
|
+
|
1175
|
+
package_type_allowable_values = %w[STACK]
|
1176
|
+
if opts[:package_type] && !opts[:package_type].empty?
|
1177
|
+
opts[:package_type].each do |val_to_check|
|
1178
|
+
unless package_type_allowable_values.include?(val_to_check)
|
1179
|
+
raise 'Invalid value for "package_type", must be one of STACK.'
|
1180
|
+
end
|
1181
|
+
end
|
1182
|
+
end
|
1183
|
+
|
1184
|
+
|
1185
|
+
pricing_allowable_values = %w[FREE BYOL PAYGO]
|
1186
|
+
if opts[:pricing] && !opts[:pricing].empty?
|
1187
|
+
opts[:pricing].each do |val_to_check|
|
1188
|
+
unless pricing_allowable_values.include?(val_to_check)
|
1189
|
+
raise 'Invalid value for "pricing", must be one of FREE, BYOL, PAYGO.'
|
1190
|
+
end
|
1191
|
+
end
|
1192
|
+
end
|
1193
|
+
|
1194
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
1195
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
1196
|
+
end
|
1197
|
+
|
1198
|
+
path = '/applications'
|
1199
|
+
operation_signing_strategy = :standard
|
1200
|
+
|
1201
|
+
# rubocop:disable Style/NegatedIf
|
1202
|
+
# Query Params
|
1203
|
+
query_params = {}
|
1204
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
1205
|
+
query_params[:serviceCatalogId] = opts[:service_catalog_id] if opts[:service_catalog_id]
|
1206
|
+
query_params[:entityType] = opts[:entity_type] if opts[:entity_type]
|
1207
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1208
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1209
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
1210
|
+
query_params[:entityId] = opts[:entity_id] if opts[:entity_id]
|
1211
|
+
query_params[:publisherId] = OCI::ApiClient.build_collection_params(opts[:publisher_id], :multi) if opts[:publisher_id] && !opts[:publisher_id].empty?
|
1212
|
+
query_params[:packageType] = OCI::ApiClient.build_collection_params(opts[:package_type], :multi) if opts[:package_type] && !opts[:package_type].empty?
|
1213
|
+
query_params[:pricing] = OCI::ApiClient.build_collection_params(opts[:pricing], :multi) if opts[:pricing] && !opts[:pricing].empty?
|
1214
|
+
query_params[:isFeatured] = opts[:is_featured] if !opts[:is_featured].nil?
|
1215
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1216
|
+
|
1217
|
+
# Header Params
|
1218
|
+
header_params = {}
|
1219
|
+
header_params[:accept] = 'application/json'
|
1220
|
+
header_params[:'content-type'] = 'application/json'
|
1221
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1222
|
+
# rubocop:enable Style/NegatedIf
|
1223
|
+
|
1224
|
+
post_body = nil
|
1225
|
+
|
1226
|
+
# rubocop:disable Metrics/BlockLength
|
1227
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#list_applications') do
|
1228
|
+
@api_client.call_api(
|
1229
|
+
:GET,
|
1230
|
+
path,
|
1231
|
+
endpoint,
|
1232
|
+
header_params: header_params,
|
1233
|
+
query_params: query_params,
|
1234
|
+
operation_signing_strategy: operation_signing_strategy,
|
1235
|
+
body: post_body,
|
1236
|
+
return_type: 'OCI::ServiceCatalog::Models::ApplicationCollection'
|
1237
|
+
)
|
1238
|
+
end
|
1239
|
+
# rubocop:enable Metrics/BlockLength
|
1240
|
+
end
|
1241
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1242
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1243
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1244
|
+
|
1245
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1246
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1247
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1248
|
+
|
1249
|
+
|
1250
|
+
# Lists the packages in the specified private application.
|
1251
|
+
# @param [String] private_application_id The unique identifier for the private application.
|
1252
|
+
# @param [Hash] opts the optional parameters
|
1253
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1254
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1255
|
+
# @option opts [String] :private_application_package_id The unique identifier for the private application package.
|
1256
|
+
# @option opts [Array<String>] :package_type Name of the package type. If multiple package types are provided, then any resource with
|
1257
|
+
# one or more matching package types will be returned.
|
1258
|
+
#
|
1259
|
+
# Allowed values are: STACK
|
1260
|
+
# @option opts [Integer] :limit How many records to return. Specify a value greater than zero and less than or equal to 1000. The default is 30.
|
1261
|
+
# (default to 30)
|
1262
|
+
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
1263
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
1264
|
+
# please provide the request ID.
|
1265
|
+
#
|
1266
|
+
# @option opts [String] :sort_by The field to use to sort listed results. You can only specify one field to sort by.
|
1267
|
+
# `TIMECREATED` displays results in descending order by default. You can change your
|
1268
|
+
# preference by specifying a different sort order.
|
1269
|
+
# (default to TIMECREATED)
|
1270
|
+
# Allowed values are: TIMECREATED, VERSION
|
1271
|
+
# @option opts [String] :sort_order The sort order to apply, either `ASC` or `DESC`. Default is `ASC`. (default to ASC)
|
1272
|
+
# Allowed values are: ASC, DESC
|
1273
|
+
# @option opts [String] :display_name Exact match name filter.
|
1274
|
+
# @return [Response] A Response object with data of type {OCI::ServiceCatalog::Models::PrivateApplicationPackageCollection PrivateApplicationPackageCollection}
|
1275
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/list_private_application_packages.rb.html) to see an example of how to use list_private_application_packages API.
|
1276
|
+
def list_private_application_packages(private_application_id, opts = {})
|
1277
|
+
logger.debug 'Calling operation ServiceCatalogClient#list_private_application_packages.' if logger
|
1278
|
+
|
1279
|
+
raise "Missing the required parameter 'private_application_id' when calling list_private_application_packages." if private_application_id.nil?
|
1280
|
+
|
1281
|
+
|
1282
|
+
package_type_allowable_values = %w[STACK]
|
1283
|
+
if opts[:package_type] && !opts[:package_type].empty?
|
1284
|
+
opts[:package_type].each do |val_to_check|
|
1285
|
+
unless package_type_allowable_values.include?(val_to_check)
|
1286
|
+
raise 'Invalid value for "package_type", must be one of STACK.'
|
1287
|
+
end
|
1288
|
+
end
|
1289
|
+
end
|
1290
|
+
|
1291
|
+
if opts[:sort_by] && !%w[TIMECREATED VERSION].include?(opts[:sort_by])
|
1292
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, VERSION.'
|
1293
|
+
end
|
1294
|
+
|
1295
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
1296
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
1297
|
+
end
|
1298
|
+
|
1299
|
+
path = '/privateApplicationPackages'
|
1300
|
+
operation_signing_strategy = :standard
|
1301
|
+
|
1302
|
+
# rubocop:disable Style/NegatedIf
|
1303
|
+
# Query Params
|
1304
|
+
query_params = {}
|
1305
|
+
query_params[:privateApplicationId] = private_application_id
|
1306
|
+
query_params[:privateApplicationPackageId] = opts[:private_application_package_id] if opts[:private_application_package_id]
|
1307
|
+
query_params[:packageType] = OCI::ApiClient.build_collection_params(opts[:package_type], :multi) if opts[:package_type] && !opts[:package_type].empty?
|
1308
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1309
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1310
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1311
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1312
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
1313
|
+
|
1314
|
+
# Header Params
|
1315
|
+
header_params = {}
|
1316
|
+
header_params[:accept] = 'application/json'
|
1317
|
+
header_params[:'content-type'] = 'application/json'
|
1318
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1319
|
+
# rubocop:enable Style/NegatedIf
|
1320
|
+
|
1321
|
+
post_body = nil
|
1322
|
+
|
1323
|
+
# rubocop:disable Metrics/BlockLength
|
1324
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#list_private_application_packages') do
|
1325
|
+
@api_client.call_api(
|
1326
|
+
:GET,
|
1327
|
+
path,
|
1328
|
+
endpoint,
|
1329
|
+
header_params: header_params,
|
1330
|
+
query_params: query_params,
|
1331
|
+
operation_signing_strategy: operation_signing_strategy,
|
1332
|
+
body: post_body,
|
1333
|
+
return_type: 'OCI::ServiceCatalog::Models::PrivateApplicationPackageCollection'
|
1334
|
+
)
|
1335
|
+
end
|
1336
|
+
# rubocop:enable Metrics/BlockLength
|
1337
|
+
end
|
1338
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1339
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1340
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1341
|
+
|
1342
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1343
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1344
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1345
|
+
|
1346
|
+
|
1347
|
+
# Lists all the private applications in a given compartment.
|
1348
|
+
# @param [String] compartment_id The unique identifier for the compartment.
|
1349
|
+
# @param [Hash] opts the optional parameters
|
1350
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1351
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1352
|
+
# @option opts [String] :private_application_id The unique identifier for the private application.
|
1353
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
1354
|
+
# please provide the request ID.
|
1355
|
+
#
|
1356
|
+
# @option opts [Integer] :limit How many records to return. Specify a value greater than zero and less than or equal to 1000. The default is 30.
|
1357
|
+
# (default to 30)
|
1358
|
+
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
1359
|
+
# @option opts [String] :sort_by The field to use to sort listed results. You can only specify one field to sort by.
|
1360
|
+
# Default is `TIMECREATED`.
|
1361
|
+
# (default to TIMECREATED)
|
1362
|
+
# Allowed values are: TIMECREATED, LIFECYCLESTATE
|
1363
|
+
# @option opts [String] :sort_order The sort order to apply, either `ASC` or `DESC`. Default is `ASC`. (default to ASC)
|
1364
|
+
# Allowed values are: ASC, DESC
|
1365
|
+
# @option opts [String] :display_name Exact match name filter.
|
1366
|
+
# @return [Response] A Response object with data of type {OCI::ServiceCatalog::Models::PrivateApplicationCollection PrivateApplicationCollection}
|
1367
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/list_private_applications.rb.html) to see an example of how to use list_private_applications API.
|
1368
|
+
def list_private_applications(compartment_id, opts = {})
|
1369
|
+
logger.debug 'Calling operation ServiceCatalogClient#list_private_applications.' if logger
|
1370
|
+
|
1371
|
+
raise "Missing the required parameter 'compartment_id' when calling list_private_applications." if compartment_id.nil?
|
1372
|
+
|
1373
|
+
if opts[:sort_by] && !%w[TIMECREATED LIFECYCLESTATE].include?(opts[:sort_by])
|
1374
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, LIFECYCLESTATE.'
|
1375
|
+
end
|
1376
|
+
|
1377
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
1378
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
1379
|
+
end
|
1380
|
+
|
1381
|
+
path = '/privateApplications'
|
1382
|
+
operation_signing_strategy = :standard
|
1383
|
+
|
1384
|
+
# rubocop:disable Style/NegatedIf
|
1385
|
+
# Query Params
|
1386
|
+
query_params = {}
|
1387
|
+
query_params[:compartmentId] = compartment_id
|
1388
|
+
query_params[:privateApplicationId] = opts[:private_application_id] if opts[:private_application_id]
|
1389
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1390
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1391
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1392
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1393
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
1394
|
+
|
1395
|
+
# Header Params
|
1396
|
+
header_params = {}
|
1397
|
+
header_params[:accept] = 'application/json'
|
1398
|
+
header_params[:'content-type'] = 'application/json'
|
1399
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1400
|
+
# rubocop:enable Style/NegatedIf
|
1401
|
+
|
1402
|
+
post_body = nil
|
1403
|
+
|
1404
|
+
# rubocop:disable Metrics/BlockLength
|
1405
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#list_private_applications') do
|
1406
|
+
@api_client.call_api(
|
1407
|
+
:GET,
|
1408
|
+
path,
|
1409
|
+
endpoint,
|
1410
|
+
header_params: header_params,
|
1411
|
+
query_params: query_params,
|
1412
|
+
operation_signing_strategy: operation_signing_strategy,
|
1413
|
+
body: post_body,
|
1414
|
+
return_type: 'OCI::ServiceCatalog::Models::PrivateApplicationCollection'
|
1415
|
+
)
|
1416
|
+
end
|
1417
|
+
# rubocop:enable Metrics/BlockLength
|
1418
|
+
end
|
1419
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1420
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1421
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1422
|
+
|
1423
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1424
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1425
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1426
|
+
|
1427
|
+
|
1428
|
+
# Lists all the resource associations for a specific service catalog.
|
1429
|
+
# @param [Hash] opts the optional parameters
|
1430
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1431
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1432
|
+
# @option opts [String] :service_catalog_association_id The unique identifier for the service catalog association.
|
1433
|
+
# @option opts [String] :service_catalog_id The unique identifier for the service catalog.
|
1434
|
+
# @option opts [String] :entity_id The unique identifier of the entity associated with service catalog.
|
1435
|
+
# @option opts [String] :entity_type The type of the application in the service catalog.
|
1436
|
+
# @option opts [Integer] :limit How many records to return. Specify a value greater than zero and less than or equal to 1000. The default is 30.
|
1437
|
+
# (default to 30)
|
1438
|
+
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
1439
|
+
# @option opts [String] :sort_order The sort order to apply, either `ASC` or `DESC`. Default is `ASC`. (default to ASC)
|
1440
|
+
# Allowed values are: ASC, DESC
|
1441
|
+
# @option opts [String] :sort_by Default is `TIMECREATED` (default to TIMECREATED)
|
1442
|
+
# Allowed values are: TIMECREATED
|
1443
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
1444
|
+
# please provide the request ID.
|
1445
|
+
#
|
1446
|
+
# @return [Response] A Response object with data of type {OCI::ServiceCatalog::Models::ServiceCatalogAssociationCollection ServiceCatalogAssociationCollection}
|
1447
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/list_service_catalog_associations.rb.html) to see an example of how to use list_service_catalog_associations API.
|
1448
|
+
def list_service_catalog_associations(opts = {})
|
1449
|
+
logger.debug 'Calling operation ServiceCatalogClient#list_service_catalog_associations.' if logger
|
1450
|
+
|
1451
|
+
|
1452
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
1453
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
1454
|
+
end
|
1455
|
+
|
1456
|
+
if opts[:sort_by] && !%w[TIMECREATED].include?(opts[:sort_by])
|
1457
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED.'
|
1458
|
+
end
|
1459
|
+
|
1460
|
+
path = '/serviceCatalogAssociations'
|
1461
|
+
operation_signing_strategy = :standard
|
1462
|
+
|
1463
|
+
# rubocop:disable Style/NegatedIf
|
1464
|
+
# Query Params
|
1465
|
+
query_params = {}
|
1466
|
+
query_params[:serviceCatalogAssociationId] = opts[:service_catalog_association_id] if opts[:service_catalog_association_id]
|
1467
|
+
query_params[:serviceCatalogId] = opts[:service_catalog_id] if opts[:service_catalog_id]
|
1468
|
+
query_params[:entityId] = opts[:entity_id] if opts[:entity_id]
|
1469
|
+
query_params[:entityType] = opts[:entity_type] if opts[:entity_type]
|
1470
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1471
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1472
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1473
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1474
|
+
|
1475
|
+
# Header Params
|
1476
|
+
header_params = {}
|
1477
|
+
header_params[:accept] = 'application/json'
|
1478
|
+
header_params[:'content-type'] = 'application/json'
|
1479
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1480
|
+
# rubocop:enable Style/NegatedIf
|
1481
|
+
|
1482
|
+
post_body = nil
|
1483
|
+
|
1484
|
+
# rubocop:disable Metrics/BlockLength
|
1485
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#list_service_catalog_associations') do
|
1486
|
+
@api_client.call_api(
|
1487
|
+
:GET,
|
1488
|
+
path,
|
1489
|
+
endpoint,
|
1490
|
+
header_params: header_params,
|
1491
|
+
query_params: query_params,
|
1492
|
+
operation_signing_strategy: operation_signing_strategy,
|
1493
|
+
body: post_body,
|
1494
|
+
return_type: 'OCI::ServiceCatalog::Models::ServiceCatalogAssociationCollection'
|
1495
|
+
)
|
1496
|
+
end
|
1497
|
+
# rubocop:enable Metrics/BlockLength
|
1498
|
+
end
|
1499
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1500
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1501
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1502
|
+
|
1503
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1504
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1505
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1506
|
+
|
1507
|
+
|
1508
|
+
# Lists all the service catalogs in the given compartment.
|
1509
|
+
# @param [String] compartment_id The unique identifier for the compartment.
|
1510
|
+
# @param [Hash] opts the optional parameters
|
1511
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1512
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1513
|
+
# @option opts [String] :service_catalog_id The unique identifier for the service catalog.
|
1514
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
1515
|
+
# please provide the request ID.
|
1516
|
+
#
|
1517
|
+
# @option opts [Integer] :limit How many records to return. Specify a value greater than zero and less than or equal to 1000. The default is 30.
|
1518
|
+
# (default to 30)
|
1519
|
+
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
1520
|
+
# @option opts [String] :sort_by Default is `TIMECREATED` (default to TIMECREATED)
|
1521
|
+
# Allowed values are: TIMECREATED
|
1522
|
+
# @option opts [String] :sort_order The sort order to apply, either `ASC` or `DESC`. Default is `ASC`. (default to ASC)
|
1523
|
+
# Allowed values are: ASC, DESC
|
1524
|
+
# @option opts [String] :display_name Exact match name filter.
|
1525
|
+
# @return [Response] A Response object with data of type {OCI::ServiceCatalog::Models::ServiceCatalogCollection ServiceCatalogCollection}
|
1526
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/list_service_catalogs.rb.html) to see an example of how to use list_service_catalogs API.
|
1527
|
+
def list_service_catalogs(compartment_id, opts = {})
|
1528
|
+
logger.debug 'Calling operation ServiceCatalogClient#list_service_catalogs.' if logger
|
1529
|
+
|
1530
|
+
raise "Missing the required parameter 'compartment_id' when calling list_service_catalogs." if compartment_id.nil?
|
1531
|
+
|
1532
|
+
if opts[:sort_by] && !%w[TIMECREATED].include?(opts[:sort_by])
|
1533
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED.'
|
1534
|
+
end
|
1535
|
+
|
1536
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
1537
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
1538
|
+
end
|
1539
|
+
|
1540
|
+
path = '/serviceCatalogs'
|
1541
|
+
operation_signing_strategy = :standard
|
1542
|
+
|
1543
|
+
# rubocop:disable Style/NegatedIf
|
1544
|
+
# Query Params
|
1545
|
+
query_params = {}
|
1546
|
+
query_params[:compartmentId] = compartment_id
|
1547
|
+
query_params[:serviceCatalogId] = opts[:service_catalog_id] if opts[:service_catalog_id]
|
1548
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1549
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1550
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1551
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1552
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
1553
|
+
|
1554
|
+
# Header Params
|
1555
|
+
header_params = {}
|
1556
|
+
header_params[:accept] = 'application/json'
|
1557
|
+
header_params[:'content-type'] = 'application/json'
|
1558
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1559
|
+
# rubocop:enable Style/NegatedIf
|
1560
|
+
|
1561
|
+
post_body = nil
|
1562
|
+
|
1563
|
+
# rubocop:disable Metrics/BlockLength
|
1564
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#list_service_catalogs') do
|
1565
|
+
@api_client.call_api(
|
1566
|
+
:GET,
|
1567
|
+
path,
|
1568
|
+
endpoint,
|
1569
|
+
header_params: header_params,
|
1570
|
+
query_params: query_params,
|
1571
|
+
operation_signing_strategy: operation_signing_strategy,
|
1572
|
+
body: post_body,
|
1573
|
+
return_type: 'OCI::ServiceCatalog::Models::ServiceCatalogCollection'
|
1574
|
+
)
|
1575
|
+
end
|
1576
|
+
# rubocop:enable Metrics/BlockLength
|
1577
|
+
end
|
1578
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1579
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1580
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1581
|
+
|
1582
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1583
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1584
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1585
|
+
|
1586
|
+
|
1587
|
+
# Return a (paginated) list of errors for a given work request.
|
1588
|
+
#
|
1589
|
+
# @param [String] work_request_id The ID of the asynchronous request.
|
1590
|
+
# @param [Hash] opts the optional parameters
|
1591
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1592
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1593
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
1594
|
+
# please provide the request ID.
|
1595
|
+
#
|
1596
|
+
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
1597
|
+
# @option opts [Integer] :limit How many records to return. Specify a value greater than zero and less than or equal to 1000. The default is 30.
|
1598
|
+
# (default to 30)
|
1599
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.
|
1600
|
+
# (default to timeAccepted)
|
1601
|
+
# Allowed values are: timeAccepted
|
1602
|
+
# @option opts [String] :sort_order The sort order to apply, either `ASC` or `DESC`. Default is `ASC`. (default to ASC)
|
1603
|
+
# Allowed values are: ASC, DESC
|
1604
|
+
# @return [Response] A Response object with data of type {OCI::ServiceCatalog::Models::WorkRequestErrorCollection WorkRequestErrorCollection}
|
1605
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/list_work_request_errors.rb.html) to see an example of how to use list_work_request_errors API.
|
1606
|
+
def list_work_request_errors(work_request_id, opts = {})
|
1607
|
+
logger.debug 'Calling operation ServiceCatalogClient#list_work_request_errors.' if logger
|
1608
|
+
|
1609
|
+
raise "Missing the required parameter 'work_request_id' when calling list_work_request_errors." if work_request_id.nil?
|
1610
|
+
|
1611
|
+
if opts[:sort_by] && !%w[timeAccepted].include?(opts[:sort_by])
|
1612
|
+
raise 'Invalid value for "sort_by", must be one of timeAccepted.'
|
1613
|
+
end
|
1614
|
+
|
1615
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
1616
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
1617
|
+
end
|
1618
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
1619
|
+
|
1620
|
+
path = '/workRequests/{workRequestId}/errors'.sub('{workRequestId}', work_request_id.to_s)
|
1621
|
+
operation_signing_strategy = :standard
|
1622
|
+
|
1623
|
+
# rubocop:disable Style/NegatedIf
|
1624
|
+
# Query Params
|
1625
|
+
query_params = {}
|
1626
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1627
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1628
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1629
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1630
|
+
|
1631
|
+
# Header Params
|
1632
|
+
header_params = {}
|
1633
|
+
header_params[:accept] = 'application/json'
|
1634
|
+
header_params[:'content-type'] = 'application/json'
|
1635
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1636
|
+
# rubocop:enable Style/NegatedIf
|
1637
|
+
|
1638
|
+
post_body = nil
|
1639
|
+
|
1640
|
+
# rubocop:disable Metrics/BlockLength
|
1641
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#list_work_request_errors') do
|
1642
|
+
@api_client.call_api(
|
1643
|
+
:GET,
|
1644
|
+
path,
|
1645
|
+
endpoint,
|
1646
|
+
header_params: header_params,
|
1647
|
+
query_params: query_params,
|
1648
|
+
operation_signing_strategy: operation_signing_strategy,
|
1649
|
+
body: post_body,
|
1650
|
+
return_type: 'OCI::ServiceCatalog::Models::WorkRequestErrorCollection'
|
1651
|
+
)
|
1652
|
+
end
|
1653
|
+
# rubocop:enable Metrics/BlockLength
|
1654
|
+
end
|
1655
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1656
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1657
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1658
|
+
|
1659
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1660
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1661
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1662
|
+
|
1663
|
+
|
1664
|
+
# Return a (paginated) list of logs for a given work request.
|
1665
|
+
#
|
1666
|
+
# @param [String] work_request_id The ID of the asynchronous request.
|
1667
|
+
# @param [Hash] opts the optional parameters
|
1668
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1669
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1670
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
1671
|
+
# please provide the request ID.
|
1672
|
+
#
|
1673
|
+
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
1674
|
+
# @option opts [Integer] :limit How many records to return. Specify a value greater than zero and less than or equal to 1000. The default is 30.
|
1675
|
+
# (default to 30)
|
1676
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.
|
1677
|
+
# (default to timeAccepted)
|
1678
|
+
# Allowed values are: timeAccepted
|
1679
|
+
# @option opts [String] :sort_order The sort order to apply, either `ASC` or `DESC`. Default is `ASC`. (default to ASC)
|
1680
|
+
# Allowed values are: ASC, DESC
|
1681
|
+
# @return [Response] A Response object with data of type {OCI::ServiceCatalog::Models::WorkRequestLogEntryCollection WorkRequestLogEntryCollection}
|
1682
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/list_work_request_logs.rb.html) to see an example of how to use list_work_request_logs API.
|
1683
|
+
def list_work_request_logs(work_request_id, opts = {})
|
1684
|
+
logger.debug 'Calling operation ServiceCatalogClient#list_work_request_logs.' if logger
|
1685
|
+
|
1686
|
+
raise "Missing the required parameter 'work_request_id' when calling list_work_request_logs." if work_request_id.nil?
|
1687
|
+
|
1688
|
+
if opts[:sort_by] && !%w[timeAccepted].include?(opts[:sort_by])
|
1689
|
+
raise 'Invalid value for "sort_by", must be one of timeAccepted.'
|
1690
|
+
end
|
1691
|
+
|
1692
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
1693
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
1694
|
+
end
|
1695
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
1696
|
+
|
1697
|
+
path = '/workRequests/{workRequestId}/logs'.sub('{workRequestId}', work_request_id.to_s)
|
1698
|
+
operation_signing_strategy = :standard
|
1699
|
+
|
1700
|
+
# rubocop:disable Style/NegatedIf
|
1701
|
+
# Query Params
|
1702
|
+
query_params = {}
|
1703
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1704
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1705
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1706
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1707
|
+
|
1708
|
+
# Header Params
|
1709
|
+
header_params = {}
|
1710
|
+
header_params[:accept] = 'application/json'
|
1711
|
+
header_params[:'content-type'] = 'application/json'
|
1712
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1713
|
+
# rubocop:enable Style/NegatedIf
|
1714
|
+
|
1715
|
+
post_body = nil
|
1716
|
+
|
1717
|
+
# rubocop:disable Metrics/BlockLength
|
1718
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#list_work_request_logs') do
|
1719
|
+
@api_client.call_api(
|
1720
|
+
:GET,
|
1721
|
+
path,
|
1722
|
+
endpoint,
|
1723
|
+
header_params: header_params,
|
1724
|
+
query_params: query_params,
|
1725
|
+
operation_signing_strategy: operation_signing_strategy,
|
1726
|
+
body: post_body,
|
1727
|
+
return_type: 'OCI::ServiceCatalog::Models::WorkRequestLogEntryCollection'
|
1728
|
+
)
|
1729
|
+
end
|
1730
|
+
# rubocop:enable Metrics/BlockLength
|
1731
|
+
end
|
1732
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1733
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1734
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1735
|
+
|
1736
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1737
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1738
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1739
|
+
|
1740
|
+
|
1741
|
+
# Lists the work requests in a compartment.
|
1742
|
+
#
|
1743
|
+
# @param [Hash] opts the optional parameters
|
1744
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1745
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1746
|
+
# @option opts [String] :compartment_id The unique identifier for the compartment.
|
1747
|
+
# @option opts [String] :work_request_id The ID of the asynchronous work request.
|
1748
|
+
# @option opts [String] :status A filter to return only resources their lifecycleState matches the given OperationStatus.
|
1749
|
+
# @option opts [String] :resource_id The ID of the resource affected by the work request
|
1750
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
1751
|
+
# please provide the request ID.
|
1752
|
+
#
|
1753
|
+
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
1754
|
+
# @option opts [Integer] :limit How many records to return. Specify a value greater than zero and less than or equal to 1000. The default is 30.
|
1755
|
+
# (default to 30)
|
1756
|
+
# @option opts [String] :sort_order The sort order to apply, either `ASC` or `DESC`. Default is `ASC`. (default to ASC)
|
1757
|
+
# Allowed values are: ASC, DESC
|
1758
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.
|
1759
|
+
# (default to timeAccepted)
|
1760
|
+
# Allowed values are: timeAccepted
|
1761
|
+
# @return [Response] A Response object with data of type {OCI::ServiceCatalog::Models::WorkRequestSummaryCollection WorkRequestSummaryCollection}
|
1762
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/list_work_requests.rb.html) to see an example of how to use list_work_requests API.
|
1763
|
+
def list_work_requests(opts = {})
|
1764
|
+
logger.debug 'Calling operation ServiceCatalogClient#list_work_requests.' if logger
|
1765
|
+
|
1766
|
+
|
1767
|
+
if opts[:status] && !OCI::ServiceCatalog::Models::OPERATION_STATUS_ENUM.include?(opts[:status])
|
1768
|
+
raise 'Invalid value for "status", must be one of the values in OCI::ServiceCatalog::Models::OPERATION_STATUS_ENUM.'
|
1769
|
+
end
|
1770
|
+
|
1771
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
1772
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
1773
|
+
end
|
1774
|
+
|
1775
|
+
if opts[:sort_by] && !%w[timeAccepted].include?(opts[:sort_by])
|
1776
|
+
raise 'Invalid value for "sort_by", must be one of timeAccepted.'
|
1777
|
+
end
|
1778
|
+
|
1779
|
+
path = '/workRequests'
|
1780
|
+
operation_signing_strategy = :standard
|
1781
|
+
|
1782
|
+
# rubocop:disable Style/NegatedIf
|
1783
|
+
# Query Params
|
1784
|
+
query_params = {}
|
1785
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
1786
|
+
query_params[:workRequestId] = opts[:work_request_id] if opts[:work_request_id]
|
1787
|
+
query_params[:status] = opts[:status] if opts[:status]
|
1788
|
+
query_params[:resourceId] = opts[:resource_id] if opts[:resource_id]
|
1789
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1790
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1791
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1792
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1793
|
+
|
1794
|
+
# Header Params
|
1795
|
+
header_params = {}
|
1796
|
+
header_params[:accept] = 'application/json'
|
1797
|
+
header_params[:'content-type'] = 'application/json'
|
1798
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1799
|
+
# rubocop:enable Style/NegatedIf
|
1800
|
+
|
1801
|
+
post_body = nil
|
1802
|
+
|
1803
|
+
# rubocop:disable Metrics/BlockLength
|
1804
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#list_work_requests') do
|
1805
|
+
@api_client.call_api(
|
1806
|
+
:GET,
|
1807
|
+
path,
|
1808
|
+
endpoint,
|
1809
|
+
header_params: header_params,
|
1810
|
+
query_params: query_params,
|
1811
|
+
operation_signing_strategy: operation_signing_strategy,
|
1812
|
+
body: post_body,
|
1813
|
+
return_type: 'OCI::ServiceCatalog::Models::WorkRequestSummaryCollection'
|
1814
|
+
)
|
1815
|
+
end
|
1816
|
+
# rubocop:enable Metrics/BlockLength
|
1817
|
+
end
|
1818
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1819
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1820
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1821
|
+
|
1822
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1823
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1824
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1825
|
+
|
1826
|
+
|
1827
|
+
# Updates the details of an existing private application.
|
1828
|
+
# @param [String] private_application_id The unique identifier for the private application.
|
1829
|
+
# @param [OCI::ServiceCatalog::Models::UpdatePrivateApplicationDetails] update_private_application_details The details for updating the private application.
|
1830
|
+
# @param [Hash] opts the optional parameters
|
1831
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1832
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1833
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
1834
|
+
# please provide the request ID.
|
1835
|
+
#
|
1836
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to
|
1837
|
+
# the value of the etag from a previous GET or POST response for that resource. The resource will be updated or
|
1838
|
+
# deleted only if the etag you provide matches the resource's current etag value.
|
1839
|
+
#
|
1840
|
+
# @return [Response] A Response object with data of type {OCI::ServiceCatalog::Models::PrivateApplication PrivateApplication}
|
1841
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/update_private_application.rb.html) to see an example of how to use update_private_application API.
|
1842
|
+
def update_private_application(private_application_id, update_private_application_details, opts = {})
|
1843
|
+
logger.debug 'Calling operation ServiceCatalogClient#update_private_application.' if logger
|
1844
|
+
|
1845
|
+
raise "Missing the required parameter 'private_application_id' when calling update_private_application." if private_application_id.nil?
|
1846
|
+
raise "Missing the required parameter 'update_private_application_details' when calling update_private_application." if update_private_application_details.nil?
|
1847
|
+
raise "Parameter value for 'private_application_id' must not be blank" if OCI::Internal::Util.blank_string?(private_application_id)
|
1848
|
+
|
1849
|
+
path = '/privateApplications/{privateApplicationId}'.sub('{privateApplicationId}', private_application_id.to_s)
|
1850
|
+
operation_signing_strategy = :standard
|
1851
|
+
|
1852
|
+
# rubocop:disable Style/NegatedIf
|
1853
|
+
# Query Params
|
1854
|
+
query_params = {}
|
1855
|
+
|
1856
|
+
# Header Params
|
1857
|
+
header_params = {}
|
1858
|
+
header_params[:accept] = 'application/json'
|
1859
|
+
header_params[:'content-type'] = 'application/json'
|
1860
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1861
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1862
|
+
# rubocop:enable Style/NegatedIf
|
1863
|
+
|
1864
|
+
post_body = @api_client.object_to_http_body(update_private_application_details)
|
1865
|
+
|
1866
|
+
# rubocop:disable Metrics/BlockLength
|
1867
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#update_private_application') do
|
1868
|
+
@api_client.call_api(
|
1869
|
+
:PUT,
|
1870
|
+
path,
|
1871
|
+
endpoint,
|
1872
|
+
header_params: header_params,
|
1873
|
+
query_params: query_params,
|
1874
|
+
operation_signing_strategy: operation_signing_strategy,
|
1875
|
+
body: post_body,
|
1876
|
+
return_type: 'OCI::ServiceCatalog::Models::PrivateApplication'
|
1877
|
+
)
|
1878
|
+
end
|
1879
|
+
# rubocop:enable Metrics/BlockLength
|
1880
|
+
end
|
1881
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1882
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1883
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1884
|
+
|
1885
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1886
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1887
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1888
|
+
|
1889
|
+
|
1890
|
+
# Updates the details of a previously created service catalog.
|
1891
|
+
# @param [String] service_catalog_id The unique identifier for the service catalog.
|
1892
|
+
# @param [OCI::ServiceCatalog::Models::UpdateServiceCatalogDetails] update_service_catalog_details Details to update for a service catalog.
|
1893
|
+
# @param [Hash] opts the optional parameters
|
1894
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1895
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1896
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
|
1897
|
+
# please provide the request ID.
|
1898
|
+
#
|
1899
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to
|
1900
|
+
# the value of the etag from a previous GET or POST response for that resource. The resource will be updated or
|
1901
|
+
# deleted only if the etag you provide matches the resource's current etag value.
|
1902
|
+
#
|
1903
|
+
# @return [Response] A Response object with data of type {OCI::ServiceCatalog::Models::ServiceCatalog ServiceCatalog}
|
1904
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/servicecatalog/update_service_catalog.rb.html) to see an example of how to use update_service_catalog API.
|
1905
|
+
def update_service_catalog(service_catalog_id, update_service_catalog_details, opts = {})
|
1906
|
+
logger.debug 'Calling operation ServiceCatalogClient#update_service_catalog.' if logger
|
1907
|
+
|
1908
|
+
raise "Missing the required parameter 'service_catalog_id' when calling update_service_catalog." if service_catalog_id.nil?
|
1909
|
+
raise "Missing the required parameter 'update_service_catalog_details' when calling update_service_catalog." if update_service_catalog_details.nil?
|
1910
|
+
raise "Parameter value for 'service_catalog_id' must not be blank" if OCI::Internal::Util.blank_string?(service_catalog_id)
|
1911
|
+
|
1912
|
+
path = '/serviceCatalogs/{serviceCatalogId}'.sub('{serviceCatalogId}', service_catalog_id.to_s)
|
1913
|
+
operation_signing_strategy = :standard
|
1914
|
+
|
1915
|
+
# rubocop:disable Style/NegatedIf
|
1916
|
+
# Query Params
|
1917
|
+
query_params = {}
|
1918
|
+
|
1919
|
+
# Header Params
|
1920
|
+
header_params = {}
|
1921
|
+
header_params[:accept] = 'application/json'
|
1922
|
+
header_params[:'content-type'] = 'application/json'
|
1923
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1924
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1925
|
+
# rubocop:enable Style/NegatedIf
|
1926
|
+
|
1927
|
+
post_body = @api_client.object_to_http_body(update_service_catalog_details)
|
1928
|
+
|
1929
|
+
# rubocop:disable Metrics/BlockLength
|
1930
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ServiceCatalogClient#update_service_catalog') do
|
1931
|
+
@api_client.call_api(
|
1932
|
+
:PUT,
|
1933
|
+
path,
|
1934
|
+
endpoint,
|
1935
|
+
header_params: header_params,
|
1936
|
+
query_params: query_params,
|
1937
|
+
operation_signing_strategy: operation_signing_strategy,
|
1938
|
+
body: post_body,
|
1939
|
+
return_type: 'OCI::ServiceCatalog::Models::ServiceCatalog'
|
1940
|
+
)
|
1941
|
+
end
|
1942
|
+
# rubocop:enable Metrics/BlockLength
|
1943
|
+
end
|
1944
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1945
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1946
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1947
|
+
|
1948
|
+
private
|
1949
|
+
|
1950
|
+
def applicable_retry_config(opts = {})
|
1951
|
+
return @retry_config unless opts.key?(:retry_config)
|
1952
|
+
|
1953
|
+
opts[:retry_config]
|
1954
|
+
end
|
1955
|
+
end
|
1956
|
+
end
|
1957
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|