oci 2.23.0 → 2.24.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 +9 -1
- data/lib/oci/analytics/analytics.rb +5 -0
- data/lib/oci/analytics/analytics_client.rb +422 -52
- data/lib/oci/analytics/analytics_client_composite_operations.rb +188 -27
- data/lib/oci/analytics/models/analytics_instance.rb +32 -15
- data/lib/oci/analytics/models/analytics_instance_summary.rb +9 -8
- data/lib/oci/analytics/models/capacity.rb +2 -2
- data/lib/oci/analytics/models/change_analytics_instance_network_endpoint_details.rb +1 -1
- data/lib/oci/analytics/models/create_analytics_instance_details.rb +8 -6
- data/lib/oci/analytics/models/create_private_access_channel_details.rb +9 -9
- data/lib/oci/analytics/models/create_resource_group_details.rb +190 -0
- data/lib/oci/analytics/models/create_vanity_url_details.rb +5 -5
- data/lib/oci/analytics/models/feature_bundle.rb +1 -0
- data/lib/oci/analytics/models/instance_resource_group.rb +200 -0
- data/lib/oci/analytics/models/instance_resource_group_summary.rb +200 -0
- data/lib/oci/analytics/models/private_access_channel.rb +13 -13
- data/lib/oci/analytics/models/private_endpoint_details.rb +1 -1
- data/lib/oci/analytics/models/private_source_dns_zone.rb +3 -3
- data/lib/oci/analytics/models/private_source_scan_host.rb +4 -4
- data/lib/oci/analytics/models/public_endpoint_details.rb +1 -1
- data/lib/oci/analytics/models/resource_group_sort_by.rb +17 -0
- data/lib/oci/analytics/models/set_feature_bundle_details.rb +1 -0
- data/lib/oci/analytics/models/set_kms_key_details.rb +2 -2
- data/lib/oci/analytics/models/update_analytics_instance_details.rb +3 -3
- data/lib/oci/analytics/models/update_private_access_channel_details.rb +9 -9
- data/lib/oci/analytics/models/update_resource_group_details.rb +190 -0
- data/lib/oci/analytics/models/update_vanity_url_details.rb +4 -4
- data/lib/oci/analytics/models/vanity_url_details.rb +5 -5
- data/lib/oci/analytics/models/work_request.rb +4 -0
- data/lib/oci/analytics/models/work_request_action_result.rb +4 -1
- data/lib/oci/analytics/models/work_request_error.rb +2 -2
- data/lib/oci/analytics/models/work_request_log.rb +1 -1
- data/lib/oci/analytics/models/work_request_operation_type.rb +5 -1
- data/lib/oci/analytics/models/work_request_resource.rb +4 -1
- data/lib/oci/analytics/models/work_request_summary.rb +4 -0
- data/lib/oci/apiaccesscontrol/api_metadata_client.rb +8 -6
- data/lib/oci/apiaccesscontrol/apiaccesscontrol.rb +1 -0
- data/lib/oci/apiaccesscontrol/models/api_metadata.rb +12 -2
- data/lib/oci/apiaccesscontrol/models/api_metadata_by_entity_type_summary.rb +15 -1
- data/lib/oci/apiaccesscontrol/models/approver_detail.rb +15 -1
- data/lib/oci/apiaccesscontrol/models/approver_group_level.rb +169 -0
- data/lib/oci/apiaccesscontrol/models/create_privileged_api_control_details.rb +17 -3
- data/lib/oci/apiaccesscontrol/models/create_privileged_api_request_details.rb +1 -1
- data/lib/oci/apiaccesscontrol/models/privileged_api_control.rb +15 -2
- data/lib/oci/apiaccesscontrol/models/privileged_api_control_summary.rb +0 -1
- data/lib/oci/apiaccesscontrol/models/update_privileged_api_control_details.rb +16 -2
- data/lib/oci/apiaccesscontrol/privileged_api_control_client.rb +4 -3
- data/lib/oci/apiaccesscontrol/privileged_api_requests_client.rb +4 -3
- data/lib/oci/apiaccesscontrol/privileged_api_work_request_client.rb +4 -3
- data/lib/oci/core/core.rb +5 -0
- data/lib/oci/core/models/boot_volume_backup.rb +87 -4
- data/lib/oci/core/models/create_boot_volume_backup_details.rb +59 -4
- data/lib/oci/core/models/create_cross_connect_details.rb +50 -1
- data/lib/oci/core/models/create_cross_connect_group_details.rb +71 -4
- data/lib/oci/core/models/create_dedicated_vm_host_details.rb +21 -4
- data/lib/oci/core/models/create_virtual_circuit_details.rb +63 -4
- data/lib/oci/core/models/create_volume_backup_details.rb +59 -4
- data/lib/oci/core/models/create_volume_group_backup_details.rb +59 -4
- data/lib/oci/core/models/cross_connect.rb +43 -1
- data/lib/oci/core/models/cross_connect_group.rb +63 -4
- data/lib/oci/core/models/dedicated_vm_host.rb +18 -1
- data/lib/oci/core/models/dedicated_vm_host_instance_summary.rb +18 -1
- data/lib/oci/core/models/dedicated_vm_host_summary.rb +18 -1
- data/lib/oci/core/models/instances.rb +140 -0
- data/lib/oci/core/models/letter_of_authority.rb +31 -4
- data/lib/oci/core/models/loa_extension_data.rb +170 -0
- data/lib/oci/core/models/provider_remote_region_name.rb +174 -0
- data/lib/oci/core/models/retention_duration.rb +189 -0
- data/lib/oci/core/models/supported_capabilities.rb +21 -4
- data/lib/oci/core/models/update_boot_volume_backup_details.rb +59 -4
- data/lib/oci/core/models/update_cross_connect_details.rb +32 -4
- data/lib/oci/core/models/update_cross_connect_group_details.rb +49 -4
- data/lib/oci/core/models/update_cross_connect_letter_of_authority_details.rb +195 -0
- data/lib/oci/core/models/update_virtual_circuit_details.rb +30 -1
- data/lib/oci/core/models/update_volume_backup_details.rb +59 -4
- data/lib/oci/core/models/update_volume_group_backup_details.rb +59 -4
- data/lib/oci/core/models/virtual_circuit.rb +80 -1
- data/lib/oci/core/models/volume_backup.rb +87 -4
- data/lib/oci/core/models/volume_backup_schedule.rb +45 -4
- data/lib/oci/core/models/volume_group_backup.rb +73 -4
- data/lib/oci/core/virtual_network_client.rb +136 -2
- data/lib/oci/database/database.rb +13 -0
- data/lib/oci/database/database_client.rb +923 -111
- data/lib/oci/database/database_client_composite_operations.rb +283 -0
- data/lib/oci/database/models/basecc_vm_cluster.rb +713 -0
- data/lib/oci/database/models/basecc_vm_cluster_summary.rb +716 -0
- data/lib/oci/database/models/basecc_vm_cluster_update.rb +342 -0
- data/lib/oci/database/models/basecc_vm_cluster_update_details.rb +198 -0
- data/lib/oci/database/models/basecc_vm_cluster_update_history_entry.rb +318 -0
- data/lib/oci/database/models/basecc_vm_cluster_update_history_entry_summary.rb +321 -0
- data/lib/oci/database/models/basecc_vm_cluster_update_summary.rb +349 -0
- data/lib/oci/database/models/change_basecc_vm_cluster_compartment_details.rb +156 -0
- data/lib/oci/database/models/cloud_vm_cluster.rb +28 -1
- data/lib/oci/database/models/cloud_vm_cluster_summary.rb +28 -1
- data/lib/oci/database/models/create_basecc_vm_cluster_details.rb +506 -0
- data/lib/oci/database/models/create_database_software_image_details.rb +2 -1
- data/lib/oci/database/models/database_software_image.rb +1 -0
- data/lib/oci/database/models/database_software_image_summary.rb +1 -0
- data/lib/oci/database/models/exadata_live_image_version_details.rb +216 -0
- data/lib/oci/database/models/exadb_vm_cluster.rb +53 -4
- data/lib/oci/database/models/exadb_vm_cluster_summary.rb +53 -4
- data/lib/oci/database/models/register_exadb_vm_cluster_pkcs_details.rb +171 -0
- data/lib/oci/database/models/unregister_exadb_vm_cluster_pkcs_details.rb +171 -0
- data/lib/oci/database/models/update.rb +94 -1
- data/lib/oci/database/models/update_basecc_vm_cluster_details.rb +345 -0
- data/lib/oci/database/models/update_details.rb +33 -1
- data/lib/oci/database/models/update_history_entry.rb +39 -1
- data/lib/oci/database/models/update_history_entry_summary.rb +39 -1
- data/lib/oci/database/models/update_summary.rb +94 -1
- data/lib/oci/database/models/vm_cluster.rb +28 -1
- data/lib/oci/database/models/vm_cluster_summary.rb +28 -1
- data/lib/oci/database/models/vm_cluster_update.rb +94 -1
- data/lib/oci/database/models/vm_cluster_update_details.rb +33 -1
- data/lib/oci/database/models/vm_cluster_update_history_entry.rb +39 -1
- data/lib/oci/database/models/vm_cluster_update_history_entry_summary.rb +39 -1
- data/lib/oci/database/models/vm_cluster_update_summary.rb +94 -1
- data/lib/oci/file_storage/models/file_system.rb +37 -4
- data/lib/oci/file_storage/models/file_system_summary.rb +37 -4
- data/lib/oci/file_storage/models/snapshot.rb +19 -4
- data/lib/oci/file_storage/models/snapshot_summary.rb +19 -4
- data/lib/oci/generative_ai/models/create_dedicated_ai_cluster_details.rb +3 -0
- data/lib/oci/generative_ai/models/dedicated_ai_cluster.rb +2 -0
- data/lib/oci/golden_gate/golden_gate.rb +29 -0
- data/lib/oci/golden_gate/golden_gate_client.rb +185 -6
- data/lib/oci/golden_gate/models/ai_model_auth_details.rb +194 -0
- data/lib/oci/golden_gate/models/ai_model_auth_details_summary.rb +194 -0
- data/lib/oci/golden_gate/models/ai_model_auth_type.rb +13 -0
- data/lib/oci/golden_gate/models/ai_model_collection.rb +153 -0
- data/lib/oci/golden_gate/models/ai_model_connection.rb +350 -0
- data/lib/oci/golden_gate/models/ai_model_connection_summary.rb +333 -0
- data/lib/oci/golden_gate/models/ai_model_summary.rb +216 -0
- data/lib/oci/golden_gate/models/ai_provider_collection.rb +153 -0
- data/lib/oci/golden_gate/models/ai_provider_summary.rb +249 -0
- data/lib/oci/golden_gate/models/amazon_kinesis_connection.rb +1 -0
- data/lib/oci/golden_gate/models/amazon_kinesis_connection_summary.rb +1 -0
- data/lib/oci/golden_gate/models/amazon_s3_connection.rb +1 -1
- data/lib/oci/golden_gate/models/amazon_s3_connection_summary.rb +1 -1
- data/lib/oci/golden_gate/models/amazon_s3_iceberg_storage.rb +1 -0
- data/lib/oci/golden_gate/models/amazon_s3_iceberg_storage_summary.rb +1 -0
- data/lib/oci/golden_gate/models/api_key_ai_model_auth_details.rb +199 -0
- data/lib/oci/golden_gate/models/api_key_ai_model_auth_details_summary.rb +181 -0
- data/lib/oci/golden_gate/models/connection.rb +43 -6
- data/lib/oci/golden_gate/models/connection_assignment.rb +63 -1
- data/lib/oci/golden_gate/models/connection_assignment_summary.rb +64 -1
- data/lib/oci/golden_gate/models/connection_summary.rb +42 -6
- data/lib/oci/golden_gate/models/connection_type.rb +2 -1
- data/lib/oci/golden_gate/models/create_ai_model_auth_details.rb +187 -0
- data/lib/oci/golden_gate/models/create_ai_model_connection_details.rb +298 -0
- data/lib/oci/golden_gate/models/create_amazon_kinesis_connection_details.rb +4 -1
- data/lib/oci/golden_gate/models/create_amazon_redshift_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_amazon_s3_connection_details.rb +5 -3
- data/lib/oci/golden_gate/models/create_amazon_s3_iceberg_storage_details.rb +5 -2
- data/lib/oci/golden_gate/models/create_api_key_ai_model_auth_details.rb +199 -0
- data/lib/oci/golden_gate/models/create_azure_data_lake_storage_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/create_azure_data_lake_storage_iceberg_storage_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_azure_synapse_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_connection_details.rb +43 -7
- data/lib/oci/golden_gate/models/create_database_registration_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_databricks_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_db2_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/create_elasticsearch_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_golden_gate_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_google_big_query_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_google_cloud_storage_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_google_cloud_storage_iceberg_storage_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_google_pub_sub_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_iceberg_connection_details.rb +1 -0
- data/lib/oci/golden_gate/models/create_iceberg_storage_details.rb +5 -1
- data/lib/oci/golden_gate/models/create_java_message_service_connection_details.rb +21 -7
- data/lib/oci/golden_gate/models/create_kafka_connection_details.rb +18 -6
- data/lib/oci/golden_gate/models/create_kafka_schema_registry_connection_details.rb +18 -6
- data/lib/oci/golden_gate/models/create_microsoft_fabric_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_microsoft_sqlserver_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_mongo_db_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/create_mysql_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_no_iceberg_storage_details.rb +148 -0
- data/lib/oci/golden_gate/models/create_oci_gen_ai_model_auth_details.rb +242 -0
- data/lib/oci/golden_gate/models/create_oci_object_storage_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_oci_object_storage_s3_api_iceberg_storage_details.rb +228 -0
- data/lib/oci/golden_gate/models/create_oracle_ai_data_platform_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_oracle_connection_details.rb +7 -3
- data/lib/oci/golden_gate/models/create_oracle_nosql_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_postgresql_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_redis_connection_details.rb +15 -5
- data/lib/oci/golden_gate/models/create_snowflake_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/deployment_type_summary.rb +1 -0
- data/lib/oci/golden_gate/models/iceberg_connection.rb +1 -0
- data/lib/oci/golden_gate/models/iceberg_connection_summary.rb +1 -0
- data/lib/oci/golden_gate/models/iceberg_storage.rb +4 -0
- data/lib/oci/golden_gate/models/iceberg_storage_summary.rb +4 -0
- data/lib/oci/golden_gate/models/iceberg_storage_type.rb +3 -1
- data/lib/oci/golden_gate/models/kafka_connection.rb +1 -0
- data/lib/oci/golden_gate/models/no_iceberg_storage.rb +148 -0
- data/lib/oci/golden_gate/models/no_iceberg_storage_summary.rb +148 -0
- data/lib/oci/golden_gate/models/oci_gen_ai_model_auth_details.rb +242 -0
- data/lib/oci/golden_gate/models/oci_gen_ai_model_auth_details_summary.rb +224 -0
- data/lib/oci/golden_gate/models/oci_object_storage_s3_api_iceberg_storage.rb +209 -0
- data/lib/oci/golden_gate/models/oci_object_storage_s3_api_iceberg_storage_summary.rb +209 -0
- data/lib/oci/golden_gate/models/oracle_connection.rb +4 -1
- data/lib/oci/golden_gate/models/oracle_connection_summary.rb +1 -1
- data/lib/oci/golden_gate/models/technology_type.rb +6 -1
- data/lib/oci/golden_gate/models/update_ai_model_auth_details.rb +187 -0
- data/lib/oci/golden_gate/models/update_ai_model_connection_details.rb +237 -0
- data/lib/oci/golden_gate/models/update_amazon_kinesis_connection_details.rb +4 -1
- data/lib/oci/golden_gate/models/update_amazon_redshift_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_amazon_s3_connection_details.rb +5 -3
- data/lib/oci/golden_gate/models/update_amazon_s3_iceberg_storage_details.rb +5 -2
- data/lib/oci/golden_gate/models/update_api_key_ai_model_auth_details.rb +199 -0
- data/lib/oci/golden_gate/models/update_azure_data_lake_storage_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/update_azure_data_lake_storage_iceberg_storage_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_azure_synapse_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_connection_details.rb +43 -7
- data/lib/oci/golden_gate/models/update_database_registration_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_databricks_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_db2_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/update_elasticsearch_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_golden_gate_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_google_big_query_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_google_cloud_storage_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_google_cloud_storage_iceberg_storage_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_google_pub_sub_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_iceberg_storage_details.rb +5 -1
- data/lib/oci/golden_gate/models/update_java_message_service_connection_details.rb +21 -7
- data/lib/oci/golden_gate/models/update_kafka_connection_details.rb +18 -6
- data/lib/oci/golden_gate/models/update_kafka_schema_registry_connection_details.rb +18 -6
- data/lib/oci/golden_gate/models/update_microsoft_fabric_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_microsoft_sqlserver_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_mongo_db_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/update_mysql_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_no_iceberg_storage_details.rb +148 -0
- data/lib/oci/golden_gate/models/update_oci_gen_ai_model_auth_details.rb +242 -0
- data/lib/oci/golden_gate/models/update_oci_object_storage_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_oci_object_storage_s3_api_iceberg_storage_details.rb +228 -0
- data/lib/oci/golden_gate/models/update_oracle_ai_data_platform_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_oracle_connection_details.rb +7 -3
- data/lib/oci/golden_gate/models/update_oracle_nosql_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_postgresql_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_redis_connection_details.rb +15 -5
- data/lib/oci/golden_gate/models/update_snowflake_connection_details.rb +9 -3
- data/lib/oci/regions.rb +8 -1
- data/lib/oci/version.rb +1 -1
- metadata +55 -2
|
@@ -165,10 +165,10 @@ module OCI
|
|
|
165
165
|
|
|
166
166
|
# Gets a list of ApiMetadata.
|
|
167
167
|
#
|
|
168
|
+
# @param [String] compartment_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
|
|
168
169
|
# @param [Hash] opts the optional parameters
|
|
169
170
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
170
171
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
171
|
-
# @option opts [String] :compartment_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
|
|
172
172
|
# @option opts [String] :lifecycle_state A filter to return only resources that match the given lifecycle state. The
|
|
173
173
|
# state value is case-insensitive.
|
|
174
174
|
#
|
|
@@ -194,9 +194,10 @@ module OCI
|
|
|
194
194
|
#
|
|
195
195
|
# @return [Response] A Response object with data of type {OCI::Apiaccesscontrol::Models::ApiMetadataCollection ApiMetadataCollection}
|
|
196
196
|
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/apiaccesscontrol/list_api_metadata.rb.html) to see an example of how to use list_api_metadata API.
|
|
197
|
-
def list_api_metadata(opts = {})
|
|
197
|
+
def list_api_metadata(compartment_id, opts = {})
|
|
198
198
|
logger.debug 'Calling operation ApiMetadataClient#list_api_metadata.' if logger
|
|
199
199
|
|
|
200
|
+
raise "Missing the required parameter 'compartment_id' when calling list_api_metadata." if compartment_id.nil?
|
|
200
201
|
|
|
201
202
|
if opts[:lifecycle_state] && !OCI::Apiaccesscontrol::Models::ApiMetadata::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
|
|
202
203
|
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Apiaccesscontrol::Models::ApiMetadata::LIFECYCLE_STATE_ENUM.'
|
|
@@ -216,7 +217,7 @@ module OCI
|
|
|
216
217
|
# rubocop:disable Style/NegatedIf
|
|
217
218
|
# Query Params
|
|
218
219
|
query_params = {}
|
|
219
|
-
query_params[:compartmentId] =
|
|
220
|
+
query_params[:compartmentId] = compartment_id
|
|
220
221
|
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
|
221
222
|
query_params[:resourceType] = opts[:resource_type] if opts[:resource_type]
|
|
222
223
|
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
|
@@ -260,10 +261,10 @@ module OCI
|
|
|
260
261
|
|
|
261
262
|
# Gets a list of ApiMetadata Grouped By Entity Types.
|
|
262
263
|
#
|
|
264
|
+
# @param [String] compartment_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
|
|
263
265
|
# @param [Hash] opts the optional parameters
|
|
264
266
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
265
267
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
266
|
-
# @option opts [String] :compartment_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
|
|
267
268
|
# @option opts [String] :lifecycle_state A filter to return only resources that match the given lifecycle state. The
|
|
268
269
|
# state value is case-insensitive.
|
|
269
270
|
#
|
|
@@ -289,9 +290,10 @@ module OCI
|
|
|
289
290
|
#
|
|
290
291
|
# @return [Response] A Response object with data of type {OCI::Apiaccesscontrol::Models::ApiMetadataByEntityTypeCollection ApiMetadataByEntityTypeCollection}
|
|
291
292
|
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/apiaccesscontrol/list_api_metadata_by_entity_types.rb.html) to see an example of how to use list_api_metadata_by_entity_types API.
|
|
292
|
-
def list_api_metadata_by_entity_types(opts = {})
|
|
293
|
+
def list_api_metadata_by_entity_types(compartment_id, opts = {})
|
|
293
294
|
logger.debug 'Calling operation ApiMetadataClient#list_api_metadata_by_entity_types.' if logger
|
|
294
295
|
|
|
296
|
+
raise "Missing the required parameter 'compartment_id' when calling list_api_metadata_by_entity_types." if compartment_id.nil?
|
|
295
297
|
|
|
296
298
|
if opts[:lifecycle_state] && !OCI::Apiaccesscontrol::Models::ApiMetadata::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
|
|
297
299
|
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Apiaccesscontrol::Models::ApiMetadata::LIFECYCLE_STATE_ENUM.'
|
|
@@ -311,7 +313,7 @@ module OCI
|
|
|
311
313
|
# rubocop:disable Style/NegatedIf
|
|
312
314
|
# Query Params
|
|
313
315
|
query_params = {}
|
|
314
|
-
query_params[:compartmentId] =
|
|
316
|
+
query_params[:compartmentId] = compartment_id
|
|
315
317
|
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
|
316
318
|
query_params[:resourceType] = opts[:resource_type] if opts[:resource_type]
|
|
317
319
|
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
|
@@ -21,6 +21,7 @@ require 'oci/apiaccesscontrol/models/api_metadata_collection'
|
|
|
21
21
|
require 'oci/apiaccesscontrol/models/api_metadata_summary'
|
|
22
22
|
require 'oci/apiaccesscontrol/models/approve_privileged_api_request_details'
|
|
23
23
|
require 'oci/apiaccesscontrol/models/approver_detail'
|
|
24
|
+
require 'oci/apiaccesscontrol/models/approver_group_level'
|
|
24
25
|
require 'oci/apiaccesscontrol/models/change_privileged_api_control_compartment_details'
|
|
25
26
|
require 'oci/apiaccesscontrol/models/close_privileged_api_request_details'
|
|
26
27
|
require 'oci/apiaccesscontrol/models/create_privileged_api_control_details'
|
|
@@ -48,10 +48,14 @@ module OCI
|
|
|
48
48
|
# @return [String]
|
|
49
49
|
attr_accessor :api_name
|
|
50
50
|
|
|
51
|
-
#
|
|
51
|
+
# deprecated; Use attributes field instead.
|
|
52
52
|
# @return [Array<String>]
|
|
53
53
|
attr_accessor :fields
|
|
54
54
|
|
|
55
|
+
# List of the fields that is use while calling post or put for the data.
|
|
56
|
+
# @return [Array<String>]
|
|
57
|
+
attr_accessor :attributes
|
|
58
|
+
|
|
55
59
|
# **[Required]** The date and time the PrivilegedApiControl was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).
|
|
56
60
|
#
|
|
57
61
|
# Example: `2016-08-25T21:10:29.600Z`
|
|
@@ -117,6 +121,7 @@ module OCI
|
|
|
117
121
|
'entity_type': :'entityType',
|
|
118
122
|
'api_name': :'apiName',
|
|
119
123
|
'fields': :'fields',
|
|
124
|
+
'attributes': :'attributes',
|
|
120
125
|
'time_created': :'timeCreated',
|
|
121
126
|
'time_updated': :'timeUpdated',
|
|
122
127
|
'time_deleted': :'timeDeleted',
|
|
@@ -140,6 +145,7 @@ module OCI
|
|
|
140
145
|
'entity_type': :'String',
|
|
141
146
|
'api_name': :'String',
|
|
142
147
|
'fields': :'Array<String>',
|
|
148
|
+
'attributes': :'Array<String>',
|
|
143
149
|
'time_created': :'DateTime',
|
|
144
150
|
'time_updated': :'DateTime',
|
|
145
151
|
'time_deleted': :'DateTime',
|
|
@@ -165,6 +171,7 @@ module OCI
|
|
|
165
171
|
# @option attributes [String] :entity_type The value to assign to the {#entity_type} property
|
|
166
172
|
# @option attributes [String] :api_name The value to assign to the {#api_name} property
|
|
167
173
|
# @option attributes [Array<String>] :fields The value to assign to the {#fields} property
|
|
174
|
+
# @option attributes [Array<String>] :attributes The value to assign to the {#attributes} property
|
|
168
175
|
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
|
169
176
|
# @option attributes [DateTime] :time_updated The value to assign to the {#time_updated} property
|
|
170
177
|
# @option attributes [DateTime] :time_deleted The value to assign to the {#time_deleted} property
|
|
@@ -209,6 +216,8 @@ module OCI
|
|
|
209
216
|
|
|
210
217
|
self.fields = attributes[:'fields'] if attributes[:'fields']
|
|
211
218
|
|
|
219
|
+
self.attributes = attributes[:'attributes'] if attributes[:'attributes']
|
|
220
|
+
|
|
212
221
|
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
|
213
222
|
|
|
214
223
|
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
|
@@ -289,6 +298,7 @@ module OCI
|
|
|
289
298
|
entity_type == other.entity_type &&
|
|
290
299
|
api_name == other.api_name &&
|
|
291
300
|
fields == other.fields &&
|
|
301
|
+
attributes == other.attributes &&
|
|
292
302
|
time_created == other.time_created &&
|
|
293
303
|
time_updated == other.time_updated &&
|
|
294
304
|
time_deleted == other.time_deleted &&
|
|
@@ -312,7 +322,7 @@ module OCI
|
|
|
312
322
|
# Calculates hash code according to all attributes.
|
|
313
323
|
# @return [Fixnum] Hash code
|
|
314
324
|
def hash
|
|
315
|
-
[id, service_name, display_name, path, entity_type, api_name, fields, time_created, time_updated, time_deleted, lifecycle_state, lifecycle_details, freeform_tags, defined_tags, system_tags].hash
|
|
325
|
+
[id, service_name, display_name, path, entity_type, api_name, fields, attributes, time_created, time_updated, time_deleted, lifecycle_state, lifecycle_details, freeform_tags, defined_tags, system_tags].hash
|
|
316
326
|
end
|
|
317
327
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
318
328
|
|
|
@@ -8,6 +8,10 @@ require 'date'
|
|
|
8
8
|
module OCI
|
|
9
9
|
# Summary information about a ApiMetadata.
|
|
10
10
|
class Apiaccesscontrol::Models::ApiMetadataByEntityTypeSummary
|
|
11
|
+
# The OCID of the compartment that contains the Service Provider Action.
|
|
12
|
+
# @return [String]
|
|
13
|
+
attr_accessor :compartment_id
|
|
14
|
+
|
|
11
15
|
# The entity Type to which the Api belongs to.
|
|
12
16
|
# @return [String]
|
|
13
17
|
attr_accessor :entity_type
|
|
@@ -43,6 +47,7 @@ module OCI
|
|
|
43
47
|
def self.attribute_map
|
|
44
48
|
{
|
|
45
49
|
# rubocop:disable Style/SymbolLiteral
|
|
50
|
+
'compartment_id': :'compartmentId',
|
|
46
51
|
'entity_type': :'entityType',
|
|
47
52
|
'api_metadatas': :'apiMetadatas',
|
|
48
53
|
'freeform_tags': :'freeformTags',
|
|
@@ -56,6 +61,7 @@ module OCI
|
|
|
56
61
|
def self.swagger_types
|
|
57
62
|
{
|
|
58
63
|
# rubocop:disable Style/SymbolLiteral
|
|
64
|
+
'compartment_id': :'String',
|
|
59
65
|
'entity_type': :'String',
|
|
60
66
|
'api_metadatas': :'Array<OCI::Apiaccesscontrol::Models::ApiMetadataSummary>',
|
|
61
67
|
'freeform_tags': :'Hash<String, String>',
|
|
@@ -71,6 +77,7 @@ module OCI
|
|
|
71
77
|
|
|
72
78
|
# Initializes the object
|
|
73
79
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
80
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
74
81
|
# @option attributes [String] :entity_type The value to assign to the {#entity_type} property
|
|
75
82
|
# @option attributes [Array<OCI::Apiaccesscontrol::Models::ApiMetadataSummary>] :api_metadatas The value to assign to the {#api_metadatas} property
|
|
76
83
|
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
|
@@ -82,6 +89,12 @@ module OCI
|
|
|
82
89
|
# convert string to symbol for hash key
|
|
83
90
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
84
91
|
|
|
92
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
|
93
|
+
|
|
94
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
95
|
+
|
|
96
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
97
|
+
|
|
85
98
|
self.entity_type = attributes[:'entityType'] if attributes[:'entityType']
|
|
86
99
|
|
|
87
100
|
raise 'You cannot provide both :entityType and :entity_type' if attributes.key?(:'entityType') && attributes.key?(:'entity_type')
|
|
@@ -124,6 +137,7 @@ module OCI
|
|
|
124
137
|
return true if equal?(other)
|
|
125
138
|
|
|
126
139
|
self.class == other.class &&
|
|
140
|
+
compartment_id == other.compartment_id &&
|
|
127
141
|
entity_type == other.entity_type &&
|
|
128
142
|
api_metadatas == other.api_metadatas &&
|
|
129
143
|
freeform_tags == other.freeform_tags &&
|
|
@@ -144,7 +158,7 @@ module OCI
|
|
|
144
158
|
# Calculates hash code according to all attributes.
|
|
145
159
|
# @return [Fixnum] Hash code
|
|
146
160
|
def hash
|
|
147
|
-
[entity_type, api_metadatas, freeform_tags, defined_tags, system_tags].hash
|
|
161
|
+
[compartment_id, entity_type, api_metadatas, freeform_tags, defined_tags, system_tags].hash
|
|
148
162
|
end
|
|
149
163
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
150
164
|
|
|
@@ -16,6 +16,10 @@ module OCI
|
|
|
16
16
|
# @return [String]
|
|
17
17
|
attr_accessor :approval_action
|
|
18
18
|
|
|
19
|
+
# The group level at which the approver approved.
|
|
20
|
+
# @return [Integer]
|
|
21
|
+
attr_accessor :approver_group_level
|
|
22
|
+
|
|
19
23
|
# Comment specified by the approver of the request.
|
|
20
24
|
# @return [String]
|
|
21
25
|
attr_accessor :approval_comment
|
|
@@ -36,6 +40,7 @@ module OCI
|
|
|
36
40
|
# rubocop:disable Style/SymbolLiteral
|
|
37
41
|
'approver_id': :'approverId',
|
|
38
42
|
'approval_action': :'approvalAction',
|
|
43
|
+
'approver_group_level': :'approverGroupLevel',
|
|
39
44
|
'approval_comment': :'approvalComment',
|
|
40
45
|
'time_of_authorization': :'timeOfAuthorization',
|
|
41
46
|
'time_approved_for_access': :'timeApprovedForAccess'
|
|
@@ -49,6 +54,7 @@ module OCI
|
|
|
49
54
|
# rubocop:disable Style/SymbolLiteral
|
|
50
55
|
'approver_id': :'String',
|
|
51
56
|
'approval_action': :'String',
|
|
57
|
+
'approver_group_level': :'Integer',
|
|
52
58
|
'approval_comment': :'String',
|
|
53
59
|
'time_of_authorization': :'DateTime',
|
|
54
60
|
'time_approved_for_access': :'DateTime'
|
|
@@ -64,6 +70,7 @@ module OCI
|
|
|
64
70
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
65
71
|
# @option attributes [String] :approver_id The value to assign to the {#approver_id} property
|
|
66
72
|
# @option attributes [String] :approval_action The value to assign to the {#approval_action} property
|
|
73
|
+
# @option attributes [Integer] :approver_group_level The value to assign to the {#approver_group_level} property
|
|
67
74
|
# @option attributes [String] :approval_comment The value to assign to the {#approval_comment} property
|
|
68
75
|
# @option attributes [DateTime] :time_of_authorization The value to assign to the {#time_of_authorization} property
|
|
69
76
|
# @option attributes [DateTime] :time_approved_for_access The value to assign to the {#time_approved_for_access} property
|
|
@@ -85,6 +92,12 @@ module OCI
|
|
|
85
92
|
|
|
86
93
|
self.approval_action = attributes[:'approval_action'] if attributes[:'approval_action']
|
|
87
94
|
|
|
95
|
+
self.approver_group_level = attributes[:'approverGroupLevel'] if attributes[:'approverGroupLevel']
|
|
96
|
+
|
|
97
|
+
raise 'You cannot provide both :approverGroupLevel and :approver_group_level' if attributes.key?(:'approverGroupLevel') && attributes.key?(:'approver_group_level')
|
|
98
|
+
|
|
99
|
+
self.approver_group_level = attributes[:'approver_group_level'] if attributes[:'approver_group_level']
|
|
100
|
+
|
|
88
101
|
self.approval_comment = attributes[:'approvalComment'] if attributes[:'approvalComment']
|
|
89
102
|
|
|
90
103
|
raise 'You cannot provide both :approvalComment and :approval_comment' if attributes.key?(:'approvalComment') && attributes.key?(:'approval_comment')
|
|
@@ -117,6 +130,7 @@ module OCI
|
|
|
117
130
|
self.class == other.class &&
|
|
118
131
|
approver_id == other.approver_id &&
|
|
119
132
|
approval_action == other.approval_action &&
|
|
133
|
+
approver_group_level == other.approver_group_level &&
|
|
120
134
|
approval_comment == other.approval_comment &&
|
|
121
135
|
time_of_authorization == other.time_of_authorization &&
|
|
122
136
|
time_approved_for_access == other.time_approved_for_access
|
|
@@ -135,7 +149,7 @@ module OCI
|
|
|
135
149
|
# Calculates hash code according to all attributes.
|
|
136
150
|
# @return [Fixnum] Hash code
|
|
137
151
|
def hash
|
|
138
|
-
[approver_id, approval_action, approval_comment, time_of_authorization, time_approved_for_access].hash
|
|
152
|
+
[approver_id, approval_action, approver_group_level, approval_comment, time_of_authorization, time_approved_for_access].hash
|
|
139
153
|
end
|
|
140
154
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
141
155
|
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2026, 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
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20241130
|
|
5
|
+
require 'date'
|
|
6
|
+
|
|
7
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
8
|
+
module OCI
|
|
9
|
+
# It represents the group level detail for authorization
|
|
10
|
+
class Apiaccesscontrol::Models::ApproverGroupLevel
|
|
11
|
+
# **[Required]** id of the group.
|
|
12
|
+
# @return [Array<String>]
|
|
13
|
+
attr_accessor :group_id
|
|
14
|
+
|
|
15
|
+
# **[Required]** level of the group.
|
|
16
|
+
# @return [Integer]
|
|
17
|
+
attr_accessor :group_level
|
|
18
|
+
|
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
20
|
+
def self.attribute_map
|
|
21
|
+
{
|
|
22
|
+
# rubocop:disable Style/SymbolLiteral
|
|
23
|
+
'group_id': :'groupId',
|
|
24
|
+
'group_level': :'groupLevel'
|
|
25
|
+
# rubocop:enable Style/SymbolLiteral
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Attribute type mapping.
|
|
30
|
+
def self.swagger_types
|
|
31
|
+
{
|
|
32
|
+
# rubocop:disable Style/SymbolLiteral
|
|
33
|
+
'group_id': :'Array<String>',
|
|
34
|
+
'group_level': :'Integer'
|
|
35
|
+
# rubocop:enable Style/SymbolLiteral
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
40
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
# Initializes the object
|
|
44
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
45
|
+
# @option attributes [Array<String>] :group_id The value to assign to the {#group_id} property
|
|
46
|
+
# @option attributes [Integer] :group_level The value to assign to the {#group_level} property
|
|
47
|
+
def initialize(attributes = {})
|
|
48
|
+
return unless attributes.is_a?(Hash)
|
|
49
|
+
|
|
50
|
+
# convert string to symbol for hash key
|
|
51
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
52
|
+
|
|
53
|
+
self.group_id = attributes[:'groupId'] if attributes[:'groupId']
|
|
54
|
+
|
|
55
|
+
raise 'You cannot provide both :groupId and :group_id' if attributes.key?(:'groupId') && attributes.key?(:'group_id')
|
|
56
|
+
|
|
57
|
+
self.group_id = attributes[:'group_id'] if attributes[:'group_id']
|
|
58
|
+
|
|
59
|
+
self.group_level = attributes[:'groupLevel'] if attributes[:'groupLevel']
|
|
60
|
+
|
|
61
|
+
raise 'You cannot provide both :groupLevel and :group_level' if attributes.key?(:'groupLevel') && attributes.key?(:'group_level')
|
|
62
|
+
|
|
63
|
+
self.group_level = attributes[:'group_level'] if attributes[:'group_level']
|
|
64
|
+
end
|
|
65
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
66
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
67
|
+
|
|
68
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
# Checks equality by comparing each attribute.
|
|
72
|
+
# @param [Object] other the other object to be compared
|
|
73
|
+
def ==(other)
|
|
74
|
+
return true if equal?(other)
|
|
75
|
+
|
|
76
|
+
self.class == other.class &&
|
|
77
|
+
group_id == other.group_id &&
|
|
78
|
+
group_level == other.group_level
|
|
79
|
+
end
|
|
80
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
81
|
+
|
|
82
|
+
# @see the `==` method
|
|
83
|
+
# @param [Object] other the other object to be compared
|
|
84
|
+
def eql?(other)
|
|
85
|
+
self == other
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
# Calculates hash code according to all attributes.
|
|
92
|
+
# @return [Fixnum] Hash code
|
|
93
|
+
def hash
|
|
94
|
+
[group_id, group_level].hash
|
|
95
|
+
end
|
|
96
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
97
|
+
|
|
98
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
# Builds the object from hash
|
|
102
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
103
|
+
# @return [Object] Returns the model itself
|
|
104
|
+
def build_from_hash(attributes)
|
|
105
|
+
return nil unless attributes.is_a?(Hash)
|
|
106
|
+
|
|
107
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
108
|
+
if type =~ /^Array<(.*)>/i
|
|
109
|
+
# check to ensure the input is an array given that the the attribute
|
|
110
|
+
# is documented as an array but the input is not
|
|
111
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
112
|
+
public_method("#{key}=").call(
|
|
113
|
+
attributes[self.class.attribute_map[key]]
|
|
114
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
115
|
+
)
|
|
116
|
+
end
|
|
117
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
118
|
+
public_method("#{key}=").call(
|
|
119
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
120
|
+
)
|
|
121
|
+
end
|
|
122
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
self
|
|
126
|
+
end
|
|
127
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
128
|
+
|
|
129
|
+
# Returns the string representation of the object
|
|
130
|
+
# @return [String] String presentation of the object
|
|
131
|
+
def to_s
|
|
132
|
+
to_hash.to_s
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Returns the object in the form of hash
|
|
136
|
+
# @return [Hash] Returns the object in the form of hash
|
|
137
|
+
def to_hash
|
|
138
|
+
hash = {}
|
|
139
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
140
|
+
value = public_method(attr).call
|
|
141
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
142
|
+
|
|
143
|
+
hash[param] = _to_hash(value)
|
|
144
|
+
end
|
|
145
|
+
hash
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
private
|
|
149
|
+
|
|
150
|
+
# Outputs non-array value in the form of hash
|
|
151
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
152
|
+
# @param [Object] value Any valid value
|
|
153
|
+
# @return [Hash] Returns the value in the form of hash
|
|
154
|
+
def _to_hash(value)
|
|
155
|
+
if value.is_a?(Array)
|
|
156
|
+
value.compact.map { |v| _to_hash(v) }
|
|
157
|
+
elsif value.is_a?(Hash)
|
|
158
|
+
{}.tap do |hash|
|
|
159
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
160
|
+
end
|
|
161
|
+
elsif value.respond_to? :to_hash
|
|
162
|
+
value.to_hash
|
|
163
|
+
else
|
|
164
|
+
value
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
@@ -21,7 +21,7 @@ module OCI
|
|
|
21
21
|
# @return [String]
|
|
22
22
|
attr_accessor :compartment_id
|
|
23
23
|
|
|
24
|
-
# **[Required]** The OCID of the OCI Notification topic to publish messages related to this
|
|
24
|
+
# **[Required]** The OCID of the OCI Notification topic to publish messages related to this Privileged Api Control.
|
|
25
25
|
# @return [String]
|
|
26
26
|
attr_accessor :notification_topic_id
|
|
27
27
|
|
|
@@ -29,6 +29,10 @@ module OCI
|
|
|
29
29
|
# @return [Array<String>]
|
|
30
30
|
attr_accessor :approver_group_id_list
|
|
31
31
|
|
|
32
|
+
# List of Group containing the levels at which the users belonging to the group can authorize.
|
|
33
|
+
# @return [Array<OCI::Apiaccesscontrol::Models::ApproverGroupLevel>]
|
|
34
|
+
attr_accessor :approver_group_level_list
|
|
35
|
+
|
|
32
36
|
# **[Required]** List of privileged operator operations. If Privileged API Managment is enabled for a resource it will be validated whether the operation done by the operator is a part of privileged operation.
|
|
33
37
|
#
|
|
34
38
|
# @return [Array<OCI::Apiaccesscontrol::Models::PrivilegedApiDetails>]
|
|
@@ -38,7 +42,7 @@ module OCI
|
|
|
38
42
|
# @return [String]
|
|
39
43
|
attr_accessor :resource_type
|
|
40
44
|
|
|
41
|
-
#
|
|
45
|
+
# contains Resource details
|
|
42
46
|
# @return [Array<String>]
|
|
43
47
|
attr_accessor :resources
|
|
44
48
|
|
|
@@ -71,6 +75,7 @@ module OCI
|
|
|
71
75
|
'compartment_id': :'compartmentId',
|
|
72
76
|
'notification_topic_id': :'notificationTopicId',
|
|
73
77
|
'approver_group_id_list': :'approverGroupIdList',
|
|
78
|
+
'approver_group_level_list': :'approverGroupLevelList',
|
|
74
79
|
'privileged_operation_list': :'privilegedOperationList',
|
|
75
80
|
'resource_type': :'resourceType',
|
|
76
81
|
'resources': :'resources',
|
|
@@ -90,6 +95,7 @@ module OCI
|
|
|
90
95
|
'compartment_id': :'String',
|
|
91
96
|
'notification_topic_id': :'String',
|
|
92
97
|
'approver_group_id_list': :'Array<String>',
|
|
98
|
+
'approver_group_level_list': :'Array<OCI::Apiaccesscontrol::Models::ApproverGroupLevel>',
|
|
93
99
|
'privileged_operation_list': :'Array<OCI::Apiaccesscontrol::Models::PrivilegedApiDetails>',
|
|
94
100
|
'resource_type': :'String',
|
|
95
101
|
'resources': :'Array<String>',
|
|
@@ -111,6 +117,7 @@ module OCI
|
|
|
111
117
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
112
118
|
# @option attributes [String] :notification_topic_id The value to assign to the {#notification_topic_id} property
|
|
113
119
|
# @option attributes [Array<String>] :approver_group_id_list The value to assign to the {#approver_group_id_list} property
|
|
120
|
+
# @option attributes [Array<OCI::Apiaccesscontrol::Models::ApproverGroupLevel>] :approver_group_level_list The value to assign to the {#approver_group_level_list} property
|
|
114
121
|
# @option attributes [Array<OCI::Apiaccesscontrol::Models::PrivilegedApiDetails>] :privileged_operation_list The value to assign to the {#privileged_operation_list} property
|
|
115
122
|
# @option attributes [String] :resource_type The value to assign to the {#resource_type} property
|
|
116
123
|
# @option attributes [Array<String>] :resources The value to assign to the {#resources} property
|
|
@@ -149,6 +156,12 @@ module OCI
|
|
|
149
156
|
|
|
150
157
|
self.approver_group_id_list = attributes[:'approver_group_id_list'] if attributes[:'approver_group_id_list']
|
|
151
158
|
|
|
159
|
+
self.approver_group_level_list = attributes[:'approverGroupLevelList'] if attributes[:'approverGroupLevelList']
|
|
160
|
+
|
|
161
|
+
raise 'You cannot provide both :approverGroupLevelList and :approver_group_level_list' if attributes.key?(:'approverGroupLevelList') && attributes.key?(:'approver_group_level_list')
|
|
162
|
+
|
|
163
|
+
self.approver_group_level_list = attributes[:'approver_group_level_list'] if attributes[:'approver_group_level_list']
|
|
164
|
+
|
|
152
165
|
self.privileged_operation_list = attributes[:'privilegedOperationList'] if attributes[:'privilegedOperationList']
|
|
153
166
|
|
|
154
167
|
raise 'You cannot provide both :privilegedOperationList and :privileged_operation_list' if attributes.key?(:'privilegedOperationList') && attributes.key?(:'privileged_operation_list')
|
|
@@ -198,6 +211,7 @@ module OCI
|
|
|
198
211
|
compartment_id == other.compartment_id &&
|
|
199
212
|
notification_topic_id == other.notification_topic_id &&
|
|
200
213
|
approver_group_id_list == other.approver_group_id_list &&
|
|
214
|
+
approver_group_level_list == other.approver_group_level_list &&
|
|
201
215
|
privileged_operation_list == other.privileged_operation_list &&
|
|
202
216
|
resource_type == other.resource_type &&
|
|
203
217
|
resources == other.resources &&
|
|
@@ -219,7 +233,7 @@ module OCI
|
|
|
219
233
|
# Calculates hash code according to all attributes.
|
|
220
234
|
# @return [Fixnum] Hash code
|
|
221
235
|
def hash
|
|
222
|
-
[display_name, description, compartment_id, notification_topic_id, approver_group_id_list, privileged_operation_list, resource_type, resources, number_of_approvers, freeform_tags, defined_tags].hash
|
|
236
|
+
[display_name, description, compartment_id, notification_topic_id, approver_group_id_list, approver_group_level_list, privileged_operation_list, resource_type, resources, number_of_approvers, freeform_tags, defined_tags].hash
|
|
223
237
|
end
|
|
224
238
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
225
239
|
|
|
@@ -28,7 +28,7 @@ module OCI
|
|
|
28
28
|
# @return [String]
|
|
29
29
|
attr_accessor :reason_summary
|
|
30
30
|
|
|
31
|
-
# The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
|
|
31
|
+
# **[Required]** The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
|
|
32
32
|
# @return [String]
|
|
33
33
|
attr_accessor :compartment_id
|
|
34
34
|
|
|
@@ -49,6 +49,10 @@ module OCI
|
|
|
49
49
|
# @return [Array<String>]
|
|
50
50
|
attr_accessor :approver_group_id_list
|
|
51
51
|
|
|
52
|
+
# List of Group containing the levels at which the users belonging to the group can authorize.
|
|
53
|
+
# @return [Array<OCI::Apiaccesscontrol::Models::ApproverGroupLevel>]
|
|
54
|
+
attr_accessor :approver_group_level_list
|
|
55
|
+
|
|
52
56
|
# resourceType for which the PrivilegedApiControl is applicable
|
|
53
57
|
# @return [String]
|
|
54
58
|
attr_accessor :resource_type
|
|
@@ -67,7 +71,6 @@ module OCI
|
|
|
67
71
|
attr_accessor :number_of_approvers
|
|
68
72
|
|
|
69
73
|
# **[Required]** The date and time the PrivilegedApiControl was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).
|
|
70
|
-
#
|
|
71
74
|
# Example: `2016-08-25T21:10:29.600Z`
|
|
72
75
|
#
|
|
73
76
|
# @return [DateTime]
|
|
@@ -140,6 +143,7 @@ module OCI
|
|
|
140
143
|
'description': :'description',
|
|
141
144
|
'notification_topic_id': :'notificationTopicId',
|
|
142
145
|
'approver_group_id_list': :'approverGroupIdList',
|
|
146
|
+
'approver_group_level_list': :'approverGroupLevelList',
|
|
143
147
|
'resource_type': :'resourceType',
|
|
144
148
|
'resources': :'resources',
|
|
145
149
|
'privileged_operation_list': :'privilegedOperationList',
|
|
@@ -168,6 +172,7 @@ module OCI
|
|
|
168
172
|
'description': :'String',
|
|
169
173
|
'notification_topic_id': :'String',
|
|
170
174
|
'approver_group_id_list': :'Array<String>',
|
|
175
|
+
'approver_group_level_list': :'Array<OCI::Apiaccesscontrol::Models::ApproverGroupLevel>',
|
|
171
176
|
'resource_type': :'String',
|
|
172
177
|
'resources': :'Array<String>',
|
|
173
178
|
'privileged_operation_list': :'Array<OCI::Apiaccesscontrol::Models::PrivilegedApiDetails>',
|
|
@@ -198,6 +203,7 @@ module OCI
|
|
|
198
203
|
# @option attributes [String] :description The value to assign to the {#description} property
|
|
199
204
|
# @option attributes [String] :notification_topic_id The value to assign to the {#notification_topic_id} property
|
|
200
205
|
# @option attributes [Array<String>] :approver_group_id_list The value to assign to the {#approver_group_id_list} property
|
|
206
|
+
# @option attributes [Array<OCI::Apiaccesscontrol::Models::ApproverGroupLevel>] :approver_group_level_list The value to assign to the {#approver_group_level_list} property
|
|
201
207
|
# @option attributes [String] :resource_type The value to assign to the {#resource_type} property
|
|
202
208
|
# @option attributes [Array<String>] :resources The value to assign to the {#resources} property
|
|
203
209
|
# @option attributes [Array<OCI::Apiaccesscontrol::Models::PrivilegedApiDetails>] :privileged_operation_list The value to assign to the {#privileged_operation_list} property
|
|
@@ -246,6 +252,12 @@ module OCI
|
|
|
246
252
|
|
|
247
253
|
self.approver_group_id_list = attributes[:'approver_group_id_list'] if attributes[:'approver_group_id_list']
|
|
248
254
|
|
|
255
|
+
self.approver_group_level_list = attributes[:'approverGroupLevelList'] if attributes[:'approverGroupLevelList']
|
|
256
|
+
|
|
257
|
+
raise 'You cannot provide both :approverGroupLevelList and :approver_group_level_list' if attributes.key?(:'approverGroupLevelList') && attributes.key?(:'approver_group_level_list')
|
|
258
|
+
|
|
259
|
+
self.approver_group_level_list = attributes[:'approver_group_level_list'] if attributes[:'approver_group_level_list']
|
|
260
|
+
|
|
249
261
|
self.resource_type = attributes[:'resourceType'] if attributes[:'resourceType']
|
|
250
262
|
|
|
251
263
|
raise 'You cannot provide both :resourceType and :resource_type' if attributes.key?(:'resourceType') && attributes.key?(:'resource_type')
|
|
@@ -353,6 +365,7 @@ module OCI
|
|
|
353
365
|
description == other.description &&
|
|
354
366
|
notification_topic_id == other.notification_topic_id &&
|
|
355
367
|
approver_group_id_list == other.approver_group_id_list &&
|
|
368
|
+
approver_group_level_list == other.approver_group_level_list &&
|
|
356
369
|
resource_type == other.resource_type &&
|
|
357
370
|
resources == other.resources &&
|
|
358
371
|
privileged_operation_list == other.privileged_operation_list &&
|
|
@@ -382,7 +395,7 @@ module OCI
|
|
|
382
395
|
# Calculates hash code according to all attributes.
|
|
383
396
|
# @return [Fixnum] Hash code
|
|
384
397
|
def hash
|
|
385
|
-
[id, display_name, compartment_id, description, notification_topic_id, approver_group_id_list, resource_type, resources, privileged_operation_list, number_of_approvers, time_created, time_updated, time_deleted, state, state_details, lifecycle_state, lifecycle_details, freeform_tags, defined_tags, system_tags].hash
|
|
398
|
+
[id, display_name, compartment_id, description, notification_topic_id, approver_group_id_list, approver_group_level_list, resource_type, resources, privileged_operation_list, number_of_approvers, time_created, time_updated, time_deleted, state, state_details, lifecycle_state, lifecycle_details, freeform_tags, defined_tags, system_tags].hash
|
|
386
399
|
end
|
|
387
400
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
388
401
|
|