oci 2.14.0 → 2.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -2
- data/lib/oci.rb +5 -0
- data/lib/oci/ai_anomaly_detection/ai_anomaly_detection.rb +76 -0
- data/lib/oci/ai_anomaly_detection/anomaly_detection_client.rb +2054 -0
- data/lib/oci/ai_anomaly_detection/anomaly_detection_client_composite_operations.rb +658 -0
- data/lib/oci/ai_anomaly_detection/models/action_type.rb +14 -0
- data/lib/oci/ai_anomaly_detection/models/ai_private_endpoint.rb +350 -0
- data/lib/oci/ai_anomaly_detection/models/ai_private_endpoint_collection.rb +150 -0
- data/lib/oci/ai_anomaly_detection/models/ai_private_endpoint_summary.rb +312 -0
- data/lib/oci/ai_anomaly_detection/models/anomaly.rb +210 -0
- data/lib/oci/ai_anomaly_detection/models/anomaly_detect_result.rb +154 -0
- data/lib/oci/ai_anomaly_detection/models/change_ai_private_endpoint_compartment_details.rb +154 -0
- data/lib/oci/ai_anomaly_detection/models/change_data_asset_compartment_details.rb +154 -0
- data/lib/oci/ai_anomaly_detection/models/change_model_compartment_details.rb +156 -0
- data/lib/oci/ai_anomaly_detection/models/change_project_compartment_details.rb +156 -0
- data/lib/oci/ai_anomaly_detection/models/create_ai_private_endpoint_details.rb +231 -0
- data/lib/oci/ai_anomaly_detection/models/create_data_asset_details.rb +253 -0
- data/lib/oci/ai_anomaly_detection/models/create_model_details.rb +238 -0
- data/lib/oci/ai_anomaly_detection/models/create_project_details.rb +211 -0
- data/lib/oci/ai_anomaly_detection/models/data_asset.rb +340 -0
- data/lib/oci/ai_anomaly_detection/models/data_asset_collection.rb +150 -0
- data/lib/oci/ai_anomaly_detection/models/data_asset_summary.rb +341 -0
- data/lib/oci/ai_anomaly_detection/models/data_item.rb +160 -0
- data/lib/oci/ai_anomaly_detection/models/data_source_details.rb +193 -0
- data/lib/oci/ai_anomaly_detection/models/data_source_details_atp.rb +302 -0
- data/lib/oci/ai_anomaly_detection/models/data_source_details_influx.rb +214 -0
- data/lib/oci/ai_anomaly_detection/models/data_source_details_object_storage.rb +186 -0
- data/lib/oci/ai_anomaly_detection/models/data_source_type.rb +12 -0
- data/lib/oci/ai_anomaly_detection/models/detect_anomalies_details.rb +202 -0
- data/lib/oci/ai_anomaly_detection/models/detection_result_item.rb +184 -0
- data/lib/oci/ai_anomaly_detection/models/embedded_detect_anomalies_request.rb +192 -0
- data/lib/oci/ai_anomaly_detection/models/influx_details.rb +191 -0
- data/lib/oci/ai_anomaly_detection/models/influx_details_v1v8.rb +176 -0
- data/lib/oci/ai_anomaly_detection/models/influx_details_v2v0.rb +176 -0
- data/lib/oci/ai_anomaly_detection/models/influx_version.rb +11 -0
- data/lib/oci/ai_anomaly_detection/models/inline_detect_anomalies_request.rb +179 -0
- data/lib/oci/ai_anomaly_detection/models/model.rb +358 -0
- data/lib/oci/ai_anomaly_detection/models/model_collection.rb +150 -0
- data/lib/oci/ai_anomaly_detection/models/model_summary.rb +305 -0
- data/lib/oci/ai_anomaly_detection/models/model_training_details.rb +186 -0
- data/lib/oci/ai_anomaly_detection/models/model_training_results.rb +215 -0
- data/lib/oci/ai_anomaly_detection/models/operation_status.rb +16 -0
- data/lib/oci/ai_anomaly_detection/models/operation_type.rb +16 -0
- data/lib/oci/ai_anomaly_detection/models/per_signal_details.rb +267 -0
- data/lib/oci/ai_anomaly_detection/models/project.rb +302 -0
- data/lib/oci/ai_anomaly_detection/models/project_collection.rb +150 -0
- data/lib/oci/ai_anomaly_detection/models/project_summary.rb +279 -0
- data/lib/oci/ai_anomaly_detection/models/row_reduction_details.rb +205 -0
- data/lib/oci/ai_anomaly_detection/models/sort_order.rb +11 -0
- data/lib/oci/ai_anomaly_detection/models/update_ai_private_endpoint_details.rb +202 -0
- data/lib/oci/ai_anomaly_detection/models/update_data_asset_details.rb +196 -0
- data/lib/oci/ai_anomaly_detection/models/update_model_details.rb +196 -0
- data/lib/oci/ai_anomaly_detection/models/update_project_details.rb +196 -0
- data/lib/oci/ai_anomaly_detection/models/work_request.rb +312 -0
- data/lib/oci/ai_anomaly_detection/models/work_request_error.rb +173 -0
- data/lib/oci/ai_anomaly_detection/models/work_request_error_collection.rb +150 -0
- data/lib/oci/ai_anomaly_detection/models/work_request_log_entry.rb +160 -0
- data/lib/oci/ai_anomaly_detection/models/work_request_log_entry_collection.rb +150 -0
- data/lib/oci/ai_anomaly_detection/models/work_request_resource.rb +219 -0
- data/lib/oci/ai_anomaly_detection/models/work_request_summary.rb +312 -0
- data/lib/oci/ai_anomaly_detection/models/work_request_summary_collection.rb +150 -0
- data/lib/oci/ai_anomaly_detection/util.rb +3 -0
- data/lib/oci/api_client.rb +4 -4
- data/lib/oci/application_migration/application_migration.rb +2 -0
- data/lib/oci/application_migration/models/authorization_details.rb +2 -1
- data/lib/oci/application_migration/models/import_manifest.rb +208 -0
- data/lib/oci/application_migration/models/import_source_details.rb +192 -0
- data/lib/oci/application_migration/models/source_details.rb +2 -0
- data/lib/oci/application_migration/models/source_summary.rb +1 -0
- data/lib/oci/application_migration/models/source_types.rb +2 -1
- data/lib/oci/artifacts/artifacts.rb +15 -0
- data/lib/oci/artifacts/artifacts_client.rb +1104 -147
- data/lib/oci/artifacts/artifacts_client_composite_operations.rb +211 -0
- data/lib/oci/artifacts/models/change_repository_compartment_details.rb +155 -0
- data/lib/oci/artifacts/models/container_repository.rb +18 -4
- data/lib/oci/artifacts/models/container_repository_summary.rb +18 -4
- data/lib/oci/artifacts/models/create_generic_repository_details.rb +169 -0
- data/lib/oci/artifacts/models/create_repository_details.rb +259 -0
- data/lib/oci/artifacts/models/generic_artifact.rb +337 -0
- data/lib/oci/artifacts/models/generic_artifact_collection.rb +150 -0
- data/lib/oci/artifacts/models/generic_artifact_summary.rb +316 -0
- data/lib/oci/artifacts/models/generic_repository.rb +181 -0
- data/lib/oci/artifacts/models/generic_repository_summary.rb +181 -0
- data/lib/oci/artifacts/models/repository.rb +338 -0
- data/lib/oci/{usage_api/models/schedule_report_collection.rb → artifacts/models/repository_collection.rb} +6 -6
- data/lib/oci/artifacts/models/repository_summary.rb +299 -0
- data/lib/oci/artifacts/models/update_generic_artifact_by_path_details.rb +176 -0
- data/lib/oci/artifacts/models/update_generic_artifact_details.rb +176 -0
- data/lib/oci/artifacts/models/update_generic_repository_details.rb +161 -0
- data/lib/oci/artifacts/models/update_repository_details.rb +230 -0
- data/lib/oci/bastion/bastion.rb +48 -0
- data/lib/oci/bastion/bastion_client.rb +1041 -0
- data/lib/oci/bastion/bastion_client_composite_operations.rb +311 -0
- data/lib/oci/bastion/models/action_type.rb +14 -0
- data/lib/oci/bastion/models/bastion.rb +434 -0
- data/lib/oci/bastion/models/bastion_lifecycle_state.rb +15 -0
- data/lib/oci/bastion/models/bastion_summary.rb +348 -0
- data/lib/oci/bastion/models/change_bastion_compartment_details.rb +154 -0
- data/lib/oci/bastion/models/create_bastion_details.rb +283 -0
- data/lib/oci/bastion/models/create_managed_ssh_session_target_resource_details.rb +194 -0
- data/lib/oci/bastion/models/create_port_forwarding_session_target_resource_details.rb +180 -0
- data/lib/oci/bastion/models/create_session_details.rb +238 -0
- data/lib/oci/bastion/models/create_session_target_resource_details.rb +198 -0
- data/lib/oci/bastion/models/managed_ssh_session_target_resource_details.rb +208 -0
- data/lib/oci/bastion/models/operation_status.rb +15 -0
- data/lib/oci/bastion/models/operation_type.rb +14 -0
- data/lib/oci/bastion/models/port_forwarding_session_target_resource_details.rb +194 -0
- data/lib/oci/bastion/models/public_key_details.rb +154 -0
- data/lib/oci/bastion/models/session.rb +393 -0
- data/lib/oci/bastion/models/session_lifecycle_state.rb +14 -0
- data/lib/oci/bastion/models/session_summary.rb +303 -0
- data/lib/oci/bastion/models/session_type.rb +11 -0
- data/lib/oci/bastion/models/sort_order.rb +11 -0
- data/lib/oci/bastion/models/target_resource_details.rb +205 -0
- data/lib/oci/bastion/models/update_bastion_details.rb +215 -0
- data/lib/oci/bastion/models/update_session_details.rb +154 -0
- data/lib/oci/bastion/models/work_request.rb +309 -0
- data/lib/oci/bastion/models/work_request_error.rb +173 -0
- data/lib/oci/bastion/models/work_request_log_entry.rb +160 -0
- data/lib/oci/bastion/models/work_request_resource.rb +219 -0
- data/lib/oci/bastion/models/work_request_summary.rb +309 -0
- data/lib/oci/bastion/util.rb +3 -0
- data/lib/oci/bds/bds_client.rb +70 -77
- data/lib/oci/bds/bds_client_composite_operations.rb +21 -21
- data/lib/oci/bds/models/add_auto_scaling_configuration_details.rb +5 -5
- data/lib/oci/bds/models/add_block_storage_details.rb +4 -4
- data/lib/oci/bds/models/add_cloud_sql_details.rb +4 -5
- data/lib/oci/bds/models/add_worker_nodes_details.rb +3 -3
- data/lib/oci/bds/models/auto_scale_policy.rb +3 -3
- data/lib/oci/bds/models/auto_scale_policy_metric_rule.rb +2 -2
- data/lib/oci/bds/models/auto_scale_policy_rule.rb +2 -2
- data/lib/oci/bds/models/auto_scaling_configuration.rb +7 -8
- data/lib/oci/bds/models/auto_scaling_configuration_summary.rb +7 -8
- data/lib/oci/bds/models/bds_instance.rb +17 -16
- data/lib/oci/bds/models/bds_instance_summary.rb +14 -14
- data/lib/oci/bds/models/change_bds_instance_compartment_details.rb +2 -2
- data/lib/oci/bds/models/change_shape_details.rb +1 -1
- data/lib/oci/bds/models/change_shape_nodes.rb +2 -2
- data/lib/oci/bds/models/cloud_sql_details.rb +3 -3
- data/lib/oci/bds/models/cluster_details.rb +26 -13
- data/lib/oci/bds/models/create_bds_instance_details.rb +11 -11
- data/lib/oci/bds/models/create_node_details.rb +6 -6
- data/lib/oci/bds/models/kerberos_details.rb +2 -2
- data/lib/oci/bds/models/metric_threshold_rule.rb +4 -4
- data/lib/oci/bds/models/network_config.rb +1 -1
- data/lib/oci/bds/models/node.rb +15 -15
- data/lib/oci/bds/models/remove_auto_scaling_configuration_details.rb +2 -2
- data/lib/oci/bds/models/remove_cloud_sql_details.rb +2 -2
- data/lib/oci/bds/models/restart_node_details.rb +2 -2
- data/lib/oci/bds/models/update_auto_scaling_configuration_details.rb +4 -4
- data/lib/oci/bds/models/update_bds_instance_details.rb +5 -5
- data/lib/oci/bds/models/work_request.rb +9 -14
- data/lib/oci/bds/models/work_request_error.rb +2 -3
- data/lib/oci/bds/models/work_request_log_entry.rb +1 -1
- data/lib/oci/bds/models/work_request_resource.rb +2 -5
- data/lib/oci/container_engine/container_engine.rb +2 -0
- data/lib/oci/container_engine/container_engine_client.rb +118 -0
- data/lib/oci/container_engine/container_engine_client_composite_operations.rb +50 -0
- data/lib/oci/container_engine/models/cluster_migrate_to_native_vcn_details.rb +169 -0
- data/lib/oci/container_engine/models/cluster_migrate_to_native_vcn_status.rb +187 -0
- data/lib/oci/container_engine/models/create_node_pool_node_config_details.rb +16 -1
- data/lib/oci/container_engine/models/node_pool_node_config_details.rb +16 -1
- data/lib/oci/container_engine/models/update_node_pool_node_config_details.rb +16 -1
- data/lib/oci/container_engine/models/work_request.rb +1 -0
- data/lib/oci/container_engine/models/work_request_operation_type.rb +1 -0
- data/lib/oci/container_engine/models/work_request_summary.rb +1 -0
- data/lib/oci/core/blockstorage_client.rb +70 -1
- data/lib/oci/core/blockstorage_client_composite_operations.rb +41 -0
- data/lib/oci/core/compute_client.rb +63 -0
- data/lib/oci/core/compute_client_composite_operations.rb +40 -0
- data/lib/oci/core/core.rb +4 -0
- data/lib/oci/core/models/attach_boot_volume_details.rb +35 -4
- data/lib/oci/core/models/attach_i_scsi_volume_details.rb +35 -4
- data/lib/oci/core/models/block_volume_replica.rb +1 -1
- data/lib/oci/core/models/boot_volume_attachment.rb +41 -4
- data/lib/oci/core/models/boot_volume_replica.rb +1 -1
- data/lib/oci/core/models/copy_volume_group_backup_details.rb +196 -0
- data/lib/oci/core/models/create_boot_volume_details.rb +1 -1
- data/lib/oci/core/models/create_dhcp_details.rb +32 -4
- data/lib/oci/core/models/create_vlan_details.rb +11 -3
- data/lib/oci/core/models/create_volume_details.rb +1 -1
- data/lib/oci/core/models/dhcp_options.rb +38 -4
- data/lib/oci/core/models/emulated_volume_attachment.rb +12 -4
- data/lib/oci/core/models/encryption_in_transit_type.rb +11 -0
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +64 -4
- data/lib/oci/core/models/image.rb +18 -1
- data/lib/oci/core/models/instance_agent_features.rb +2 -2
- data/lib/oci/core/models/instance_configuration_instance_source_via_image_details.rb +1 -1
- data/lib/oci/core/models/instance_source_via_image_details.rb +1 -1
- data/lib/oci/core/models/launch_instance_availability_config_details.rb +2 -2
- data/lib/oci/core/models/multipath_device.rb +180 -0
- data/lib/oci/core/models/paravirtualized_volume_attachment.rb +12 -4
- data/lib/oci/core/models/update_dhcp_details.rb +32 -4
- data/lib/oci/core/models/update_instance_availability_config_details.rb +1 -1
- data/lib/oci/core/models/update_volume_attachment_details.rb +174 -0
- data/lib/oci/core/models/vlan.rb +2 -1
- data/lib/oci/core/models/volume_attachment.rb +58 -4
- data/lib/oci/core/virtual_network_client.rb +7 -5
- data/lib/oci/data_catalog/data_catalog.rb +11 -0
- data/lib/oci/data_catalog/data_catalog_client.rb +599 -7
- data/lib/oci/data_catalog/data_catalog_client_composite_operations.rb +188 -0
- data/lib/oci/data_catalog/models/attribute.rb +43 -1
- data/lib/oci/data_catalog/models/attribute_summary.rb +33 -4
- data/lib/oci/data_catalog/models/change_metastore_compartment_details.rb +154 -0
- data/lib/oci/data_catalog/models/create_custom_property_details.rb +17 -1
- data/lib/oci/data_catalog/models/create_job_definition_details.rb +2 -1
- data/lib/oci/data_catalog/models/create_job_execution_details.rb +2 -1
- data/lib/oci/data_catalog/models/create_metastore_details.rb +232 -0
- 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 +63 -4
- data/lib/oci/data_catalog/models/custom_property_type_usage.rb +20 -4
- data/lib/oci/data_catalog/models/data_asset.rb +16 -1
- data/lib/oci/data_catalog/models/data_asset_export_scope.rb +172 -0
- data/lib/oci/data_catalog/models/data_asset_import_export_type_filter.rb +11 -0
- data/lib/oci/data_catalog/models/entity.rb +30 -1
- data/lib/oci/data_catalog/models/export_data_asset_details.rb +154 -0
- data/lib/oci/data_catalog/models/folder.rb +44 -1
- data/lib/oci/data_catalog/models/folder_summary.rb +15 -1
- data/lib/oci/data_catalog/models/import_data_asset_details.rb +154 -0
- data/lib/oci/data_catalog/models/import_data_asset_job_result.rb +235 -0
- data/lib/oci/data_catalog/models/job.rb +1 -0
- data/lib/oci/data_catalog/models/job_definition.rb +1 -0
- data/lib/oci/data_catalog/models/job_definition_summary.rb +1 -0
- data/lib/oci/data_catalog/models/job_execution.rb +1 -0
- data/lib/oci/data_catalog/models/job_execution_summary.rb +1 -0
- data/lib/oci/data_catalog/models/job_summary.rb +1 -0
- data/lib/oci/data_catalog/models/job_type.rb +2 -1
- data/lib/oci/data_catalog/models/metastore.rb +325 -0
- data/lib/oci/data_catalog/models/metastore_summary.rb +292 -0
- data/lib/oci/data_catalog/models/object_relationship.rb +233 -0
- data/lib/oci/data_catalog/models/search_result.rb +15 -1
- data/lib/oci/data_catalog/models/type_custom_property_details.rb +20 -4
- data/lib/oci/data_catalog/models/update_custom_property_details.rb +17 -1
- data/lib/oci/data_catalog/models/update_metastore_details.rb +186 -0
- data/lib/oci/data_flow/data_flow_client.rb +3 -0
- data/lib/oci/data_flow/models/application.rb +16 -1
- data/lib/oci/data_flow/models/application_summary.rb +16 -1
- data/lib/oci/data_flow/models/create_application_details.rb +16 -1
- data/lib/oci/data_flow/models/create_run_details.rb +17 -1
- 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_integration/data_integration.rb +52 -0
- data/lib/oci/data_integration/data_integration_client.rb +766 -24
- data/lib/oci/data_integration/models/abstract_format_attribute.rb +19 -4
- data/lib/oci/data_integration/models/abstract_read_attribute.rb +3 -0
- data/lib/oci/data_integration/models/abstract_write_attribute.rb +7 -0
- data/lib/oci/data_integration/models/auth_details.rb +213 -0
- data/lib/oci/data_integration/models/avro_format_attribute.rb +5 -1
- data/lib/oci/data_integration/models/bicc_read_attributes.rb +237 -0
- data/lib/oci/data_integration/models/config_parameter_value.rb +18 -4
- data/lib/oci/data_integration/models/connection.rb +4 -0
- data/lib/oci/data_integration/models/connection_details.rb +5 -1
- data/lib/oci/data_integration/models/connection_from_amazon_s3.rb +226 -0
- data/lib/oci/data_integration/models/connection_from_amazon_s3_details.rb +222 -0
- data/lib/oci/data_integration/models/connection_from_bicc.rb +236 -0
- data/lib/oci/data_integration/models/connection_from_bicc_details.rb +232 -0
- data/lib/oci/data_integration/models/connection_summary.rb +4 -0
- data/lib/oci/data_integration/models/connection_summary_from_amazon_s3.rb +227 -0
- data/lib/oci/data_integration/models/connection_summary_from_bicc.rb +223 -0
- data/lib/oci/data_integration/models/connector_attribute.rb +182 -0
- data/lib/oci/data_integration/models/create_connection_details.rb +5 -1
- data/lib/oci/data_integration/models/create_connection_from_amazon_s3.rb +210 -0
- data/lib/oci/data_integration/models/create_connection_from_bicc.rb +220 -0
- data/lib/oci/data_integration/models/create_data_asset_details.rb +5 -1
- data/lib/oci/data_integration/models/create_data_asset_from_adwc.rb +57 -1
- data/lib/oci/data_integration/models/create_data_asset_from_amazon_s3.rb +207 -0
- data/lib/oci/data_integration/models/create_data_asset_from_atp.rb +57 -1
- data/lib/oci/data_integration/models/create_data_asset_from_fusion_app.rb +211 -0
- data/lib/oci/data_integration/models/create_schedule_details.rb +272 -0
- data/lib/oci/data_integration/models/create_task_details.rb +7 -1
- data/lib/oci/data_integration/models/create_task_from_oci_dataflow_task.rb +213 -0
- data/lib/oci/data_integration/models/create_task_from_rest_task.rb +348 -0
- data/lib/oci/data_integration/models/create_task_from_sql_task.rb +246 -0
- data/lib/oci/data_integration/models/create_task_run_details.rb +15 -1
- data/lib/oci/data_integration/models/create_task_schedule_details.rb +476 -0
- data/lib/oci/data_integration/models/csv_format_attribute.rb +5 -15
- data/lib/oci/data_integration/models/data_asset.rb +4 -0
- data/lib/oci/data_integration/models/data_asset_from_amazon_s3.rb +223 -0
- data/lib/oci/data_integration/models/data_asset_from_fusion_app.rb +227 -0
- data/lib/oci/data_integration/models/data_asset_summary.rb +4 -0
- data/lib/oci/data_integration/models/data_asset_summary_from_amazon_s3.rb +219 -0
- data/lib/oci/data_integration/models/data_asset_summary_from_fusion_app.rb +223 -0
- data/lib/oci/data_integration/models/data_entity.rb +2 -0
- data/lib/oci/data_integration/models/data_entity_details.rb +3 -1
- data/lib/oci/data_integration/models/data_entity_from_data_store.rb +454 -0
- data/lib/oci/data_integration/models/data_entity_from_data_store_entity_details.rb +443 -0
- data/lib/oci/data_integration/models/data_entity_summary.rb +2 -0
- data/lib/oci/data_integration/models/data_entity_summary_from_data_store.rb +454 -0
- data/lib/oci/{usage_api/models/create_schedule_report_details.rb → data_integration/models/dataflow_application.rb} +20 -33
- data/lib/oci/data_integration/models/dependent_object_summary.rb +17 -4
- data/lib/oci/data_integration/models/enriched_entity.rb +31 -4
- data/lib/oci/data_integration/models/expression_operator.rb +250 -0
- data/lib/oci/data_integration/models/external_storage.rb +221 -0
- data/lib/oci/data_integration/models/json_format_attribute.rb +5 -1
- data/lib/oci/data_integration/models/lookup.rb +274 -0
- data/lib/oci/data_integration/models/native_shape_field.rb +3 -3
- data/lib/oci/data_integration/models/object_metadata.rb +17 -4
- data/lib/oci/data_integration/models/object_storage_write_attribute.rb +162 -0
- data/lib/oci/data_integration/models/object_storage_write_attributes.rb +164 -0
- data/lib/oci/data_integration/models/operator.rb +4 -1
- data/lib/oci/data_integration/models/oracle_adwc_write_attributes.rb +22 -12
- data/lib/oci/data_integration/models/oracle_atp_write_attributes.rb +22 -12
- data/lib/oci/data_integration/models/oracle_read_attributes.rb +13 -2
- data/lib/oci/data_integration/models/oracle_write_attributes.rb +13 -2
- data/lib/oci/data_integration/models/parameter.rb +4 -3
- data/lib/oci/data_integration/models/parent_reference.rb +18 -4
- data/lib/oci/data_integration/models/parquet_format_attribute.rb +162 -0
- data/lib/oci/data_integration/models/patch_change_summary.rb +3 -0
- data/lib/oci/data_integration/models/patch_object_metadata.rb +3 -0
- data/lib/oci/data_integration/models/published_object.rb +3 -0
- data/lib/oci/data_integration/models/published_object_summary.rb +3 -0
- data/lib/oci/data_integration/models/schedule_summary.rb +295 -0
- data/lib/oci/data_integration/models/schedule_summary_collection.rb +150 -0
- data/lib/oci/data_integration/models/script.rb +202 -0
- data/lib/oci/data_integration/models/shape_field.rb +3 -3
- data/lib/oci/data_integration/models/task.rb +23 -4
- data/lib/oci/data_integration/models/task_from_data_loader_task_details.rb +5 -1
- data/lib/oci/data_integration/models/task_from_integration_task_details.rb +5 -1
- data/lib/oci/data_integration/models/task_from_oci_dataflow_task_details.rb +225 -0
- data/lib/oci/data_integration/models/task_from_pipeline_task_details.rb +5 -1
- data/lib/oci/data_integration/models/task_from_rest_task_details.rb +379 -0
- data/lib/oci/data_integration/models/task_from_sql_task_details.rb +265 -0
- data/lib/oci/data_integration/models/task_operator.rb +3 -0
- data/lib/oci/data_integration/models/task_run.rb +62 -1
- data/lib/oci/data_integration/models/task_run_details.rb +3 -0
- data/lib/oci/data_integration/models/task_run_summary.rb +3 -0
- data/lib/oci/data_integration/models/task_schedule_summary.rb +532 -0
- data/lib/oci/data_integration/models/task_schedule_summary_collection.rb +150 -0
- data/lib/oci/data_integration/models/task_summary.rb +6 -0
- data/lib/oci/data_integration/models/task_summary_from_oci_dataflow_task.rb +221 -0
- data/lib/oci/data_integration/models/task_summary_from_rest_task.rb +356 -0
- data/lib/oci/data_integration/models/task_summary_from_sql_task.rb +254 -0
- data/lib/oci/data_integration/models/update_connection_details.rb +5 -1
- data/lib/oci/data_integration/models/update_connection_from_amazon_s3.rb +214 -0
- data/lib/oci/data_integration/models/update_connection_from_bicc.rb +224 -0
- data/lib/oci/data_integration/models/update_data_asset_details.rb +5 -1
- data/lib/oci/data_integration/models/update_data_asset_from_adwc.rb +57 -1
- data/lib/oci/data_integration/models/update_data_asset_from_amazon_s3.rb +198 -0
- data/lib/oci/data_integration/models/update_data_asset_from_atp.rb +57 -1
- data/lib/oci/data_integration/models/update_data_asset_from_fusion_app.rb +202 -0
- data/lib/oci/data_integration/models/update_schedule_details.rb +299 -0
- data/lib/oci/data_integration/models/update_task_details.rb +7 -1
- data/lib/oci/data_integration/models/update_task_from_oci_dataflow_task.rb +217 -0
- data/lib/oci/data_integration/models/update_task_from_rest_task.rb +366 -0
- data/lib/oci/data_integration/models/update_task_from_sql_task.rb +250 -0
- data/lib/oci/data_integration/models/update_task_run_details.rb +15 -1
- data/lib/oci/data_integration/models/update_task_schedule_details.rb +490 -0
- data/lib/oci/data_safe/data_safe.rb +18 -0
- data/lib/oci/data_safe/data_safe_client.rb +731 -17
- data/lib/oci/data_safe/data_safe_client_composite_operations.rb +247 -0
- data/lib/oci/{usage_api/models/update_schedule_report_details.rb → data_safe/models/activate_target_database_details.rb} +10 -14
- data/lib/oci/data_safe/models/autonomous_database_details.rb +166 -0
- data/lib/oci/data_safe/models/change_target_database_compartment_details.rb +154 -0
- data/lib/oci/data_safe/models/connection_option.rb +194 -0
- data/lib/oci/data_safe/models/create_target_database_details.rb +261 -0
- data/lib/oci/data_safe/models/credentials.rb +164 -0
- data/lib/oci/data_safe/models/data_safe_private_endpoint.rb +20 -4
- data/lib/oci/data_safe/models/data_safe_private_endpoint_summary.rb +54 -4
- data/lib/oci/data_safe/models/database_cloud_service_details.rb +194 -0
- data/lib/oci/data_safe/models/database_details.rb +231 -0
- data/lib/oci/data_safe/models/database_type.rb +12 -0
- data/lib/oci/data_safe/models/infrastructure_type.rb +13 -0
- data/lib/oci/data_safe/models/installed_database_details.rb +209 -0
- data/lib/oci/data_safe/models/on_prem_connector.rb +17 -1
- data/lib/oci/data_safe/models/on_prem_connector_summary.rb +17 -1
- data/lib/oci/data_safe/models/on_premise_connector.rb +162 -0
- data/lib/oci/data_safe/models/private_endpoint.rb +163 -0
- data/lib/oci/data_safe/models/service_list.rb +4 -0
- data/lib/oci/data_safe/models/target_database.rb +369 -0
- data/lib/oci/data_safe/models/target_database_lifecycle_state.rb +17 -0
- data/lib/oci/data_safe/models/target_database_summary.rb +359 -0
- data/lib/oci/data_safe/models/tls_config.rb +244 -0
- data/lib/oci/data_safe/models/update_target_database_details.rb +246 -0
- data/lib/oci/data_safe/models/work_request.rb +6 -0
- data/lib/oci/data_safe/models/work_request_summary.rb +6 -0
- data/lib/oci/data_science/data_science.rb +3 -0
- data/lib/oci/data_science/data_science_client.rb +16 -9
- data/lib/oci/data_science/data_science_client_composite_operations.rb +4 -4
- data/lib/oci/data_science/models/create_model_details.rb +60 -4
- data/lib/oci/data_science/models/create_model_provenance_details.rb +18 -4
- data/lib/oci/data_science/models/metadata.rb +197 -0
- data/lib/oci/data_science/models/model.rb +60 -4
- data/lib/oci/data_science/models/model_deployment.rb +1 -1
- data/lib/oci/data_science/models/model_provenance.rb +18 -4
- data/lib/oci/data_science/models/notebook_session_configuration_details.rb +17 -4
- data/lib/oci/data_science/models/notebook_session_shape_config_details.rb +169 -0
- data/lib/oci/data_science/models/notebook_session_shape_series.rb +13 -0
- data/lib/oci/data_science/models/notebook_session_shape_summary.rb +41 -4
- data/lib/oci/data_science/models/update_model_details.rb +32 -4
- data/lib/oci/data_science/models/update_model_provenance_details.rb +18 -4
- data/lib/oci/database/database.rb +17 -0
- data/lib/oci/database/database_client.rb +1228 -46
- data/lib/oci/database/database_client_composite_operations.rb +416 -0
- data/lib/oci/database/models/autonomous_container_database_dataguard_association.rb +2 -2
- data/lib/oci/database/models/autonomous_database.rb +213 -6
- data/lib/oci/database/models/autonomous_database_backup.rb +32 -4
- data/lib/oci/database/models/autonomous_database_backup_summary.rb +32 -4
- data/lib/oci/database/models/autonomous_database_dataguard_association.rb +2 -2
- data/lib/oci/{usage_api/models/schedule_report.rb → database/models/autonomous_database_key_history_entry.rb} +24 -36
- data/lib/oci/database/models/autonomous_database_standby_summary.rb +19 -4
- data/lib/oci/database/models/autonomous_database_summary.rb +213 -6
- data/lib/oci/database/models/cloud_exadata_infrastructure.rb +21 -4
- data/lib/oci/database/models/cloud_exadata_infrastructure_summary.rb +21 -4
- data/lib/oci/database/models/configure_autonomous_database_vault_key_details.rb +182 -0
- data/lib/oci/database/models/create_autonomous_database_base.rb +118 -7
- data/lib/oci/database/models/create_autonomous_database_clone_details.rb +21 -1
- data/lib/oci/database/models/create_autonomous_database_details.rb +24 -4
- data/lib/oci/database/models/create_autonomous_database_from_backup_details.rb +21 -1
- data/lib/oci/database/models/create_autonomous_database_from_backup_timestamp_details.rb +21 -1
- data/lib/oci/database/models/create_cloud_exadata_infrastructure_details.rb +18 -4
- data/lib/oci/database/models/create_cross_region_autonomous_database_data_guard_details.rb +283 -0
- data/lib/oci/database/models/create_database_software_image_details.rb +18 -4
- data/lib/oci/database/models/create_db_home_base.rb +18 -4
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +5 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +5 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_database_details.rb +5 -1
- data/lib/oci/database/models/create_db_home_with_vm_cluster_id_details.rb +5 -1
- data/lib/oci/database/models/create_db_home_with_vm_cluster_id_from_backup_details.rb +5 -1
- data/lib/oci/database/models/create_exadata_infrastructure_details.rb +29 -1
- data/lib/oci/database/models/create_pluggable_database_details.rb +233 -0
- data/lib/oci/database/models/create_refreshable_autonomous_database_clone_details.rb +21 -1
- data/lib/oci/database/models/customer_contact.rb +2 -2
- data/lib/oci/database/models/db_home_from_agent_resource_id.rb +380 -0
- data/lib/oci/database/models/db_node.rb +69 -1
- data/lib/oci/database/models/db_node_summary.rb +69 -1
- data/lib/oci/database/models/db_system_shape_summary.rb +72 -2
- data/lib/oci/database/models/exadata_infrastructure.rb +57 -1
- data/lib/oci/database/models/exadata_infrastructure_summary.rb +57 -1
- data/lib/oci/database/models/local_clone_pluggable_database_details.rb +185 -0
- data/lib/oci/database/models/maintenance_run.rb +4 -1
- data/lib/oci/database/models/maintenance_run_summary.rb +4 -1
- data/lib/oci/database/models/pluggable_database.rb +358 -0
- data/lib/oci/database/models/pluggable_database_connection_strings.rb +183 -0
- data/lib/oci/database/models/pluggable_database_summary.rb +361 -0
- data/lib/oci/database/models/remote_clone_pluggable_database_details.rb +213 -0
- data/lib/oci/database/models/scan_details.rb +1 -1
- data/lib/oci/database/models/update_autonomous_database_details.rb +64 -5
- data/lib/oci/database/models/update_cloud_exadata_infrastructure_details.rb +18 -4
- data/lib/oci/database/models/update_data_guard_association_details.rb +237 -0
- data/lib/oci/database/models/update_exadata_infrastructure_details.rb +15 -1
- data/lib/oci/database/models/update_external_macs_connector_details.rb +2 -1
- data/lib/oci/database/models/update_maintenance_run_details.rb +4 -1
- data/lib/oci/database/models/update_pluggable_database_details.rb +177 -0
- data/lib/oci/database/models/update_vm_cluster_details.rb +14 -1
- data/lib/oci/database/models/vm_cluster.rb +15 -2
- data/lib/oci/database/models/vm_cluster_summary.rb +15 -2
- data/lib/oci/database/models/vm_cluster_update.rb +346 -0
- data/lib/oci/database/models/vm_cluster_update_details.rb +183 -0
- data/lib/oci/database/models/vm_cluster_update_history_entry.rb +308 -0
- data/lib/oci/database/models/vm_cluster_update_history_entry_summary.rb +311 -0
- data/lib/oci/database/models/vm_cluster_update_summary.rb +349 -0
- data/lib/oci/database_management/database_management.rb +25 -0
- data/lib/oci/database_management/db_management_client.rb +1467 -97
- data/lib/oci/database_management/models/awr_db_collection.rb +175 -0
- data/lib/oci/database_management/models/awr_db_cpu_usage_collection.rb +217 -0
- data/lib/oci/database_management/models/awr_db_cpu_usage_summary.rb +164 -0
- data/lib/oci/database_management/models/awr_db_metric_collection.rb +175 -0
- data/lib/oci/database_management/models/awr_db_metric_summary.rb +202 -0
- data/lib/oci/database_management/models/awr_db_parameter_change_collection.rb +175 -0
- data/lib/oci/database_management/models/awr_db_parameter_change_summary.rb +255 -0
- data/lib/oci/database_management/models/awr_db_parameter_collection.rb +175 -0
- data/lib/oci/database_management/models/awr_db_parameter_summary.rb +238 -0
- data/lib/oci/database_management/models/awr_db_report.rb +205 -0
- data/lib/oci/database_management/models/awr_db_snapshot_collection.rb +175 -0
- data/lib/oci/database_management/models/awr_db_snapshot_range_collection.rb +175 -0
- data/lib/oci/database_management/models/awr_db_snapshot_range_summary.rb +331 -0
- data/lib/oci/database_management/models/awr_db_snapshot_summary.rb +244 -0
- data/lib/oci/database_management/models/awr_db_sql_report.rb +204 -0
- data/lib/oci/database_management/models/awr_db_summary.rb +334 -0
- data/lib/oci/database_management/models/awr_db_sysstat_collection.rb +175 -0
- data/lib/oci/database_management/models/awr_db_sysstat_summary.rb +216 -0
- data/lib/oci/database_management/models/awr_db_top_wait_event_collection.rb +175 -0
- data/lib/oci/database_management/models/awr_db_top_wait_event_summary.rb +178 -0
- data/lib/oci/database_management/models/awr_db_wait_event_bucket_collection.rb +189 -0
- data/lib/oci/database_management/models/awr_db_wait_event_bucket_summary.rb +160 -0
- data/lib/oci/database_management/models/awr_db_wait_event_collection.rb +175 -0
- data/lib/oci/database_management/models/awr_db_wait_event_summary.rb +223 -0
- data/lib/oci/database_management/models/awr_query_result.rb +254 -0
- data/lib/oci/devops/devops.rb +177 -0
- data/lib/oci/devops/devops_client.rb +2344 -0
- data/lib/oci/devops/devops_client_composite_operations.rb +974 -0
- data/lib/oci/devops/models/absolute_wait_criteria.rb +162 -0
- data/lib/oci/devops/models/absolute_wait_criteria_summary.rb +162 -0
- data/lib/oci/devops/models/action_type.rb +15 -0
- data/lib/oci/devops/models/approval_action.rb +184 -0
- data/lib/oci/devops/models/approval_policy.rb +189 -0
- data/lib/oci/devops/models/approve_deployment_details.rb +187 -0
- data/lib/oci/devops/models/automated_deploy_stage_rollback_policy.rb +145 -0
- data/lib/oci/devops/models/backend_set_ip_collection.rb +150 -0
- data/lib/oci/devops/models/cancel_deployment_details.rb +150 -0
- data/lib/oci/devops/models/change_project_compartment_details.rb +154 -0
- data/lib/oci/devops/models/compute_instance_group_blue_green_deploy_stage_execution_progress.rb +173 -0
- data/lib/oci/devops/models/compute_instance_group_blue_green_traffic_shift_deploy_stage_execution_progress.rb +173 -0
- data/lib/oci/devops/models/compute_instance_group_by_ids_selector.rb +162 -0
- data/lib/oci/devops/models/compute_instance_group_by_query_selector.rb +168 -0
- data/lib/oci/devops/models/compute_instance_group_canary_approval_deploy_stage_execution_progress.rb +189 -0
- data/lib/oci/devops/models/compute_instance_group_canary_deploy_stage_execution_progress.rb +173 -0
- data/lib/oci/devops/models/compute_instance_group_canary_traffic_shift_deploy_stage_execution_progress.rb +173 -0
- data/lib/oci/devops/models/compute_instance_group_deploy_environment.rb +210 -0
- data/lib/oci/devops/models/compute_instance_group_deploy_environment_summary.rb +210 -0
- data/lib/oci/devops/models/compute_instance_group_deploy_stage.rb +299 -0
- data/lib/oci/devops/models/compute_instance_group_deploy_stage_execution_progress.rb +173 -0
- data/lib/oci/devops/models/compute_instance_group_deploy_stage_summary.rb +299 -0
- data/lib/oci/devops/models/compute_instance_group_failure_policy.rb +191 -0
- data/lib/oci/devops/models/compute_instance_group_failure_policy_by_count.rb +162 -0
- data/lib/oci/devops/models/compute_instance_group_failure_policy_by_percentage.rb +162 -0
- data/lib/oci/devops/models/compute_instance_group_linear_rollout_policy_by_count.rb +166 -0
- data/lib/oci/devops/models/compute_instance_group_linear_rollout_policy_by_percentage.rb +166 -0
- data/lib/oci/devops/models/compute_instance_group_rollout_policy.rb +207 -0
- data/lib/oci/devops/models/compute_instance_group_selector.rb +191 -0
- data/lib/oci/devops/models/compute_instance_group_selector_collection.rb +150 -0
- data/lib/oci/devops/models/count_based_approval_policy.rb +164 -0
- data/lib/oci/devops/models/create_compute_instance_group_deploy_environment_details.rb +182 -0
- data/lib/oci/devops/models/create_compute_instance_group_deploy_stage_details.rb +267 -0
- data/lib/oci/devops/models/create_deploy_artifact_details.rb +248 -0
- data/lib/oci/devops/models/create_deploy_environment_details.rb +238 -0
- data/lib/oci/devops/models/create_deploy_pipeline_deployment_details.rb +190 -0
- data/lib/oci/devops/models/create_deploy_pipeline_details.rb +219 -0
- data/lib/oci/devops/models/create_deploy_pipeline_redeployment_details.rb +178 -0
- data/lib/oci/devops/models/create_deploy_stage_details.rb +256 -0
- data/lib/oci/devops/models/create_deployment_details.rb +228 -0
- data/lib/oci/devops/models/create_function_deploy_environment_details.rb +182 -0
- data/lib/oci/devops/models/create_function_deploy_stage_details.rb +238 -0
- data/lib/oci/devops/models/create_invoke_function_deploy_stage_details.rb +228 -0
- data/lib/oci/devops/models/create_load_balancer_traffic_shift_deploy_stage_details.rb +255 -0
- data/lib/oci/devops/models/create_manual_approval_deploy_stage_details.rb +186 -0
- data/lib/oci/devops/models/create_oke_cluster_deploy_environment_details.rb +182 -0
- data/lib/oci/devops/models/create_oke_deploy_stage_details.rb +224 -0
- data/lib/oci/devops/models/create_project_details.rb +216 -0
- data/lib/oci/devops/models/create_single_deploy_stage_deployment_details.rb +204 -0
- data/lib/oci/devops/models/create_wait_deploy_stage_details.rb +186 -0
- data/lib/oci/devops/models/deploy_artifact.rb +407 -0
- data/lib/oci/devops/models/deploy_artifact_collection.rb +150 -0
- data/lib/oci/devops/models/deploy_artifact_override_argument.rb +174 -0
- data/lib/oci/devops/models/deploy_artifact_override_argument_collection.rb +150 -0
- data/lib/oci/devops/models/deploy_artifact_source.rb +193 -0
- data/lib/oci/devops/models/deploy_artifact_summary.rb +342 -0
- data/lib/oci/devops/models/deploy_environment.rb +376 -0
- data/lib/oci/devops/models/deploy_environment_collection.rb +150 -0
- data/lib/oci/devops/models/deploy_environment_summary.rb +332 -0
- data/lib/oci/devops/models/deploy_pipeline.rb +365 -0
- data/lib/oci/{usage_api/models/saved_schedule_report.rb → devops/models/deploy_pipeline_artifact.rb} +27 -39
- data/lib/oci/devops/models/deploy_pipeline_artifact_collection.rb +150 -0
- data/lib/oci/devops/models/deploy_pipeline_collection.rb +150 -0
- data/lib/oci/devops/models/deploy_pipeline_deployment.rb +213 -0
- data/lib/oci/devops/models/deploy_pipeline_deployment_summary.rb +201 -0
- data/lib/oci/devops/models/deploy_pipeline_environment.rb +182 -0
- data/lib/oci/devops/models/deploy_pipeline_environment_collection.rb +150 -0
- data/lib/oci/devops/models/deploy_pipeline_parameter.rb +174 -0
- data/lib/oci/devops/models/deploy_pipeline_parameter_collection.rb +150 -0
- data/lib/oci/devops/models/deploy_pipeline_redeployment.rb +230 -0
- data/lib/oci/devops/models/deploy_pipeline_redeployment_summary.rb +218 -0
- data/lib/oci/devops/models/deploy_pipeline_stage.rb +168 -0
- data/lib/oci/devops/models/deploy_pipeline_stage_collection.rb +150 -0
- data/lib/oci/devops/models/deploy_pipeline_summary.rb +299 -0
- data/lib/oci/devops/models/deploy_stage.rb +411 -0
- data/lib/oci/devops/models/deploy_stage_collection.rb +150 -0
- data/lib/oci/devops/models/deploy_stage_execution_progress.rb +303 -0
- data/lib/oci/devops/models/deploy_stage_execution_progress_details.rb +192 -0
- data/lib/oci/devops/models/deploy_stage_execution_step.rb +211 -0
- data/lib/oci/{usage_api/models/schedule_report_summary.rb → devops/models/deploy_stage_predecessor.rb} +7 -20
- data/lib/oci/devops/models/deploy_stage_predecessor_collection.rb +150 -0
- data/lib/oci/devops/models/deploy_stage_rollback_policy.rb +191 -0
- data/lib/oci/devops/models/deploy_stage_summary.rb +363 -0
- data/lib/oci/devops/models/deployment.rb +445 -0
- data/lib/oci/devops/models/deployment_argument.rb +160 -0
- data/lib/oci/devops/models/deployment_argument_collection.rb +150 -0
- data/lib/oci/devops/models/deployment_collection.rb +150 -0
- data/lib/oci/devops/models/deployment_execution_progress.rb +182 -0
- data/lib/oci/devops/models/deployment_summary.rb +363 -0
- data/lib/oci/devops/models/function_deploy_environment.rb +210 -0
- data/lib/oci/devops/models/function_deploy_environment_summary.rb +210 -0
- data/lib/oci/devops/models/function_deploy_stage.rb +270 -0
- data/lib/oci/devops/models/function_deploy_stage_execution_progress.rb +173 -0
- data/lib/oci/devops/models/function_deploy_stage_summary.rb +270 -0
- data/lib/oci/devops/models/generic_deploy_artifact_source.rb +190 -0
- data/lib/oci/devops/models/inline_deploy_artifact_source.rb +162 -0
- data/lib/oci/devops/models/invoke_function_deploy_stage.rb +260 -0
- data/lib/oci/devops/models/invoke_function_deploy_stage_execution_progress.rb +173 -0
- data/lib/oci/devops/models/invoke_function_deploy_stage_summary.rb +260 -0
- data/lib/oci/devops/models/load_balancer_config.rb +184 -0
- data/lib/oci/devops/models/load_balancer_traffic_shift_deploy_stage.rb +308 -0
- data/lib/oci/devops/models/load_balancer_traffic_shift_deploy_stage_execution_progress.rb +173 -0
- data/lib/oci/devops/models/load_balancer_traffic_shift_deploy_stage_summary.rb +287 -0
- data/lib/oci/devops/models/load_balancer_traffic_shift_rollout_policy.rb +184 -0
- data/lib/oci/devops/models/manual_approval_deploy_stage.rb +218 -0
- data/lib/oci/devops/models/manual_approval_deploy_stage_execution_progress.rb +189 -0
- data/lib/oci/devops/models/manual_approval_deploy_stage_summary.rb +218 -0
- data/lib/oci/devops/models/no_deploy_stage_rollback_policy.rb +145 -0
- data/lib/oci/devops/models/notification_config.rb +154 -0
- data/lib/oci/devops/models/ocir_deploy_artifact_source.rb +176 -0
- data/lib/oci/devops/models/oke_cluster_deploy_environment.rb +210 -0
- data/lib/oci/devops/models/oke_cluster_deploy_environment_summary.rb +210 -0
- data/lib/oci/devops/models/oke_deploy_stage.rb +256 -0
- data/lib/oci/devops/models/oke_deploy_stage_execution_progress.rb +173 -0
- data/lib/oci/devops/models/oke_deploy_stage_summary.rb +256 -0
- data/lib/oci/devops/models/operation_status.rb +15 -0
- data/lib/oci/devops/models/operation_type.rb +28 -0
- data/lib/oci/devops/models/project.rb +330 -0
- data/lib/oci/devops/models/project_collection.rb +150 -0
- data/lib/oci/devops/models/project_summary.rb +292 -0
- data/lib/oci/devops/models/run_pipeline_deploy_stage_execution_progress.rb +173 -0
- data/lib/oci/devops/models/run_validation_test_on_compute_instance_deploy_stage_execution_progress.rb +173 -0
- data/lib/oci/devops/models/single_deploy_stage_deployment.rb +230 -0
- data/lib/oci/devops/models/single_deploy_stage_deployment_summary.rb +218 -0
- data/lib/oci/devops/models/sort_order.rb +11 -0
- data/lib/oci/devops/models/update_compute_instance_group_deploy_environment_details.rb +177 -0
- data/lib/oci/devops/models/update_compute_instance_group_deploy_stage_details.rb +262 -0
- data/lib/oci/devops/models/update_deploy_artifact_details.rb +233 -0
- data/lib/oci/devops/models/update_deploy_environment_details.rb +224 -0
- data/lib/oci/devops/models/update_deploy_pipeline_deployment_details.rb +157 -0
- data/lib/oci/devops/models/update_deploy_pipeline_details.rb +205 -0
- data/lib/oci/devops/models/update_deploy_pipeline_redeployment_details.rb +157 -0
- data/lib/oci/devops/models/update_deploy_stage_details.rb +241 -0
- data/lib/oci/devops/models/update_deployment_details.rb +214 -0
- data/lib/oci/devops/models/update_function_deploy_environment_details.rb +178 -0
- data/lib/oci/devops/models/update_function_deploy_stage_details.rb +234 -0
- data/lib/oci/devops/models/update_invoke_function_deploy_stage_details.rb +224 -0
- data/lib/oci/devops/models/update_load_balancer_traffic_shift_deploy_stage_details.rb +247 -0
- data/lib/oci/devops/models/update_manual_approval_deploy_stage_details.rb +181 -0
- data/lib/oci/devops/models/update_oke_cluster_deploy_environment_details.rb +178 -0
- data/lib/oci/devops/models/update_oke_deploy_stage_details.rb +220 -0
- data/lib/oci/devops/models/update_project_details.rb +191 -0
- data/lib/oci/devops/models/update_single_deploy_stage_deployment_details.rb +157 -0
- data/lib/oci/devops/models/update_wait_deploy_stage_details.rb +181 -0
- data/lib/oci/devops/models/wait_criteria.rb +189 -0
- data/lib/oci/devops/models/wait_criteria_summary.rb +189 -0
- data/lib/oci/devops/models/wait_deploy_stage.rb +218 -0
- data/lib/oci/devops/models/wait_deploy_stage_execution_progress.rb +173 -0
- data/lib/oci/devops/models/wait_deploy_stage_summary.rb +218 -0
- data/lib/oci/devops/models/work_request.rb +314 -0
- data/lib/oci/devops/models/work_request_collection.rb +150 -0
- data/lib/oci/devops/models/work_request_error.rb +171 -0
- data/lib/oci/devops/models/work_request_error_collection.rb +150 -0
- data/lib/oci/devops/models/work_request_log_entry.rb +160 -0
- data/lib/oci/devops/models/work_request_log_entry_collection.rb +150 -0
- data/lib/oci/devops/models/work_request_resource.rb +216 -0
- data/lib/oci/devops/models/work_request_summary.rb +314 -0
- data/lib/oci/devops/util.rb +3 -0
- data/lib/oci/dns/dns.rb +1 -1
- data/lib/oci/dns/dns_client.rb +306 -75
- data/lib/oci/dns/models/create_resolver_endpoint_details.rb +2 -2
- data/lib/oci/dns/models/create_resolver_vnic_endpoint_details.rb +5 -5
- data/lib/oci/dns/models/external_master.rb +1 -12
- data/lib/oci/dns/models/resolver.rb +4 -4
- data/lib/oci/dns/models/resolver_endpoint.rb +2 -2
- data/lib/oci/dns/models/resolver_endpoint_summary.rb +2 -2
- data/lib/oci/dns/models/resolver_forward_rule.rb +2 -2
- data/lib/oci/dns/models/resolver_forward_rule_details.rb +2 -2
- data/lib/oci/dns/models/resolver_rule.rb +2 -2
- data/lib/oci/dns/models/resolver_rule_details.rb +2 -2
- data/lib/oci/dns/models/resolver_summary.rb +4 -4
- data/lib/oci/dns/models/resolver_vnic_endpoint.rb +2 -1
- data/lib/oci/dns/models/tsig_key.rb +4 -0
- data/lib/oci/dns/models/tsig_key_summary.rb +4 -0
- data/lib/oci/dns/models/update_resolver_vnic_endpoint_details.rb +2 -1
- data/lib/oci/dns/models/zone.rb +20 -4
- data/lib/oci/dns/models/zone_summary.rb +1 -0
- data/lib/oci/dns/models/zone_transfer_server.rb +192 -0
- data/lib/oci/email/email.rb +23 -0
- data/lib/oci/email/email_client.rb +1139 -139
- data/lib/oci/email/email_client_composite_operations.rb +346 -0
- data/lib/oci/email/models/action_type.rb +14 -0
- data/lib/oci/email/models/change_email_domain_compartment_details.rb +156 -0
- data/lib/oci/email/models/create_dkim_details.rb +225 -0
- data/lib/oci/email/models/create_email_domain_details.rb +220 -0
- data/lib/oci/email/models/create_sender_details.rb +2 -0
- data/lib/oci/email/models/dkim.rb +399 -0
- data/lib/oci/email/models/dkim_collection.rb +150 -0
- data/lib/oci/email/models/dkim_summary.rb +307 -0
- data/lib/oci/email/models/email_domain.rb +333 -0
- data/lib/oci/email/models/email_domain_collection.rb +150 -0
- data/lib/oci/email/models/email_domain_summary.rb +291 -0
- data/lib/oci/email/models/operation_status.rb +15 -0
- data/lib/oci/email/models/operation_type.rb +17 -0
- data/lib/oci/email/models/sender.rb +21 -4
- data/lib/oci/email/models/sender_summary.rb +5 -3
- data/lib/oci/email/models/sort_order.rb +11 -0
- data/lib/oci/email/models/suppression.rb +77 -7
- data/lib/oci/email/models/suppression_summary.rb +3 -3
- data/lib/oci/email/models/update_dkim_details.rb +189 -0
- data/lib/oci/email/models/update_email_domain_details.rb +189 -0
- data/lib/oci/email/models/update_sender_details.rb +2 -0
- data/lib/oci/email/models/work_request.rb +312 -0
- data/lib/oci/email/models/work_request_error.rb +172 -0
- data/lib/oci/email/models/work_request_error_collection.rb +150 -0
- data/lib/oci/email/models/work_request_log_entry.rb +160 -0
- data/lib/oci/email/models/work_request_log_entry_collection.rb +150 -0
- data/lib/oci/email/models/work_request_resource.rb +219 -0
- data/lib/oci/email/models/work_request_summary.rb +312 -0
- data/lib/oci/email/models/work_request_summary_collection.rb +150 -0
- data/lib/oci/generic_artifacts_content/generic_artifacts_content.rb +20 -0
- data/lib/oci/generic_artifacts_content/generic_artifacts_content_client.rb +410 -0
- data/lib/oci/generic_artifacts_content/generic_artifacts_content_client_composite_operations.rb +25 -0
- data/lib/oci/generic_artifacts_content/models/generic_artifact.rb +337 -0
- data/lib/oci/generic_artifacts_content/util.rb +3 -0
- data/lib/oci/jms/java_management_service_client.rb +1520 -0
- data/lib/oci/jms/java_management_service_client_composite_operations.rb +273 -0
- data/lib/oci/jms/jms.rb +63 -0
- data/lib/oci/jms/models/action_type.rb +14 -0
- data/lib/oci/jms/models/application_sort_by.rb +15 -0
- data/lib/oci/jms/models/application_usage.rb +292 -0
- data/lib/oci/jms/models/application_usage_collection.rb +150 -0
- data/lib/oci/jms/models/change_fleet_compartment_details.rb +154 -0
- data/lib/oci/jms/models/create_fleet_details.rb +210 -0
- data/lib/oci/jms/models/fleet.rb +358 -0
- data/lib/oci/jms/models/fleet_agent_configuration.rb +214 -0
- data/lib/oci/jms/models/fleet_agent_os_configuration.rb +171 -0
- data/lib/oci/jms/models/fleet_collection.rb +150 -0
- data/lib/oci/jms/models/fleet_summary.rb +359 -0
- data/lib/oci/jms/models/installation_sort_by.rb +17 -0
- data/lib/oci/jms/models/installation_usage.rb +306 -0
- data/lib/oci/jms/models/installation_usage_collection.rb +150 -0
- data/lib/oci/jms/models/jre_sort_by.rb +17 -0
- data/lib/oci/jms/models/jre_usage.rb +276 -0
- data/lib/oci/jms/models/jre_usage_collection.rb +150 -0
- data/lib/oci/jms/models/lifecycle_state.rb +15 -0
- data/lib/oci/jms/models/managed_instance_sort_by.rb +14 -0
- data/lib/oci/jms/models/managed_instance_type.rb +10 -0
- data/lib/oci/jms/models/managed_instance_usage.rb +308 -0
- data/lib/oci/jms/models/managed_instance_usage_collection.rb +150 -0
- data/lib/oci/jms/models/operation_status.rb +15 -0
- data/lib/oci/jms/models/operation_type.rb +13 -0
- data/lib/oci/jms/models/request_summarized_application_usage_details.rb +362 -0
- data/lib/oci/jms/models/request_summarized_installation_usage_details.rb +335 -0
- data/lib/oci/jms/models/request_summarized_jre_usage_details.rb +321 -0
- data/lib/oci/jms/models/request_summarized_managed_instance_usage_details.rb +358 -0
- data/lib/oci/jms/models/sort_by.rb +11 -0
- data/lib/oci/jms/models/sort_order.rb +11 -0
- data/lib/oci/jms/models/summarize_application_usage_fields.rb +12 -0
- data/lib/oci/jms/models/summarize_installation_usage_fields.rb +11 -0
- data/lib/oci/jms/models/summarize_jre_usage_fields.rb +12 -0
- data/lib/oci/jms/models/summarize_managed_instance_usage_fields.rb +12 -0
- data/lib/oci/jms/models/update_fleet_agent_configuration_details.rb +196 -0
- data/lib/oci/jms/models/update_fleet_details.rb +196 -0
- data/lib/oci/jms/models/work_request.rb +306 -0
- data/lib/oci/jms/models/work_request_collection.rb +150 -0
- data/lib/oci/jms/models/work_request_error.rb +173 -0
- data/lib/oci/jms/models/work_request_error_collection.rb +150 -0
- data/lib/oci/jms/models/work_request_log_entry.rb +160 -0
- data/lib/oci/jms/models/work_request_log_entry_collection.rb +150 -0
- data/lib/oci/jms/models/work_request_resource.rb +219 -0
- data/lib/oci/jms/util.rb +3 -0
- data/lib/oci/limits/limits_client.rb +12 -12
- data/lib/oci/limits/models/limit_definition_summary.rb +22 -7
- data/lib/oci/limits/models/quota.rb +6 -6
- data/lib/oci/limits/models/quota_summary.rb +3 -3
- data/lib/oci/limits/models/resource_availability.rb +7 -7
- data/lib/oci/limits/models/service_summary.rb +1 -1
- data/lib/oci/limits/quotas_client.rb +9 -9
- data/lib/oci/log_analytics/log_analytics.rb +1 -0
- data/lib/oci/log_analytics/log_analytics_client.rb +60 -0
- data/lib/oci/log_analytics/models/abstract_command_descriptor.rb +2 -0
- data/lib/oci/log_analytics/models/compare_command_descriptor.rb +166 -0
- data/lib/oci/log_analytics/models/cron_schedule.rb +5 -1
- data/lib/oci/log_analytics/models/fixed_frequency_schedule.rb +5 -1
- data/lib/oci/log_analytics/models/namespace.rb +20 -4
- data/lib/oci/log_analytics/models/namespace_summary.rb +20 -4
- data/lib/oci/log_analytics/models/schedule.rb +20 -4
- data/lib/oci/log_analytics/models/scheduled_task.rb +54 -1
- data/lib/oci/log_analytics/models/scheduled_task_summary.rb +15 -1
- data/lib/oci/log_analytics/models/standard_task.rb +9 -1
- data/lib/oci/log_analytics/models/stream_action.rb +40 -4
- data/lib/oci/loggingingestion/logging_client.rb +1 -1
- data/lib/oci/loggingingestion/models/log_entry.rb +1 -1
- data/lib/oci/loggingingestion/models/log_entry_batch.rb +2 -2
- data/lib/oci/management_dashboard/dashx_apis_client.rb +16 -6
- data/lib/oci/management_dashboard/dashx_apis_client_composite_operations.rb +238 -0
- data/lib/oci/management_dashboard/management_dashboard.rb +1 -0
- data/lib/oci/management_dashboard/models/create_management_dashboard_details.rb +15 -1
- data/lib/oci/management_dashboard/models/create_management_saved_search_details.rb +15 -1
- data/lib/oci/management_dashboard/models/management_dashboard.rb +59 -2
- data/lib/oci/management_dashboard/models/management_dashboard_export_details.rb +4 -36
- data/lib/oci/management_dashboard/models/management_dashboard_for_import_export_details.rb +15 -1
- data/lib/oci/management_dashboard/models/management_dashboard_summary.rb +12 -2
- data/lib/oci/management_dashboard/models/management_dashboard_tile_details.rb +18 -4
- data/lib/oci/management_dashboard/models/management_saved_search.rb +47 -1
- data/lib/oci/management_dashboard/models/management_saved_search_for_import_details.rb +18 -4
- data/lib/oci/management_dashboard/models/management_saved_search_summary.rb +15 -1
- data/lib/oci/management_dashboard/models/update_management_dashboard_details.rb +15 -1
- data/lib/oci/management_dashboard/models/update_management_saved_search_details.rb +15 -1
- data/lib/oci/marketplace/account_client.rb +220 -0
- data/lib/oci/marketplace/account_client_composite_operations.rb +25 -0
- data/lib/oci/marketplace/marketplace.rb +8 -0
- data/lib/oci/marketplace/marketplace_client.rb +86 -24
- data/lib/oci/marketplace/marketplace_client_composite_operations.rb +4 -4
- data/lib/oci/marketplace/models/change_publication_compartment_details.rb +2 -2
- data/lib/oci/marketplace/models/create_image_publication_package.rb +2 -2
- data/lib/oci/marketplace/models/create_publication_details.rb +10 -8
- data/lib/oci/marketplace/models/create_publication_package.rb +4 -4
- data/lib/oci/marketplace/models/eula.rb +2 -2
- data/lib/oci/marketplace/models/free_text_search_details.rb +162 -0
- data/lib/oci/marketplace/models/image_publication_package.rb +3 -3
- data/lib/oci/marketplace/models/launch_eligibility.rb +178 -0
- data/lib/oci/marketplace/models/listing.rb +2 -2
- data/lib/oci/marketplace/models/listing_package_summary.rb +10 -1
- data/lib/oci/marketplace/models/listing_summary.rb +2 -2
- data/lib/oci/marketplace/models/matching_context_type_enum.rb +11 -0
- data/lib/oci/marketplace/models/operating_system.rb +2 -2
- data/lib/oci/marketplace/models/orchestration_publication_package.rb +3 -3
- data/lib/oci/marketplace/models/publication.rb +11 -11
- data/lib/oci/marketplace/models/publication_package.rb +3 -3
- data/lib/oci/marketplace/models/publication_package_summary.rb +1 -1
- data/lib/oci/marketplace/models/publication_summary.rb +9 -9
- data/lib/oci/marketplace/models/publisher_summary.rb +1 -1
- data/lib/oci/marketplace/models/search_details_type_enum.rb +11 -0
- data/lib/oci/marketplace/models/search_listings_details.rb +207 -0
- data/lib/oci/marketplace/models/structured_search_details.rb +162 -0
- data/lib/oci/marketplace/models/text_based_eula.rb +2 -2
- data/lib/oci/marketplace/models/third_party_paid_listing_eligibility.rb +210 -0
- data/lib/oci/marketplace/models/update_publication_details.rb +5 -5
- data/lib/oci/mysql/db_backups_client.rb +76 -0
- data/lib/oci/mysql/db_backups_client_composite_operations.rb +50 -0
- data/lib/oci/mysql/models/change_backup_compartment_details.rb +154 -0
- data/lib/oci/mysql/mysql.rb +1 -0
- data/lib/oci/oce/models/create_oce_instance_details.rb +3 -1
- data/lib/oci/oce/models/license_type.rb +3 -1
- data/lib/oci/oce/models/oce_instance.rb +19 -1
- data/lib/oci/oce/models/oce_instance_summary.rb +22 -4
- data/lib/oci/oce/models/update_oce_instance_details.rb +3 -1
- data/lib/oci/oce/oce_instance_client.rb +2 -0
- data/lib/oci/ocvp/models/create_esxi_host_details.rb +3 -1
- data/lib/oci/ocvp/models/create_sddc_details.rb +21 -2
- data/lib/oci/ocvp/models/downgrade_hcx_details.rb +154 -0
- data/lib/oci/ocvp/models/esxi_host.rb +2 -0
- data/lib/oci/ocvp/models/esxi_host_summary.rb +2 -0
- data/lib/oci/ocvp/models/hcx_license_status.rb +13 -0
- data/lib/oci/ocvp/models/hcx_license_summary.rb +201 -0
- data/lib/oci/ocvp/models/operation_types.rb +5 -1
- data/lib/oci/ocvp/models/sddc.rb +86 -2
- data/lib/oci/ocvp/models/supported_sku_summary.rb +2 -1
- data/lib/oci/ocvp/models/supported_sku_summary_collection.rb +3 -1
- data/lib/oci/ocvp/models/update_esxi_host_details.rb +3 -1
- data/lib/oci/ocvp/models/work_request.rb +4 -0
- data/lib/oci/ocvp/ocvp.rb +3 -0
- data/lib/oci/ocvp/sddc_client.rb +291 -2
- data/lib/oci/ocvp/sddc_client_composite_operations.rb +201 -0
- data/lib/oci/opsi/models/autonomous_database_configuration_summary.rb +198 -0
- data/lib/oci/opsi/models/create_enterprise_manager_bridge_details.rb +2 -2
- data/lib/oci/opsi/models/create_host_insight_details.rb +1 -1
- data/lib/oci/opsi/models/create_macs_managed_external_host_insight_details.rb +1 -1
- data/lib/oci/opsi/models/database_configuration_collection.rb +150 -0
- data/lib/oci/opsi/models/database_configuration_summary.rb +323 -0
- data/lib/oci/opsi/models/database_details.rb +1 -0
- data/lib/oci/opsi/models/database_insight.rb +1 -0
- data/lib/oci/opsi/models/database_insight_summary.rb +1 -0
- data/lib/oci/opsi/models/em_managed_external_database_configuration_summary.rb +222 -0
- data/lib/oci/opsi/models/enable_host_insight_details.rb +1 -1
- data/lib/oci/opsi/models/enable_macs_managed_external_host_insight_details.rb +1 -1
- data/lib/oci/opsi/models/enterprise_manager_bridge.rb +16 -1
- data/lib/oci/opsi/models/enterprise_manager_bridge_summary.rb +16 -1
- data/lib/oci/opsi/models/host_insight.rb +1 -0
- data/lib/oci/opsi/models/host_insight_summary.rb +1 -0
- data/lib/oci/opsi/models/lifecycle_state.rb +2 -1
- data/lib/oci/opsi/models/macs_managed_external_database_configuration_summary.rb +236 -0
- data/lib/oci/opsi/models/macs_managed_external_host_insight.rb +1 -1
- data/lib/oci/opsi/models/macs_managed_external_host_insight_summary.rb +1 -1
- data/lib/oci/opsi/models/summarize_database_insight_resource_forecast_trend_aggregation.rb +15 -1
- data/lib/oci/opsi/models/tablespace_usage_trend_aggregation.rb +1 -1
- data/lib/oci/opsi/operations_insights_client.rb +631 -25
- data/lib/oci/opsi/opsi.rb +5 -0
- data/lib/oci/regions.rb +3 -0
- data/lib/oci/secrets/secrets_client.rb +71 -1
- data/lib/oci/tenant_manager_control_plane/models/activate_order_details.rb +154 -0
- data/lib/oci/tenant_manager_control_plane/models/operation_type.rb +5 -1
- data/lib/oci/tenant_manager_control_plane/models/order.rb +206 -0
- data/lib/oci/{dns/models/tsig.rb → tenant_manager_control_plane/models/sku.rb} +22 -25
- data/lib/oci/tenant_manager_control_plane/models/subscription_info.rb +202 -0
- data/lib/oci/tenant_manager_control_plane/models/work_request.rb +4 -0
- data/lib/oci/tenant_manager_control_plane/models/work_request_summary.rb +4 -0
- data/lib/oci/tenant_manager_control_plane/orders_client.rb +225 -0
- data/lib/oci/tenant_manager_control_plane/orders_client_composite_operations.rb +76 -0
- data/lib/oci/tenant_manager_control_plane/tenant_manager_control_plane.rb +6 -0
- data/lib/oci/usage_api/models/cost_analysis_ui.rb +2 -2
- data/lib/oci/usage_api/models/create_custom_table_details.rb +10 -10
- data/lib/oci/usage_api/models/create_query_details.rb +1 -1
- data/lib/oci/usage_api/models/custom_table.rb +13 -13
- data/lib/oci/usage_api/models/custom_table_summary.rb +1 -1
- data/lib/oci/usage_api/models/dimension.rb +1 -1
- data/lib/oci/usage_api/models/forecast.rb +3 -3
- data/lib/oci/usage_api/models/query_definition.rb +1 -1
- data/lib/oci/usage_api/models/query_summary.rb +1 -1
- data/lib/oci/usage_api/models/report_query.rb +11 -5
- data/lib/oci/usage_api/models/request_summarized_usages_details.rb +11 -5
- data/lib/oci/usage_api/models/saved_custom_table.rb +6 -6
- data/lib/oci/usage_api/models/update_custom_table_details.rb +1 -1
- data/lib/oci/usage_api/models/update_query_details.rb +1 -1
- data/lib/oci/usage_api/models/usage_summary.rb +1 -1
- data/lib/oci/usage_api/usage_api.rb +0 -6
- data/lib/oci/usage_api/usageapi_client.rb +332 -1
- data/lib/oci/version.rb +1 -1
- metadata +512 -16
data/lib/oci/generic_artifacts_content/generic_artifacts_content_client_composite_operations.rb
ADDED
@@ -0,0 +1,25 @@
|
|
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
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
5
|
+
module OCI
|
6
|
+
# This class provides a wrapper around {OCI::GenericArtifactsContent::GenericArtifactsContentClient} and offers convenience methods
|
7
|
+
# for operations that would otherwise need to be chained together. For example, instead of performing an action
|
8
|
+
# on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
|
9
|
+
# to enter a given state, you can call a single method in this class to accomplish the same functionality
|
10
|
+
class GenericArtifactsContent::GenericArtifactsContentClientCompositeOperations
|
11
|
+
# The {OCI::GenericArtifactsContent::GenericArtifactsContentClient} used to communicate with the service_client
|
12
|
+
#
|
13
|
+
# @return [OCI::GenericArtifactsContent::GenericArtifactsContentClient]
|
14
|
+
attr_reader :service_client
|
15
|
+
|
16
|
+
# Initializes a new GenericArtifactsContentClientCompositeOperations
|
17
|
+
#
|
18
|
+
# @param [OCI::GenericArtifactsContent::GenericArtifactsContentClient] service_client The client used to communicate with the service.
|
19
|
+
# Defaults to a new service client created via {OCI::GenericArtifactsContent::GenericArtifactsContentClient#initialize} with no arguments
|
20
|
+
def initialize(service_client = OCI::GenericArtifactsContent::GenericArtifactsContentClient.new)
|
21
|
+
@service_client = service_client
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
@@ -0,0 +1,337 @@
|
|
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
|
+
require 'logger'
|
6
|
+
|
7
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
8
|
+
module OCI
|
9
|
+
# The metadata of the artifact.
|
10
|
+
class GenericArtifactsContent::Models::GenericArtifact
|
11
|
+
LIFECYCLE_STATE_ENUM = [
|
12
|
+
LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'.freeze,
|
13
|
+
LIFECYCLE_STATE_DELETING = 'DELETING'.freeze,
|
14
|
+
LIFECYCLE_STATE_DELETED = 'DELETED'.freeze,
|
15
|
+
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
16
|
+
].freeze
|
17
|
+
|
18
|
+
# **[Required]** The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the artifact.
|
19
|
+
#
|
20
|
+
# Example: `ocid1.genericartifact.oc1..exampleuniqueID`
|
21
|
+
#
|
22
|
+
# @return [String]
|
23
|
+
attr_accessor :id
|
24
|
+
|
25
|
+
# **[Required]** The artifact name with the format of `<artifact-path>:<artifact-version>`. The artifact name is truncated to a maximum length of 255.
|
26
|
+
#
|
27
|
+
# Example: `project01/my-web-app/artifact-abc:1.0.0`
|
28
|
+
#
|
29
|
+
# @return [String]
|
30
|
+
attr_accessor :display_name
|
31
|
+
|
32
|
+
# **[Required]** The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the repository's compartment.
|
33
|
+
# @return [String]
|
34
|
+
attr_accessor :compartment_id
|
35
|
+
|
36
|
+
# **[Required]** The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the repository.
|
37
|
+
# @return [String]
|
38
|
+
attr_accessor :repository_id
|
39
|
+
|
40
|
+
# **[Required]** A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version.
|
41
|
+
#
|
42
|
+
# Example: `project01/my-web-app/artifact-abc`
|
43
|
+
#
|
44
|
+
# @return [String]
|
45
|
+
attr_accessor :artifact_path
|
46
|
+
|
47
|
+
# **[Required]** A user-defined string to describe the artifact version.
|
48
|
+
#
|
49
|
+
# Example: `1.1.0` or `1.2-beta-2`
|
50
|
+
#
|
51
|
+
# @return [String]
|
52
|
+
attr_accessor :version
|
53
|
+
|
54
|
+
# **[Required]** The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.
|
55
|
+
# @return [String]
|
56
|
+
attr_accessor :sha256
|
57
|
+
|
58
|
+
# **[Required]** The size of the artifact in bytes.
|
59
|
+
# @return [Integer]
|
60
|
+
attr_accessor :size_in_bytes
|
61
|
+
|
62
|
+
# **[Required]** The current state of the artifact.
|
63
|
+
# @return [String]
|
64
|
+
attr_reader :lifecycle_state
|
65
|
+
|
66
|
+
# **[Required]** Free-form tags for this resource. Each tag is a simple key-value pair with no
|
67
|
+
# predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
|
68
|
+
#
|
69
|
+
# Example: `{\"Department\": \"Finance\"}`
|
70
|
+
#
|
71
|
+
# @return [Hash<String, String>]
|
72
|
+
attr_accessor :freeform_tags
|
73
|
+
|
74
|
+
# **[Required]** Defined tags for this resource. Each key is predefined and scoped to a
|
75
|
+
# namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
|
76
|
+
#
|
77
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
78
|
+
#
|
79
|
+
# @return [Hash<String, Hash<String, Object>>]
|
80
|
+
attr_accessor :defined_tags
|
81
|
+
|
82
|
+
# **[Required]** An RFC 3339 timestamp indicating when the repository was created.
|
83
|
+
# @return [DateTime]
|
84
|
+
attr_accessor :time_created
|
85
|
+
|
86
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
87
|
+
def self.attribute_map
|
88
|
+
{
|
89
|
+
# rubocop:disable Style/SymbolLiteral
|
90
|
+
'id': :'id',
|
91
|
+
'display_name': :'displayName',
|
92
|
+
'compartment_id': :'compartmentId',
|
93
|
+
'repository_id': :'repositoryId',
|
94
|
+
'artifact_path': :'artifactPath',
|
95
|
+
'version': :'version',
|
96
|
+
'sha256': :'sha256',
|
97
|
+
'size_in_bytes': :'sizeInBytes',
|
98
|
+
'lifecycle_state': :'lifecycleState',
|
99
|
+
'freeform_tags': :'freeformTags',
|
100
|
+
'defined_tags': :'definedTags',
|
101
|
+
'time_created': :'timeCreated'
|
102
|
+
# rubocop:enable Style/SymbolLiteral
|
103
|
+
}
|
104
|
+
end
|
105
|
+
|
106
|
+
# Attribute type mapping.
|
107
|
+
def self.swagger_types
|
108
|
+
{
|
109
|
+
# rubocop:disable Style/SymbolLiteral
|
110
|
+
'id': :'String',
|
111
|
+
'display_name': :'String',
|
112
|
+
'compartment_id': :'String',
|
113
|
+
'repository_id': :'String',
|
114
|
+
'artifact_path': :'String',
|
115
|
+
'version': :'String',
|
116
|
+
'sha256': :'String',
|
117
|
+
'size_in_bytes': :'Integer',
|
118
|
+
'lifecycle_state': :'String',
|
119
|
+
'freeform_tags': :'Hash<String, String>',
|
120
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
121
|
+
'time_created': :'DateTime'
|
122
|
+
# rubocop:enable Style/SymbolLiteral
|
123
|
+
}
|
124
|
+
end
|
125
|
+
|
126
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
127
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
128
|
+
|
129
|
+
|
130
|
+
# Initializes the object
|
131
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
132
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
133
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
134
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
135
|
+
# @option attributes [String] :repository_id The value to assign to the {#repository_id} property
|
136
|
+
# @option attributes [String] :artifact_path The value to assign to the {#artifact_path} property
|
137
|
+
# @option attributes [String] :version The value to assign to the {#version} property
|
138
|
+
# @option attributes [String] :sha256 The value to assign to the {#sha256} property
|
139
|
+
# @option attributes [Integer] :size_in_bytes The value to assign to the {#size_in_bytes} property
|
140
|
+
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
141
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
142
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
143
|
+
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
144
|
+
def initialize(attributes = {})
|
145
|
+
return unless attributes.is_a?(Hash)
|
146
|
+
|
147
|
+
# convert string to symbol for hash key
|
148
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
149
|
+
|
150
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
151
|
+
|
152
|
+
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
153
|
+
|
154
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
155
|
+
|
156
|
+
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
157
|
+
|
158
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
159
|
+
|
160
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
161
|
+
|
162
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
163
|
+
|
164
|
+
self.repository_id = attributes[:'repositoryId'] if attributes[:'repositoryId']
|
165
|
+
|
166
|
+
raise 'You cannot provide both :repositoryId and :repository_id' if attributes.key?(:'repositoryId') && attributes.key?(:'repository_id')
|
167
|
+
|
168
|
+
self.repository_id = attributes[:'repository_id'] if attributes[:'repository_id']
|
169
|
+
|
170
|
+
self.artifact_path = attributes[:'artifactPath'] if attributes[:'artifactPath']
|
171
|
+
|
172
|
+
raise 'You cannot provide both :artifactPath and :artifact_path' if attributes.key?(:'artifactPath') && attributes.key?(:'artifact_path')
|
173
|
+
|
174
|
+
self.artifact_path = attributes[:'artifact_path'] if attributes[:'artifact_path']
|
175
|
+
|
176
|
+
self.version = attributes[:'version'] if attributes[:'version']
|
177
|
+
|
178
|
+
self.sha256 = attributes[:'sha256'] if attributes[:'sha256']
|
179
|
+
|
180
|
+
self.size_in_bytes = attributes[:'sizeInBytes'] if attributes[:'sizeInBytes']
|
181
|
+
|
182
|
+
raise 'You cannot provide both :sizeInBytes and :size_in_bytes' if attributes.key?(:'sizeInBytes') && attributes.key?(:'size_in_bytes')
|
183
|
+
|
184
|
+
self.size_in_bytes = attributes[:'size_in_bytes'] if attributes[:'size_in_bytes']
|
185
|
+
|
186
|
+
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
187
|
+
|
188
|
+
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
189
|
+
|
190
|
+
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
191
|
+
|
192
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
193
|
+
|
194
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
195
|
+
|
196
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
197
|
+
|
198
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
199
|
+
|
200
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
201
|
+
|
202
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
203
|
+
|
204
|
+
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
205
|
+
|
206
|
+
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
207
|
+
|
208
|
+
self.time_created = attributes[:'time_created'] if attributes[:'time_created']
|
209
|
+
end
|
210
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
211
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
212
|
+
|
213
|
+
# Custom attribute writer method checking allowed values (enum).
|
214
|
+
# @param [Object] lifecycle_state Object to be assigned
|
215
|
+
def lifecycle_state=(lifecycle_state)
|
216
|
+
# rubocop:disable Style/ConditionalAssignment
|
217
|
+
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
218
|
+
OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
219
|
+
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
220
|
+
else
|
221
|
+
@lifecycle_state = lifecycle_state
|
222
|
+
end
|
223
|
+
# rubocop:enable Style/ConditionalAssignment
|
224
|
+
end
|
225
|
+
|
226
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
227
|
+
|
228
|
+
|
229
|
+
# Checks equality by comparing each attribute.
|
230
|
+
# @param [Object] other the other object to be compared
|
231
|
+
def ==(other)
|
232
|
+
return true if equal?(other)
|
233
|
+
|
234
|
+
self.class == other.class &&
|
235
|
+
id == other.id &&
|
236
|
+
display_name == other.display_name &&
|
237
|
+
compartment_id == other.compartment_id &&
|
238
|
+
repository_id == other.repository_id &&
|
239
|
+
artifact_path == other.artifact_path &&
|
240
|
+
version == other.version &&
|
241
|
+
sha256 == other.sha256 &&
|
242
|
+
size_in_bytes == other.size_in_bytes &&
|
243
|
+
lifecycle_state == other.lifecycle_state &&
|
244
|
+
freeform_tags == other.freeform_tags &&
|
245
|
+
defined_tags == other.defined_tags &&
|
246
|
+
time_created == other.time_created
|
247
|
+
end
|
248
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
249
|
+
|
250
|
+
# @see the `==` method
|
251
|
+
# @param [Object] other the other object to be compared
|
252
|
+
def eql?(other)
|
253
|
+
self == other
|
254
|
+
end
|
255
|
+
|
256
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
257
|
+
|
258
|
+
|
259
|
+
# Calculates hash code according to all attributes.
|
260
|
+
# @return [Fixnum] Hash code
|
261
|
+
def hash
|
262
|
+
[id, display_name, compartment_id, repository_id, artifact_path, version, sha256, size_in_bytes, lifecycle_state, freeform_tags, defined_tags, time_created].hash
|
263
|
+
end
|
264
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
265
|
+
|
266
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
267
|
+
|
268
|
+
|
269
|
+
# Builds the object from hash
|
270
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
271
|
+
# @return [Object] Returns the model itself
|
272
|
+
def build_from_hash(attributes)
|
273
|
+
return nil unless attributes.is_a?(Hash)
|
274
|
+
|
275
|
+
self.class.swagger_types.each_pair do |key, type|
|
276
|
+
if type =~ /^Array<(.*)>/i
|
277
|
+
# check to ensure the input is an array given that the the attribute
|
278
|
+
# is documented as an array but the input is not
|
279
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
280
|
+
public_method("#{key}=").call(
|
281
|
+
attributes[self.class.attribute_map[key]]
|
282
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
283
|
+
)
|
284
|
+
end
|
285
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
286
|
+
public_method("#{key}=").call(
|
287
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
288
|
+
)
|
289
|
+
end
|
290
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
291
|
+
end
|
292
|
+
|
293
|
+
self
|
294
|
+
end
|
295
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
296
|
+
|
297
|
+
# Returns the string representation of the object
|
298
|
+
# @return [String] String presentation of the object
|
299
|
+
def to_s
|
300
|
+
to_hash.to_s
|
301
|
+
end
|
302
|
+
|
303
|
+
# Returns the object in the form of hash
|
304
|
+
# @return [Hash] Returns the object in the form of hash
|
305
|
+
def to_hash
|
306
|
+
hash = {}
|
307
|
+
self.class.attribute_map.each_pair do |attr, param|
|
308
|
+
value = public_method(attr).call
|
309
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
310
|
+
|
311
|
+
hash[param] = _to_hash(value)
|
312
|
+
end
|
313
|
+
hash
|
314
|
+
end
|
315
|
+
|
316
|
+
private
|
317
|
+
|
318
|
+
# Outputs non-array value in the form of hash
|
319
|
+
# For object, use to_hash. Otherwise, just return the value
|
320
|
+
# @param [Object] value Any valid value
|
321
|
+
# @return [Hash] Returns the value in the form of hash
|
322
|
+
def _to_hash(value)
|
323
|
+
if value.is_a?(Array)
|
324
|
+
value.compact.map { |v| _to_hash(v) }
|
325
|
+
elsif value.is_a?(Hash)
|
326
|
+
{}.tap do |hash|
|
327
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
328
|
+
end
|
329
|
+
elsif value.respond_to? :to_hash
|
330
|
+
value.to_hash
|
331
|
+
else
|
332
|
+
value
|
333
|
+
end
|
334
|
+
end
|
335
|
+
end
|
336
|
+
end
|
337
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
@@ -0,0 +1,3 @@
|
|
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
|
+
|
@@ -0,0 +1,1520 @@
|
|
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
|
+
# API for the Java Management Service. Use this API to view and manage Fleets.
|
10
|
+
class Jms::JavaManagementServiceClient
|
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 JavaManagementServiceClient.
|
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 + '/20210610'
|
70
|
+
else
|
71
|
+
region ||= config.region
|
72
|
+
region ||= signer.region if signer.respond_to?(:region)
|
73
|
+
self.region = region
|
74
|
+
end
|
75
|
+
logger.info "JavaManagementServiceClient 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://javamanagement.{region}.oci.{secondLevelDomain}') + '/20210610'
|
88
|
+
logger.info "JavaManagementServiceClient 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
|
+
# Move a specified Fleet into the compartment identified in the POST form. When provided, If-Match is checked against ETag values of the resource.
|
102
|
+
#
|
103
|
+
# @param [String] fleet_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Fleet.
|
104
|
+
# @param [OCI::Jms::Models::ChangeFleetCompartmentDetails] change_fleet_compartment_details Compartment identifier.
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
107
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
108
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
109
|
+
# for a resource, set the `if-match` parameter to the value of the
|
110
|
+
# ETag from a previous GET or POST response for that resource.
|
111
|
+
# The resource will be updated or deleted only if the ETag you
|
112
|
+
# provide matches the resource's current ETag value.
|
113
|
+
#
|
114
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
115
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
116
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
117
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
118
|
+
# might be rejected.
|
119
|
+
#
|
120
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
121
|
+
# @return [Response] A Response object with data of type nil
|
122
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/change_fleet_compartment.rb.html) to see an example of how to use change_fleet_compartment API.
|
123
|
+
def change_fleet_compartment(fleet_id, change_fleet_compartment_details, opts = {})
|
124
|
+
logger.debug 'Calling operation JavaManagementServiceClient#change_fleet_compartment.' if logger
|
125
|
+
|
126
|
+
raise "Missing the required parameter 'fleet_id' when calling change_fleet_compartment." if fleet_id.nil?
|
127
|
+
raise "Missing the required parameter 'change_fleet_compartment_details' when calling change_fleet_compartment." if change_fleet_compartment_details.nil?
|
128
|
+
raise "Parameter value for 'fleet_id' must not be blank" if OCI::Internal::Util.blank_string?(fleet_id)
|
129
|
+
|
130
|
+
path = '/fleets/{fleetId}/actions/changeCompartment'.sub('{fleetId}', fleet_id.to_s)
|
131
|
+
operation_signing_strategy = :standard
|
132
|
+
|
133
|
+
# rubocop:disable Style/NegatedIf
|
134
|
+
# Query Params
|
135
|
+
query_params = {}
|
136
|
+
|
137
|
+
# Header Params
|
138
|
+
header_params = {}
|
139
|
+
header_params[:accept] = 'application/json'
|
140
|
+
header_params[:'content-type'] = 'application/json'
|
141
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
142
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
143
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
144
|
+
# rubocop:enable Style/NegatedIf
|
145
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
146
|
+
|
147
|
+
post_body = @api_client.object_to_http_body(change_fleet_compartment_details)
|
148
|
+
|
149
|
+
# rubocop:disable Metrics/BlockLength
|
150
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#change_fleet_compartment') do
|
151
|
+
@api_client.call_api(
|
152
|
+
:POST,
|
153
|
+
path,
|
154
|
+
endpoint,
|
155
|
+
header_params: header_params,
|
156
|
+
query_params: query_params,
|
157
|
+
operation_signing_strategy: operation_signing_strategy,
|
158
|
+
body: post_body
|
159
|
+
)
|
160
|
+
end
|
161
|
+
# rubocop:enable Metrics/BlockLength
|
162
|
+
end
|
163
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
164
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
165
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
166
|
+
|
167
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
168
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
169
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
170
|
+
|
171
|
+
|
172
|
+
# Create a new Fleet using the information provided.
|
173
|
+
#
|
174
|
+
# @param [OCI::Jms::Models::CreateFleetDetails] create_fleet_details Details for the new Fleet.
|
175
|
+
# @param [Hash] opts the optional parameters
|
176
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
177
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
178
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
179
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
180
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
181
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
182
|
+
# might be rejected.
|
183
|
+
#
|
184
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
185
|
+
# @return [Response] A Response object with data of type nil
|
186
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/create_fleet.rb.html) to see an example of how to use create_fleet API.
|
187
|
+
def create_fleet(create_fleet_details, opts = {})
|
188
|
+
logger.debug 'Calling operation JavaManagementServiceClient#create_fleet.' if logger
|
189
|
+
|
190
|
+
raise "Missing the required parameter 'create_fleet_details' when calling create_fleet." if create_fleet_details.nil?
|
191
|
+
|
192
|
+
path = '/fleets'
|
193
|
+
operation_signing_strategy = :standard
|
194
|
+
|
195
|
+
# rubocop:disable Style/NegatedIf
|
196
|
+
# Query Params
|
197
|
+
query_params = {}
|
198
|
+
|
199
|
+
# Header Params
|
200
|
+
header_params = {}
|
201
|
+
header_params[:accept] = 'application/json'
|
202
|
+
header_params[:'content-type'] = 'application/json'
|
203
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
204
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
205
|
+
# rubocop:enable Style/NegatedIf
|
206
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
207
|
+
|
208
|
+
post_body = @api_client.object_to_http_body(create_fleet_details)
|
209
|
+
|
210
|
+
# rubocop:disable Metrics/BlockLength
|
211
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#create_fleet') do
|
212
|
+
@api_client.call_api(
|
213
|
+
:POST,
|
214
|
+
path,
|
215
|
+
endpoint,
|
216
|
+
header_params: header_params,
|
217
|
+
query_params: query_params,
|
218
|
+
operation_signing_strategy: operation_signing_strategy,
|
219
|
+
body: post_body
|
220
|
+
)
|
221
|
+
end
|
222
|
+
# rubocop:enable Metrics/BlockLength
|
223
|
+
end
|
224
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
225
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
226
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
227
|
+
|
228
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
229
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
230
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
231
|
+
|
232
|
+
|
233
|
+
# Deletes the Fleet specified by an identifier.
|
234
|
+
# @param [String] fleet_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Fleet.
|
235
|
+
# @param [Hash] opts the optional parameters
|
236
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
237
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
238
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
239
|
+
# for a resource, set the `if-match` parameter to the value of the
|
240
|
+
# ETag from a previous GET or POST response for that resource.
|
241
|
+
# The resource will be updated or deleted only if the ETag you
|
242
|
+
# provide matches the resource's current ETag value.
|
243
|
+
#
|
244
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
245
|
+
# @return [Response] A Response object with data of type nil
|
246
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/delete_fleet.rb.html) to see an example of how to use delete_fleet API.
|
247
|
+
def delete_fleet(fleet_id, opts = {})
|
248
|
+
logger.debug 'Calling operation JavaManagementServiceClient#delete_fleet.' if logger
|
249
|
+
|
250
|
+
raise "Missing the required parameter 'fleet_id' when calling delete_fleet." if fleet_id.nil?
|
251
|
+
raise "Parameter value for 'fleet_id' must not be blank" if OCI::Internal::Util.blank_string?(fleet_id)
|
252
|
+
|
253
|
+
path = '/fleets/{fleetId}'.sub('{fleetId}', fleet_id.to_s)
|
254
|
+
operation_signing_strategy = :standard
|
255
|
+
|
256
|
+
# rubocop:disable Style/NegatedIf
|
257
|
+
# Query Params
|
258
|
+
query_params = {}
|
259
|
+
|
260
|
+
# Header Params
|
261
|
+
header_params = {}
|
262
|
+
header_params[:accept] = 'application/json'
|
263
|
+
header_params[:'content-type'] = 'application/json'
|
264
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
265
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
266
|
+
# rubocop:enable Style/NegatedIf
|
267
|
+
|
268
|
+
post_body = nil
|
269
|
+
|
270
|
+
# rubocop:disable Metrics/BlockLength
|
271
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#delete_fleet') do
|
272
|
+
@api_client.call_api(
|
273
|
+
:DELETE,
|
274
|
+
path,
|
275
|
+
endpoint,
|
276
|
+
header_params: header_params,
|
277
|
+
query_params: query_params,
|
278
|
+
operation_signing_strategy: operation_signing_strategy,
|
279
|
+
body: post_body
|
280
|
+
)
|
281
|
+
end
|
282
|
+
# rubocop:enable Metrics/BlockLength
|
283
|
+
end
|
284
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
285
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
286
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
287
|
+
|
288
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
289
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
290
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
291
|
+
|
292
|
+
|
293
|
+
# Retrieve a Fleet with the specified identifier.
|
294
|
+
# @param [String] fleet_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Fleet.
|
295
|
+
# @param [Hash] opts the optional parameters
|
296
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
297
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
298
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
299
|
+
# @return [Response] A Response object with data of type {OCI::Jms::Models::Fleet Fleet}
|
300
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/get_fleet.rb.html) to see an example of how to use get_fleet API.
|
301
|
+
def get_fleet(fleet_id, opts = {})
|
302
|
+
logger.debug 'Calling operation JavaManagementServiceClient#get_fleet.' if logger
|
303
|
+
|
304
|
+
raise "Missing the required parameter 'fleet_id' when calling get_fleet." if fleet_id.nil?
|
305
|
+
raise "Parameter value for 'fleet_id' must not be blank" if OCI::Internal::Util.blank_string?(fleet_id)
|
306
|
+
|
307
|
+
path = '/fleets/{fleetId}'.sub('{fleetId}', fleet_id.to_s)
|
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-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
319
|
+
# rubocop:enable Style/NegatedIf
|
320
|
+
|
321
|
+
post_body = nil
|
322
|
+
|
323
|
+
# rubocop:disable Metrics/BlockLength
|
324
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#get_fleet') do
|
325
|
+
@api_client.call_api(
|
326
|
+
:GET,
|
327
|
+
path,
|
328
|
+
endpoint,
|
329
|
+
header_params: header_params,
|
330
|
+
query_params: query_params,
|
331
|
+
operation_signing_strategy: operation_signing_strategy,
|
332
|
+
body: post_body,
|
333
|
+
return_type: 'OCI::Jms::Models::Fleet'
|
334
|
+
)
|
335
|
+
end
|
336
|
+
# rubocop:enable Metrics/BlockLength
|
337
|
+
end
|
338
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
339
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
340
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
341
|
+
|
342
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
343
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
344
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
345
|
+
|
346
|
+
|
347
|
+
# Retrieve a Fleet Agent Configuration for the specified Fleet.
|
348
|
+
# @param [String] fleet_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Fleet.
|
349
|
+
# @param [Hash] opts the optional parameters
|
350
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
351
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
352
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
353
|
+
# @return [Response] A Response object with data of type {OCI::Jms::Models::FleetAgentConfiguration FleetAgentConfiguration}
|
354
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/get_fleet_agent_configuration.rb.html) to see an example of how to use get_fleet_agent_configuration API.
|
355
|
+
def get_fleet_agent_configuration(fleet_id, opts = {})
|
356
|
+
logger.debug 'Calling operation JavaManagementServiceClient#get_fleet_agent_configuration.' if logger
|
357
|
+
|
358
|
+
raise "Missing the required parameter 'fleet_id' when calling get_fleet_agent_configuration." if fleet_id.nil?
|
359
|
+
raise "Parameter value for 'fleet_id' must not be blank" if OCI::Internal::Util.blank_string?(fleet_id)
|
360
|
+
|
361
|
+
path = '/fleets/{fleetId}/agentConfiguration'.sub('{fleetId}', fleet_id.to_s)
|
362
|
+
operation_signing_strategy = :standard
|
363
|
+
|
364
|
+
# rubocop:disable Style/NegatedIf
|
365
|
+
# Query Params
|
366
|
+
query_params = {}
|
367
|
+
|
368
|
+
# Header Params
|
369
|
+
header_params = {}
|
370
|
+
header_params[:accept] = 'application/json'
|
371
|
+
header_params[:'content-type'] = 'application/json'
|
372
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
373
|
+
# rubocop:enable Style/NegatedIf
|
374
|
+
|
375
|
+
post_body = nil
|
376
|
+
|
377
|
+
# rubocop:disable Metrics/BlockLength
|
378
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#get_fleet_agent_configuration') do
|
379
|
+
@api_client.call_api(
|
380
|
+
:GET,
|
381
|
+
path,
|
382
|
+
endpoint,
|
383
|
+
header_params: header_params,
|
384
|
+
query_params: query_params,
|
385
|
+
operation_signing_strategy: operation_signing_strategy,
|
386
|
+
body: post_body,
|
387
|
+
return_type: 'OCI::Jms::Models::FleetAgentConfiguration'
|
388
|
+
)
|
389
|
+
end
|
390
|
+
# rubocop:enable Metrics/BlockLength
|
391
|
+
end
|
392
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
393
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
394
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
395
|
+
|
396
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
397
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
398
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
399
|
+
|
400
|
+
|
401
|
+
# Retrieve the details of a work request with the specified ID.
|
402
|
+
# @param [String] work_request_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
|
403
|
+
# @param [Hash] opts the optional parameters
|
404
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
405
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
406
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
407
|
+
# @return [Response] A Response object with data of type {OCI::Jms::Models::WorkRequest WorkRequest}
|
408
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/get_work_request.rb.html) to see an example of how to use get_work_request API.
|
409
|
+
def get_work_request(work_request_id, opts = {})
|
410
|
+
logger.debug 'Calling operation JavaManagementServiceClient#get_work_request.' if logger
|
411
|
+
|
412
|
+
raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil?
|
413
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
414
|
+
|
415
|
+
path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s)
|
416
|
+
operation_signing_strategy = :standard
|
417
|
+
|
418
|
+
# rubocop:disable Style/NegatedIf
|
419
|
+
# Query Params
|
420
|
+
query_params = {}
|
421
|
+
|
422
|
+
# Header Params
|
423
|
+
header_params = {}
|
424
|
+
header_params[:accept] = 'application/json'
|
425
|
+
header_params[:'content-type'] = 'application/json'
|
426
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
427
|
+
# rubocop:enable Style/NegatedIf
|
428
|
+
|
429
|
+
post_body = nil
|
430
|
+
|
431
|
+
# rubocop:disable Metrics/BlockLength
|
432
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#get_work_request') do
|
433
|
+
@api_client.call_api(
|
434
|
+
:GET,
|
435
|
+
path,
|
436
|
+
endpoint,
|
437
|
+
header_params: header_params,
|
438
|
+
query_params: query_params,
|
439
|
+
operation_signing_strategy: operation_signing_strategy,
|
440
|
+
body: post_body,
|
441
|
+
return_type: 'OCI::Jms::Models::WorkRequest'
|
442
|
+
)
|
443
|
+
end
|
444
|
+
# rubocop:enable Metrics/BlockLength
|
445
|
+
end
|
446
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
447
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
448
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
449
|
+
|
450
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
451
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
452
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
453
|
+
|
454
|
+
|
455
|
+
# Returns a list of all the Fleets contained by a compartment.
|
456
|
+
#
|
457
|
+
# @param [Hash] opts the optional parameters
|
458
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
459
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
460
|
+
# @option opts [String] :compartment_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
|
461
|
+
# @option opts [String] :id The ID of the Fleet.
|
462
|
+
# @option opts [String] :lifecycle_state The state of the lifecycle.
|
463
|
+
# @option opts [String] :display_name The display name.
|
464
|
+
# @option opts [Integer] :limit The maximum number of items to return. (default to 10)
|
465
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
466
|
+
# @option opts [String] :sort_order The sort order, either 'asc' or 'desc'. (default to ASC)
|
467
|
+
# @option opts [String] :sort_by The field to sort Fleets. Only one sort order may be provided.
|
468
|
+
# Default order for _timeCreated_, _approximateJreCount_, _approximateInstallationCount_,
|
469
|
+
# _approximateApplicationCount_ and _approximateManagedInstanceCount_ is **descending**.
|
470
|
+
# Default order for _displayName_ is **ascending**.
|
471
|
+
# If no value is specified _timeCreated_ is default.
|
472
|
+
# (default to timeCreated)
|
473
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
474
|
+
# @return [Response] A Response object with data of type {OCI::Jms::Models::FleetCollection FleetCollection}
|
475
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/list_fleets.rb.html) to see an example of how to use list_fleets API.
|
476
|
+
def list_fleets(opts = {})
|
477
|
+
logger.debug 'Calling operation JavaManagementServiceClient#list_fleets.' if logger
|
478
|
+
|
479
|
+
|
480
|
+
if opts[:lifecycle_state] && !OCI::Jms::Models::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
|
481
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Jms::Models::LIFECYCLE_STATE_ENUM.'
|
482
|
+
end
|
483
|
+
|
484
|
+
if opts[:sort_order] && !OCI::Jms::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
485
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::Jms::Models::SORT_ORDER_ENUM.'
|
486
|
+
end
|
487
|
+
|
488
|
+
if opts[:sort_by] && !OCI::Jms::Models::SORT_BY_ENUM.include?(opts[:sort_by])
|
489
|
+
raise 'Invalid value for "sort_by", must be one of the values in OCI::Jms::Models::SORT_BY_ENUM.'
|
490
|
+
end
|
491
|
+
|
492
|
+
path = '/fleets'
|
493
|
+
operation_signing_strategy = :standard
|
494
|
+
|
495
|
+
# rubocop:disable Style/NegatedIf
|
496
|
+
# Query Params
|
497
|
+
query_params = {}
|
498
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
499
|
+
query_params[:id] = opts[:id] if opts[:id]
|
500
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
501
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
502
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
503
|
+
query_params[:page] = opts[:page] if opts[:page]
|
504
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
505
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
506
|
+
|
507
|
+
# Header Params
|
508
|
+
header_params = {}
|
509
|
+
header_params[:accept] = 'application/json'
|
510
|
+
header_params[:'content-type'] = 'application/json'
|
511
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
512
|
+
# rubocop:enable Style/NegatedIf
|
513
|
+
|
514
|
+
post_body = nil
|
515
|
+
|
516
|
+
# rubocop:disable Metrics/BlockLength
|
517
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#list_fleets') do
|
518
|
+
@api_client.call_api(
|
519
|
+
:GET,
|
520
|
+
path,
|
521
|
+
endpoint,
|
522
|
+
header_params: header_params,
|
523
|
+
query_params: query_params,
|
524
|
+
operation_signing_strategy: operation_signing_strategy,
|
525
|
+
body: post_body,
|
526
|
+
return_type: 'OCI::Jms::Models::FleetCollection'
|
527
|
+
)
|
528
|
+
end
|
529
|
+
# rubocop:enable Metrics/BlockLength
|
530
|
+
end
|
531
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
532
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
533
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
534
|
+
|
535
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
536
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
537
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
538
|
+
|
539
|
+
|
540
|
+
# Retrieve a (paginated) list of errors for a specified work request.
|
541
|
+
#
|
542
|
+
# @param [String] work_request_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
|
543
|
+
# @param [Hash] opts the optional parameters
|
544
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
545
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
546
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
547
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
548
|
+
# @option opts [Integer] :limit The maximum number of items to return. (default to 10)
|
549
|
+
# @return [Response] A Response object with data of type {OCI::Jms::Models::WorkRequestErrorCollection WorkRequestErrorCollection}
|
550
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/list_work_request_errors.rb.html) to see an example of how to use list_work_request_errors API.
|
551
|
+
def list_work_request_errors(work_request_id, opts = {})
|
552
|
+
logger.debug 'Calling operation JavaManagementServiceClient#list_work_request_errors.' if logger
|
553
|
+
|
554
|
+
raise "Missing the required parameter 'work_request_id' when calling list_work_request_errors." if work_request_id.nil?
|
555
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
556
|
+
|
557
|
+
path = '/workRequests/{workRequestId}/errors'.sub('{workRequestId}', work_request_id.to_s)
|
558
|
+
operation_signing_strategy = :standard
|
559
|
+
|
560
|
+
# rubocop:disable Style/NegatedIf
|
561
|
+
# Query Params
|
562
|
+
query_params = {}
|
563
|
+
query_params[:page] = opts[:page] if opts[:page]
|
564
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
565
|
+
|
566
|
+
# Header Params
|
567
|
+
header_params = {}
|
568
|
+
header_params[:accept] = 'application/json'
|
569
|
+
header_params[:'content-type'] = 'application/json'
|
570
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
571
|
+
# rubocop:enable Style/NegatedIf
|
572
|
+
|
573
|
+
post_body = nil
|
574
|
+
|
575
|
+
# rubocop:disable Metrics/BlockLength
|
576
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#list_work_request_errors') do
|
577
|
+
@api_client.call_api(
|
578
|
+
:GET,
|
579
|
+
path,
|
580
|
+
endpoint,
|
581
|
+
header_params: header_params,
|
582
|
+
query_params: query_params,
|
583
|
+
operation_signing_strategy: operation_signing_strategy,
|
584
|
+
body: post_body,
|
585
|
+
return_type: 'OCI::Jms::Models::WorkRequestErrorCollection'
|
586
|
+
)
|
587
|
+
end
|
588
|
+
# rubocop:enable Metrics/BlockLength
|
589
|
+
end
|
590
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
591
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
592
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
593
|
+
|
594
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
595
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
596
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
597
|
+
|
598
|
+
|
599
|
+
# Retrieve a (paginated) list of logs for a specified work request.
|
600
|
+
#
|
601
|
+
# @param [String] work_request_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
|
602
|
+
# @param [Hash] opts the optional parameters
|
603
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
604
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
605
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
606
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
607
|
+
# @option opts [Integer] :limit The maximum number of items to return. (default to 10)
|
608
|
+
# @return [Response] A Response object with data of type {OCI::Jms::Models::WorkRequestLogEntryCollection WorkRequestLogEntryCollection}
|
609
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/list_work_request_logs.rb.html) to see an example of how to use list_work_request_logs API.
|
610
|
+
def list_work_request_logs(work_request_id, opts = {})
|
611
|
+
logger.debug 'Calling operation JavaManagementServiceClient#list_work_request_logs.' if logger
|
612
|
+
|
613
|
+
raise "Missing the required parameter 'work_request_id' when calling list_work_request_logs." if work_request_id.nil?
|
614
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
615
|
+
|
616
|
+
path = '/workRequests/{workRequestId}/logs'.sub('{workRequestId}', work_request_id.to_s)
|
617
|
+
operation_signing_strategy = :standard
|
618
|
+
|
619
|
+
# rubocop:disable Style/NegatedIf
|
620
|
+
# Query Params
|
621
|
+
query_params = {}
|
622
|
+
query_params[:page] = opts[:page] if opts[:page]
|
623
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
624
|
+
|
625
|
+
# Header Params
|
626
|
+
header_params = {}
|
627
|
+
header_params[:accept] = 'application/json'
|
628
|
+
header_params[:'content-type'] = 'application/json'
|
629
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
630
|
+
# rubocop:enable Style/NegatedIf
|
631
|
+
|
632
|
+
post_body = nil
|
633
|
+
|
634
|
+
# rubocop:disable Metrics/BlockLength
|
635
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#list_work_request_logs') do
|
636
|
+
@api_client.call_api(
|
637
|
+
:GET,
|
638
|
+
path,
|
639
|
+
endpoint,
|
640
|
+
header_params: header_params,
|
641
|
+
query_params: query_params,
|
642
|
+
operation_signing_strategy: operation_signing_strategy,
|
643
|
+
body: post_body,
|
644
|
+
return_type: 'OCI::Jms::Models::WorkRequestLogEntryCollection'
|
645
|
+
)
|
646
|
+
end
|
647
|
+
# rubocop:enable Metrics/BlockLength
|
648
|
+
end
|
649
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
650
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
651
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
652
|
+
|
653
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
654
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
655
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
656
|
+
|
657
|
+
|
658
|
+
# List the work requests in a compartment.
|
659
|
+
#
|
660
|
+
# @param [Hash] opts the optional parameters
|
661
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
662
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
663
|
+
# @option opts [String] :compartment_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
|
664
|
+
# @option opts [String] :id The ID of an asynchronous work request.
|
665
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
666
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
667
|
+
# @option opts [Integer] :limit The maximum number of items to return. (default to 10)
|
668
|
+
# @return [Response] A Response object with data of type {OCI::Jms::Models::WorkRequestCollection WorkRequestCollection}
|
669
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/list_work_requests.rb.html) to see an example of how to use list_work_requests API.
|
670
|
+
def list_work_requests(opts = {})
|
671
|
+
logger.debug 'Calling operation JavaManagementServiceClient#list_work_requests.' if logger
|
672
|
+
|
673
|
+
|
674
|
+
path = '/workRequests'
|
675
|
+
operation_signing_strategy = :standard
|
676
|
+
|
677
|
+
# rubocop:disable Style/NegatedIf
|
678
|
+
# Query Params
|
679
|
+
query_params = {}
|
680
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
681
|
+
query_params[:id] = opts[:id] if opts[:id]
|
682
|
+
query_params[:page] = opts[:page] if opts[:page]
|
683
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
684
|
+
|
685
|
+
# Header Params
|
686
|
+
header_params = {}
|
687
|
+
header_params[:accept] = 'application/json'
|
688
|
+
header_params[:'content-type'] = 'application/json'
|
689
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
690
|
+
# rubocop:enable Style/NegatedIf
|
691
|
+
|
692
|
+
post_body = nil
|
693
|
+
|
694
|
+
# rubocop:disable Metrics/BlockLength
|
695
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#list_work_requests') do
|
696
|
+
@api_client.call_api(
|
697
|
+
:GET,
|
698
|
+
path,
|
699
|
+
endpoint,
|
700
|
+
header_params: header_params,
|
701
|
+
query_params: query_params,
|
702
|
+
operation_signing_strategy: operation_signing_strategy,
|
703
|
+
body: post_body,
|
704
|
+
return_type: 'OCI::Jms::Models::WorkRequestCollection'
|
705
|
+
)
|
706
|
+
end
|
707
|
+
# rubocop:enable Metrics/BlockLength
|
708
|
+
end
|
709
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
710
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
711
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
712
|
+
|
713
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
714
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
715
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
716
|
+
|
717
|
+
|
718
|
+
# List application usage in a specified Fleet filtered by form parameters.
|
719
|
+
# @param [String] fleet_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Fleet.
|
720
|
+
# @param [OCI::Jms::Models::RequestSummarizedApplicationUsageDetails] request_summarized_application_usage_details Parameters for filtering application usage.
|
721
|
+
# @param [Hash] opts the optional parameters
|
722
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
723
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
724
|
+
# @option opts [Integer] :limit The maximum number of items to return. (default to 10)
|
725
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
726
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
727
|
+
# @return [Response] A Response object with data of type {OCI::Jms::Models::ApplicationUsageCollection ApplicationUsageCollection}
|
728
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/request_summarized_application_usage.rb.html) to see an example of how to use request_summarized_application_usage API.
|
729
|
+
def request_summarized_application_usage(fleet_id, request_summarized_application_usage_details, opts = {})
|
730
|
+
logger.debug 'Calling operation JavaManagementServiceClient#request_summarized_application_usage.' if logger
|
731
|
+
|
732
|
+
raise "Missing the required parameter 'fleet_id' when calling request_summarized_application_usage." if fleet_id.nil?
|
733
|
+
raise "Missing the required parameter 'request_summarized_application_usage_details' when calling request_summarized_application_usage." if request_summarized_application_usage_details.nil?
|
734
|
+
raise "Parameter value for 'fleet_id' must not be blank" if OCI::Internal::Util.blank_string?(fleet_id)
|
735
|
+
|
736
|
+
path = '/fleets/{fleetId}/actions/summarizeApplicationUsage'.sub('{fleetId}', fleet_id.to_s)
|
737
|
+
operation_signing_strategy = :standard
|
738
|
+
|
739
|
+
# rubocop:disable Style/NegatedIf
|
740
|
+
# Query Params
|
741
|
+
query_params = {}
|
742
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
743
|
+
query_params[:page] = opts[:page] if opts[:page]
|
744
|
+
|
745
|
+
# Header Params
|
746
|
+
header_params = {}
|
747
|
+
header_params[:accept] = 'application/json'
|
748
|
+
header_params[:'content-type'] = 'application/json'
|
749
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
750
|
+
# rubocop:enable Style/NegatedIf
|
751
|
+
|
752
|
+
post_body = @api_client.object_to_http_body(request_summarized_application_usage_details)
|
753
|
+
|
754
|
+
# rubocop:disable Metrics/BlockLength
|
755
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#request_summarized_application_usage') do
|
756
|
+
@api_client.call_api(
|
757
|
+
:POST,
|
758
|
+
path,
|
759
|
+
endpoint,
|
760
|
+
header_params: header_params,
|
761
|
+
query_params: query_params,
|
762
|
+
operation_signing_strategy: operation_signing_strategy,
|
763
|
+
body: post_body,
|
764
|
+
return_type: 'OCI::Jms::Models::ApplicationUsageCollection'
|
765
|
+
)
|
766
|
+
end
|
767
|
+
# rubocop:enable Metrics/BlockLength
|
768
|
+
end
|
769
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
770
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
771
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
772
|
+
|
773
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
774
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
775
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
776
|
+
|
777
|
+
|
778
|
+
# List Java installation usage in a specified Fleet filtered by form parameters.
|
779
|
+
# @param [String] fleet_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Fleet.
|
780
|
+
# @param [OCI::Jms::Models::RequestSummarizedInstallationUsageDetails] request_summarized_installation_usage_details Parameters for filtering Java installation usage.
|
781
|
+
# @param [Hash] opts the optional parameters
|
782
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
783
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
784
|
+
# @option opts [Integer] :limit The maximum number of items to return. (default to 10)
|
785
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
786
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
787
|
+
# @return [Response] A Response object with data of type {OCI::Jms::Models::InstallationUsageCollection InstallationUsageCollection}
|
788
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/request_summarized_installation_usage.rb.html) to see an example of how to use request_summarized_installation_usage API.
|
789
|
+
def request_summarized_installation_usage(fleet_id, request_summarized_installation_usage_details, opts = {})
|
790
|
+
logger.debug 'Calling operation JavaManagementServiceClient#request_summarized_installation_usage.' if logger
|
791
|
+
|
792
|
+
raise "Missing the required parameter 'fleet_id' when calling request_summarized_installation_usage." if fleet_id.nil?
|
793
|
+
raise "Missing the required parameter 'request_summarized_installation_usage_details' when calling request_summarized_installation_usage." if request_summarized_installation_usage_details.nil?
|
794
|
+
raise "Parameter value for 'fleet_id' must not be blank" if OCI::Internal::Util.blank_string?(fleet_id)
|
795
|
+
|
796
|
+
path = '/fleets/{fleetId}/actions/summarizeInstallationUsage'.sub('{fleetId}', fleet_id.to_s)
|
797
|
+
operation_signing_strategy = :standard
|
798
|
+
|
799
|
+
# rubocop:disable Style/NegatedIf
|
800
|
+
# Query Params
|
801
|
+
query_params = {}
|
802
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
803
|
+
query_params[:page] = opts[:page] if opts[:page]
|
804
|
+
|
805
|
+
# Header Params
|
806
|
+
header_params = {}
|
807
|
+
header_params[:accept] = 'application/json'
|
808
|
+
header_params[:'content-type'] = 'application/json'
|
809
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
810
|
+
# rubocop:enable Style/NegatedIf
|
811
|
+
|
812
|
+
post_body = @api_client.object_to_http_body(request_summarized_installation_usage_details)
|
813
|
+
|
814
|
+
# rubocop:disable Metrics/BlockLength
|
815
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#request_summarized_installation_usage') do
|
816
|
+
@api_client.call_api(
|
817
|
+
:POST,
|
818
|
+
path,
|
819
|
+
endpoint,
|
820
|
+
header_params: header_params,
|
821
|
+
query_params: query_params,
|
822
|
+
operation_signing_strategy: operation_signing_strategy,
|
823
|
+
body: post_body,
|
824
|
+
return_type: 'OCI::Jms::Models::InstallationUsageCollection'
|
825
|
+
)
|
826
|
+
end
|
827
|
+
# rubocop:enable Metrics/BlockLength
|
828
|
+
end
|
829
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
830
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
831
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
832
|
+
|
833
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
834
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
835
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
836
|
+
|
837
|
+
|
838
|
+
# List Java Runtime usage in a specified Fleet filtered by form parameters.
|
839
|
+
# @param [String] fleet_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Fleet.
|
840
|
+
# @param [OCI::Jms::Models::RequestSummarizedJreUsageDetails] request_summarized_jre_usage_details Parameters for filtering Java Runtime usage.
|
841
|
+
# @param [Hash] opts the optional parameters
|
842
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
843
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
844
|
+
# @option opts [Integer] :limit The maximum number of items to return. (default to 10)
|
845
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
846
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
847
|
+
# @return [Response] A Response object with data of type {OCI::Jms::Models::JreUsageCollection JreUsageCollection}
|
848
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/request_summarized_jre_usage.rb.html) to see an example of how to use request_summarized_jre_usage API.
|
849
|
+
def request_summarized_jre_usage(fleet_id, request_summarized_jre_usage_details, opts = {})
|
850
|
+
logger.debug 'Calling operation JavaManagementServiceClient#request_summarized_jre_usage.' if logger
|
851
|
+
|
852
|
+
raise "Missing the required parameter 'fleet_id' when calling request_summarized_jre_usage." if fleet_id.nil?
|
853
|
+
raise "Missing the required parameter 'request_summarized_jre_usage_details' when calling request_summarized_jre_usage." if request_summarized_jre_usage_details.nil?
|
854
|
+
raise "Parameter value for 'fleet_id' must not be blank" if OCI::Internal::Util.blank_string?(fleet_id)
|
855
|
+
|
856
|
+
path = '/fleets/{fleetId}/actions/summarizeJreUsage'.sub('{fleetId}', fleet_id.to_s)
|
857
|
+
operation_signing_strategy = :standard
|
858
|
+
|
859
|
+
# rubocop:disable Style/NegatedIf
|
860
|
+
# Query Params
|
861
|
+
query_params = {}
|
862
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
863
|
+
query_params[:page] = opts[:page] if opts[:page]
|
864
|
+
|
865
|
+
# Header Params
|
866
|
+
header_params = {}
|
867
|
+
header_params[:accept] = 'application/json'
|
868
|
+
header_params[:'content-type'] = 'application/json'
|
869
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
870
|
+
# rubocop:enable Style/NegatedIf
|
871
|
+
|
872
|
+
post_body = @api_client.object_to_http_body(request_summarized_jre_usage_details)
|
873
|
+
|
874
|
+
# rubocop:disable Metrics/BlockLength
|
875
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#request_summarized_jre_usage') do
|
876
|
+
@api_client.call_api(
|
877
|
+
:POST,
|
878
|
+
path,
|
879
|
+
endpoint,
|
880
|
+
header_params: header_params,
|
881
|
+
query_params: query_params,
|
882
|
+
operation_signing_strategy: operation_signing_strategy,
|
883
|
+
body: post_body,
|
884
|
+
return_type: 'OCI::Jms::Models::JreUsageCollection'
|
885
|
+
)
|
886
|
+
end
|
887
|
+
# rubocop:enable Metrics/BlockLength
|
888
|
+
end
|
889
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
890
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
891
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
892
|
+
|
893
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
894
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
895
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
896
|
+
|
897
|
+
|
898
|
+
# List managed instance usage in a specified Fleet filtered by form parameters.
|
899
|
+
# @param [String] fleet_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Fleet.
|
900
|
+
# @param [OCI::Jms::Models::RequestSummarizedManagedInstanceUsageDetails] request_summarized_managed_instance_usage_details Parameters for filtering managed instance usage.
|
901
|
+
# @param [Hash] opts the optional parameters
|
902
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
903
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
904
|
+
# @option opts [Integer] :limit The maximum number of items to return. (default to 10)
|
905
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
906
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
907
|
+
# @return [Response] A Response object with data of type {OCI::Jms::Models::ManagedInstanceUsageCollection ManagedInstanceUsageCollection}
|
908
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/request_summarized_managed_instance_usage.rb.html) to see an example of how to use request_summarized_managed_instance_usage API.
|
909
|
+
def request_summarized_managed_instance_usage(fleet_id, request_summarized_managed_instance_usage_details, opts = {})
|
910
|
+
logger.debug 'Calling operation JavaManagementServiceClient#request_summarized_managed_instance_usage.' if logger
|
911
|
+
|
912
|
+
raise "Missing the required parameter 'fleet_id' when calling request_summarized_managed_instance_usage." if fleet_id.nil?
|
913
|
+
raise "Missing the required parameter 'request_summarized_managed_instance_usage_details' when calling request_summarized_managed_instance_usage." if request_summarized_managed_instance_usage_details.nil?
|
914
|
+
raise "Parameter value for 'fleet_id' must not be blank" if OCI::Internal::Util.blank_string?(fleet_id)
|
915
|
+
|
916
|
+
path = '/fleets/{fleetId}/actions/summarizeManagedInstanceUsage'.sub('{fleetId}', fleet_id.to_s)
|
917
|
+
operation_signing_strategy = :standard
|
918
|
+
|
919
|
+
# rubocop:disable Style/NegatedIf
|
920
|
+
# Query Params
|
921
|
+
query_params = {}
|
922
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
923
|
+
query_params[:page] = opts[:page] if opts[:page]
|
924
|
+
|
925
|
+
# Header Params
|
926
|
+
header_params = {}
|
927
|
+
header_params[:accept] = 'application/json'
|
928
|
+
header_params[:'content-type'] = 'application/json'
|
929
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
930
|
+
# rubocop:enable Style/NegatedIf
|
931
|
+
|
932
|
+
post_body = @api_client.object_to_http_body(request_summarized_managed_instance_usage_details)
|
933
|
+
|
934
|
+
# rubocop:disable Metrics/BlockLength
|
935
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#request_summarized_managed_instance_usage') do
|
936
|
+
@api_client.call_api(
|
937
|
+
:POST,
|
938
|
+
path,
|
939
|
+
endpoint,
|
940
|
+
header_params: header_params,
|
941
|
+
query_params: query_params,
|
942
|
+
operation_signing_strategy: operation_signing_strategy,
|
943
|
+
body: post_body,
|
944
|
+
return_type: 'OCI::Jms::Models::ManagedInstanceUsageCollection'
|
945
|
+
)
|
946
|
+
end
|
947
|
+
# rubocop:enable Metrics/BlockLength
|
948
|
+
end
|
949
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
950
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
951
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
952
|
+
|
953
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
954
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
955
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
956
|
+
|
957
|
+
|
958
|
+
# List application usage in a Fleet filtered by query parameters.
|
959
|
+
# @param [String] fleet_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Fleet.
|
960
|
+
# @param [Hash] opts the optional parameters
|
961
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
962
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
963
|
+
# @option opts [String] :application_id The Fleet-unique identifier of the application.
|
964
|
+
# @option opts [String] :display_name The display name.
|
965
|
+
# @option opts [String] :application_type The type of the application.
|
966
|
+
# @option opts [String] :jre_vendor The vendor of the related Java Runtime.
|
967
|
+
# @option opts [String] :jre_distribution The distribution of the related Java Runtime.
|
968
|
+
# @option opts [String] :jre_version The version of the related Java Runtime.
|
969
|
+
# @option opts [String] :installation_path The file system path of the installation.
|
970
|
+
# @option opts [String] :managed_instance_id The Fleet-unique identifier of the related managed instance.
|
971
|
+
# @option opts [Array<String>] :fields Additional fields to include into the returned model on top of the required ones.
|
972
|
+
# This parameter can also include 'approximateJreCount', 'approximateInstallationCount' and 'approximateManagedInstanceCount'.
|
973
|
+
# For example 'approximateJreCount,approximateInstallationCount'.
|
974
|
+
# (default to [])
|
975
|
+
# Allowed values are: approximateJreCount, approximateInstallationCount, approximateManagedInstanceCount
|
976
|
+
# @option opts [DateTime] :time_start The start of the time period during which resources are searched (formatted according to RFC3339).
|
977
|
+
# @option opts [DateTime] :time_end The end of the time period during which resources are searched (formatted according to RFC3339).
|
978
|
+
# @option opts [Integer] :limit The maximum number of items to return. (default to 10)
|
979
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
980
|
+
# @option opts [String] :sort_order The sort order, either 'asc' or 'desc'. (default to ASC)
|
981
|
+
# @option opts [String] :sort_by The field to sort application views. Only one sort order may be provided.
|
982
|
+
# Default order for _timeFirstSeen_, _timeLastSeen_, _approximateJreCount_, _approximateInstallationCount_
|
983
|
+
# and _approximateManagedInstanceCount_ is **descending**.
|
984
|
+
# Default order for _displayName_ is **ascending**.
|
985
|
+
# If no value is specified _timeLastSeen_ is default.
|
986
|
+
# (default to timeLastSeen)
|
987
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
988
|
+
# @return [Response] A Response object with data of type {OCI::Jms::Models::ApplicationUsageCollection ApplicationUsageCollection}
|
989
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/summarize_application_usage.rb.html) to see an example of how to use summarize_application_usage API.
|
990
|
+
def summarize_application_usage(fleet_id, opts = {})
|
991
|
+
logger.debug 'Calling operation JavaManagementServiceClient#summarize_application_usage.' if logger
|
992
|
+
|
993
|
+
raise "Missing the required parameter 'fleet_id' when calling summarize_application_usage." if fleet_id.nil?
|
994
|
+
|
995
|
+
|
996
|
+
fields_allowable_values = %w[approximateJreCount approximateInstallationCount approximateManagedInstanceCount]
|
997
|
+
if opts[:fields] && !opts[:fields].empty?
|
998
|
+
opts[:fields].each do |val_to_check|
|
999
|
+
unless fields_allowable_values.include?(val_to_check)
|
1000
|
+
raise 'Invalid value for "fields", must be one of approximateJreCount, approximateInstallationCount, approximateManagedInstanceCount.'
|
1001
|
+
end
|
1002
|
+
end
|
1003
|
+
end
|
1004
|
+
|
1005
|
+
if opts[:sort_order] && !OCI::Jms::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
1006
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::Jms::Models::SORT_ORDER_ENUM.'
|
1007
|
+
end
|
1008
|
+
|
1009
|
+
if opts[:sort_by] && !OCI::Jms::Models::APPLICATION_SORT_BY_ENUM.include?(opts[:sort_by])
|
1010
|
+
raise 'Invalid value for "sort_by", must be one of the values in OCI::Jms::Models::APPLICATION_SORT_BY_ENUM.'
|
1011
|
+
end
|
1012
|
+
raise "Parameter value for 'fleet_id' must not be blank" if OCI::Internal::Util.blank_string?(fleet_id)
|
1013
|
+
|
1014
|
+
path = '/fleets/{fleetId}/actions/summarizeApplicationUsage'.sub('{fleetId}', fleet_id.to_s)
|
1015
|
+
operation_signing_strategy = :standard
|
1016
|
+
|
1017
|
+
# rubocop:disable Style/NegatedIf
|
1018
|
+
# Query Params
|
1019
|
+
query_params = {}
|
1020
|
+
query_params[:applicationId] = opts[:application_id] if opts[:application_id]
|
1021
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
1022
|
+
query_params[:applicationType] = opts[:application_type] if opts[:application_type]
|
1023
|
+
query_params[:jreVendor] = opts[:jre_vendor] if opts[:jre_vendor]
|
1024
|
+
query_params[:jreDistribution] = opts[:jre_distribution] if opts[:jre_distribution]
|
1025
|
+
query_params[:jreVersion] = opts[:jre_version] if opts[:jre_version]
|
1026
|
+
query_params[:installationPath] = opts[:installation_path] if opts[:installation_path]
|
1027
|
+
query_params[:managedInstanceId] = opts[:managed_instance_id] if opts[:managed_instance_id]
|
1028
|
+
query_params[:fields] = OCI::ApiClient.build_collection_params(opts[:fields], :csv) if opts[:fields] && !opts[:fields].empty?
|
1029
|
+
query_params[:timeStart] = opts[:time_start] if opts[:time_start]
|
1030
|
+
query_params[:timeEnd] = opts[:time_end] if opts[:time_end]
|
1031
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1032
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1033
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1034
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1035
|
+
|
1036
|
+
# Header Params
|
1037
|
+
header_params = {}
|
1038
|
+
header_params[:accept] = 'application/json'
|
1039
|
+
header_params[:'content-type'] = 'application/json'
|
1040
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1041
|
+
# rubocop:enable Style/NegatedIf
|
1042
|
+
|
1043
|
+
post_body = nil
|
1044
|
+
|
1045
|
+
# rubocop:disable Metrics/BlockLength
|
1046
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#summarize_application_usage') do
|
1047
|
+
@api_client.call_api(
|
1048
|
+
:GET,
|
1049
|
+
path,
|
1050
|
+
endpoint,
|
1051
|
+
header_params: header_params,
|
1052
|
+
query_params: query_params,
|
1053
|
+
operation_signing_strategy: operation_signing_strategy,
|
1054
|
+
body: post_body,
|
1055
|
+
return_type: 'OCI::Jms::Models::ApplicationUsageCollection'
|
1056
|
+
)
|
1057
|
+
end
|
1058
|
+
# rubocop:enable Metrics/BlockLength
|
1059
|
+
end
|
1060
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1061
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1062
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1063
|
+
|
1064
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1065
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1066
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1067
|
+
|
1068
|
+
|
1069
|
+
# List Java installation usage in a Fleet filtered by query parameters.
|
1070
|
+
# @param [String] fleet_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Fleet.
|
1071
|
+
# @param [Hash] opts the optional parameters
|
1072
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1073
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1074
|
+
# @option opts [String] :jre_vendor The vendor of the related Java Runtime.
|
1075
|
+
# @option opts [String] :jre_distribution The distribution of the related Java Runtime.
|
1076
|
+
# @option opts [String] :jre_version The version of the related Java Runtime.
|
1077
|
+
# @option opts [String] :installation_path The file system path of the installation.
|
1078
|
+
# @option opts [String] :application_id The Fleet-unique identifier of the related application.
|
1079
|
+
# @option opts [String] :managed_instance_id The Fleet-unique identifier of the related managed instance.
|
1080
|
+
# @option opts [Array<String>] :fields Additional fields to include into the returned model on top of the required ones.
|
1081
|
+
# This parameter can also include 'approximateApplicationCount' and 'approximateManagedInstanceCount'.
|
1082
|
+
# For example 'approximateApplicationCount,approximateManagedInstanceCount'.
|
1083
|
+
# (default to [])
|
1084
|
+
# Allowed values are: approximateApplicationCount, approximateManagedInstanceCount
|
1085
|
+
# @option opts [DateTime] :time_start The start of the time period during which resources are searched (formatted according to RFC3339).
|
1086
|
+
# @option opts [DateTime] :time_end The end of the time period during which resources are searched (formatted according to RFC3339).
|
1087
|
+
# @option opts [Integer] :limit The maximum number of items to return. (default to 10)
|
1088
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
1089
|
+
# @option opts [String] :sort_order The sort order, either 'asc' or 'desc'. (default to ASC)
|
1090
|
+
# @option opts [String] :sort_by The field to sort installation views. Only one sort order may be provided.
|
1091
|
+
# Default order for _timeFirstSeen_, _timeLastSeen_, and _jreVersion_, _approximateApplicationCount_
|
1092
|
+
# and _approximateManagedInstanceCount_ is **descending**.
|
1093
|
+
# Default order for _jreDistribution_ and _jreVendor_ is **ascending**. If no value is specified _timeLastSeen_ is default.
|
1094
|
+
# (default to timeLastSeen)
|
1095
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
1096
|
+
# @return [Response] A Response object with data of type {OCI::Jms::Models::InstallationUsageCollection InstallationUsageCollection}
|
1097
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/summarize_installation_usage.rb.html) to see an example of how to use summarize_installation_usage API.
|
1098
|
+
def summarize_installation_usage(fleet_id, opts = {})
|
1099
|
+
logger.debug 'Calling operation JavaManagementServiceClient#summarize_installation_usage.' if logger
|
1100
|
+
|
1101
|
+
raise "Missing the required parameter 'fleet_id' when calling summarize_installation_usage." if fleet_id.nil?
|
1102
|
+
|
1103
|
+
|
1104
|
+
fields_allowable_values = %w[approximateApplicationCount approximateManagedInstanceCount]
|
1105
|
+
if opts[:fields] && !opts[:fields].empty?
|
1106
|
+
opts[:fields].each do |val_to_check|
|
1107
|
+
unless fields_allowable_values.include?(val_to_check)
|
1108
|
+
raise 'Invalid value for "fields", must be one of approximateApplicationCount, approximateManagedInstanceCount.'
|
1109
|
+
end
|
1110
|
+
end
|
1111
|
+
end
|
1112
|
+
|
1113
|
+
if opts[:sort_order] && !OCI::Jms::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
1114
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::Jms::Models::SORT_ORDER_ENUM.'
|
1115
|
+
end
|
1116
|
+
|
1117
|
+
if opts[:sort_by] && !OCI::Jms::Models::INSTALLATION_SORT_BY_ENUM.include?(opts[:sort_by])
|
1118
|
+
raise 'Invalid value for "sort_by", must be one of the values in OCI::Jms::Models::INSTALLATION_SORT_BY_ENUM.'
|
1119
|
+
end
|
1120
|
+
raise "Parameter value for 'fleet_id' must not be blank" if OCI::Internal::Util.blank_string?(fleet_id)
|
1121
|
+
|
1122
|
+
path = '/fleets/{fleetId}/actions/summarizeInstallationUsage'.sub('{fleetId}', fleet_id.to_s)
|
1123
|
+
operation_signing_strategy = :standard
|
1124
|
+
|
1125
|
+
# rubocop:disable Style/NegatedIf
|
1126
|
+
# Query Params
|
1127
|
+
query_params = {}
|
1128
|
+
query_params[:jreVendor] = opts[:jre_vendor] if opts[:jre_vendor]
|
1129
|
+
query_params[:jreDistribution] = opts[:jre_distribution] if opts[:jre_distribution]
|
1130
|
+
query_params[:jreVersion] = opts[:jre_version] if opts[:jre_version]
|
1131
|
+
query_params[:installationPath] = opts[:installation_path] if opts[:installation_path]
|
1132
|
+
query_params[:applicationId] = opts[:application_id] if opts[:application_id]
|
1133
|
+
query_params[:managedInstanceId] = opts[:managed_instance_id] if opts[:managed_instance_id]
|
1134
|
+
query_params[:fields] = OCI::ApiClient.build_collection_params(opts[:fields], :csv) if opts[:fields] && !opts[:fields].empty?
|
1135
|
+
query_params[:timeStart] = opts[:time_start] if opts[:time_start]
|
1136
|
+
query_params[:timeEnd] = opts[:time_end] if opts[:time_end]
|
1137
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1138
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1139
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1140
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1141
|
+
|
1142
|
+
# Header Params
|
1143
|
+
header_params = {}
|
1144
|
+
header_params[:accept] = 'application/json'
|
1145
|
+
header_params[:'content-type'] = 'application/json'
|
1146
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1147
|
+
# rubocop:enable Style/NegatedIf
|
1148
|
+
|
1149
|
+
post_body = nil
|
1150
|
+
|
1151
|
+
# rubocop:disable Metrics/BlockLength
|
1152
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#summarize_installation_usage') do
|
1153
|
+
@api_client.call_api(
|
1154
|
+
:GET,
|
1155
|
+
path,
|
1156
|
+
endpoint,
|
1157
|
+
header_params: header_params,
|
1158
|
+
query_params: query_params,
|
1159
|
+
operation_signing_strategy: operation_signing_strategy,
|
1160
|
+
body: post_body,
|
1161
|
+
return_type: 'OCI::Jms::Models::InstallationUsageCollection'
|
1162
|
+
)
|
1163
|
+
end
|
1164
|
+
# rubocop:enable Metrics/BlockLength
|
1165
|
+
end
|
1166
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1167
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1168
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1169
|
+
|
1170
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1171
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1172
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1173
|
+
|
1174
|
+
|
1175
|
+
# List Java Runtime usage in a specified Fleet filtered by query parameters.
|
1176
|
+
# @param [String] fleet_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Fleet.
|
1177
|
+
# @param [Hash] opts the optional parameters
|
1178
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1179
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1180
|
+
# @option opts [String] :jre_vendor The vendor of the Java Runtime.
|
1181
|
+
# @option opts [String] :jre_distribution The distribution of the Java Runtime.
|
1182
|
+
# @option opts [String] :jre_version The version of the Java Runtime.
|
1183
|
+
# @option opts [String] :application_id The Fleet-unique identifier of the related application.
|
1184
|
+
# @option opts [String] :managed_instance_id The Fleet-unique identifier of the related managed instance.
|
1185
|
+
# @option opts [Array<String>] :fields Additional fields to include into the returned model on top of the required ones.
|
1186
|
+
# This parameter can also include 'approximateApplicationCount', 'approximateInstallationCount' and 'approximateManagedInstanceCount'.
|
1187
|
+
# For example 'approximateApplicationCount,approximateManagedInstanceCount'.
|
1188
|
+
# (default to [])
|
1189
|
+
# Allowed values are: approximateInstallationCount, approximateApplicationCount, approximateManagedInstanceCount
|
1190
|
+
# @option opts [DateTime] :time_start The start of the time period during which resources are searched (formatted according to RFC3339).
|
1191
|
+
# @option opts [DateTime] :time_end The end of the time period during which resources are searched (formatted according to RFC3339).
|
1192
|
+
# @option opts [Integer] :limit The maximum number of items to return. (default to 10)
|
1193
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
1194
|
+
# @option opts [String] :sort_order The sort order, either 'asc' or 'desc'. (default to ASC)
|
1195
|
+
# @option opts [String] :sort_by The field to sort JRE usages. Only one sort order may be provided.
|
1196
|
+
# Default order for _timeFirstSeen_, _timeLastSeen_, and _version_ is **descending**.
|
1197
|
+
# Default order for _timeFirstSeen_, _timeLastSeen_, _version_, _approximateInstallationCount_,
|
1198
|
+
# _approximateApplicationCount_ and _approximateManagedInstanceCount_ is **descending**.
|
1199
|
+
# Default order for _distribution_ and _vendor_ is **ascending**. If no value is specified _timeLastSeen_ is default.
|
1200
|
+
# (default to timeLastSeen)
|
1201
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
1202
|
+
# @return [Response] A Response object with data of type {OCI::Jms::Models::JreUsageCollection JreUsageCollection}
|
1203
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/summarize_jre_usage.rb.html) to see an example of how to use summarize_jre_usage API.
|
1204
|
+
def summarize_jre_usage(fleet_id, opts = {})
|
1205
|
+
logger.debug 'Calling operation JavaManagementServiceClient#summarize_jre_usage.' if logger
|
1206
|
+
|
1207
|
+
raise "Missing the required parameter 'fleet_id' when calling summarize_jre_usage." if fleet_id.nil?
|
1208
|
+
|
1209
|
+
|
1210
|
+
fields_allowable_values = %w[approximateInstallationCount approximateApplicationCount approximateManagedInstanceCount]
|
1211
|
+
if opts[:fields] && !opts[:fields].empty?
|
1212
|
+
opts[:fields].each do |val_to_check|
|
1213
|
+
unless fields_allowable_values.include?(val_to_check)
|
1214
|
+
raise 'Invalid value for "fields", must be one of approximateInstallationCount, approximateApplicationCount, approximateManagedInstanceCount.'
|
1215
|
+
end
|
1216
|
+
end
|
1217
|
+
end
|
1218
|
+
|
1219
|
+
if opts[:sort_order] && !OCI::Jms::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
1220
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::Jms::Models::SORT_ORDER_ENUM.'
|
1221
|
+
end
|
1222
|
+
|
1223
|
+
if opts[:sort_by] && !OCI::Jms::Models::JRE_SORT_BY_ENUM.include?(opts[:sort_by])
|
1224
|
+
raise 'Invalid value for "sort_by", must be one of the values in OCI::Jms::Models::JRE_SORT_BY_ENUM.'
|
1225
|
+
end
|
1226
|
+
raise "Parameter value for 'fleet_id' must not be blank" if OCI::Internal::Util.blank_string?(fleet_id)
|
1227
|
+
|
1228
|
+
path = '/fleets/{fleetId}/actions/summarizeJreUsage'.sub('{fleetId}', fleet_id.to_s)
|
1229
|
+
operation_signing_strategy = :standard
|
1230
|
+
|
1231
|
+
# rubocop:disable Style/NegatedIf
|
1232
|
+
# Query Params
|
1233
|
+
query_params = {}
|
1234
|
+
query_params[:jreVendor] = opts[:jre_vendor] if opts[:jre_vendor]
|
1235
|
+
query_params[:jreDistribution] = opts[:jre_distribution] if opts[:jre_distribution]
|
1236
|
+
query_params[:jreVersion] = opts[:jre_version] if opts[:jre_version]
|
1237
|
+
query_params[:applicationId] = opts[:application_id] if opts[:application_id]
|
1238
|
+
query_params[:managedInstanceId] = opts[:managed_instance_id] if opts[:managed_instance_id]
|
1239
|
+
query_params[:fields] = OCI::ApiClient.build_collection_params(opts[:fields], :csv) if opts[:fields] && !opts[:fields].empty?
|
1240
|
+
query_params[:timeStart] = opts[:time_start] if opts[:time_start]
|
1241
|
+
query_params[:timeEnd] = opts[:time_end] if opts[:time_end]
|
1242
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1243
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1244
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1245
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1246
|
+
|
1247
|
+
# Header Params
|
1248
|
+
header_params = {}
|
1249
|
+
header_params[:accept] = 'application/json'
|
1250
|
+
header_params[:'content-type'] = 'application/json'
|
1251
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1252
|
+
# rubocop:enable Style/NegatedIf
|
1253
|
+
|
1254
|
+
post_body = nil
|
1255
|
+
|
1256
|
+
# rubocop:disable Metrics/BlockLength
|
1257
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#summarize_jre_usage') do
|
1258
|
+
@api_client.call_api(
|
1259
|
+
:GET,
|
1260
|
+
path,
|
1261
|
+
endpoint,
|
1262
|
+
header_params: header_params,
|
1263
|
+
query_params: query_params,
|
1264
|
+
operation_signing_strategy: operation_signing_strategy,
|
1265
|
+
body: post_body,
|
1266
|
+
return_type: 'OCI::Jms::Models::JreUsageCollection'
|
1267
|
+
)
|
1268
|
+
end
|
1269
|
+
# rubocop:enable Metrics/BlockLength
|
1270
|
+
end
|
1271
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1272
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1273
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1274
|
+
|
1275
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1276
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1277
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1278
|
+
|
1279
|
+
|
1280
|
+
# List managed instance usage in a Fleet filtered by query parameters.
|
1281
|
+
# @param [String] fleet_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Fleet.
|
1282
|
+
# @param [Hash] opts the optional parameters
|
1283
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1284
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1285
|
+
# @option opts [String] :managed_instance_id The Fleet-unique identifier of the managed instance.
|
1286
|
+
# @option opts [String] :managed_instance_type The type of the managed instance.
|
1287
|
+
# @option opts [String] :jre_vendor The vendor of the related Java Runtime.
|
1288
|
+
# @option opts [String] :jre_distribution The distribution of the related Java Runtime.
|
1289
|
+
# @option opts [String] :jre_version The version of the related Java Runtime.
|
1290
|
+
# @option opts [String] :installation_path The file system path of the installation.
|
1291
|
+
# @option opts [String] :application_id The Fleet-unique identifier of the related application.
|
1292
|
+
# @option opts [Array<String>] :fields Additional fields to include into the returned model on top of the required ones.
|
1293
|
+
# This parameter can also include 'approximateJreCount', 'approximateInstallationCount' and 'approximateApplicationCount'.
|
1294
|
+
# For example 'approximateJreCount,approximateInstallationCount'.
|
1295
|
+
# (default to [])
|
1296
|
+
# Allowed values are: approximateJreCount, approximateInstallationCount, approximateApplicationCount
|
1297
|
+
# @option opts [DateTime] :time_start The start of the time period during which resources are searched (formatted according to RFC3339).
|
1298
|
+
# @option opts [DateTime] :time_end The end of the time period during which resources are searched (formatted according to RFC3339).
|
1299
|
+
# @option opts [Integer] :limit The maximum number of items to return. (default to 10)
|
1300
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
1301
|
+
# @option opts [String] :sort_order The sort order, either 'asc' or 'desc'. (default to ASC)
|
1302
|
+
# @option opts [String] :sort_by The field to sort managed instance views. Only one sort order may be provided.
|
1303
|
+
# Default order for _timeFirstSeen_, _timeLastSeen_, approximateJreCount_, _approximateInstallationCount_
|
1304
|
+
# and _approximateApplicationCount_ is **descending**.
|
1305
|
+
# If no value is specified _timeLastSeen_ is default.
|
1306
|
+
# (default to timeLastSeen)
|
1307
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
1308
|
+
# @return [Response] A Response object with data of type {OCI::Jms::Models::ManagedInstanceUsageCollection ManagedInstanceUsageCollection}
|
1309
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/summarize_managed_instance_usage.rb.html) to see an example of how to use summarize_managed_instance_usage API.
|
1310
|
+
def summarize_managed_instance_usage(fleet_id, opts = {})
|
1311
|
+
logger.debug 'Calling operation JavaManagementServiceClient#summarize_managed_instance_usage.' if logger
|
1312
|
+
|
1313
|
+
raise "Missing the required parameter 'fleet_id' when calling summarize_managed_instance_usage." if fleet_id.nil?
|
1314
|
+
|
1315
|
+
if opts[:managed_instance_type] && !OCI::Jms::Models::MANAGED_INSTANCE_TYPE_ENUM.include?(opts[:managed_instance_type])
|
1316
|
+
raise 'Invalid value for "managed_instance_type", must be one of the values in OCI::Jms::Models::MANAGED_INSTANCE_TYPE_ENUM.'
|
1317
|
+
end
|
1318
|
+
|
1319
|
+
|
1320
|
+
fields_allowable_values = %w[approximateJreCount approximateInstallationCount approximateApplicationCount]
|
1321
|
+
if opts[:fields] && !opts[:fields].empty?
|
1322
|
+
opts[:fields].each do |val_to_check|
|
1323
|
+
unless fields_allowable_values.include?(val_to_check)
|
1324
|
+
raise 'Invalid value for "fields", must be one of approximateJreCount, approximateInstallationCount, approximateApplicationCount.'
|
1325
|
+
end
|
1326
|
+
end
|
1327
|
+
end
|
1328
|
+
|
1329
|
+
if opts[:sort_order] && !OCI::Jms::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
1330
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::Jms::Models::SORT_ORDER_ENUM.'
|
1331
|
+
end
|
1332
|
+
|
1333
|
+
if opts[:sort_by] && !OCI::Jms::Models::MANAGED_INSTANCE_SORT_BY_ENUM.include?(opts[:sort_by])
|
1334
|
+
raise 'Invalid value for "sort_by", must be one of the values in OCI::Jms::Models::MANAGED_INSTANCE_SORT_BY_ENUM.'
|
1335
|
+
end
|
1336
|
+
raise "Parameter value for 'fleet_id' must not be blank" if OCI::Internal::Util.blank_string?(fleet_id)
|
1337
|
+
|
1338
|
+
path = '/fleets/{fleetId}/actions/summarizeManagedInstanceUsage'.sub('{fleetId}', fleet_id.to_s)
|
1339
|
+
operation_signing_strategy = :standard
|
1340
|
+
|
1341
|
+
# rubocop:disable Style/NegatedIf
|
1342
|
+
# Query Params
|
1343
|
+
query_params = {}
|
1344
|
+
query_params[:managedInstanceId] = opts[:managed_instance_id] if opts[:managed_instance_id]
|
1345
|
+
query_params[:managedInstanceType] = opts[:managed_instance_type] if opts[:managed_instance_type]
|
1346
|
+
query_params[:jreVendor] = opts[:jre_vendor] if opts[:jre_vendor]
|
1347
|
+
query_params[:jreDistribution] = opts[:jre_distribution] if opts[:jre_distribution]
|
1348
|
+
query_params[:jreVersion] = opts[:jre_version] if opts[:jre_version]
|
1349
|
+
query_params[:installationPath] = opts[:installation_path] if opts[:installation_path]
|
1350
|
+
query_params[:applicationId] = opts[:application_id] if opts[:application_id]
|
1351
|
+
query_params[:fields] = OCI::ApiClient.build_collection_params(opts[:fields], :csv) if opts[:fields] && !opts[:fields].empty?
|
1352
|
+
query_params[:timeStart] = opts[:time_start] if opts[:time_start]
|
1353
|
+
query_params[:timeEnd] = opts[:time_end] if opts[:time_end]
|
1354
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1355
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1356
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1357
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1358
|
+
|
1359
|
+
# Header Params
|
1360
|
+
header_params = {}
|
1361
|
+
header_params[:accept] = 'application/json'
|
1362
|
+
header_params[:'content-type'] = 'application/json'
|
1363
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1364
|
+
# rubocop:enable Style/NegatedIf
|
1365
|
+
|
1366
|
+
post_body = nil
|
1367
|
+
|
1368
|
+
# rubocop:disable Metrics/BlockLength
|
1369
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#summarize_managed_instance_usage') do
|
1370
|
+
@api_client.call_api(
|
1371
|
+
:GET,
|
1372
|
+
path,
|
1373
|
+
endpoint,
|
1374
|
+
header_params: header_params,
|
1375
|
+
query_params: query_params,
|
1376
|
+
operation_signing_strategy: operation_signing_strategy,
|
1377
|
+
body: post_body,
|
1378
|
+
return_type: 'OCI::Jms::Models::ManagedInstanceUsageCollection'
|
1379
|
+
)
|
1380
|
+
end
|
1381
|
+
# rubocop:enable Metrics/BlockLength
|
1382
|
+
end
|
1383
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1384
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1385
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1386
|
+
|
1387
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1388
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1389
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1390
|
+
|
1391
|
+
|
1392
|
+
# Update the Fleet specified by an identifier.
|
1393
|
+
# @param [String] fleet_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Fleet.
|
1394
|
+
# @param [OCI::Jms::Models::UpdateFleetDetails] update_fleet_details The new details for the Fleet.
|
1395
|
+
# @param [Hash] opts the optional parameters
|
1396
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1397
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1398
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
1399
|
+
# for a resource, set the `if-match` parameter to the value of the
|
1400
|
+
# ETag from a previous GET or POST response for that resource.
|
1401
|
+
# The resource will be updated or deleted only if the ETag you
|
1402
|
+
# provide matches the resource's current ETag value.
|
1403
|
+
#
|
1404
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
1405
|
+
# @return [Response] A Response object with data of type nil
|
1406
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/update_fleet.rb.html) to see an example of how to use update_fleet API.
|
1407
|
+
def update_fleet(fleet_id, update_fleet_details, opts = {})
|
1408
|
+
logger.debug 'Calling operation JavaManagementServiceClient#update_fleet.' if logger
|
1409
|
+
|
1410
|
+
raise "Missing the required parameter 'fleet_id' when calling update_fleet." if fleet_id.nil?
|
1411
|
+
raise "Missing the required parameter 'update_fleet_details' when calling update_fleet." if update_fleet_details.nil?
|
1412
|
+
raise "Parameter value for 'fleet_id' must not be blank" if OCI::Internal::Util.blank_string?(fleet_id)
|
1413
|
+
|
1414
|
+
path = '/fleets/{fleetId}'.sub('{fleetId}', fleet_id.to_s)
|
1415
|
+
operation_signing_strategy = :standard
|
1416
|
+
|
1417
|
+
# rubocop:disable Style/NegatedIf
|
1418
|
+
# Query Params
|
1419
|
+
query_params = {}
|
1420
|
+
|
1421
|
+
# Header Params
|
1422
|
+
header_params = {}
|
1423
|
+
header_params[:accept] = 'application/json'
|
1424
|
+
header_params[:'content-type'] = 'application/json'
|
1425
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1426
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1427
|
+
# rubocop:enable Style/NegatedIf
|
1428
|
+
|
1429
|
+
post_body = @api_client.object_to_http_body(update_fleet_details)
|
1430
|
+
|
1431
|
+
# rubocop:disable Metrics/BlockLength
|
1432
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#update_fleet') do
|
1433
|
+
@api_client.call_api(
|
1434
|
+
:PUT,
|
1435
|
+
path,
|
1436
|
+
endpoint,
|
1437
|
+
header_params: header_params,
|
1438
|
+
query_params: query_params,
|
1439
|
+
operation_signing_strategy: operation_signing_strategy,
|
1440
|
+
body: post_body
|
1441
|
+
)
|
1442
|
+
end
|
1443
|
+
# rubocop:enable Metrics/BlockLength
|
1444
|
+
end
|
1445
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1446
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1447
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1448
|
+
|
1449
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1450
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1451
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1452
|
+
|
1453
|
+
|
1454
|
+
# Update the Fleet Agent Configuration for the specified Fleet.
|
1455
|
+
# @param [String] fleet_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Fleet.
|
1456
|
+
# @param [OCI::Jms::Models::UpdateFleetAgentConfigurationDetails] update_fleet_agent_configuration_details The new details for the Fleet Agent Configuration.
|
1457
|
+
# @param [Hash] opts the optional parameters
|
1458
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1459
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1460
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
1461
|
+
# for a resource, set the `if-match` parameter to the value of the
|
1462
|
+
# ETag from a previous GET or POST response for that resource.
|
1463
|
+
# The resource will be updated or deleted only if the ETag you
|
1464
|
+
# provide matches the resource's current ETag value.
|
1465
|
+
#
|
1466
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
1467
|
+
# @return [Response] A Response object with data of type nil
|
1468
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/jms/update_fleet_agent_configuration.rb.html) to see an example of how to use update_fleet_agent_configuration API.
|
1469
|
+
def update_fleet_agent_configuration(fleet_id, update_fleet_agent_configuration_details, opts = {})
|
1470
|
+
logger.debug 'Calling operation JavaManagementServiceClient#update_fleet_agent_configuration.' if logger
|
1471
|
+
|
1472
|
+
raise "Missing the required parameter 'fleet_id' when calling update_fleet_agent_configuration." if fleet_id.nil?
|
1473
|
+
raise "Missing the required parameter 'update_fleet_agent_configuration_details' when calling update_fleet_agent_configuration." if update_fleet_agent_configuration_details.nil?
|
1474
|
+
raise "Parameter value for 'fleet_id' must not be blank" if OCI::Internal::Util.blank_string?(fleet_id)
|
1475
|
+
|
1476
|
+
path = '/fleets/{fleetId}/agentConfiguration'.sub('{fleetId}', fleet_id.to_s)
|
1477
|
+
operation_signing_strategy = :standard
|
1478
|
+
|
1479
|
+
# rubocop:disable Style/NegatedIf
|
1480
|
+
# Query Params
|
1481
|
+
query_params = {}
|
1482
|
+
|
1483
|
+
# Header Params
|
1484
|
+
header_params = {}
|
1485
|
+
header_params[:accept] = 'application/json'
|
1486
|
+
header_params[:'content-type'] = 'application/json'
|
1487
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1488
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1489
|
+
# rubocop:enable Style/NegatedIf
|
1490
|
+
|
1491
|
+
post_body = @api_client.object_to_http_body(update_fleet_agent_configuration_details)
|
1492
|
+
|
1493
|
+
# rubocop:disable Metrics/BlockLength
|
1494
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'JavaManagementServiceClient#update_fleet_agent_configuration') do
|
1495
|
+
@api_client.call_api(
|
1496
|
+
:PUT,
|
1497
|
+
path,
|
1498
|
+
endpoint,
|
1499
|
+
header_params: header_params,
|
1500
|
+
query_params: query_params,
|
1501
|
+
operation_signing_strategy: operation_signing_strategy,
|
1502
|
+
body: post_body
|
1503
|
+
)
|
1504
|
+
end
|
1505
|
+
# rubocop:enable Metrics/BlockLength
|
1506
|
+
end
|
1507
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1508
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1509
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1510
|
+
|
1511
|
+
private
|
1512
|
+
|
1513
|
+
def applicable_retry_config(opts = {})
|
1514
|
+
return @retry_config unless opts.key?(:retry_config)
|
1515
|
+
|
1516
|
+
opts[:retry_config]
|
1517
|
+
end
|
1518
|
+
end
|
1519
|
+
end
|
1520
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|