oci 2.6.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -1
- data/lib/oci.rb +4 -0
- data/lib/oci/analytics/analytics.rb +42 -0
- data/lib/oci/analytics/analytics_client.rb +1134 -0
- data/lib/oci/analytics/analytics_client_composite_operations.rb +371 -0
- data/lib/oci/analytics/models/analytics_instance.rb +406 -0
- data/lib/oci/analytics/models/analytics_instance_lifecycle_state.rb +15 -0
- data/lib/oci/analytics/models/analytics_instance_summary.rb +370 -0
- data/lib/oci/analytics/models/capacity.rb +191 -0
- data/lib/oci/analytics/models/capacity_type.rb +10 -0
- data/lib/oci/analytics/models/change_compartment_details.rb +155 -0
- data/lib/oci/analytics/models/create_analytics_instance_details.rb +309 -0
- data/lib/oci/analytics/models/feature_set.rb +10 -0
- data/lib/oci/analytics/models/license_type.rb +10 -0
- data/lib/oci/analytics/models/scale_analytics_instance_details.rb +150 -0
- data/lib/oci/analytics/models/sort_by.rb +13 -0
- data/lib/oci/analytics/models/sort_order.rb +10 -0
- data/lib/oci/analytics/models/update_analytics_instance_details.rb +231 -0
- data/lib/oci/analytics/models/work_request.rb +316 -0
- data/lib/oci/analytics/models/work_request_action_result.rb +15 -0
- data/lib/oci/analytics/models/work_request_error.rb +176 -0
- data/lib/oci/analytics/models/work_request_log.rb +164 -0
- data/lib/oci/analytics/models/work_request_operation_type.rb +14 -0
- data/lib/oci/analytics/models/work_request_resource.rb +248 -0
- data/lib/oci/analytics/models/work_request_resource_type.rb +9 -0
- data/lib/oci/analytics/models/work_request_sort_by.rb +14 -0
- data/lib/oci/analytics/models/work_request_status.rb +14 -0
- data/lib/oci/analytics/models/work_request_summary.rb +300 -0
- data/lib/oci/analytics/util.rb +2 -0
- data/lib/oci/audit/audit.rb +5 -0
- data/lib/oci/audit/audit_client.rb +30 -14
- data/lib/oci/audit/models/audit_event.rb +81 -261
- data/lib/oci/audit/models/configuration.rb +7 -2
- data/lib/oci/audit/models/data.rb +464 -0
- data/lib/oci/audit/models/identity.rb +313 -0
- data/lib/oci/audit/models/request.rb +285 -0
- data/lib/oci/audit/models/response.rb +273 -0
- data/lib/oci/audit/models/state_change.rb +175 -0
- data/lib/oci/audit/models/update_configuration_details.rb +7 -2
- data/lib/oci/container_engine/container_engine.rb +4 -0
- data/lib/oci/container_engine/models/cluster.rb +15 -1
- data/lib/oci/container_engine/models/create_cluster_details.rb +17 -1
- data/lib/oci/container_engine/models/create_cluster_kubeconfig_content_details.rb +4 -1
- data/lib/oci/container_engine/models/create_node_pool_details.rb +29 -6
- data/lib/oci/container_engine/models/create_node_pool_node_config_details.rb +170 -0
- data/lib/oci/container_engine/models/node_pool.rb +18 -4
- data/lib/oci/container_engine/models/node_pool_node_config_details.rb +170 -0
- data/lib/oci/container_engine/models/node_pool_options.rb +1 -1
- data/lib/oci/container_engine/models/node_pool_placement_config_details.rb +169 -0
- data/lib/oci/container_engine/models/node_pool_summary.rb +18 -4
- data/lib/oci/container_engine/models/update_node_pool_details.rb +45 -19
- data/lib/oci/container_engine/models/update_node_pool_node_config_details.rb +170 -0
- data/lib/oci/core/blockstorage_client.rb +197 -0
- data/lib/oci/core/compute_client.rb +132 -17
- data/lib/oci/core/compute_client_composite_operations.rb +1 -1
- data/lib/oci/core/compute_management_client.rb +493 -0
- data/lib/oci/core/compute_management_client_composite_operations.rb +119 -0
- data/lib/oci/core/core.rb +11 -0
- data/lib/oci/core/models/boot_volume.rb +17 -1
- data/lib/oci/core/models/boot_volume_backup.rb +17 -1
- data/lib/oci/core/models/change_cluster_network_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_dedicated_vm_host_compartment_details.rb +2 -2
- data/lib/oci/core/models/change_drg_compartment_details.rb +155 -0
- data/lib/oci/core/models/cluster_network.rb +313 -0
- data/lib/oci/core/models/cluster_network_placement_configuration_details.rb +183 -0
- data/lib/oci/core/models/cluster_network_summary.rb +299 -0
- data/lib/oci/core/models/create_cluster_network_details.rb +231 -0
- data/lib/oci/core/models/create_cluster_network_instance_pool_details.rb +213 -0
- data/lib/oci/core/models/create_dedicated_vm_host_details.rb +10 -8
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +4 -0
- data/lib/oci/core/models/create_ip_sec_connection_tunnel_details.rb +29 -1
- data/lib/oci/core/models/create_volume_backup_policy_details.rb +215 -0
- data/lib/oci/core/models/dedicated_vm_host.rb +10 -8
- data/lib/oci/core/models/image_shape_compatibility_entry.rb +163 -0
- data/lib/oci/core/models/instance.rb +17 -1
- data/lib/oci/core/models/ip_sec_connection.rb +4 -0
- data/lib/oci/core/models/ip_sec_connection_tunnel.rb +35 -1
- data/lib/oci/core/models/launch_instance_details.rb +14 -1
- data/lib/oci/core/models/launch_options.rb +4 -4
- data/lib/oci/core/models/service_gateway.rb +0 -1
- data/lib/oci/core/models/update_cluster_network_details.rb +189 -0
- data/lib/oci/core/models/update_dedicated_vm_host_details.rb +1 -1
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +4 -0
- data/lib/oci/core/models/update_ip_sec_connection_tunnel_details.rb +29 -1
- data/lib/oci/core/models/update_service_gateway_details.rb +0 -1
- data/lib/oci/core/models/update_volume_backup_policy_details.rb +201 -0
- data/lib/oci/core/models/volume.rb +17 -1
- data/lib/oci/core/models/volume_backup.rb +17 -1
- data/lib/oci/core/models/volume_backup_policy.rb +54 -4
- data/lib/oci/core/models/volume_backup_schedule.rb +177 -4
- data/lib/oci/core/virtual_network_client.rb +67 -0
- data/lib/oci/database/database.rb +35 -1
- data/lib/oci/database/database_client.rb +3351 -1159
- data/lib/oci/database/database_client_composite_operations.rb +522 -1
- data/lib/oci/database/models/activate_exadata_infrastructure_details.rb +153 -0
- data/lib/oci/database/models/associated_database_details.rb +163 -0
- data/lib/oci/database/models/autonomous_container_database.rb +0 -2
- data/lib/oci/database/models/autonomous_container_database_summary.rb +0 -2
- data/lib/oci/database/models/autonomous_data_warehouse.rb +0 -2
- data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +0 -2
- data/lib/oci/database/models/autonomous_database.rb +65 -4
- data/lib/oci/database/models/autonomous_database_summary.rb +65 -4
- data/lib/oci/database/models/autonomous_database_wallet.rb +188 -0
- data/lib/oci/database/models/autonomous_exadata_infrastructure.rb +16 -3
- data/lib/oci/database/models/autonomous_exadata_infrastructure_summary.rb +16 -3
- data/lib/oci/database/models/backup_destination.rb +359 -0
- data/lib/oci/database/models/backup_destination_details.rb +243 -0
- data/lib/oci/database/models/backup_destination_summary.rb +362 -0
- data/lib/oci/database/models/change_exadata_infrastructure_compartment_details.rb +155 -0
- data/lib/oci/database/models/change_vm_cluster_compartment_details.rb +155 -0
- data/lib/oci/database/models/create_autonomous_container_database_details.rb +0 -2
- data/lib/oci/database/models/create_autonomous_data_warehouse_details.rb +0 -2
- data/lib/oci/database/models/create_autonomous_database_base.rb +19 -4
- data/lib/oci/database/models/create_autonomous_database_clone_details.rb +6 -2
- data/lib/oci/database/models/create_autonomous_database_details.rb +5 -1
- data/lib/oci/database/models/create_backup_destination_details.rb +241 -0
- data/lib/oci/database/models/create_database_details.rb +15 -3
- data/lib/oci/database/models/create_database_from_backup_details.rb +15 -1
- data/lib/oci/database/models/{create_db_home_with_db_system_id_base.rb → create_db_home_base.rb} +8 -18
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +18 -8
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +18 -8
- data/lib/oci/database/models/create_db_home_with_vm_cluster_id_details.rb +190 -0
- data/lib/oci/database/models/create_db_home_with_vm_cluster_id_from_backup_details.rb +176 -0
- data/lib/oci/database/models/create_exadata_infrastructure_details.rb +348 -0
- data/lib/oci/database/models/create_nfs_backup_destination_details.rb +178 -0
- data/lib/oci/database/models/create_recovery_appliance_backup_destination_details.rb +191 -0
- data/lib/oci/database/models/create_vm_cluster_details.rb +344 -0
- data/lib/oci/database/models/database.rb +0 -2
- data/lib/oci/database/models/database_summary.rb +0 -2
- data/lib/oci/database/models/db_backup_config.rb +65 -4
- data/lib/oci/database/models/db_home.rb +15 -1
- data/lib/oci/database/models/db_home_summary.rb +15 -1
- data/lib/oci/database/models/db_system.rb +14 -3
- data/lib/oci/database/models/db_system_options.rb +173 -0
- data/lib/oci/database/models/db_system_shape_summary.rb +15 -1
- data/lib/oci/database/models/db_system_summary.rb +14 -3
- data/lib/oci/database/models/exadata_infrastructure.rb +450 -0
- data/lib/oci/database/models/exadata_infrastructure_summary.rb +453 -0
- data/lib/oci/database/models/generate_autonomous_database_wallet_details.rb +31 -1
- data/lib/oci/database/models/generate_recommended_network_details.rb +232 -0
- data/lib/oci/database/models/gi_version_summary.rb +152 -0
- data/lib/oci/database/models/info_for_network_gen_details.rb +231 -0
- data/lib/oci/database/models/launch_autonomous_exadata_infrastructure_details.rb +16 -3
- data/lib/oci/database/models/launch_db_system_base.rb +14 -3
- data/lib/oci/database/models/launch_db_system_details.rb +5 -1
- data/lib/oci/database/models/launch_db_system_from_backup_details.rb +5 -1
- data/lib/oci/database/models/node_details.rb +183 -0
- data/lib/oci/database/models/scan_details.rb +170 -0
- data/lib/oci/database/models/update_autonomous_container_database_details.rb +0 -2
- data/lib/oci/database/models/update_autonomous_data_warehouse_details.rb +0 -2
- data/lib/oci/database/models/update_autonomous_database_details.rb +19 -4
- data/lib/oci/database/models/update_autonomous_database_wallet_details.rb +156 -0
- data/lib/oci/database/models/update_autonomous_exadata_infrastructure_details.rb +16 -3
- data/lib/oci/database/models/update_backup_destination_details.rb +218 -0
- data/lib/oci/database/models/update_database_details.rb +0 -2
- data/lib/oci/database/models/update_db_system_details.rb +0 -2
- data/lib/oci/database/models/update_exadata_infrastructure_details.rb +307 -0
- data/lib/oci/database/models/update_vm_cluster_details.rb +229 -0
- data/lib/oci/database/models/update_vm_cluster_network_details.rb +218 -0
- data/lib/oci/database/models/vm_cluster.rb +449 -0
- data/lib/oci/database/models/vm_cluster_network.rb +350 -0
- data/lib/oci/database/models/vm_cluster_network_details.rb +246 -0
- data/lib/oci/database/models/vm_cluster_network_summary.rb +353 -0
- data/lib/oci/database/models/vm_cluster_summary.rb +452 -0
- data/lib/oci/database/models/vm_network_details.rb +231 -0
- data/lib/oci/dns/dns.rb +4 -0
- data/lib/oci/dns/dns_client.rb +103 -103
- data/lib/oci/dns/dns_client_composite_operations.rb +1 -1
- data/lib/oci/dns/models/create_migrated_dynect_zone_details.rb +179 -0
- data/lib/oci/dns/models/create_zone_base_details.rb +252 -0
- data/lib/oci/dns/models/create_zone_details.rb +18 -56
- data/lib/oci/dns/models/dynect_migration_details.rb +192 -0
- data/lib/oci/dns/models/migration_replacement.rb +187 -0
- data/lib/oci/dts/dts.rb +2 -0
- data/lib/oci/dts/models/create_transfer_appliance_entitlement_details.rb +49 -4
- data/lib/oci/dts/models/transfer_appliance.rb +2 -0
- data/lib/oci/dts/models/transfer_appliance_entitlement.rb +102 -33
- data/lib/oci/dts/models/transfer_appliance_entitlement_summary.rb +261 -0
- data/lib/oci/dts/models/transfer_appliance_summary.rb +2 -0
- data/lib/oci/dts/models/transfer_job.rb +0 -4
- data/lib/oci/dts/models/update_transfer_appliance_details.rb +1 -0
- data/lib/oci/dts/shipping_vendors_client.rb +1 -1
- data/lib/oci/dts/transfer_appliance_client.rb +4 -4
- data/lib/oci/dts/transfer_appliance_entitlement_client.rb +86 -10
- data/lib/oci/dts/transfer_appliance_entitlement_client_composite_operations.rb +39 -0
- data/lib/oci/dts/transfer_device_client.rb +1 -1
- data/lib/oci/dts/transfer_job_client.rb +1 -1
- data/lib/oci/dts/transfer_package_client.rb +1 -1
- data/lib/oci/functions/functions_invoke_client.rb +1 -1
- data/lib/oci/functions/functions_management_client.rb +1 -1
- data/lib/oci/healthchecks/health_checks_client.rb +18 -14
- data/lib/oci/healthchecks/models/http_monitor.rb +31 -1
- data/lib/oci/healthchecks/models/http_monitor_summary.rb +31 -1
- data/lib/oci/healthchecks/models/http_probe.rb +31 -1
- data/lib/oci/healthchecks/models/ping_monitor.rb +31 -1
- data/lib/oci/healthchecks/models/ping_monitor_summary.rb +31 -1
- data/lib/oci/healthchecks/models/ping_probe.rb +31 -1
- data/lib/oci/identity/identity.rb +7 -0
- data/lib/oci/identity/identity_client.rb +348 -9
- data/lib/oci/identity/models/base_tag_definition_validator.rb +200 -0
- data/lib/oci/identity/models/compartment.rb +3 -0
- data/lib/oci/identity/models/create_region_subscription_details.rb +3 -0
- data/lib/oci/identity/models/create_tag_default_details.rb +26 -4
- data/lib/oci/identity/models/create_tag_details.rb +21 -5
- data/lib/oci/identity/models/default_tag_definition_validator.rb +146 -0
- data/lib/oci/identity/models/dynamic_group.rb +3 -0
- data/lib/oci/identity/models/enum_tag_definition_validator.rb +161 -0
- data/lib/oci/identity/models/group.rb +3 -0
- data/lib/oci/identity/models/identity_provider.rb +3 -0
- data/lib/oci/identity/models/move_compartment_details.rb +2 -2
- data/lib/oci/identity/models/policy.rb +3 -0
- data/lib/oci/identity/models/region.rb +9 -3
- data/lib/oci/identity/models/region_subscription.rb +8 -2
- data/lib/oci/identity/models/tag.rb +25 -6
- data/lib/oci/identity/models/tag_default.rb +26 -4
- data/lib/oci/identity/models/tag_default_summary.rb +26 -4
- data/lib/oci/identity/models/tag_namespace.rb +5 -2
- data/lib/oci/identity/models/tag_summary.rb +3 -2
- data/lib/oci/identity/models/tagging_work_request.rb +305 -0
- data/lib/oci/identity/models/tagging_work_request_error_summary.rb +172 -0
- data/lib/oci/identity/models/tagging_work_request_log_summary.rb +162 -0
- data/lib/oci/identity/models/tagging_work_request_summary.rb +304 -0
- data/lib/oci/identity/models/tenancy.rb +3 -0
- data/lib/oci/identity/models/update_tag_default_details.rb +26 -4
- data/lib/oci/identity/models/update_tag_details.rb +19 -4
- data/lib/oci/identity/models/user.rb +3 -0
- data/lib/oci/integration/integration.rb +29 -0
- data/lib/oci/integration/integration_instance_client.rb +731 -0
- data/lib/oci/integration/integration_instance_client_composite_operations.rb +222 -0
- data/lib/oci/integration/models/change_integration_instance_compartment_details.rb +153 -0
- data/lib/oci/integration/models/create_integration_instance_details.rb +270 -0
- data/lib/oci/integration/models/integration_instance.rb +366 -0
- data/lib/oci/integration/models/integration_instance_summary.rb +332 -0
- data/lib/oci/integration/models/update_integration_instance_details.rb +242 -0
- data/lib/oci/integration/models/work_request.rb +310 -0
- data/lib/oci/integration/models/work_request_error.rb +170 -0
- data/lib/oci/integration/models/work_request_log_entry.rb +159 -0
- data/lib/oci/integration/models/work_request_resource.rb +218 -0
- data/lib/oci/integration/models/work_request_summary.rb +310 -0
- data/lib/oci/integration/util.rb +2 -0
- data/lib/oci/load_balancer/load_balancer_client.rb +3 -3
- data/lib/oci/load_balancer/load_balancer_client_composite_operations.rb +2 -2
- data/lib/oci/load_balancer/models/backend.rb +2 -0
- data/lib/oci/load_balancer/models/backend_details.rb +2 -0
- data/lib/oci/load_balancer/models/create_backend_details.rb +2 -0
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +12 -1
- data/lib/oci/load_balancer/models/health_checker.rb +2 -1
- data/lib/oci/load_balancer/models/health_checker_details.rb +2 -1
- data/lib/oci/load_balancer/models/lb_cookie_session_persistence_configuration_details.rb +2 -2
- data/lib/oci/load_balancer/models/load_balancer.rb +33 -2
- data/lib/oci/load_balancer/models/update_backend_details.rb +2 -0
- data/lib/oci/load_balancer/models/update_health_checker_details.rb +2 -1
- data/lib/oci/load_balancer/models/update_network_security_groups_details.rb +15 -2
- data/lib/oci/monitoring/models/alarm.rb +6 -5
- data/lib/oci/monitoring/models/create_alarm_details.rb +6 -5
- data/lib/oci/monitoring/models/update_alarm_details.rb +6 -5
- data/lib/oci/monitoring/monitoring_client.rb +25 -9
- data/lib/oci/object_storage/models/bucket.rb +17 -1
- data/lib/oci/object_storage/models/create_bucket_details.rb +17 -1
- data/lib/oci/object_storage/models/update_bucket_details.rb +18 -2
- data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +1 -1
- data/lib/oci/object_storage/models/work_request.rb +7 -4
- data/lib/oci/object_storage/models/work_request_summary.rb +7 -4
- data/lib/oci/object_storage/object_storage_client.rb +75 -4
- data/lib/oci/object_storage/object_storage_client_composite_operations.rb +52 -0
- data/lib/oci/oce/models/change_oce_instance_compartment_details.rb +155 -0
- data/lib/oci/oce/models/create_oce_instance_details.rb +275 -0
- data/lib/oci/oce/models/delete_oce_instance_details.rb +153 -0
- data/lib/oci/oce/models/oce_instance.rb +387 -0
- data/lib/oci/oce/models/oce_instance_summary.rb +387 -0
- data/lib/oci/oce/models/update_oce_instance_details.rb +181 -0
- data/lib/oci/oce/models/work_request.rb +319 -0
- data/lib/oci/oce/models/work_request_error.rb +172 -0
- data/lib/oci/oce/models/work_request_log_entry.rb +159 -0
- data/lib/oci/oce/models/work_request_resource.rb +217 -0
- data/lib/oci/oce/models/workflow_monitor.rb +181 -0
- data/lib/oci/oce/models/workflow_step.rb +163 -0
- data/lib/oci/oce/oce.rb +31 -0
- data/lib/oci/oce/oce_instance_client.rb +733 -0
- data/lib/oci/oce/oce_instance_client_composite_operations.rb +223 -0
- data/lib/oci/oce/util.rb +2 -0
- data/lib/oci/oda/models/change_oda_instance_compartment_details.rb +153 -0
- data/lib/oci/oda/models/create_oda_instance_details.rb +237 -0
- data/lib/oci/oda/models/error_body.rb +159 -0
- data/lib/oci/oda/models/oda_instance.rb +399 -0
- data/lib/oci/oda/models/oda_instance_summary.rb +369 -0
- data/lib/oci/oda/models/update_oda_instance_details.rb +196 -0
- data/lib/oci/oda/models/work_request.rb +340 -0
- data/lib/oci/oda/models/work_request_error.rb +176 -0
- data/lib/oci/oda/models/work_request_log_entry.rb +163 -0
- data/lib/oci/oda/models/work_request_resource.rb +272 -0
- data/lib/oci/oda/models/work_request_summary.rb +262 -0
- data/lib/oci/oda/oda.rb +30 -0
- data/lib/oci/oda/oda_client.rb +842 -0
- data/lib/oci/oda/oda_client_composite_operations.rb +212 -0
- data/lib/oci/oda/util.rb +2 -0
- data/lib/oci/ons/models/backoff_retry_policy.rb +2 -1
- data/lib/oci/ons/models/confirmation_result.rb +5 -3
- data/lib/oci/ons/models/create_subscription_details.rb +19 -4
- data/lib/oci/ons/models/notification_topic.rb +2 -1
- data/lib/oci/ons/models/subscription.rb +8 -3
- data/lib/oci/ons/models/subscription_summary.rb +5 -3
- data/lib/oci/ons/notification_control_plane_client.rb +4 -3
- data/lib/oci/ons/notification_data_plane_client.rb +28 -4
- data/lib/oci/regions.rb +3 -0
- data/lib/oci/resource_manager/models/apply_job_operation_details.rb +201 -0
- data/lib/oci/resource_manager/models/apply_job_operation_details_summary.rb +180 -0
- data/lib/oci/resource_manager/models/apply_job_plan_resolution.rb +4 -5
- data/lib/oci/resource_manager/models/config_source.rb +3 -2
- data/lib/oci/resource_manager/models/create_apply_job_operation_details.rb +179 -0
- data/lib/oci/resource_manager/models/create_config_source_details.rb +2 -1
- data/lib/oci/resource_manager/models/create_destroy_job_operation_details.rb +165 -0
- data/lib/oci/resource_manager/models/create_import_tf_state_job_operation_details.rb +163 -0
- data/lib/oci/resource_manager/models/create_job_details.rb +16 -3
- data/lib/oci/resource_manager/models/create_job_operation_details.rb +169 -0
- data/lib/oci/resource_manager/models/create_plan_job_operation_details.rb +145 -0
- data/lib/oci/resource_manager/models/create_stack_details.rb +17 -2
- data/lib/oci/resource_manager/models/destroy_job_operation_details.rb +184 -0
- data/lib/oci/resource_manager/models/destroy_job_operation_details_summary.rb +165 -0
- data/lib/oci/resource_manager/models/import_tf_state_job_operation_details.rb +145 -0
- data/lib/oci/resource_manager/models/import_tf_state_job_operation_details_summary.rb +145 -0
- data/lib/oci/resource_manager/models/job.rb +23 -5
- data/lib/oci/resource_manager/models/job_operation_details.rb +169 -0
- data/lib/oci/resource_manager/models/job_operation_details_summary.rb +169 -0
- data/lib/oci/resource_manager/models/job_summary.rb +20 -5
- data/lib/oci/resource_manager/models/plan_job_operation_details.rb +145 -0
- data/lib/oci/resource_manager/models/plan_job_operation_details_summary.rb +145 -0
- data/lib/oci/resource_manager/models/stack.rb +18 -6
- data/lib/oci/resource_manager/models/stack_summary.rb +16 -1
- data/lib/oci/resource_manager/models/terraform_version_collection.rb +150 -0
- data/lib/oci/resource_manager/models/terraform_version_summary.rb +151 -0
- data/lib/oci/resource_manager/models/update_config_source_details.rb +3 -1
- data/lib/oci/resource_manager/models/update_stack_details.rb +16 -1
- data/lib/oci/resource_manager/models/work_request.rb +2 -2
- data/lib/oci/resource_manager/models/work_request_resource.rb +1 -1
- data/lib/oci/resource_manager/models/work_request_summary.rb +2 -2
- data/lib/oci/resource_manager/resource_manager.rb +17 -0
- data/lib/oci/resource_manager/resource_manager_client.rb +187 -29
- data/lib/oci/resource_manager/resource_manager_client_composite_operations.rb +6 -6
- data/lib/oci/version.rb +1 -1
- data/lib/oci/waas/models/access_rule.rb +2 -2
- data/lib/oci/waas/models/access_rule_criteria.rb +1 -1
- data/lib/oci/waas/models/address_list.rb +1 -0
- data/lib/oci/waas/models/address_rate_limiting.rb +1 -1
- data/lib/oci/waas/models/block_challenge_settings.rb +1 -1
- data/lib/oci/waas/models/caching_rule.rb +9 -8
- data/lib/oci/waas/models/caching_rule_criteria.rb +1 -5
- data/lib/oci/waas/models/caching_rule_summary.rb +9 -8
- data/lib/oci/waas/models/change_address_list_compartment_details.rb +1 -1
- data/lib/oci/waas/models/change_certificate_compartment_details.rb +1 -0
- data/lib/oci/waas/models/change_custom_protection_rule_compartment_details.rb +1 -1
- data/lib/oci/waas/models/change_http_redirect_compartment_details.rb +154 -0
- data/lib/oci/waas/models/change_waas_policy_compartment_details.rb +1 -0
- data/lib/oci/waas/models/create_address_list_details.rb +1 -1
- data/lib/oci/waas/models/create_custom_protection_rule_details.rb +17 -12
- data/lib/oci/waas/models/create_http_redirect_details.rb +238 -0
- data/lib/oci/waas/models/create_waas_policy_details.rb +2 -1
- data/lib/oci/waas/models/custom_protection_rule.rb +20 -16
- data/lib/oci/waas/models/custom_protection_rule_setting.rb +4 -3
- data/lib/oci/waas/models/custom_protection_rule_summary.rb +6 -6
- data/lib/oci/waas/models/http_redirect.rb +301 -0
- data/lib/oci/waas/models/http_redirect_summary.rb +301 -0
- data/lib/oci/waas/models/http_redirect_target.rb +209 -0
- data/lib/oci/waas/models/origin_group_origins.rb +2 -2
- data/lib/oci/waas/models/policy_config.rb +14 -7
- data/lib/oci/waas/models/protection_settings.rb +1 -1
- data/lib/oci/waas/models/purge_cache.rb +2 -2
- data/lib/oci/waas/models/update_address_list_details.rb +1 -1
- data/lib/oci/waas/models/update_custom_protection_rule_details.rb +16 -12
- data/lib/oci/waas/models/update_http_redirect_details.rb +215 -0
- data/lib/oci/waas/models/update_waas_policy_details.rb +2 -1
- data/lib/oci/waas/models/waas_policy.rb +1 -1
- data/lib/oci/waas/models/waas_policy_custom_protection_rule_summary.rb +5 -4
- data/lib/oci/waas/models/waf_config.rb +2 -1
- data/lib/oci/waas/models/waf_config_details.rb +2 -1
- data/lib/oci/waas/models/work_request.rb +3 -0
- data/lib/oci/waas/models/work_request_operation_types.rb +3 -0
- data/lib/oci/waas/models/work_request_summary.rb +3 -0
- data/lib/oci/waas/redirect_client.rb +493 -0
- data/lib/oci/waas/redirect_client_composite_operations.rb +172 -0
- data/lib/oci/waas/waas.rb +8 -0
- data/lib/oci/waas/waas_client.rb +35 -23
- data/lib/oci/waas/waas_client_composite_operations.rb +4 -4
- metadata +166 -3
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
|
3
|
+
module OCI
|
|
4
|
+
module Analytics::Models
|
|
5
|
+
WORK_REQUEST_SORT_BY_ENUM = [
|
|
6
|
+
WORK_REQUEST_SORT_BY_ID = 'id'.freeze,
|
|
7
|
+
WORK_REQUEST_SORT_BY_OPERATION_TYPE = 'operationType'.freeze,
|
|
8
|
+
WORK_REQUEST_SORT_BY_STATUS = 'status'.freeze,
|
|
9
|
+
WORK_REQUEST_SORT_BY_TIME_ACCEPTED = 'timeAccepted'.freeze,
|
|
10
|
+
WORK_REQUEST_SORT_BY_TIME_STARTED = 'timeStarted'.freeze,
|
|
11
|
+
WORK_REQUEST_SORT_BY_TIME_FINISHED = 'timeFinished'.freeze
|
|
12
|
+
].freeze
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
|
3
|
+
module OCI
|
|
4
|
+
module Analytics::Models
|
|
5
|
+
WORK_REQUEST_STATUS_ENUM = [
|
|
6
|
+
WORK_REQUEST_STATUS_ACCEPTED = 'ACCEPTED'.freeze,
|
|
7
|
+
WORK_REQUEST_STATUS_IN_PROGRESS = 'IN_PROGRESS'.freeze,
|
|
8
|
+
WORK_REQUEST_STATUS_FAILED = 'FAILED'.freeze,
|
|
9
|
+
WORK_REQUEST_STATUS_SUCCEEDED = 'SUCCEEDED'.freeze,
|
|
10
|
+
WORK_REQUEST_STATUS_CANCELING = 'CANCELING'.freeze,
|
|
11
|
+
WORK_REQUEST_STATUS_CANCELED = 'CANCELED'.freeze
|
|
12
|
+
].freeze
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
|
3
|
+
require 'date'
|
|
4
|
+
require 'logger'
|
|
5
|
+
|
|
6
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
7
|
+
module OCI
|
|
8
|
+
# An asynchronous work request.
|
|
9
|
+
class Analytics::Models::WorkRequestSummary
|
|
10
|
+
OPERATION_TYPE_ENUM = [
|
|
11
|
+
OPERATION_TYPE_CREATE_ANALYTICS_INSTANCE = 'CREATE_ANALYTICS_INSTANCE'.freeze,
|
|
12
|
+
OPERATION_TYPE_DELETE_ANALYTICS_INSTANCE = 'DELETE_ANALYTICS_INSTANCE'.freeze,
|
|
13
|
+
OPERATION_TYPE_START_ANALYTICS_INSTANCE = 'START_ANALYTICS_INSTANCE'.freeze,
|
|
14
|
+
OPERATION_TYPE_STOP_ANALYTICS_INSTANCE = 'STOP_ANALYTICS_INSTANCE'.freeze,
|
|
15
|
+
OPERATION_TYPE_SCALE_ANALYTICS_INSTANCE = 'SCALE_ANALYTICS_INSTANCE'.freeze,
|
|
16
|
+
OPERATION_TYPE_CHANGE_ANALYTICS_INSTANCE_COMPARTMENT = 'CHANGE_ANALYTICS_INSTANCE_COMPARTMENT'.freeze,
|
|
17
|
+
OPERATION_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
|
18
|
+
].freeze
|
|
19
|
+
|
|
20
|
+
STATUS_ENUM = [
|
|
21
|
+
STATUS_ACCEPTED = 'ACCEPTED'.freeze,
|
|
22
|
+
STATUS_IN_PROGRESS = 'IN_PROGRESS'.freeze,
|
|
23
|
+
STATUS_FAILED = 'FAILED'.freeze,
|
|
24
|
+
STATUS_SUCCEEDED = 'SUCCEEDED'.freeze,
|
|
25
|
+
STATUS_CANCELING = 'CANCELING'.freeze,
|
|
26
|
+
STATUS_CANCELED = 'CANCELED'.freeze,
|
|
27
|
+
STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
|
28
|
+
].freeze
|
|
29
|
+
|
|
30
|
+
# **[Required]** The resource OCID.
|
|
31
|
+
#
|
|
32
|
+
# @return [String]
|
|
33
|
+
attr_accessor :id
|
|
34
|
+
|
|
35
|
+
# **[Required]** The operation performed by the work request.
|
|
36
|
+
#
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_reader :operation_type
|
|
39
|
+
|
|
40
|
+
# **[Required]** The current status of the work request.
|
|
41
|
+
#
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_reader :status
|
|
44
|
+
|
|
45
|
+
# **[Required]** The compartment OCID of this work request.
|
|
46
|
+
#
|
|
47
|
+
# @return [String]
|
|
48
|
+
attr_accessor :compartment_id
|
|
49
|
+
|
|
50
|
+
# **[Required]** The resources this work request affects.
|
|
51
|
+
#
|
|
52
|
+
# @return [Array<OCI::Analytics::Models::WorkRequestResource>]
|
|
53
|
+
attr_accessor :resources
|
|
54
|
+
|
|
55
|
+
# **[Required]** The time the work request was accepted, in the format defined by RFC3339.
|
|
56
|
+
#
|
|
57
|
+
# Example: `2016-08-25T21:10:29.600Z`
|
|
58
|
+
#
|
|
59
|
+
# @return [DateTime]
|
|
60
|
+
attr_accessor :time_accepted
|
|
61
|
+
|
|
62
|
+
# The time the work request was started, in the format defined by RFC3339.
|
|
63
|
+
#
|
|
64
|
+
# Example: `2016-08-25T21:10:29.600Z`
|
|
65
|
+
#
|
|
66
|
+
# @return [DateTime]
|
|
67
|
+
attr_accessor :time_started
|
|
68
|
+
|
|
69
|
+
# The time the work request was finished, in the format defined by RFC3339.
|
|
70
|
+
#
|
|
71
|
+
# Example: `2016-08-25T21:10:29.600Z`
|
|
72
|
+
#
|
|
73
|
+
# @return [DateTime]
|
|
74
|
+
attr_accessor :time_finished
|
|
75
|
+
|
|
76
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
77
|
+
def self.attribute_map
|
|
78
|
+
{
|
|
79
|
+
# rubocop:disable Style/SymbolLiteral
|
|
80
|
+
'id': :'id',
|
|
81
|
+
'operation_type': :'operationType',
|
|
82
|
+
'status': :'status',
|
|
83
|
+
'compartment_id': :'compartmentId',
|
|
84
|
+
'resources': :'resources',
|
|
85
|
+
'time_accepted': :'timeAccepted',
|
|
86
|
+
'time_started': :'timeStarted',
|
|
87
|
+
'time_finished': :'timeFinished'
|
|
88
|
+
# rubocop:enable Style/SymbolLiteral
|
|
89
|
+
}
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Attribute type mapping.
|
|
93
|
+
def self.swagger_types
|
|
94
|
+
{
|
|
95
|
+
# rubocop:disable Style/SymbolLiteral
|
|
96
|
+
'id': :'String',
|
|
97
|
+
'operation_type': :'String',
|
|
98
|
+
'status': :'String',
|
|
99
|
+
'compartment_id': :'String',
|
|
100
|
+
'resources': :'Array<OCI::Analytics::Models::WorkRequestResource>',
|
|
101
|
+
'time_accepted': :'DateTime',
|
|
102
|
+
'time_started': :'DateTime',
|
|
103
|
+
'time_finished': :'DateTime'
|
|
104
|
+
# rubocop:enable Style/SymbolLiteral
|
|
105
|
+
}
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
109
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
# Initializes the object
|
|
113
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
114
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
|
115
|
+
# @option attributes [String] :operation_type The value to assign to the {#operation_type} property
|
|
116
|
+
# @option attributes [String] :status The value to assign to the {#status} property
|
|
117
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
118
|
+
# @option attributes [Array<OCI::Analytics::Models::WorkRequestResource>] :resources The value to assign to the {#resources} property
|
|
119
|
+
# @option attributes [DateTime] :time_accepted The value to assign to the {#time_accepted} property
|
|
120
|
+
# @option attributes [DateTime] :time_started The value to assign to the {#time_started} property
|
|
121
|
+
# @option attributes [DateTime] :time_finished The value to assign to the {#time_finished} property
|
|
122
|
+
def initialize(attributes = {})
|
|
123
|
+
return unless attributes.is_a?(Hash)
|
|
124
|
+
|
|
125
|
+
# convert string to symbol for hash key
|
|
126
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
127
|
+
|
|
128
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
|
129
|
+
|
|
130
|
+
self.operation_type = attributes[:'operationType'] if attributes[:'operationType']
|
|
131
|
+
|
|
132
|
+
raise 'You cannot provide both :operationType and :operation_type' if attributes.key?(:'operationType') && attributes.key?(:'operation_type')
|
|
133
|
+
|
|
134
|
+
self.operation_type = attributes[:'operation_type'] if attributes[:'operation_type']
|
|
135
|
+
|
|
136
|
+
self.status = attributes[:'status'] if attributes[:'status']
|
|
137
|
+
|
|
138
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
|
139
|
+
|
|
140
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
141
|
+
|
|
142
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
143
|
+
|
|
144
|
+
self.resources = attributes[:'resources'] if attributes[:'resources']
|
|
145
|
+
|
|
146
|
+
self.time_accepted = attributes[:'timeAccepted'] if attributes[:'timeAccepted']
|
|
147
|
+
|
|
148
|
+
raise 'You cannot provide both :timeAccepted and :time_accepted' if attributes.key?(:'timeAccepted') && attributes.key?(:'time_accepted')
|
|
149
|
+
|
|
150
|
+
self.time_accepted = attributes[:'time_accepted'] if attributes[:'time_accepted']
|
|
151
|
+
|
|
152
|
+
self.time_started = attributes[:'timeStarted'] if attributes[:'timeStarted']
|
|
153
|
+
|
|
154
|
+
raise 'You cannot provide both :timeStarted and :time_started' if attributes.key?(:'timeStarted') && attributes.key?(:'time_started')
|
|
155
|
+
|
|
156
|
+
self.time_started = attributes[:'time_started'] if attributes[:'time_started']
|
|
157
|
+
|
|
158
|
+
self.time_finished = attributes[:'timeFinished'] if attributes[:'timeFinished']
|
|
159
|
+
|
|
160
|
+
raise 'You cannot provide both :timeFinished and :time_finished' if attributes.key?(:'timeFinished') && attributes.key?(:'time_finished')
|
|
161
|
+
|
|
162
|
+
self.time_finished = attributes[:'time_finished'] if attributes[:'time_finished']
|
|
163
|
+
end
|
|
164
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
165
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
166
|
+
|
|
167
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
168
|
+
# @param [Object] operation_type Object to be assigned
|
|
169
|
+
def operation_type=(operation_type)
|
|
170
|
+
# rubocop:disable Style/ConditionalAssignment
|
|
171
|
+
if operation_type && !OPERATION_TYPE_ENUM.include?(operation_type)
|
|
172
|
+
OCI.logger.debug("Unknown value for 'operation_type' [" + operation_type + "]. Mapping to 'OPERATION_TYPE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
|
173
|
+
@operation_type = OPERATION_TYPE_UNKNOWN_ENUM_VALUE
|
|
174
|
+
else
|
|
175
|
+
@operation_type = operation_type
|
|
176
|
+
end
|
|
177
|
+
# rubocop:enable Style/ConditionalAssignment
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
181
|
+
# @param [Object] status Object to be assigned
|
|
182
|
+
def status=(status)
|
|
183
|
+
# rubocop:disable Style/ConditionalAssignment
|
|
184
|
+
if status && !STATUS_ENUM.include?(status)
|
|
185
|
+
OCI.logger.debug("Unknown value for 'status' [" + status + "]. Mapping to 'STATUS_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
|
186
|
+
@status = STATUS_UNKNOWN_ENUM_VALUE
|
|
187
|
+
else
|
|
188
|
+
@status = status
|
|
189
|
+
end
|
|
190
|
+
# rubocop:enable Style/ConditionalAssignment
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
# Checks equality by comparing each attribute.
|
|
197
|
+
# @param [Object] other the other object to be compared
|
|
198
|
+
def ==(other)
|
|
199
|
+
return true if equal?(other)
|
|
200
|
+
|
|
201
|
+
self.class == other.class &&
|
|
202
|
+
id == other.id &&
|
|
203
|
+
operation_type == other.operation_type &&
|
|
204
|
+
status == other.status &&
|
|
205
|
+
compartment_id == other.compartment_id &&
|
|
206
|
+
resources == other.resources &&
|
|
207
|
+
time_accepted == other.time_accepted &&
|
|
208
|
+
time_started == other.time_started &&
|
|
209
|
+
time_finished == other.time_finished
|
|
210
|
+
end
|
|
211
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
212
|
+
|
|
213
|
+
# @see the `==` method
|
|
214
|
+
# @param [Object] other the other object to be compared
|
|
215
|
+
def eql?(other)
|
|
216
|
+
self == other
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
# Calculates hash code according to all attributes.
|
|
223
|
+
# @return [Fixnum] Hash code
|
|
224
|
+
def hash
|
|
225
|
+
[id, operation_type, status, compartment_id, resources, time_accepted, time_started, time_finished].hash
|
|
226
|
+
end
|
|
227
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
228
|
+
|
|
229
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
# Builds the object from hash
|
|
233
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
234
|
+
# @return [Object] Returns the model itself
|
|
235
|
+
def build_from_hash(attributes)
|
|
236
|
+
return nil unless attributes.is_a?(Hash)
|
|
237
|
+
|
|
238
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
239
|
+
if type =~ /^Array<(.*)>/i
|
|
240
|
+
# check to ensure the input is an array given that the the attribute
|
|
241
|
+
# is documented as an array but the input is not
|
|
242
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
243
|
+
public_method("#{key}=").call(
|
|
244
|
+
attributes[self.class.attribute_map[key]]
|
|
245
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
246
|
+
)
|
|
247
|
+
end
|
|
248
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
249
|
+
public_method("#{key}=").call(
|
|
250
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
251
|
+
)
|
|
252
|
+
end
|
|
253
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
self
|
|
257
|
+
end
|
|
258
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
259
|
+
|
|
260
|
+
# Returns the string representation of the object
|
|
261
|
+
# @return [String] String presentation of the object
|
|
262
|
+
def to_s
|
|
263
|
+
to_hash.to_s
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# Returns the object in the form of hash
|
|
267
|
+
# @return [Hash] Returns the object in the form of hash
|
|
268
|
+
def to_hash
|
|
269
|
+
hash = {}
|
|
270
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
271
|
+
value = public_method(attr).call
|
|
272
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
273
|
+
|
|
274
|
+
hash[param] = _to_hash(value)
|
|
275
|
+
end
|
|
276
|
+
hash
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
private
|
|
280
|
+
|
|
281
|
+
# Outputs non-array value in the form of hash
|
|
282
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
283
|
+
# @param [Object] value Any valid value
|
|
284
|
+
# @return [Hash] Returns the value in the form of hash
|
|
285
|
+
def _to_hash(value)
|
|
286
|
+
if value.is_a?(Array)
|
|
287
|
+
value.compact.map { |v| _to_hash(v) }
|
|
288
|
+
elsif value.is_a?(Hash)
|
|
289
|
+
{}.tap do |hash|
|
|
290
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
291
|
+
end
|
|
292
|
+
elsif value.respond_to? :to_hash
|
|
293
|
+
value.to_hash
|
|
294
|
+
else
|
|
295
|
+
value
|
|
296
|
+
end
|
|
297
|
+
end
|
|
298
|
+
end
|
|
299
|
+
end
|
|
300
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
data/lib/oci/audit/audit.rb
CHANGED
|
@@ -12,6 +12,11 @@ end
|
|
|
12
12
|
# Require models
|
|
13
13
|
require 'oci/audit/models/audit_event'
|
|
14
14
|
require 'oci/audit/models/configuration'
|
|
15
|
+
require 'oci/audit/models/data'
|
|
16
|
+
require 'oci/audit/models/identity'
|
|
17
|
+
require 'oci/audit/models/request'
|
|
18
|
+
require 'oci/audit/models/response'
|
|
19
|
+
require 'oci/audit/models/state_change'
|
|
15
20
|
require 'oci/audit/models/update_configuration_details'
|
|
16
21
|
|
|
17
22
|
# Require generated clients
|
|
@@ -5,7 +5,10 @@ require 'logger'
|
|
|
5
5
|
|
|
6
6
|
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
7
7
|
module OCI
|
|
8
|
-
# API for the Audit Service.
|
|
8
|
+
# API for the Audit Service. Use this API for compliance monitoring in your tenancy.
|
|
9
|
+
# For more information, see [Overview of Audit](/iaas/Content/Audit/Concepts/auditoverview.htm).
|
|
10
|
+
#
|
|
11
|
+
# **Tip**: This API is good for queries, but not bulk-export operations.
|
|
9
12
|
class Audit::AuditClient
|
|
10
13
|
# Client used to make HTTP requests.
|
|
11
14
|
# @return [OCI::ApiClient]
|
|
@@ -76,7 +79,7 @@ module OCI
|
|
|
76
79
|
@retry_config = retry_config
|
|
77
80
|
|
|
78
81
|
if endpoint
|
|
79
|
-
@endpoint = endpoint + '/
|
|
82
|
+
@endpoint = endpoint + '/20190901'
|
|
80
83
|
else
|
|
81
84
|
region ||= config.region
|
|
82
85
|
region ||= signer.region if signer.respond_to?(:region)
|
|
@@ -94,7 +97,7 @@ module OCI
|
|
|
94
97
|
|
|
95
98
|
raise 'A region must be specified.' unless @region
|
|
96
99
|
|
|
97
|
-
@endpoint = OCI::Regions.
|
|
100
|
+
@endpoint = OCI::Regions.get_service_endpoint_for_template(@region, 'https://audit.{region}.oraclecloud.com') + '/20190901'
|
|
98
101
|
logger.info "AuditClient endpoint set to '#{@endpoint} from region #{@region}'." if logger
|
|
99
102
|
end
|
|
100
103
|
|
|
@@ -161,22 +164,35 @@ module OCI
|
|
|
161
164
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
162
165
|
|
|
163
166
|
|
|
164
|
-
# Returns all audit events for the specified compartment
|
|
165
|
-
#
|
|
166
|
-
# @param [DateTime] start_time Returns events that were processed at or after this start date and time, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
|
|
167
|
-
# For example, a start value of `2017-01-15T11:30:00Z` will retrieve a list of all events processed since 30 minutes after the 11th hour of January 15, 2017, in Coordinated Universal Time (UTC).
|
|
168
|
-
# You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to `0`.
|
|
167
|
+
# Returns all the audit events processed for the specified compartment within the specified
|
|
168
|
+
# time range.
|
|
169
169
|
#
|
|
170
|
-
# @param [
|
|
171
|
-
#
|
|
172
|
-
#
|
|
170
|
+
# @param [String] compartment_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment.
|
|
171
|
+
# @param [DateTime] start_time Returns events that were processed at or after this start date and time, expressed in
|
|
172
|
+
# [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
|
|
173
|
+
#
|
|
174
|
+
# For example, a start value of `2017-01-15T11:30:00Z` will retrieve a list of all events processed
|
|
175
|
+
# since 30 minutes after the 11th hour of January 15, 2017, in Coordinated Universal Time (UTC).
|
|
176
|
+
# You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must
|
|
177
|
+
# be set to `0`.
|
|
178
|
+
#
|
|
179
|
+
# @param [DateTime] end_time Returns events that were processed before this end date and time, expressed in
|
|
180
|
+
# [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
|
|
181
|
+
#
|
|
182
|
+
# For example, a start value of `2017-01-01T00:00:00Z` and an end value of `2017-01-02T00:00:00Z`
|
|
183
|
+
# will retrieve a list of all events processed on January 1, 2017. Similarly, a start value of
|
|
184
|
+
# `2017-01-01T00:00:00Z` and an end value of `2017-02-01T00:00:00Z` will result in a list of all
|
|
185
|
+
# events processed between January 1, 2017 and January 31, 2017. You can specify a value with
|
|
186
|
+
# granularity to the minute. Seconds (and milliseconds, if included) must be set to `0`.
|
|
173
187
|
#
|
|
174
188
|
# @param [Hash] opts the optional parameters
|
|
175
189
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
176
190
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
177
|
-
# @option opts [String] :page The value of the `opc-next-page` response header from the previous
|
|
178
|
-
#
|
|
179
|
-
#
|
|
191
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call.
|
|
192
|
+
# For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
|
193
|
+
#
|
|
194
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
|
195
|
+
# particular request, please provide the request ID.
|
|
180
196
|
#
|
|
181
197
|
# @return [Response] A Response object with data of type Array<{OCI::Audit::Models::AuditEvent AuditEvent}>
|
|
182
198
|
def list_events(compartment_id, start_time, end_time, opts = {})
|
|
@@ -4,126 +4,80 @@ require 'date'
|
|
|
4
4
|
|
|
5
5
|
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
6
6
|
module OCI
|
|
7
|
-
#
|
|
7
|
+
# All the attributes of an audit event. For more information, see [Viewing Audit Log Events](https://docs.cloud.oracle.com/iaas/Content/Audit/Tasks/viewinglogevents.htm).
|
|
8
|
+
#
|
|
8
9
|
class Audit::Models::AuditEvent
|
|
9
|
-
# The
|
|
10
|
-
#
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
# The name of the compartment. This value is the friendly name associated with compartmentId.
|
|
18
|
-
# This value can change, but the service logs the value that appeared at the time of the audit event.
|
|
10
|
+
# The type of event that happened.
|
|
11
|
+
#
|
|
12
|
+
# The service that produces the event can also add, remove, or change the meaning of a field.
|
|
13
|
+
# A service implementing these type changes would publish a new version of an `eventType` and
|
|
14
|
+
# revise the `eventTypeVersion` field.
|
|
15
|
+
#
|
|
16
|
+
# Example: `com.oraclecloud.ComputeApi.GetInstance`
|
|
19
17
|
#
|
|
20
18
|
# @return [String]
|
|
21
|
-
attr_accessor :
|
|
19
|
+
attr_accessor :event_type
|
|
22
20
|
|
|
23
|
-
# The
|
|
21
|
+
# The version of the CloudEvents specification. The structure of the envelope follows the
|
|
22
|
+
# [CloudEvents](https://github.com/cloudevents/spec) industry standard format hosted by the
|
|
23
|
+
# [Cloud Native Computing Foundation ( CNCF)](https://www.cncf.io/).
|
|
24
|
+
#
|
|
25
|
+
# Audit uses version 0.1 specification of the CloudEvents event envelope.
|
|
26
|
+
#
|
|
27
|
+
# Example: `0.1`
|
|
28
|
+
#
|
|
24
29
|
# @return [String]
|
|
25
|
-
attr_accessor :
|
|
30
|
+
attr_accessor :cloud_events_version
|
|
26
31
|
|
|
27
|
-
# The
|
|
28
|
-
#
|
|
32
|
+
# The version of the event type. This version applies to the payload of the event, not the envelope.
|
|
33
|
+
# Use `cloudEventsVersion` to determine the version of the envelope.
|
|
34
|
+
#
|
|
35
|
+
# Example: `2.0`
|
|
29
36
|
#
|
|
30
37
|
# @return [String]
|
|
31
|
-
attr_accessor :
|
|
38
|
+
attr_accessor :event_type_version
|
|
32
39
|
|
|
33
40
|
# The source of the event.
|
|
41
|
+
#
|
|
42
|
+
# Example: `ComputeApi`
|
|
43
|
+
#
|
|
34
44
|
# @return [String]
|
|
35
|
-
attr_accessor :
|
|
45
|
+
attr_accessor :source
|
|
36
46
|
|
|
37
|
-
# The
|
|
47
|
+
# The GUID of the event.
|
|
48
|
+
#
|
|
38
49
|
# @return [String]
|
|
39
|
-
attr_accessor :
|
|
50
|
+
attr_accessor :event_id
|
|
40
51
|
|
|
41
52
|
# The time the event occurred, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
|
|
53
|
+
#
|
|
54
|
+
# Example: `2019-09-18T00:10:59.252Z`
|
|
55
|
+
#
|
|
42
56
|
# @return [DateTime]
|
|
43
57
|
attr_accessor :event_time
|
|
44
58
|
|
|
45
|
-
# The
|
|
46
|
-
#
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
# The credential ID of the user. This value is extracted from the HTTP 'Authorization' request header. It consists of the tenantId, userId, and user fingerprint, all delimited by a slash (/).
|
|
50
|
-
# @return [String]
|
|
51
|
-
attr_accessor :credential_id
|
|
52
|
-
|
|
53
|
-
# The HTTP method of the request.
|
|
54
|
-
# @return [String]
|
|
55
|
-
attr_accessor :request_action
|
|
56
|
-
|
|
57
|
-
# The opc-request-id of the request.
|
|
58
|
-
# @return [String]
|
|
59
|
-
attr_accessor :request_id
|
|
60
|
-
|
|
61
|
-
# The user agent of the client that made the request.
|
|
62
|
-
# @return [String]
|
|
63
|
-
attr_accessor :request_agent
|
|
64
|
-
|
|
65
|
-
# The HTTP header fields and values in the request.
|
|
66
|
-
# @return [Hash<String, Array<String>>]
|
|
67
|
-
attr_accessor :request_headers
|
|
68
|
-
|
|
69
|
-
# The IP address of the source of the request.
|
|
70
|
-
# @return [String]
|
|
71
|
-
attr_accessor :request_origin
|
|
72
|
-
|
|
73
|
-
# The query parameter fields and values for the request.
|
|
74
|
-
# @return [Hash<String, Array<String>>]
|
|
75
|
-
attr_accessor :request_parameters
|
|
76
|
-
|
|
77
|
-
# The resource targeted by the request.
|
|
78
|
-
# @return [String]
|
|
79
|
-
attr_accessor :request_resource
|
|
80
|
-
|
|
81
|
-
# The headers of the response.
|
|
82
|
-
# @return [Hash<String, Array<String>>]
|
|
83
|
-
attr_accessor :response_headers
|
|
84
|
-
|
|
85
|
-
# The status code of the response.
|
|
59
|
+
# The content type of the data contained in `data`.
|
|
60
|
+
#
|
|
61
|
+
# Example: `application/json`
|
|
62
|
+
#
|
|
86
63
|
# @return [String]
|
|
87
|
-
attr_accessor :
|
|
64
|
+
attr_accessor :content_type
|
|
88
65
|
|
|
89
|
-
#
|
|
90
|
-
|
|
91
|
-
attr_accessor :response_time
|
|
92
|
-
|
|
93
|
-
# Metadata of interest from the response payload. For example, the OCID of a resource.
|
|
94
|
-
# @return [Hash<String, Object>]
|
|
95
|
-
attr_accessor :response_payload
|
|
96
|
-
|
|
97
|
-
# The name of the user or service. This value is the friendly name associated with principalId.
|
|
98
|
-
# @return [String]
|
|
99
|
-
attr_accessor :user_name
|
|
66
|
+
# @return [OCI::Audit::Models::Data]
|
|
67
|
+
attr_accessor :data
|
|
100
68
|
|
|
101
69
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
102
70
|
def self.attribute_map
|
|
103
71
|
{
|
|
104
72
|
# rubocop:disable Style/SymbolLiteral
|
|
105
|
-
'tenant_id': :'tenantId',
|
|
106
|
-
'compartment_id': :'compartmentId',
|
|
107
|
-
'compartment_name': :'compartmentName',
|
|
108
|
-
'event_id': :'eventId',
|
|
109
|
-
'event_name': :'eventName',
|
|
110
|
-
'event_source': :'eventSource',
|
|
111
73
|
'event_type': :'eventType',
|
|
74
|
+
'cloud_events_version': :'cloudEventsVersion',
|
|
75
|
+
'event_type_version': :'eventTypeVersion',
|
|
76
|
+
'source': :'source',
|
|
77
|
+
'event_id': :'eventId',
|
|
112
78
|
'event_time': :'eventTime',
|
|
113
|
-
'
|
|
114
|
-
'
|
|
115
|
-
'request_action': :'requestAction',
|
|
116
|
-
'request_id': :'requestId',
|
|
117
|
-
'request_agent': :'requestAgent',
|
|
118
|
-
'request_headers': :'requestHeaders',
|
|
119
|
-
'request_origin': :'requestOrigin',
|
|
120
|
-
'request_parameters': :'requestParameters',
|
|
121
|
-
'request_resource': :'requestResource',
|
|
122
|
-
'response_headers': :'responseHeaders',
|
|
123
|
-
'response_status': :'responseStatus',
|
|
124
|
-
'response_time': :'responseTime',
|
|
125
|
-
'response_payload': :'responsePayload',
|
|
126
|
-
'user_name': :'userName'
|
|
79
|
+
'content_type': :'contentType',
|
|
80
|
+
'data': :'data'
|
|
127
81
|
# rubocop:enable Style/SymbolLiteral
|
|
128
82
|
}
|
|
129
83
|
end
|
|
@@ -132,28 +86,14 @@ module OCI
|
|
|
132
86
|
def self.swagger_types
|
|
133
87
|
{
|
|
134
88
|
# rubocop:disable Style/SymbolLiteral
|
|
135
|
-
'tenant_id': :'String',
|
|
136
|
-
'compartment_id': :'String',
|
|
137
|
-
'compartment_name': :'String',
|
|
138
|
-
'event_id': :'String',
|
|
139
|
-
'event_name': :'String',
|
|
140
|
-
'event_source': :'String',
|
|
141
89
|
'event_type': :'String',
|
|
90
|
+
'cloud_events_version': :'String',
|
|
91
|
+
'event_type_version': :'String',
|
|
92
|
+
'source': :'String',
|
|
93
|
+
'event_id': :'String',
|
|
142
94
|
'event_time': :'DateTime',
|
|
143
|
-
'
|
|
144
|
-
'
|
|
145
|
-
'request_action': :'String',
|
|
146
|
-
'request_id': :'String',
|
|
147
|
-
'request_agent': :'String',
|
|
148
|
-
'request_headers': :'Hash<String, Array<String>>',
|
|
149
|
-
'request_origin': :'String',
|
|
150
|
-
'request_parameters': :'Hash<String, Array<String>>',
|
|
151
|
-
'request_resource': :'String',
|
|
152
|
-
'response_headers': :'Hash<String, Array<String>>',
|
|
153
|
-
'response_status': :'String',
|
|
154
|
-
'response_time': :'DateTime',
|
|
155
|
-
'response_payload': :'Hash<String, Object>',
|
|
156
|
-
'user_name': :'String'
|
|
95
|
+
'content_type': :'String',
|
|
96
|
+
'data': :'OCI::Audit::Models::Data'
|
|
157
97
|
# rubocop:enable Style/SymbolLiteral
|
|
158
98
|
}
|
|
159
99
|
end
|
|
@@ -164,51 +104,39 @@ module OCI
|
|
|
164
104
|
|
|
165
105
|
# Initializes the object
|
|
166
106
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
167
|
-
# @option attributes [String] :tenant_id The value to assign to the {#tenant_id} property
|
|
168
|
-
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
169
|
-
# @option attributes [String] :compartment_name The value to assign to the {#compartment_name} property
|
|
170
|
-
# @option attributes [String] :event_id The value to assign to the {#event_id} property
|
|
171
|
-
# @option attributes [String] :event_name The value to assign to the {#event_name} property
|
|
172
|
-
# @option attributes [String] :event_source The value to assign to the {#event_source} property
|
|
173
107
|
# @option attributes [String] :event_type The value to assign to the {#event_type} property
|
|
108
|
+
# @option attributes [String] :cloud_events_version The value to assign to the {#cloud_events_version} property
|
|
109
|
+
# @option attributes [String] :event_type_version The value to assign to the {#event_type_version} property
|
|
110
|
+
# @option attributes [String] :source The value to assign to the {#source} property
|
|
111
|
+
# @option attributes [String] :event_id The value to assign to the {#event_id} property
|
|
174
112
|
# @option attributes [DateTime] :event_time The value to assign to the {#event_time} property
|
|
175
|
-
# @option attributes [String] :
|
|
176
|
-
# @option attributes [
|
|
177
|
-
# @option attributes [String] :request_action The value to assign to the {#request_action} property
|
|
178
|
-
# @option attributes [String] :request_id The value to assign to the {#request_id} property
|
|
179
|
-
# @option attributes [String] :request_agent The value to assign to the {#request_agent} property
|
|
180
|
-
# @option attributes [Hash<String, Array<String>>] :request_headers The value to assign to the {#request_headers} property
|
|
181
|
-
# @option attributes [String] :request_origin The value to assign to the {#request_origin} property
|
|
182
|
-
# @option attributes [Hash<String, Array<String>>] :request_parameters The value to assign to the {#request_parameters} property
|
|
183
|
-
# @option attributes [String] :request_resource The value to assign to the {#request_resource} property
|
|
184
|
-
# @option attributes [Hash<String, Array<String>>] :response_headers The value to assign to the {#response_headers} property
|
|
185
|
-
# @option attributes [String] :response_status The value to assign to the {#response_status} property
|
|
186
|
-
# @option attributes [DateTime] :response_time The value to assign to the {#response_time} property
|
|
187
|
-
# @option attributes [Hash<String, Object>] :response_payload The value to assign to the {#response_payload} property
|
|
188
|
-
# @option attributes [String] :user_name The value to assign to the {#user_name} property
|
|
113
|
+
# @option attributes [String] :content_type The value to assign to the {#content_type} property
|
|
114
|
+
# @option attributes [OCI::Audit::Models::Data] :data The value to assign to the {#data} property
|
|
189
115
|
def initialize(attributes = {})
|
|
190
116
|
return unless attributes.is_a?(Hash)
|
|
191
117
|
|
|
192
118
|
# convert string to symbol for hash key
|
|
193
119
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
194
120
|
|
|
195
|
-
self.
|
|
121
|
+
self.event_type = attributes[:'eventType'] if attributes[:'eventType']
|
|
122
|
+
|
|
123
|
+
raise 'You cannot provide both :eventType and :event_type' if attributes.key?(:'eventType') && attributes.key?(:'event_type')
|
|
196
124
|
|
|
197
|
-
|
|
125
|
+
self.event_type = attributes[:'event_type'] if attributes[:'event_type']
|
|
198
126
|
|
|
199
|
-
self.
|
|
127
|
+
self.cloud_events_version = attributes[:'cloudEventsVersion'] if attributes[:'cloudEventsVersion']
|
|
200
128
|
|
|
201
|
-
|
|
129
|
+
raise 'You cannot provide both :cloudEventsVersion and :cloud_events_version' if attributes.key?(:'cloudEventsVersion') && attributes.key?(:'cloud_events_version')
|
|
202
130
|
|
|
203
|
-
|
|
131
|
+
self.cloud_events_version = attributes[:'cloud_events_version'] if attributes[:'cloud_events_version']
|
|
204
132
|
|
|
205
|
-
self.
|
|
133
|
+
self.event_type_version = attributes[:'eventTypeVersion'] if attributes[:'eventTypeVersion']
|
|
206
134
|
|
|
207
|
-
|
|
135
|
+
raise 'You cannot provide both :eventTypeVersion and :event_type_version' if attributes.key?(:'eventTypeVersion') && attributes.key?(:'event_type_version')
|
|
208
136
|
|
|
209
|
-
|
|
137
|
+
self.event_type_version = attributes[:'event_type_version'] if attributes[:'event_type_version']
|
|
210
138
|
|
|
211
|
-
self.
|
|
139
|
+
self.source = attributes[:'source'] if attributes[:'source']
|
|
212
140
|
|
|
213
141
|
self.event_id = attributes[:'eventId'] if attributes[:'eventId']
|
|
214
142
|
|
|
@@ -216,113 +144,19 @@ module OCI
|
|
|
216
144
|
|
|
217
145
|
self.event_id = attributes[:'event_id'] if attributes[:'event_id']
|
|
218
146
|
|
|
219
|
-
self.event_name = attributes[:'eventName'] if attributes[:'eventName']
|
|
220
|
-
|
|
221
|
-
raise 'You cannot provide both :eventName and :event_name' if attributes.key?(:'eventName') && attributes.key?(:'event_name')
|
|
222
|
-
|
|
223
|
-
self.event_name = attributes[:'event_name'] if attributes[:'event_name']
|
|
224
|
-
|
|
225
|
-
self.event_source = attributes[:'eventSource'] if attributes[:'eventSource']
|
|
226
|
-
|
|
227
|
-
raise 'You cannot provide both :eventSource and :event_source' if attributes.key?(:'eventSource') && attributes.key?(:'event_source')
|
|
228
|
-
|
|
229
|
-
self.event_source = attributes[:'event_source'] if attributes[:'event_source']
|
|
230
|
-
|
|
231
|
-
self.event_type = attributes[:'eventType'] if attributes[:'eventType']
|
|
232
|
-
|
|
233
|
-
raise 'You cannot provide both :eventType and :event_type' if attributes.key?(:'eventType') && attributes.key?(:'event_type')
|
|
234
|
-
|
|
235
|
-
self.event_type = attributes[:'event_type'] if attributes[:'event_type']
|
|
236
|
-
|
|
237
147
|
self.event_time = attributes[:'eventTime'] if attributes[:'eventTime']
|
|
238
148
|
|
|
239
149
|
raise 'You cannot provide both :eventTime and :event_time' if attributes.key?(:'eventTime') && attributes.key?(:'event_time')
|
|
240
150
|
|
|
241
151
|
self.event_time = attributes[:'event_time'] if attributes[:'event_time']
|
|
242
152
|
|
|
243
|
-
self.
|
|
244
|
-
|
|
245
|
-
raise 'You cannot provide both :principalId and :principal_id' if attributes.key?(:'principalId') && attributes.key?(:'principal_id')
|
|
246
|
-
|
|
247
|
-
self.principal_id = attributes[:'principal_id'] if attributes[:'principal_id']
|
|
248
|
-
|
|
249
|
-
self.credential_id = attributes[:'credentialId'] if attributes[:'credentialId']
|
|
250
|
-
|
|
251
|
-
raise 'You cannot provide both :credentialId and :credential_id' if attributes.key?(:'credentialId') && attributes.key?(:'credential_id')
|
|
252
|
-
|
|
253
|
-
self.credential_id = attributes[:'credential_id'] if attributes[:'credential_id']
|
|
254
|
-
|
|
255
|
-
self.request_action = attributes[:'requestAction'] if attributes[:'requestAction']
|
|
256
|
-
|
|
257
|
-
raise 'You cannot provide both :requestAction and :request_action' if attributes.key?(:'requestAction') && attributes.key?(:'request_action')
|
|
258
|
-
|
|
259
|
-
self.request_action = attributes[:'request_action'] if attributes[:'request_action']
|
|
260
|
-
|
|
261
|
-
self.request_id = attributes[:'requestId'] if attributes[:'requestId']
|
|
262
|
-
|
|
263
|
-
raise 'You cannot provide both :requestId and :request_id' if attributes.key?(:'requestId') && attributes.key?(:'request_id')
|
|
264
|
-
|
|
265
|
-
self.request_id = attributes[:'request_id'] if attributes[:'request_id']
|
|
266
|
-
|
|
267
|
-
self.request_agent = attributes[:'requestAgent'] if attributes[:'requestAgent']
|
|
268
|
-
|
|
269
|
-
raise 'You cannot provide both :requestAgent and :request_agent' if attributes.key?(:'requestAgent') && attributes.key?(:'request_agent')
|
|
270
|
-
|
|
271
|
-
self.request_agent = attributes[:'request_agent'] if attributes[:'request_agent']
|
|
153
|
+
self.content_type = attributes[:'contentType'] if attributes[:'contentType']
|
|
272
154
|
|
|
273
|
-
|
|
155
|
+
raise 'You cannot provide both :contentType and :content_type' if attributes.key?(:'contentType') && attributes.key?(:'content_type')
|
|
274
156
|
|
|
275
|
-
|
|
157
|
+
self.content_type = attributes[:'content_type'] if attributes[:'content_type']
|
|
276
158
|
|
|
277
|
-
self.
|
|
278
|
-
|
|
279
|
-
self.request_origin = attributes[:'requestOrigin'] if attributes[:'requestOrigin']
|
|
280
|
-
|
|
281
|
-
raise 'You cannot provide both :requestOrigin and :request_origin' if attributes.key?(:'requestOrigin') && attributes.key?(:'request_origin')
|
|
282
|
-
|
|
283
|
-
self.request_origin = attributes[:'request_origin'] if attributes[:'request_origin']
|
|
284
|
-
|
|
285
|
-
self.request_parameters = attributes[:'requestParameters'] if attributes[:'requestParameters']
|
|
286
|
-
|
|
287
|
-
raise 'You cannot provide both :requestParameters and :request_parameters' if attributes.key?(:'requestParameters') && attributes.key?(:'request_parameters')
|
|
288
|
-
|
|
289
|
-
self.request_parameters = attributes[:'request_parameters'] if attributes[:'request_parameters']
|
|
290
|
-
|
|
291
|
-
self.request_resource = attributes[:'requestResource'] if attributes[:'requestResource']
|
|
292
|
-
|
|
293
|
-
raise 'You cannot provide both :requestResource and :request_resource' if attributes.key?(:'requestResource') && attributes.key?(:'request_resource')
|
|
294
|
-
|
|
295
|
-
self.request_resource = attributes[:'request_resource'] if attributes[:'request_resource']
|
|
296
|
-
|
|
297
|
-
self.response_headers = attributes[:'responseHeaders'] if attributes[:'responseHeaders']
|
|
298
|
-
|
|
299
|
-
raise 'You cannot provide both :responseHeaders and :response_headers' if attributes.key?(:'responseHeaders') && attributes.key?(:'response_headers')
|
|
300
|
-
|
|
301
|
-
self.response_headers = attributes[:'response_headers'] if attributes[:'response_headers']
|
|
302
|
-
|
|
303
|
-
self.response_status = attributes[:'responseStatus'] if attributes[:'responseStatus']
|
|
304
|
-
|
|
305
|
-
raise 'You cannot provide both :responseStatus and :response_status' if attributes.key?(:'responseStatus') && attributes.key?(:'response_status')
|
|
306
|
-
|
|
307
|
-
self.response_status = attributes[:'response_status'] if attributes[:'response_status']
|
|
308
|
-
|
|
309
|
-
self.response_time = attributes[:'responseTime'] if attributes[:'responseTime']
|
|
310
|
-
|
|
311
|
-
raise 'You cannot provide both :responseTime and :response_time' if attributes.key?(:'responseTime') && attributes.key?(:'response_time')
|
|
312
|
-
|
|
313
|
-
self.response_time = attributes[:'response_time'] if attributes[:'response_time']
|
|
314
|
-
|
|
315
|
-
self.response_payload = attributes[:'responsePayload'] if attributes[:'responsePayload']
|
|
316
|
-
|
|
317
|
-
raise 'You cannot provide both :responsePayload and :response_payload' if attributes.key?(:'responsePayload') && attributes.key?(:'response_payload')
|
|
318
|
-
|
|
319
|
-
self.response_payload = attributes[:'response_payload'] if attributes[:'response_payload']
|
|
320
|
-
|
|
321
|
-
self.user_name = attributes[:'userName'] if attributes[:'userName']
|
|
322
|
-
|
|
323
|
-
raise 'You cannot provide both :userName and :user_name' if attributes.key?(:'userName') && attributes.key?(:'user_name')
|
|
324
|
-
|
|
325
|
-
self.user_name = attributes[:'user_name'] if attributes[:'user_name']
|
|
159
|
+
self.data = attributes[:'data'] if attributes[:'data']
|
|
326
160
|
end
|
|
327
161
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
328
162
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
@@ -336,28 +170,14 @@ module OCI
|
|
|
336
170
|
return true if equal?(other)
|
|
337
171
|
|
|
338
172
|
self.class == other.class &&
|
|
339
|
-
tenant_id == other.tenant_id &&
|
|
340
|
-
compartment_id == other.compartment_id &&
|
|
341
|
-
compartment_name == other.compartment_name &&
|
|
342
|
-
event_id == other.event_id &&
|
|
343
|
-
event_name == other.event_name &&
|
|
344
|
-
event_source == other.event_source &&
|
|
345
173
|
event_type == other.event_type &&
|
|
174
|
+
cloud_events_version == other.cloud_events_version &&
|
|
175
|
+
event_type_version == other.event_type_version &&
|
|
176
|
+
source == other.source &&
|
|
177
|
+
event_id == other.event_id &&
|
|
346
178
|
event_time == other.event_time &&
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
request_action == other.request_action &&
|
|
350
|
-
request_id == other.request_id &&
|
|
351
|
-
request_agent == other.request_agent &&
|
|
352
|
-
request_headers == other.request_headers &&
|
|
353
|
-
request_origin == other.request_origin &&
|
|
354
|
-
request_parameters == other.request_parameters &&
|
|
355
|
-
request_resource == other.request_resource &&
|
|
356
|
-
response_headers == other.response_headers &&
|
|
357
|
-
response_status == other.response_status &&
|
|
358
|
-
response_time == other.response_time &&
|
|
359
|
-
response_payload == other.response_payload &&
|
|
360
|
-
user_name == other.user_name
|
|
179
|
+
content_type == other.content_type &&
|
|
180
|
+
data == other.data
|
|
361
181
|
end
|
|
362
182
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
363
183
|
|
|
@@ -373,7 +193,7 @@ module OCI
|
|
|
373
193
|
# Calculates hash code according to all attributes.
|
|
374
194
|
# @return [Fixnum] Hash code
|
|
375
195
|
def hash
|
|
376
|
-
[
|
|
196
|
+
[event_type, cloud_events_version, event_type_version, source, event_id, event_time, content_type, data].hash
|
|
377
197
|
end
|
|
378
198
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
379
199
|
|