oci 2.5.1 → 2.5.2
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 +17 -2
- data/lib/oci.rb +1 -0
- data/lib/oci/autoscaling/auto_scaling_client.rb +5 -5
- data/lib/oci/autoscaling/models/auto_scaling_configuration.rb +2 -2
- data/lib/oci/autoscaling/models/create_auto_scaling_configuration_details.rb +2 -2
- data/lib/oci/autoscaling/models/update_auto_scaling_configuration_details.rb +2 -2
- data/lib/oci/budget/budget.rb +33 -0
- data/lib/oci/budget/budget_client.rb +767 -0
- data/lib/oci/budget/budget_client_composite_operations.rb +224 -0
- data/lib/oci/budget/models/alert_rule.rb +398 -0
- data/lib/oci/budget/models/alert_rule_summary.rb +396 -0
- data/lib/oci/budget/models/alert_type.rb +10 -0
- data/lib/oci/budget/models/budget.rb +413 -0
- data/lib/oci/budget/models/budget_summary.rb +413 -0
- data/lib/oci/budget/models/create_alert_rule_details.rb +288 -0
- data/lib/oci/budget/models/create_budget_details.rb +267 -0
- data/lib/oci/budget/models/lifecycle_state.rb +10 -0
- data/lib/oci/budget/models/reset_period.rb +9 -0
- data/lib/oci/budget/models/sort_by.rb +10 -0
- data/lib/oci/budget/models/sort_order.rb +10 -0
- data/lib/oci/budget/models/threshold_type.rb +10 -0
- data/lib/oci/budget/models/update_alert_rule_details.rb +288 -0
- data/lib/oci/budget/models/update_budget_details.rb +239 -0
- data/lib/oci/budget/util.rb +2 -0
- data/lib/oci/core/blockstorage_client.rb +35 -35
- data/lib/oci/core/compute_client.rb +41 -41
- data/lib/oci/core/compute_management_client.rb +6 -6
- data/lib/oci/core/models/app_catalog_listing_resource_version.rb +1 -1
- data/lib/oci/core/models/attach_vnic_details.rb +1 -1
- data/lib/oci/core/models/boot_volume.rb +4 -4
- data/lib/oci/core/models/boot_volume_backup.rb +4 -4
- data/lib/oci/core/models/capture_console_history_details.rb +2 -2
- data/lib/oci/core/models/console_history.rb +2 -2
- data/lib/oci/core/models/cpe.rb +4 -4
- data/lib/oci/core/models/create_boot_volume_backup_details.rb +2 -2
- data/lib/oci/core/models/create_boot_volume_details.rb +2 -2
- data/lib/oci/core/models/create_cpe_details.rb +2 -2
- data/lib/oci/core/models/create_dhcp_details.rb +2 -2
- data/lib/oci/core/models/create_drg_attachment_details.rb +1 -1
- data/lib/oci/core/models/create_drg_details.rb +2 -2
- data/lib/oci/core/models/create_image_details.rb +2 -2
- data/lib/oci/core/models/create_instance_configuration_details.rb +2 -2
- data/lib/oci/core/models/create_instance_console_connection_details.rb +2 -2
- data/lib/oci/core/models/create_instance_pool_details.rb +2 -2
- data/lib/oci/core/models/create_internet_gateway_details.rb +2 -2
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +2 -2
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +3 -3
- data/lib/oci/core/models/create_nat_gateway_details.rb +4 -4
- data/lib/oci/core/models/create_private_ip_details.rb +3 -3
- data/lib/oci/core/models/create_public_ip_details.rb +3 -3
- data/lib/oci/core/models/create_route_table_details.rb +2 -2
- data/lib/oci/core/models/create_security_list_details.rb +2 -2
- data/lib/oci/core/models/create_service_gateway_details.rb +4 -4
- data/lib/oci/core/models/create_subnet_details.rb +3 -3
- data/lib/oci/core/models/create_vcn_details.rb +3 -3
- data/lib/oci/core/models/create_vnic_details.rb +7 -7
- data/lib/oci/core/models/create_volume_backup_details.rb +2 -2
- data/lib/oci/core/models/create_volume_details.rb +2 -2
- data/lib/oci/core/models/create_volume_group_backup_details.rb +2 -2
- data/lib/oci/core/models/create_volume_group_details.rb +2 -2
- data/lib/oci/core/models/cross_connect.rb +2 -2
- data/lib/oci/core/models/cross_connect_group.rb +2 -2
- data/lib/oci/core/models/dhcp_dns_option.rb +2 -2
- data/lib/oci/core/models/dhcp_option.rb +2 -2
- data/lib/oci/core/models/dhcp_options.rb +5 -5
- data/lib/oci/core/models/dhcp_search_domain_option.rb +1 -1
- data/lib/oci/core/models/drg.rb +4 -4
- data/lib/oci/core/models/drg_attachment.rb +2 -2
- data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +2 -2
- data/lib/oci/core/models/fast_connect_provider_service.rb +1 -1
- data/lib/oci/core/models/image.rb +4 -4
- data/lib/oci/core/models/instance.rb +5 -5
- data/lib/oci/core/models/instance_configuration.rb +2 -2
- data/lib/oci/core/models/instance_configuration_attach_vnic_details.rb +1 -1
- data/lib/oci/core/models/instance_configuration_create_volume_details.rb +2 -2
- data/lib/oci/core/models/instance_configuration_launch_instance_details.rb +3 -3
- data/lib/oci/core/models/instance_console_connection.rb +3 -3
- data/lib/oci/core/models/instance_pool.rb +2 -2
- data/lib/oci/core/models/internet_gateway.rb +4 -4
- data/lib/oci/core/models/ip_sec_connection.rb +4 -4
- data/lib/oci/core/models/launch_instance_details.rb +3 -3
- data/lib/oci/core/models/local_peering_gateway.rb +5 -5
- data/lib/oci/core/models/nat_gateway.rb +7 -7
- data/lib/oci/core/models/peer_region_for_remote_peering.rb +1 -1
- data/lib/oci/core/models/private_ip.rb +5 -5
- data/lib/oci/core/models/public_ip.rb +4 -4
- data/lib/oci/core/models/remote_peering_connection.rb +2 -2
- data/lib/oci/core/models/route_rule.rb +1 -1
- data/lib/oci/core/models/route_table.rb +4 -4
- data/lib/oci/core/models/security_list.rb +4 -4
- data/lib/oci/core/models/service.rb +1 -1
- data/lib/oci/core/models/service_gateway.rb +7 -7
- data/lib/oci/core/models/service_id_request_details.rb +1 -1
- data/lib/oci/core/models/service_id_response_details.rb +1 -1
- data/lib/oci/core/models/shape.rb +1 -1
- data/lib/oci/core/models/subnet.rb +7 -7
- data/lib/oci/core/models/update_boot_volume_backup_details.rb +2 -2
- data/lib/oci/core/models/update_boot_volume_details.rb +2 -2
- data/lib/oci/core/models/update_console_history_details.rb +2 -2
- data/lib/oci/core/models/update_cpe_details.rb +2 -2
- data/lib/oci/core/models/update_dhcp_details.rb +2 -2
- data/lib/oci/core/models/update_drg_attachment_details.rb +1 -1
- data/lib/oci/core/models/update_drg_details.rb +2 -2
- data/lib/oci/core/models/update_image_details.rb +2 -2
- data/lib/oci/core/models/update_instance_configuration_details.rb +2 -2
- data/lib/oci/core/models/update_instance_details.rb +2 -2
- data/lib/oci/core/models/update_instance_pool_details.rb +2 -2
- data/lib/oci/core/models/update_internet_gateway_details.rb +2 -2
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +2 -2
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +3 -3
- data/lib/oci/core/models/update_nat_gateway_details.rb +2 -2
- data/lib/oci/core/models/update_private_ip_details.rb +3 -3
- data/lib/oci/core/models/update_public_ip_details.rb +2 -2
- data/lib/oci/core/models/update_route_table_details.rb +2 -2
- data/lib/oci/core/models/update_security_list_details.rb +2 -2
- data/lib/oci/core/models/update_service_gateway_details.rb +2 -2
- data/lib/oci/core/models/update_subnet_details.rb +2 -2
- data/lib/oci/core/models/update_vcn_details.rb +2 -2
- data/lib/oci/core/models/update_vnic_details.rb +4 -4
- data/lib/oci/core/models/update_volume_backup_details.rb +2 -2
- data/lib/oci/core/models/update_volume_details.rb +2 -2
- data/lib/oci/core/models/update_volume_group_backup_details.rb +2 -2
- data/lib/oci/core/models/update_volume_group_details.rb +2 -2
- data/lib/oci/core/models/vcn.rb +6 -6
- data/lib/oci/core/models/virtual_circuit.rb +4 -4
- data/lib/oci/core/models/virtual_circuit_public_prefix.rb +1 -1
- data/lib/oci/core/models/vnic.rb +7 -7
- data/lib/oci/core/models/vnic_attachment.rb +2 -2
- data/lib/oci/core/models/volume.rb +4 -4
- data/lib/oci/core/models/volume_attachment.rb +1 -1
- data/lib/oci/core/models/volume_backup.rb +4 -4
- data/lib/oci/core/models/volume_group.rb +3 -3
- data/lib/oci/core/models/volume_group_backup.rb +4 -4
- data/lib/oci/core/virtual_network_client.rb +121 -121
- data/lib/oci/core/virtual_network_client_composite_operations.rb +6 -6
- data/lib/oci/database/database.rb +4 -0
- data/lib/oci/database/database_client.rb +202 -78
- data/lib/oci/database/database_client_composite_operations.rb +65 -25
- data/lib/oci/database/models/autonomous_data_warehouse.rb +4 -4
- data/lib/oci/database/models/autonomous_data_warehouse_backup.rb +3 -3
- data/lib/oci/database/models/autonomous_data_warehouse_backup_summary.rb +4 -4
- data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +4 -4
- data/lib/oci/database/models/autonomous_database.rb +43 -8
- data/lib/oci/database/models/autonomous_database_backup.rb +3 -3
- data/lib/oci/database/models/autonomous_database_backup_summary.rb +4 -4
- data/lib/oci/database/models/autonomous_database_summary.rb +43 -8
- data/lib/oci/database/models/backup.rb +3 -3
- data/lib/oci/database/models/backup_summary.rb +4 -4
- data/lib/oci/database/models/create_autonomous_data_warehouse_backup_details.rb +1 -1
- data/lib/oci/database/models/create_autonomous_data_warehouse_details.rb +3 -3
- data/lib/oci/database/models/create_autonomous_database_backup_details.rb +1 -1
- data/lib/oci/database/models/create_autonomous_database_details.rb +33 -4
- data/lib/oci/database/models/create_backup_details.rb +1 -1
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +1 -1
- data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +1 -1
- data/lib/oci/database/models/create_database_details.rb +2 -2
- data/lib/oci/database/models/create_database_from_backup_details.rb +1 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +1 -1
- data/lib/oci/database/models/create_external_backup_job_details.rb +1 -1
- data/lib/oci/database/models/data_guard_association.rb +6 -6
- data/lib/oci/database/models/data_guard_association_summary.rb +9 -9
- data/lib/oci/database/models/database.rb +5 -5
- data/lib/oci/database/models/database_summary.rb +7 -7
- data/lib/oci/database/models/db_backup_config.rb +1 -1
- data/lib/oci/database/models/db_home.rb +4 -4
- data/lib/oci/database/models/db_home_summary.rb +6 -6
- data/lib/oci/database/models/db_iorm_config.rb +181 -0
- data/lib/oci/database/models/db_iorm_config_update_detail.rb +166 -0
- data/lib/oci/database/models/db_node.rb +4 -4
- data/lib/oci/database/models/db_node_summary.rb +5 -5
- data/lib/oci/database/models/db_system.rb +41 -11
- data/lib/oci/database/models/db_system_shape_summary.rb +2 -2
- data/lib/oci/database/models/db_system_summary.rb +30 -16
- data/lib/oci/database/models/db_version_summary.rb +1 -1
- data/lib/oci/database/models/exadata_iorm_config.rb +247 -0
- data/lib/oci/database/models/exadata_iorm_config_update_details.rb +186 -0
- data/lib/oci/database/models/external_backup_job.rb +2 -2
- data/lib/oci/database/models/launch_db_system_base.rb +24 -10
- 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/patch.rb +1 -1
- data/lib/oci/database/models/patch_details.rb +1 -1
- data/lib/oci/database/models/patch_history_entry.rb +2 -2
- data/lib/oci/database/models/patch_history_entry_summary.rb +2 -2
- data/lib/oci/database/models/patch_summary.rb +2 -2
- data/lib/oci/database/models/update_autonomous_data_warehouse_details.rb +2 -2
- data/lib/oci/database/models/update_autonomous_database_details.rb +2 -2
- data/lib/oci/database/models/update_database_details.rb +2 -2
- data/lib/oci/database/models/update_db_system_details.rb +2 -2
- data/lib/oci/dns/dns_client.rb +1 -1
- data/lib/oci/dns/models/create_steering_policy_details.rb +1 -1
- data/lib/oci/dns/models/create_zone_details.rb +1 -1
- data/lib/oci/dns/models/record.rb +1 -1
- data/lib/oci/dns/models/record_details.rb +1 -1
- data/lib/oci/dns/models/record_operation.rb +1 -1
- data/lib/oci/dns/models/steering_policy.rb +1 -1
- data/lib/oci/dns/models/steering_policy_summary.rb +1 -1
- data/lib/oci/dns/models/update_steering_policy_details.rb +1 -1
- data/lib/oci/dns/models/update_zone_details.rb +1 -1
- data/lib/oci/dns/models/zone.rb +1 -1
- data/lib/oci/dns/models/zone_summary.rb +1 -1
- data/lib/oci/email/email_client.rb +3 -3
- data/lib/oci/email/models/create_sender_details.rb +2 -2
- data/lib/oci/email/models/sender.rb +2 -2
- data/lib/oci/email/models/sender_summary.rb +2 -2
- data/lib/oci/email/models/update_sender_details.rb +2 -2
- data/lib/oci/file_storage/file_storage_client.rb +14 -14
- data/lib/oci/file_storage/models/create_file_system_details.rb +2 -2
- data/lib/oci/file_storage/models/create_mount_target_details.rb +3 -3
- data/lib/oci/file_storage/models/create_snapshot_details.rb +2 -2
- data/lib/oci/file_storage/models/export.rb +1 -1
- data/lib/oci/file_storage/models/file_system.rb +3 -3
- data/lib/oci/file_storage/models/mount_target.rb +2 -2
- data/lib/oci/file_storage/models/snapshot.rb +2 -2
- data/lib/oci/file_storage/models/update_file_system_details.rb +2 -2
- data/lib/oci/file_storage/models/update_mount_target_details.rb +2 -2
- data/lib/oci/file_storage/models/update_snapshot_details.rb +2 -2
- data/lib/oci/healthchecks/models/create_http_monitor_details.rb +2 -2
- data/lib/oci/healthchecks/models/create_ping_monitor_details.rb +2 -2
- data/lib/oci/healthchecks/models/http_monitor.rb +2 -2
- data/lib/oci/healthchecks/models/http_monitor_summary.rb +2 -2
- data/lib/oci/healthchecks/models/ping_monitor.rb +2 -2
- data/lib/oci/healthchecks/models/ping_monitor_summary.rb +2 -2
- data/lib/oci/healthchecks/models/update_http_monitor_details.rb +2 -2
- data/lib/oci/healthchecks/models/update_ping_monitor_details.rb +2 -2
- data/lib/oci/identity/identity.rb +7 -0
- data/lib/oci/identity/identity_client.rb +461 -36
- data/lib/oci/identity/identity_client_composite_operations.rb +119 -0
- data/lib/oci/identity/models/api_key.rb +2 -2
- data/lib/oci/identity/models/auth_token.rb +1 -1
- data/lib/oci/identity/models/authentication_policy.rb +168 -0
- data/lib/oci/identity/models/availability_domain.rb +1 -1
- data/lib/oci/identity/models/compartment.rb +5 -5
- data/lib/oci/identity/models/create_compartment_details.rb +2 -2
- data/lib/oci/identity/models/create_dynamic_group_details.rb +1 -1
- data/lib/oci/identity/models/create_group_details.rb +2 -2
- data/lib/oci/identity/models/create_identity_provider_details.rb +2 -2
- data/lib/oci/identity/models/create_policy_details.rb +4 -4
- data/lib/oci/identity/models/create_tag_default_details.rb +180 -0
- data/lib/oci/identity/models/create_tag_details.rb +2 -2
- data/lib/oci/identity/models/create_tag_namespace_details.rb +2 -2
- data/lib/oci/identity/models/create_user_details.rb +13 -3
- data/lib/oci/identity/models/customer_secret_key.rb +2 -2
- data/lib/oci/identity/models/dynamic_group.rb +2 -2
- data/lib/oci/identity/models/group.rb +5 -5
- data/lib/oci/identity/models/identity_provider.rb +4 -4
- data/lib/oci/identity/models/idp_group_mapping.rb +1 -1
- data/lib/oci/identity/models/mfa_totp_device.rb +20 -9
- data/lib/oci/identity/models/mfa_totp_device_summary.rb +7 -1
- data/lib/oci/identity/models/password_policy.rb +234 -0
- data/lib/oci/identity/models/policy.rb +4 -4
- data/lib/oci/identity/models/region.rb +2 -2
- data/lib/oci/identity/models/region_subscription.rb +2 -2
- data/lib/oci/identity/models/saml2_identity_provider.rb +1 -1
- data/lib/oci/identity/models/smtp_credential.rb +1 -1
- data/lib/oci/identity/models/smtp_credential_summary.rb +1 -1
- data/lib/oci/identity/models/swift_password.rb +1 -1
- data/lib/oci/identity/models/tag.rb +4 -4
- data/lib/oci/identity/models/tag_default.rb +280 -0
- data/lib/oci/identity/models/tag_default_summary.rb +274 -0
- data/lib/oci/identity/models/tag_namespace.rb +4 -4
- data/lib/oci/identity/models/tag_namespace_summary.rb +3 -3
- data/lib/oci/identity/models/tag_summary.rb +3 -3
- data/lib/oci/identity/models/tenancy.rb +4 -4
- data/lib/oci/identity/models/ui_password.rb +1 -1
- data/lib/oci/identity/models/update_authentication_policy_details.rb +154 -0
- data/lib/oci/identity/models/update_compartment_details.rb +2 -2
- data/lib/oci/identity/models/update_dynamic_group_details.rb +1 -1
- data/lib/oci/identity/models/update_group_details.rb +2 -2
- data/lib/oci/identity/models/update_identity_provider_details.rb +2 -2
- data/lib/oci/identity/models/update_policy_details.rb +4 -4
- data/lib/oci/identity/models/update_tag_default_details.rb +150 -0
- data/lib/oci/identity/models/update_tag_details.rb +3 -3
- data/lib/oci/identity/models/update_tag_namespace_details.rb +3 -3
- data/lib/oci/identity/models/update_user_details.rb +13 -3
- data/lib/oci/identity/models/user.rb +19 -7
- data/lib/oci/load_balancer/load_balancer_client.rb +64 -64
- data/lib/oci/load_balancer/load_balancer_client_composite_operations.rb +23 -23
- data/lib/oci/load_balancer/models/backend.rb +2 -2
- data/lib/oci/load_balancer/models/backend_details.rb +1 -1
- data/lib/oci/load_balancer/models/backend_set.rb +1 -1
- data/lib/oci/load_balancer/models/backend_set_details.rb +1 -1
- data/lib/oci/load_balancer/models/certificate.rb +1 -1
- data/lib/oci/load_balancer/models/certificate_details.rb +1 -1
- data/lib/oci/load_balancer/models/connection_configuration.rb +1 -1
- data/lib/oci/load_balancer/models/create_backend_details.rb +2 -2
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +1 -1
- data/lib/oci/load_balancer/models/create_certificate_details.rb +1 -1
- data/lib/oci/load_balancer/models/create_hostname_details.rb +1 -1
- data/lib/oci/load_balancer/models/create_listener_details.rb +1 -1
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +6 -6
- data/lib/oci/load_balancer/models/health_check_result.rb +1 -1
- data/lib/oci/load_balancer/models/health_checker.rb +1 -1
- data/lib/oci/load_balancer/models/hostname.rb +1 -1
- data/lib/oci/load_balancer/models/hostname_details.rb +1 -1
- data/lib/oci/load_balancer/models/listener.rb +1 -1
- data/lib/oci/load_balancer/models/load_balancer.rb +11 -11
- data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +1 -1
- data/lib/oci/load_balancer/models/load_balancer_policy.rb +1 -1
- data/lib/oci/load_balancer/models/path_match_type.rb +1 -1
- data/lib/oci/load_balancer/models/path_route_set.rb +1 -1
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +1 -1
- data/lib/oci/load_balancer/models/update_backend_details.rb +1 -1
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +1 -1
- data/lib/oci/load_balancer/models/update_hostname_details.rb +2 -2
- data/lib/oci/load_balancer/models/update_load_balancer_details.rb +2 -2
- data/lib/oci/load_balancer/models/work_request.rb +3 -3
- data/lib/oci/monitoring/models/alarm.rb +10 -10
- data/lib/oci/monitoring/models/alarm_history_collection.rb +1 -1
- data/lib/oci/monitoring/models/alarm_status_summary.rb +5 -5
- data/lib/oci/monitoring/models/alarm_summary.rb +10 -10
- data/lib/oci/monitoring/models/create_alarm_details.rb +5 -5
- data/lib/oci/monitoring/models/metric.rb +2 -2
- data/lib/oci/monitoring/models/metric_data.rb +2 -2
- data/lib/oci/monitoring/models/metric_data_details.rb +1 -1
- data/lib/oci/monitoring/models/summarize_metrics_data_details.rb +2 -2
- data/lib/oci/monitoring/models/suppression.rb +1 -1
- data/lib/oci/monitoring/models/update_alarm_details.rb +5 -5
- data/lib/oci/monitoring/monitoring_client.rb +20 -20
- data/lib/oci/monitoring/monitoring_client_composite_operations.rb +2 -2
- data/lib/oci/object_storage/models/bucket.rb +4 -4
- data/lib/oci/object_storage/models/bucket_summary.rb +3 -3
- data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +1 -1
- data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +1 -1
- data/lib/oci/object_storage/models/copy_object_details.rb +1 -1
- data/lib/oci/object_storage/models/create_bucket_details.rb +3 -3
- data/lib/oci/object_storage/models/create_multipart_upload_details.rb +1 -1
- data/lib/oci/object_storage/models/list_objects.rb +1 -1
- data/lib/oci/object_storage/models/multipart_upload.rb +2 -2
- data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +1 -1
- data/lib/oci/object_storage/models/object_lifecycle_policy.rb +1 -1
- data/lib/oci/object_storage/models/object_lifecycle_rule.rb +2 -2
- data/lib/oci/object_storage/models/object_summary.rb +1 -1
- data/lib/oci/object_storage/models/preauthenticated_request.rb +2 -2
- data/lib/oci/object_storage/models/rename_object_details.rb +1 -1
- data/lib/oci/object_storage/models/update_bucket_details.rb +3 -3
- data/lib/oci/object_storage/object_storage_client.rb +3 -3
- data/lib/oci/ons/models/confirmation_result.rb +2 -2
- data/lib/oci/ons/models/create_subscription_details.rb +4 -4
- data/lib/oci/ons/models/create_topic_details.rb +3 -3
- data/lib/oci/ons/models/notification_topic.rb +4 -4
- data/lib/oci/ons/models/notification_topic_summary.rb +4 -4
- data/lib/oci/ons/models/subscription.rb +3 -3
- data/lib/oci/ons/models/subscription_summary.rb +4 -4
- data/lib/oci/ons/models/topic_attributes_details.rb +2 -2
- data/lib/oci/ons/models/update_subscription_details.rb +2 -2
- data/lib/oci/ons/notification_control_plane_client.rb +9 -9
- data/lib/oci/ons/notification_data_plane_client.rb +10 -10
- data/lib/oci/ons/notification_data_plane_client_composite_operations.rb +1 -1
- data/lib/oci/regions.rb +1 -0
- data/lib/oci/resource_manager/models/create_job_details.rb +2 -2
- data/lib/oci/resource_manager/models/create_stack_details.rb +2 -2
- data/lib/oci/resource_manager/models/job.rb +2 -2
- data/lib/oci/resource_manager/models/job_summary.rb +2 -2
- data/lib/oci/resource_manager/models/stack.rb +2 -2
- data/lib/oci/resource_manager/models/stack_summary.rb +2 -2
- data/lib/oci/resource_manager/models/update_job_details.rb +2 -2
- data/lib/oci/resource_manager/models/update_stack_details.rb +2 -2
- data/lib/oci/resource_manager/resource_manager_client.rb +6 -6
- data/lib/oci/streaming/models/create_stream_details.rb +2 -2
- data/lib/oci/streaming/models/stream.rb +2 -2
- data/lib/oci/streaming/models/stream_summary.rb +2 -2
- data/lib/oci/streaming/models/update_stream_details.rb +2 -2
- data/lib/oci/version.rb +1 -1
- data/lib/oci/waas/models/certificate.rb +2 -2
- data/lib/oci/waas/models/certificate_summary.rb +2 -2
- data/lib/oci/waas/models/create_certificate_details.rb +1 -1
- data/lib/oci/waas/models/create_waas_policy_details.rb +1 -1
- data/lib/oci/waas/models/update_waas_policy_details.rb +1 -1
- data/lib/oci/waas/models/waas_policy.rb +2 -2
- data/lib/oci/waas/models/waas_policy_summary.rb +2 -2
- data/lib/oci/waas/models/work_request.rb +3 -3
- data/lib/oci/waas/models/work_request_resource.rb +1 -1
- data/lib/oci/waas/models/work_request_summary.rb +2 -2
- data/lib/oci/waas/waas_client.rb +53 -53
- data/lib/oci/waas/waas_client_composite_operations.rb +18 -18
- metadata +31 -2
|
@@ -45,7 +45,13 @@ module OCI
|
|
|
45
45
|
# @return [String]
|
|
46
46
|
attr_reader :lifecycle_state
|
|
47
47
|
|
|
48
|
-
# The detailed status of INACTIVE lifecycleState.
|
|
48
|
+
# The detailed status of INACTIVE lifecycleState.
|
|
49
|
+
# Allowed values are:
|
|
50
|
+
# - 1 - SUSPENDED
|
|
51
|
+
# - 2 - DISABLED
|
|
52
|
+
# - 4 - BLOCKED
|
|
53
|
+
# - 8 - LOCKED
|
|
54
|
+
#
|
|
49
55
|
# @return [Integer]
|
|
50
56
|
attr_accessor :inactive_status
|
|
51
57
|
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
|
3
|
+
require 'date'
|
|
4
|
+
|
|
5
|
+
# rubocop:disable Lint/UnneededCopDisableDirective
|
|
6
|
+
module OCI
|
|
7
|
+
# Password policy, currently set for the given compartment.
|
|
8
|
+
#
|
|
9
|
+
class Identity::Models::PasswordPolicy # rubocop:disable Metrics/LineLength
|
|
10
|
+
# Minimum password length required.
|
|
11
|
+
# @return [Integer]
|
|
12
|
+
attr_accessor :minimum_password_length
|
|
13
|
+
|
|
14
|
+
# At least one uppercase character required.
|
|
15
|
+
# @return [BOOLEAN]
|
|
16
|
+
attr_accessor :is_uppercase_characters_required
|
|
17
|
+
|
|
18
|
+
# At least one lower case character required.
|
|
19
|
+
# @return [BOOLEAN]
|
|
20
|
+
attr_accessor :is_lowercase_characters_required
|
|
21
|
+
|
|
22
|
+
# At least one numeric character required.
|
|
23
|
+
# @return [BOOLEAN]
|
|
24
|
+
attr_accessor :is_numeric_characters_required
|
|
25
|
+
|
|
26
|
+
# At least one special character required.
|
|
27
|
+
# @return [BOOLEAN]
|
|
28
|
+
attr_accessor :is_special_characters_required
|
|
29
|
+
|
|
30
|
+
# User name is allowed to be part of the password.
|
|
31
|
+
# @return [BOOLEAN]
|
|
32
|
+
attr_accessor :is_username_containment_allowed
|
|
33
|
+
|
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
# rubocop:disable Style/SymbolLiteral
|
|
38
|
+
'minimum_password_length': :'minimumPasswordLength',
|
|
39
|
+
'is_uppercase_characters_required': :'isUppercaseCharactersRequired',
|
|
40
|
+
'is_lowercase_characters_required': :'isLowercaseCharactersRequired',
|
|
41
|
+
'is_numeric_characters_required': :'isNumericCharactersRequired',
|
|
42
|
+
'is_special_characters_required': :'isSpecialCharactersRequired',
|
|
43
|
+
'is_username_containment_allowed': :'isUsernameContainmentAllowed'
|
|
44
|
+
# rubocop:enable Style/SymbolLiteral
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Attribute type mapping.
|
|
49
|
+
def self.swagger_types
|
|
50
|
+
{
|
|
51
|
+
# rubocop:disable Style/SymbolLiteral
|
|
52
|
+
'minimum_password_length': :'Integer',
|
|
53
|
+
'is_uppercase_characters_required': :'BOOLEAN',
|
|
54
|
+
'is_lowercase_characters_required': :'BOOLEAN',
|
|
55
|
+
'is_numeric_characters_required': :'BOOLEAN',
|
|
56
|
+
'is_special_characters_required': :'BOOLEAN',
|
|
57
|
+
'is_username_containment_allowed': :'BOOLEAN'
|
|
58
|
+
# rubocop:enable Style/SymbolLiteral
|
|
59
|
+
}
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
63
|
+
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
# Initializes the object
|
|
67
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
68
|
+
# @option attributes [Integer] :minimum_password_length The value to assign to the {#minimum_password_length} property
|
|
69
|
+
# @option attributes [BOOLEAN] :is_uppercase_characters_required The value to assign to the {#is_uppercase_characters_required} property
|
|
70
|
+
# @option attributes [BOOLEAN] :is_lowercase_characters_required The value to assign to the {#is_lowercase_characters_required} property
|
|
71
|
+
# @option attributes [BOOLEAN] :is_numeric_characters_required The value to assign to the {#is_numeric_characters_required} property
|
|
72
|
+
# @option attributes [BOOLEAN] :is_special_characters_required The value to assign to the {#is_special_characters_required} property
|
|
73
|
+
# @option attributes [BOOLEAN] :is_username_containment_allowed The value to assign to the {#is_username_containment_allowed} property
|
|
74
|
+
def initialize(attributes = {})
|
|
75
|
+
return unless attributes.is_a?(Hash)
|
|
76
|
+
|
|
77
|
+
# convert string to symbol for hash key
|
|
78
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
79
|
+
|
|
80
|
+
self.minimum_password_length = attributes[:'minimumPasswordLength'] if attributes[:'minimumPasswordLength']
|
|
81
|
+
|
|
82
|
+
raise 'You cannot provide both :minimumPasswordLength and :minimum_password_length' if attributes.key?(:'minimumPasswordLength') && attributes.key?(:'minimum_password_length')
|
|
83
|
+
|
|
84
|
+
self.minimum_password_length = attributes[:'minimum_password_length'] if attributes[:'minimum_password_length']
|
|
85
|
+
|
|
86
|
+
self.is_uppercase_characters_required = attributes[:'isUppercaseCharactersRequired'] unless attributes[:'isUppercaseCharactersRequired'].nil?
|
|
87
|
+
self.is_uppercase_characters_required = true if is_uppercase_characters_required.nil? && !attributes.key?(:'isUppercaseCharactersRequired') # rubocop:disable Style/StringLiterals
|
|
88
|
+
|
|
89
|
+
raise 'You cannot provide both :isUppercaseCharactersRequired and :is_uppercase_characters_required' if attributes.key?(:'isUppercaseCharactersRequired') && attributes.key?(:'is_uppercase_characters_required')
|
|
90
|
+
|
|
91
|
+
self.is_uppercase_characters_required = attributes[:'is_uppercase_characters_required'] unless attributes[:'is_uppercase_characters_required'].nil?
|
|
92
|
+
self.is_uppercase_characters_required = true if is_uppercase_characters_required.nil? && !attributes.key?(:'isUppercaseCharactersRequired') && !attributes.key?(:'is_uppercase_characters_required') # rubocop:disable Style/StringLiterals
|
|
93
|
+
|
|
94
|
+
self.is_lowercase_characters_required = attributes[:'isLowercaseCharactersRequired'] unless attributes[:'isLowercaseCharactersRequired'].nil?
|
|
95
|
+
self.is_lowercase_characters_required = true if is_lowercase_characters_required.nil? && !attributes.key?(:'isLowercaseCharactersRequired') # rubocop:disable Style/StringLiterals
|
|
96
|
+
|
|
97
|
+
raise 'You cannot provide both :isLowercaseCharactersRequired and :is_lowercase_characters_required' if attributes.key?(:'isLowercaseCharactersRequired') && attributes.key?(:'is_lowercase_characters_required')
|
|
98
|
+
|
|
99
|
+
self.is_lowercase_characters_required = attributes[:'is_lowercase_characters_required'] unless attributes[:'is_lowercase_characters_required'].nil?
|
|
100
|
+
self.is_lowercase_characters_required = true if is_lowercase_characters_required.nil? && !attributes.key?(:'isLowercaseCharactersRequired') && !attributes.key?(:'is_lowercase_characters_required') # rubocop:disable Style/StringLiterals
|
|
101
|
+
|
|
102
|
+
self.is_numeric_characters_required = attributes[:'isNumericCharactersRequired'] unless attributes[:'isNumericCharactersRequired'].nil?
|
|
103
|
+
self.is_numeric_characters_required = true if is_numeric_characters_required.nil? && !attributes.key?(:'isNumericCharactersRequired') # rubocop:disable Style/StringLiterals
|
|
104
|
+
|
|
105
|
+
raise 'You cannot provide both :isNumericCharactersRequired and :is_numeric_characters_required' if attributes.key?(:'isNumericCharactersRequired') && attributes.key?(:'is_numeric_characters_required')
|
|
106
|
+
|
|
107
|
+
self.is_numeric_characters_required = attributes[:'is_numeric_characters_required'] unless attributes[:'is_numeric_characters_required'].nil?
|
|
108
|
+
self.is_numeric_characters_required = true if is_numeric_characters_required.nil? && !attributes.key?(:'isNumericCharactersRequired') && !attributes.key?(:'is_numeric_characters_required') # rubocop:disable Style/StringLiterals
|
|
109
|
+
|
|
110
|
+
self.is_special_characters_required = attributes[:'isSpecialCharactersRequired'] unless attributes[:'isSpecialCharactersRequired'].nil?
|
|
111
|
+
self.is_special_characters_required = true if is_special_characters_required.nil? && !attributes.key?(:'isSpecialCharactersRequired') # rubocop:disable Style/StringLiterals
|
|
112
|
+
|
|
113
|
+
raise 'You cannot provide both :isSpecialCharactersRequired and :is_special_characters_required' if attributes.key?(:'isSpecialCharactersRequired') && attributes.key?(:'is_special_characters_required')
|
|
114
|
+
|
|
115
|
+
self.is_special_characters_required = attributes[:'is_special_characters_required'] unless attributes[:'is_special_characters_required'].nil?
|
|
116
|
+
self.is_special_characters_required = true if is_special_characters_required.nil? && !attributes.key?(:'isSpecialCharactersRequired') && !attributes.key?(:'is_special_characters_required') # rubocop:disable Style/StringLiterals
|
|
117
|
+
|
|
118
|
+
self.is_username_containment_allowed = attributes[:'isUsernameContainmentAllowed'] unless attributes[:'isUsernameContainmentAllowed'].nil?
|
|
119
|
+
self.is_username_containment_allowed = false if is_username_containment_allowed.nil? && !attributes.key?(:'isUsernameContainmentAllowed') # rubocop:disable Style/StringLiterals
|
|
120
|
+
|
|
121
|
+
raise 'You cannot provide both :isUsernameContainmentAllowed and :is_username_containment_allowed' if attributes.key?(:'isUsernameContainmentAllowed') && attributes.key?(:'is_username_containment_allowed')
|
|
122
|
+
|
|
123
|
+
self.is_username_containment_allowed = attributes[:'is_username_containment_allowed'] unless attributes[:'is_username_containment_allowed'].nil?
|
|
124
|
+
self.is_username_containment_allowed = false if is_username_containment_allowed.nil? && !attributes.key?(:'isUsernameContainmentAllowed') && !attributes.key?(:'is_username_containment_allowed') # rubocop:disable Style/StringLiterals
|
|
125
|
+
end
|
|
126
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
127
|
+
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
128
|
+
|
|
129
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
# Checks equality by comparing each attribute.
|
|
133
|
+
# @param [Object] other the other object to be compared
|
|
134
|
+
def ==(other)
|
|
135
|
+
return true if equal?(other)
|
|
136
|
+
|
|
137
|
+
self.class == other.class &&
|
|
138
|
+
minimum_password_length == other.minimum_password_length &&
|
|
139
|
+
is_uppercase_characters_required == other.is_uppercase_characters_required &&
|
|
140
|
+
is_lowercase_characters_required == other.is_lowercase_characters_required &&
|
|
141
|
+
is_numeric_characters_required == other.is_numeric_characters_required &&
|
|
142
|
+
is_special_characters_required == other.is_special_characters_required &&
|
|
143
|
+
is_username_containment_allowed == other.is_username_containment_allowed
|
|
144
|
+
end
|
|
145
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
146
|
+
|
|
147
|
+
# @see the `==` method
|
|
148
|
+
# @param [Object] other the other object to be compared
|
|
149
|
+
def eql?(other)
|
|
150
|
+
self == other
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
# Calculates hash code according to all attributes.
|
|
157
|
+
# @return [Fixnum] Hash code
|
|
158
|
+
def hash
|
|
159
|
+
[minimum_password_length, is_uppercase_characters_required, is_lowercase_characters_required, is_numeric_characters_required, is_special_characters_required, is_username_containment_allowed].hash
|
|
160
|
+
end
|
|
161
|
+
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
162
|
+
|
|
163
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
# Builds the object from hash
|
|
167
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
168
|
+
# @return [Object] Returns the model itself
|
|
169
|
+
def build_from_hash(attributes)
|
|
170
|
+
return nil unless attributes.is_a?(Hash)
|
|
171
|
+
|
|
172
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
173
|
+
if type =~ /^Array<(.*)>/i
|
|
174
|
+
# check to ensure the input is an array given that the the attribute
|
|
175
|
+
# is documented as an array but the input is not
|
|
176
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
177
|
+
public_method("#{key}=").call(
|
|
178
|
+
attributes[self.class.attribute_map[key]]
|
|
179
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
180
|
+
)
|
|
181
|
+
end
|
|
182
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
183
|
+
public_method("#{key}=").call(
|
|
184
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
185
|
+
)
|
|
186
|
+
end
|
|
187
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
self
|
|
191
|
+
end
|
|
192
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
193
|
+
|
|
194
|
+
# Returns the string representation of the object
|
|
195
|
+
# @return [String] String presentation of the object
|
|
196
|
+
def to_s
|
|
197
|
+
to_hash.to_s
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Returns the object in the form of hash
|
|
201
|
+
# @return [Hash] Returns the object in the form of hash
|
|
202
|
+
def to_hash
|
|
203
|
+
hash = {}
|
|
204
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
205
|
+
value = public_method(attr).call
|
|
206
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
207
|
+
|
|
208
|
+
hash[param] = _to_hash(value)
|
|
209
|
+
end
|
|
210
|
+
hash
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
private
|
|
214
|
+
|
|
215
|
+
# Outputs non-array value in the form of hash
|
|
216
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
217
|
+
# @param [Object] value Any valid value
|
|
218
|
+
# @return [Hash] Returns the value in the form of hash
|
|
219
|
+
def _to_hash(value)
|
|
220
|
+
if value.is_a?(Array)
|
|
221
|
+
value.compact.map { |v| _to_hash(v) }
|
|
222
|
+
elsif value.is_a?(Hash)
|
|
223
|
+
{}.tap do |hash|
|
|
224
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
225
|
+
end
|
|
226
|
+
elsif value.respond_to? :to_hash
|
|
227
|
+
value.to_hash
|
|
228
|
+
else
|
|
229
|
+
value
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
# rubocop:enable Lint/UnneededCopDisableDirective
|
|
@@ -7,8 +7,8 @@ require 'logger'
|
|
|
7
7
|
module OCI
|
|
8
8
|
# A document that specifies the type of access a group has to the resources in a compartment. For information about
|
|
9
9
|
# policies and other IAM Service components, see
|
|
10
|
-
# [Overview of the IAM Service](https://docs.
|
|
11
|
-
# [Getting Started with Policies](https://docs.
|
|
10
|
+
# [Overview of the IAM Service](https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). If you're new to policies, see
|
|
11
|
+
# [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
|
|
12
12
|
#
|
|
13
13
|
# The word \"policy\" is used by people in different ways:
|
|
14
14
|
#
|
|
@@ -77,14 +77,14 @@ module OCI
|
|
|
77
77
|
attr_accessor :version_date
|
|
78
78
|
|
|
79
79
|
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
|
|
80
|
-
# For more information, see [Resource Tags](https://docs.
|
|
80
|
+
# For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
|
81
81
|
# Example: `{\"Department\": \"Finance\"}`
|
|
82
82
|
#
|
|
83
83
|
# @return [Hash<String, String>]
|
|
84
84
|
attr_accessor :freeform_tags
|
|
85
85
|
|
|
86
86
|
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
|
87
|
-
# For more information, see [Resource Tags](https://docs.
|
|
87
|
+
# For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
|
88
88
|
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
|
89
89
|
#
|
|
90
90
|
# @return [Hash<String, Hash<String, Object>>]
|
|
@@ -6,11 +6,11 @@ require 'date'
|
|
|
6
6
|
module OCI
|
|
7
7
|
# A localized geographic area, such as Phoenix, AZ. Oracle Cloud Infrastructure is hosted in regions and Availability
|
|
8
8
|
# Domains. A region is composed of several Availability Domains. An Availability Domain is one or more data centers
|
|
9
|
-
# located within a region. For more information, see [Regions and Availability Domains](https://docs.
|
|
9
|
+
# located within a region. For more information, see [Regions and Availability Domains](https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm).
|
|
10
10
|
#
|
|
11
11
|
# To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized,
|
|
12
12
|
# talk to an administrator. If you're an administrator who needs to write policies to give users access,
|
|
13
|
-
# see [Getting Started with Policies](https://docs.
|
|
13
|
+
# see [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
|
|
14
14
|
#
|
|
15
15
|
class Identity::Models::Region # rubocop:disable Metrics/LineLength
|
|
16
16
|
# The key of the region.
|
|
@@ -6,11 +6,11 @@ require 'logger'
|
|
|
6
6
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
|
7
7
|
module OCI
|
|
8
8
|
# An object that represents your tenancy's access to a particular region (i.e., a subscription), the status of that
|
|
9
|
-
# access, and whether that region is the home region. For more information, see [Managing Regions](https://docs.
|
|
9
|
+
# access, and whether that region is the home region. For more information, see [Managing Regions](https://docs.cloud.oracle.com/Content/Identity/Tasks/managingregions.htm).
|
|
10
10
|
#
|
|
11
11
|
# To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized,
|
|
12
12
|
# talk to an administrator. If you're an administrator who needs to write policies to give users access,
|
|
13
|
-
# see [Getting Started with Policies](https://docs.
|
|
13
|
+
# see [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
|
|
14
14
|
#
|
|
15
15
|
class Identity::Models::RegionSubscription # rubocop:disable Metrics/LineLength
|
|
16
16
|
STATUS_ENUM = [
|
|
@@ -7,7 +7,7 @@ require_relative 'identity_provider'
|
|
|
7
7
|
module OCI
|
|
8
8
|
# A special type of {IdentityProvider} that
|
|
9
9
|
# supports the SAML 2.0 protocol. For more information, see
|
|
10
|
-
# [Identity Providers and Federation](https://docs.
|
|
10
|
+
# [Identity Providers and Federation](https://docs.cloud.oracle.com/Content/Identity/Concepts/federation.htm).
|
|
11
11
|
#
|
|
12
12
|
class Identity::Models::Saml2IdentityProvider < Identity::Models::IdentityProvider # rubocop:disable Metrics/LineLength
|
|
13
13
|
# **[Required]** The URL for retrieving the identity provider's metadata, which
|
|
@@ -12,7 +12,7 @@ module OCI
|
|
|
12
12
|
# **Note:** The credential set is always an Oracle-generated SMTP user name and password pair;
|
|
13
13
|
# you cannot designate the SMTP user name or the SMTP password.
|
|
14
14
|
#
|
|
15
|
-
# For more information, see [Managing User Credentials](https://docs.
|
|
15
|
+
# For more information, see [Managing User Credentials](https://docs.cloud.oracle.com/Content/Identity/Tasks/managingcredentials.htm#SMTP).
|
|
16
16
|
#
|
|
17
17
|
class Identity::Models::SmtpCredential # rubocop:disable Metrics/LineLength
|
|
18
18
|
LIFECYCLE_STATE_ENUM = [
|
|
@@ -7,7 +7,7 @@ require 'logger'
|
|
|
7
7
|
module OCI
|
|
8
8
|
# As the name suggests, an `SmtpCredentialSummary` object contains information about an `SmtpCredential`.
|
|
9
9
|
# The SMTP credential is used for SMTP authentication with
|
|
10
|
-
# the [Email Delivery Service](https://docs.
|
|
10
|
+
# the [Email Delivery Service](https://docs.cloud.oracle.com/Content/Email/Concepts/overview.htm).
|
|
11
11
|
#
|
|
12
12
|
class Identity::Models::SmtpCredentialSummary # rubocop:disable Metrics/LineLength
|
|
13
13
|
LIFECYCLE_STATE_ENUM = [
|
|
@@ -13,7 +13,7 @@ module OCI
|
|
|
13
13
|
#
|
|
14
14
|
# **Note:** The password is always an Oracle-generated string; you can't change it to a string of your choice.
|
|
15
15
|
#
|
|
16
|
-
# For more information, see [Managing User Credentials](https://docs.
|
|
16
|
+
# For more information, see [Managing User Credentials](https://docs.cloud.oracle.com/Content/Identity/Tasks/managingcredentials.htm).
|
|
17
17
|
#
|
|
18
18
|
class Identity::Models::SwiftPassword # rubocop:disable Metrics/LineLength
|
|
19
19
|
LIFECYCLE_STATE_ENUM = [
|
|
@@ -6,7 +6,7 @@ require 'date'
|
|
|
6
6
|
module OCI
|
|
7
7
|
# A tag definition that belongs to a specific tag namespace. \"Defined tags\" must be set up in your tenancy before
|
|
8
8
|
# you can apply them to resources.
|
|
9
|
-
# For more information, see [Managing Tags and Tag Namespaces](https://docs.
|
|
9
|
+
# For more information, see [Managing Tags and Tag Namespaces](https://docs.cloud.oracle.com/Content/Identity/Concepts/taggingoverview.htm).
|
|
10
10
|
#
|
|
11
11
|
class Identity::Models::Tag # rubocop:disable Metrics/LineLength
|
|
12
12
|
# **[Required]** The OCID of the compartment that contains the tag definition.
|
|
@@ -36,21 +36,21 @@ module OCI
|
|
|
36
36
|
attr_accessor :description
|
|
37
37
|
|
|
38
38
|
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
|
|
39
|
-
# For more information, see [Resource Tags](https://docs.
|
|
39
|
+
# For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
|
40
40
|
# Example: `{\"Department\": \"Finance\"}`
|
|
41
41
|
#
|
|
42
42
|
# @return [Hash<String, String>]
|
|
43
43
|
attr_accessor :freeform_tags
|
|
44
44
|
|
|
45
45
|
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
|
46
|
-
# For more information, see [Resource Tags](https://docs.
|
|
46
|
+
# For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
|
47
47
|
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}``
|
|
48
48
|
#
|
|
49
49
|
# @return [Hash<String, Hash<String, Object>>]
|
|
50
50
|
attr_accessor :defined_tags
|
|
51
51
|
|
|
52
52
|
# **[Required]** Indicates whether the tag is retired.
|
|
53
|
-
# See [Retiring Key Definitions and Namespace Definitions](https://docs.
|
|
53
|
+
# See [Retiring Key Definitions and Namespace Definitions](https://docs.cloud.oracle.com/Content/Identity/Concepts/taggingoverview.htm#Retiring).
|
|
54
54
|
#
|
|
55
55
|
# @return [BOOLEAN]
|
|
56
56
|
attr_accessor :is_retired
|
|
@@ -0,0 +1,280 @@
|
|
|
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
|
|
7
|
+
module OCI
|
|
8
|
+
# A document that specifies a default value for a Tag Definition for all resource types created in a Compartment.
|
|
9
|
+
#
|
|
10
|
+
# Tag Defaults are inherited by child compartments. This means that if you set a Tag Default on the root Compartment
|
|
11
|
+
# for a tenancy, all resources are guaranteed to be created with the referenced Tag Definition applied.
|
|
12
|
+
#
|
|
13
|
+
# To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized,
|
|
14
|
+
# talk to an administrator.
|
|
15
|
+
#
|
|
16
|
+
class Identity::Models::TagDefault # rubocop:disable Metrics/LineLength
|
|
17
|
+
LIFECYCLE_STATE_ENUM = [
|
|
18
|
+
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze,
|
|
19
|
+
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
|
20
|
+
].freeze
|
|
21
|
+
|
|
22
|
+
# **[Required]** The OCID of the Tag Default.
|
|
23
|
+
# @return [String]
|
|
24
|
+
attr_accessor :id
|
|
25
|
+
|
|
26
|
+
# **[Required]** The OCID of the Compartment. The Tag Default will apply to any resource contained in this Compartment.
|
|
27
|
+
#
|
|
28
|
+
# @return [String]
|
|
29
|
+
attr_accessor :compartment_id
|
|
30
|
+
|
|
31
|
+
# **[Required]** The OCID of the Tag Namespace that contains the Tag Definition.
|
|
32
|
+
#
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :tag_namespace_id
|
|
35
|
+
|
|
36
|
+
# **[Required]** The OCID of the Tag Definition. The Tag Default will always assign a default value for this Tag Definition.
|
|
37
|
+
#
|
|
38
|
+
# @return [String]
|
|
39
|
+
attr_accessor :tag_definition_id
|
|
40
|
+
|
|
41
|
+
# **[Required]** The name used in the Tag Definition. This field is informational in the context of the Tag Default.
|
|
42
|
+
#
|
|
43
|
+
# @return [String]
|
|
44
|
+
attr_accessor :tag_definition_name
|
|
45
|
+
|
|
46
|
+
# **[Required]** The default value for the Tag Definition. This will be applied to all resources created in the Compartment.
|
|
47
|
+
#
|
|
48
|
+
# @return [String]
|
|
49
|
+
attr_accessor :value
|
|
50
|
+
|
|
51
|
+
# **[Required]** Date and time the `TagDefault` object was created, in the format defined by RFC3339.
|
|
52
|
+
#
|
|
53
|
+
# Example: `2016-08-25T21:10:29.600Z`
|
|
54
|
+
#
|
|
55
|
+
# @return [DateTime]
|
|
56
|
+
attr_accessor :time_created
|
|
57
|
+
|
|
58
|
+
# The tag default's current state. After creating a tagdefault, make sure its `lifecycleState` is ACTIVE before using it.
|
|
59
|
+
#
|
|
60
|
+
# @return [String]
|
|
61
|
+
attr_reader :lifecycle_state
|
|
62
|
+
|
|
63
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
64
|
+
def self.attribute_map
|
|
65
|
+
{
|
|
66
|
+
# rubocop:disable Style/SymbolLiteral
|
|
67
|
+
'id': :'id',
|
|
68
|
+
'compartment_id': :'compartmentId',
|
|
69
|
+
'tag_namespace_id': :'tagNamespaceId',
|
|
70
|
+
'tag_definition_id': :'tagDefinitionId',
|
|
71
|
+
'tag_definition_name': :'tagDefinitionName',
|
|
72
|
+
'value': :'value',
|
|
73
|
+
'time_created': :'timeCreated',
|
|
74
|
+
'lifecycle_state': :'lifecycleState'
|
|
75
|
+
# rubocop:enable Style/SymbolLiteral
|
|
76
|
+
}
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Attribute type mapping.
|
|
80
|
+
def self.swagger_types
|
|
81
|
+
{
|
|
82
|
+
# rubocop:disable Style/SymbolLiteral
|
|
83
|
+
'id': :'String',
|
|
84
|
+
'compartment_id': :'String',
|
|
85
|
+
'tag_namespace_id': :'String',
|
|
86
|
+
'tag_definition_id': :'String',
|
|
87
|
+
'tag_definition_name': :'String',
|
|
88
|
+
'value': :'String',
|
|
89
|
+
'time_created': :'DateTime',
|
|
90
|
+
'lifecycle_state': :'String'
|
|
91
|
+
# rubocop:enable Style/SymbolLiteral
|
|
92
|
+
}
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
96
|
+
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
# Initializes the object
|
|
100
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
101
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
|
102
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
103
|
+
# @option attributes [String] :tag_namespace_id The value to assign to the {#tag_namespace_id} property
|
|
104
|
+
# @option attributes [String] :tag_definition_id The value to assign to the {#tag_definition_id} property
|
|
105
|
+
# @option attributes [String] :tag_definition_name The value to assign to the {#tag_definition_name} property
|
|
106
|
+
# @option attributes [String] :value The value to assign to the {#value} property
|
|
107
|
+
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
|
108
|
+
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
|
109
|
+
def initialize(attributes = {})
|
|
110
|
+
return unless attributes.is_a?(Hash)
|
|
111
|
+
|
|
112
|
+
# convert string to symbol for hash key
|
|
113
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
114
|
+
|
|
115
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
|
116
|
+
|
|
117
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
|
118
|
+
|
|
119
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
120
|
+
|
|
121
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
122
|
+
|
|
123
|
+
self.tag_namespace_id = attributes[:'tagNamespaceId'] if attributes[:'tagNamespaceId']
|
|
124
|
+
|
|
125
|
+
raise 'You cannot provide both :tagNamespaceId and :tag_namespace_id' if attributes.key?(:'tagNamespaceId') && attributes.key?(:'tag_namespace_id')
|
|
126
|
+
|
|
127
|
+
self.tag_namespace_id = attributes[:'tag_namespace_id'] if attributes[:'tag_namespace_id']
|
|
128
|
+
|
|
129
|
+
self.tag_definition_id = attributes[:'tagDefinitionId'] if attributes[:'tagDefinitionId']
|
|
130
|
+
|
|
131
|
+
raise 'You cannot provide both :tagDefinitionId and :tag_definition_id' if attributes.key?(:'tagDefinitionId') && attributes.key?(:'tag_definition_id')
|
|
132
|
+
|
|
133
|
+
self.tag_definition_id = attributes[:'tag_definition_id'] if attributes[:'tag_definition_id']
|
|
134
|
+
|
|
135
|
+
self.tag_definition_name = attributes[:'tagDefinitionName'] if attributes[:'tagDefinitionName']
|
|
136
|
+
|
|
137
|
+
raise 'You cannot provide both :tagDefinitionName and :tag_definition_name' if attributes.key?(:'tagDefinitionName') && attributes.key?(:'tag_definition_name')
|
|
138
|
+
|
|
139
|
+
self.tag_definition_name = attributes[:'tag_definition_name'] if attributes[:'tag_definition_name']
|
|
140
|
+
|
|
141
|
+
self.value = attributes[:'value'] if attributes[:'value']
|
|
142
|
+
|
|
143
|
+
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
|
144
|
+
|
|
145
|
+
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
|
146
|
+
|
|
147
|
+
self.time_created = attributes[:'time_created'] if attributes[:'time_created']
|
|
148
|
+
|
|
149
|
+
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
|
150
|
+
|
|
151
|
+
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
|
152
|
+
|
|
153
|
+
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
|
154
|
+
end
|
|
155
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
156
|
+
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
157
|
+
|
|
158
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
159
|
+
# @param [Object] lifecycle_state Object to be assigned
|
|
160
|
+
def lifecycle_state=(lifecycle_state)
|
|
161
|
+
# rubocop:disable Style/ConditionalAssignment
|
|
162
|
+
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
|
163
|
+
# rubocop: disable Metrics/LineLength
|
|
164
|
+
OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
|
165
|
+
# rubocop: enable Metrics/LineLength
|
|
166
|
+
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
|
167
|
+
else
|
|
168
|
+
@lifecycle_state = lifecycle_state
|
|
169
|
+
end
|
|
170
|
+
# rubocop:enable Style/ConditionalAssignment
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
# Checks equality by comparing each attribute.
|
|
177
|
+
# @param [Object] other the other object to be compared
|
|
178
|
+
def ==(other)
|
|
179
|
+
return true if equal?(other)
|
|
180
|
+
|
|
181
|
+
self.class == other.class &&
|
|
182
|
+
id == other.id &&
|
|
183
|
+
compartment_id == other.compartment_id &&
|
|
184
|
+
tag_namespace_id == other.tag_namespace_id &&
|
|
185
|
+
tag_definition_id == other.tag_definition_id &&
|
|
186
|
+
tag_definition_name == other.tag_definition_name &&
|
|
187
|
+
value == other.value &&
|
|
188
|
+
time_created == other.time_created &&
|
|
189
|
+
lifecycle_state == other.lifecycle_state
|
|
190
|
+
end
|
|
191
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
192
|
+
|
|
193
|
+
# @see the `==` method
|
|
194
|
+
# @param [Object] other the other object to be compared
|
|
195
|
+
def eql?(other)
|
|
196
|
+
self == other
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
# Calculates hash code according to all attributes.
|
|
203
|
+
# @return [Fixnum] Hash code
|
|
204
|
+
def hash
|
|
205
|
+
[id, compartment_id, tag_namespace_id, tag_definition_id, tag_definition_name, value, time_created, lifecycle_state].hash
|
|
206
|
+
end
|
|
207
|
+
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
208
|
+
|
|
209
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
# Builds the object from hash
|
|
213
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
214
|
+
# @return [Object] Returns the model itself
|
|
215
|
+
def build_from_hash(attributes)
|
|
216
|
+
return nil unless attributes.is_a?(Hash)
|
|
217
|
+
|
|
218
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
219
|
+
if type =~ /^Array<(.*)>/i
|
|
220
|
+
# check to ensure the input is an array given that the the attribute
|
|
221
|
+
# is documented as an array but the input is not
|
|
222
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
223
|
+
public_method("#{key}=").call(
|
|
224
|
+
attributes[self.class.attribute_map[key]]
|
|
225
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
226
|
+
)
|
|
227
|
+
end
|
|
228
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
229
|
+
public_method("#{key}=").call(
|
|
230
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
231
|
+
)
|
|
232
|
+
end
|
|
233
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
self
|
|
237
|
+
end
|
|
238
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
239
|
+
|
|
240
|
+
# Returns the string representation of the object
|
|
241
|
+
# @return [String] String presentation of the object
|
|
242
|
+
def to_s
|
|
243
|
+
to_hash.to_s
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# Returns the object in the form of hash
|
|
247
|
+
# @return [Hash] Returns the object in the form of hash
|
|
248
|
+
def to_hash
|
|
249
|
+
hash = {}
|
|
250
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
251
|
+
value = public_method(attr).call
|
|
252
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
253
|
+
|
|
254
|
+
hash[param] = _to_hash(value)
|
|
255
|
+
end
|
|
256
|
+
hash
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
private
|
|
260
|
+
|
|
261
|
+
# Outputs non-array value in the form of hash
|
|
262
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
263
|
+
# @param [Object] value Any valid value
|
|
264
|
+
# @return [Hash] Returns the value in the form of hash
|
|
265
|
+
def _to_hash(value)
|
|
266
|
+
if value.is_a?(Array)
|
|
267
|
+
value.compact.map { |v| _to_hash(v) }
|
|
268
|
+
elsif value.is_a?(Hash)
|
|
269
|
+
{}.tap do |hash|
|
|
270
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
271
|
+
end
|
|
272
|
+
elsif value.respond_to? :to_hash
|
|
273
|
+
value.to_hash
|
|
274
|
+
else
|
|
275
|
+
value
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
end
|
|
280
|
+
# rubocop:enable Lint/UnneededCopDisableDirective
|