oci 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/oci.rb +3 -0
- data/lib/oci/api_client.rb +24 -3
- data/lib/oci/audit/audit_client.rb +19 -5
- data/lib/oci/audit/models/audit_event.rb +19 -0
- data/lib/oci/audit/models/configuration.rb +1 -0
- data/lib/oci/audit/models/update_configuration_details.rb +1 -0
- data/lib/oci/auth/auth.rb +16 -0
- data/lib/oci/auth/federation_client.rb +125 -0
- data/lib/oci/auth/internal/auth_token_request_signer.rb +20 -0
- data/lib/oci/auth/security_token_container.rb +25 -0
- data/lib/oci/auth/session_key_supplier.rb +37 -0
- data/lib/oci/auth/signers/instance_principals_security_token_signer.rb +83 -0
- data/lib/oci/auth/signers/security_token_signer.rb +32 -0
- data/lib/oci/auth/signers/x509_federation_client_based_security_token_signer.rb +70 -0
- data/lib/oci/auth/url_based_certificate_retriever.rb +104 -0
- data/lib/oci/auth/util.rb +33 -0
- data/lib/oci/base_signer.rb +154 -0
- data/lib/oci/core/blockstorage_client.rb +19 -5
- data/lib/oci/core/compute_client.rb +19 -5
- data/lib/oci/core/models/attach_boot_volume_details.rb +5 -2
- data/lib/oci/core/models/attach_i_scsi_volume_details.rb +5 -1
- data/lib/oci/core/models/attach_vnic_details.rb +6 -2
- data/lib/oci/core/models/attach_volume_details.rb +8 -3
- data/lib/oci/core/models/boot_volume.rb +22 -6
- data/lib/oci/core/models/boot_volume_attachment.rb +17 -7
- data/lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb +2 -1
- data/lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb +2 -1
- data/lib/oci/core/models/capture_console_history_details.rb +5 -1
- data/lib/oci/core/models/connect_local_peering_gateways_details.rb +3 -1
- data/lib/oci/core/models/console_history.rb +19 -6
- data/lib/oci/core/models/cpe.rb +18 -3
- data/lib/oci/core/models/create_cpe_details.rb +5 -2
- data/lib/oci/core/models/create_cross_connect_details.rb +10 -3
- data/lib/oci/core/models/create_cross_connect_group_details.rb +3 -1
- data/lib/oci/core/models/create_dhcp_details.rb +9 -3
- data/lib/oci/core/models/create_drg_attachment_details.rb +5 -2
- data/lib/oci/core/models/create_drg_details.rb +3 -1
- data/lib/oci/core/models/create_image_details.rb +9 -1
- data/lib/oci/core/models/create_instance_console_connection_details.rb +9 -2
- data/lib/oci/core/models/create_internet_gateway_details.rb +8 -4
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +9 -4
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +5 -2
- data/lib/oci/core/models/create_private_ip_details.rb +7 -1
- data/lib/oci/core/models/create_route_table_details.rb +9 -3
- data/lib/oci/core/models/create_security_list_details.rb +11 -4
- data/lib/oci/core/models/create_subnet_details.rb +17 -5
- data/lib/oci/core/models/create_vcn_details.rb +8 -2
- data/lib/oci/core/models/create_virtual_circuit_details.rb +14 -2
- data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +2 -1
- data/lib/oci/core/models/create_vnic_details.rb +14 -3
- data/lib/oci/core/models/create_volume_backup_details.rb +5 -1
- data/lib/oci/core/models/create_volume_details.rb +11 -2
- data/lib/oci/core/models/cross_connect.rb +26 -0
- data/lib/oci/core/models/cross_connect_group.rb +19 -0
- data/lib/oci/core/models/cross_connect_location.rb +5 -2
- data/lib/oci/core/models/cross_connect_mapping.rb +31 -0
- data/lib/oci/core/models/cross_connect_port_speed_shape.rb +6 -2
- data/lib/oci/core/models/cross_connect_status.rb +6 -1
- data/lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb +2 -1
- data/lib/oci/core/models/dhcp_dns_option.rb +7 -1
- data/lib/oci/core/models/dhcp_option.rb +9 -1
- data/lib/oci/core/models/dhcp_options.rb +31 -6
- data/lib/oci/core/models/dhcp_search_domain_option.rb +5 -1
- data/lib/oci/core/models/drg.rb +18 -3
- data/lib/oci/core/models/drg_attachment.rb +15 -5
- data/lib/oci/core/models/egress_security_rule.rb +10 -3
- data/lib/oci/core/models/export_image_details.rb +13 -1
- data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +3 -0
- data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +2 -1
- data/lib/oci/core/models/fast_connect_provider_service.rb +17 -6
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +17 -3
- data/lib/oci/core/models/icmp_options.rb +11 -1
- data/lib/oci/core/models/image.rb +28 -7
- data/lib/oci/core/models/image_source_details.rb +4 -1
- data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +7 -3
- data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +3 -1
- data/lib/oci/core/models/ingress_security_rule.rb +10 -3
- data/lib/oci/core/models/instance.rb +33 -7
- data/lib/oci/core/models/instance_console_connection.rb +15 -0
- data/lib/oci/core/models/instance_credentials.rb +5 -2
- data/lib/oci/core/models/instance_source_details.rb +3 -1
- data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +2 -1
- data/lib/oci/core/models/instance_source_via_image_details.rb +2 -1
- data/lib/oci/core/models/internet_gateway.rb +20 -5
- data/lib/oci/core/models/ip_sec_connection.rb +23 -6
- data/lib/oci/core/models/ip_sec_connection_device_config.rb +7 -2
- data/lib/oci/core/models/ip_sec_connection_device_status.rb +7 -2
- data/lib/oci/core/models/launch_instance_details.rb +20 -3
- data/lib/oci/core/models/launch_options.rb +10 -4
- data/lib/oci/core/models/letter_of_authority.rb +10 -0
- data/lib/oci/core/models/local_peering_gateway.rb +29 -9
- data/lib/oci/core/models/port_range.rb +4 -2
- data/lib/oci/core/models/private_ip.rb +41 -1
- data/lib/oci/core/models/route_rule.rb +7 -2
- data/lib/oci/core/models/route_table.rb +22 -5
- data/lib/oci/core/models/security_list.rb +32 -8
- data/lib/oci/core/models/shape.rb +5 -1
- data/lib/oci/core/models/subnet.rb +38 -10
- data/lib/oci/core/models/tcp_options.rb +5 -0
- data/lib/oci/core/models/tunnel_config.rb +6 -2
- data/lib/oci/core/models/tunnel_status.rb +7 -1
- data/lib/oci/core/models/udp_options.rb +5 -0
- data/lib/oci/core/models/update_boot_volume_details.rb +1 -0
- data/lib/oci/core/models/update_console_history_details.rb +3 -0
- data/lib/oci/core/models/update_cpe_details.rb +1 -0
- data/lib/oci/core/models/update_cross_connect_details.rb +5 -1
- data/lib/oci/core/models/update_cross_connect_group_details.rb +1 -0
- data/lib/oci/core/models/update_dhcp_details.rb +4 -0
- data/lib/oci/core/models/update_drg_attachment_details.rb +1 -0
- data/lib/oci/core/models/update_drg_details.rb +1 -0
- data/lib/oci/core/models/update_image_details.rb +3 -0
- data/lib/oci/core/models/update_instance_details.rb +3 -0
- data/lib/oci/core/models/update_internet_gateway_details.rb +3 -1
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +1 -0
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +1 -0
- data/lib/oci/core/models/update_private_ip_details.rb +5 -0
- data/lib/oci/core/models/update_route_table_details.rb +4 -0
- data/lib/oci/core/models/update_security_list_details.rb +5 -0
- data/lib/oci/core/models/update_subnet_details.rb +3 -0
- data/lib/oci/core/models/update_vcn_details.rb +3 -0
- data/lib/oci/core/models/update_virtual_circuit_details.rb +7 -0
- data/lib/oci/core/models/update_vnic_details.rb +4 -1
- data/lib/oci/core/models/update_volume_backup_details.rb +3 -0
- data/lib/oci/core/models/update_volume_details.rb +3 -0
- data/lib/oci/core/models/vcn.rb +24 -4
- data/lib/oci/core/models/virtual_circuit.rb +41 -0
- data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +5 -1
- data/lib/oci/core/models/virtual_circuit_public_prefix.rb +8 -2
- data/lib/oci/core/models/vnic.rb +38 -9
- data/lib/oci/core/models/vnic_attachment.rb +21 -7
- data/lib/oci/core/models/volume.rb +28 -8
- data/lib/oci/core/models/volume_attachment.rb +25 -8
- data/lib/oci/core/models/volume_backup.rb +26 -5
- data/lib/oci/core/models/volume_source_details.rb +3 -0
- data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +3 -1
- data/lib/oci/core/models/volume_source_from_volume_details.rb +3 -1
- data/lib/oci/core/virtual_network_client.rb +19 -5
- data/lib/oci/database/database_client.rb +19 -5
- data/lib/oci/database/models/backup.rb +13 -0
- data/lib/oci/database/models/backup_summary.rb +13 -0
- data/lib/oci/database/models/create_backup_details.rb +4 -2
- data/lib/oci/database/models/create_data_guard_association_details.rb +18 -4
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +5 -0
- data/lib/oci/database/models/create_database_details.rb +9 -2
- data/lib/oci/database/models/create_database_from_backup_details.rb +6 -3
- data/lib/oci/database/models/create_db_home_details.rb +5 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +5 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +6 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +4 -0
- data/lib/oci/database/models/data_guard_association.rb +32 -7
- data/lib/oci/database/models/data_guard_association_summary.rb +32 -7
- data/lib/oci/database/models/database.rb +22 -5
- data/lib/oci/database/models/database_summary.rb +22 -5
- data/lib/oci/database/models/db_backup_config.rb +5 -1
- data/lib/oci/database/models/db_home.rb +22 -5
- data/lib/oci/database/models/db_home_summary.rb +22 -5
- data/lib/oci/database/models/db_node.rb +17 -5
- data/lib/oci/database/models/db_node_summary.rb +17 -5
- data/lib/oci/database/models/db_system.rb +56 -12
- data/lib/oci/database/models/db_system_shape_summary.rb +11 -2
- data/lib/oci/database/models/db_system_summary.rb +56 -12
- data/lib/oci/database/models/db_version_summary.rb +8 -2
- data/lib/oci/database/models/failover_data_guard_association_details.rb +4 -1
- data/lib/oci/database/models/launch_db_system_details.rb +27 -8
- data/lib/oci/database/models/patch.rb +18 -4
- data/lib/oci/database/models/patch_details.rb +6 -0
- data/lib/oci/database/models/patch_history_entry.rb +12 -4
- data/lib/oci/database/models/patch_history_entry_summary.rb +12 -4
- data/lib/oci/database/models/patch_summary.rb +18 -4
- data/lib/oci/database/models/reinstate_data_guard_association_details.rb +4 -1
- data/lib/oci/database/models/restore_database_details.rb +4 -1
- data/lib/oci/database/models/switchover_data_guard_association_details.rb +4 -1
- data/lib/oci/database/models/update_database_details.rb +1 -0
- data/lib/oci/database/models/update_db_home_details.rb +3 -0
- data/lib/oci/database/models/update_db_system_details.rb +6 -0
- data/lib/oci/identity/identity.rb +3 -0
- data/lib/oci/identity/identity_client.rb +290 -70
- data/lib/oci/identity/models/add_user_to_group_details.rb +4 -2
- data/lib/oci/identity/models/api_key.rb +18 -0
- data/lib/oci/identity/models/availability_domain.rb +6 -0
- data/lib/oci/identity/models/compartment.rb +38 -10
- data/lib/oci/identity/models/create_api_key_details.rb +2 -1
- data/lib/oci/identity/models/create_compartment_details.rb +14 -7
- data/lib/oci/identity/models/create_customer_secret_key_details.rb +2 -1
- data/lib/oci/identity/models/create_dynamic_group_details.rb +160 -0
- data/lib/oci/identity/models/create_group_details.rb +14 -7
- data/lib/oci/identity/models/create_identity_provider_details.rb +19 -9
- data/lib/oci/identity/models/create_idp_group_mapping_details.rb +4 -2
- data/lib/oci/identity/models/create_policy_details.rb +18 -9
- data/lib/oci/identity/models/create_region_subscription_details.rb +2 -1
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +10 -2
- data/lib/oci/identity/models/create_swift_password_details.rb +2 -1
- data/lib/oci/identity/models/create_tag_details.rb +12 -6
- data/lib/oci/identity/models/create_tag_namespace_details.rb +14 -7
- data/lib/oci/identity/models/create_user_details.rb +14 -7
- data/lib/oci/identity/models/customer_secret_key.rb +16 -0
- data/lib/oci/identity/models/customer_secret_key_summary.rb +10 -0
- data/lib/oci/identity/models/dynamic_group.rb +239 -0
- data/lib/oci/identity/models/group.rb +35 -11
- data/lib/oci/identity/models/identity_provider.rb +36 -12
- data/lib/oci/identity/models/idp_group_mapping.rb +27 -7
- data/lib/oci/identity/models/policy.rb +38 -11
- data/lib/oci/identity/models/region.rb +10 -0
- data/lib/oci/identity/models/region_subscription.rb +16 -5
- data/lib/oci/identity/models/saml2_identity_provider.rb +20 -3
- data/lib/oci/identity/models/swift_password.rb +17 -1
- data/lib/oci/identity/models/tag.rb +30 -13
- data/lib/oci/identity/models/tag_namespace.rb +25 -11
- data/lib/oci/identity/models/tag_namespace_summary.rb +23 -10
- data/lib/oci/identity/models/tag_summary.rb +21 -8
- data/lib/oci/identity/models/tenancy.rb +21 -4
- data/lib/oci/identity/models/ui_password.rb +10 -0
- data/lib/oci/identity/models/update_compartment_details.rb +10 -4
- data/lib/oci/identity/models/update_customer_secret_key_details.rb +1 -0
- data/lib/oci/identity/models/update_dynamic_group_details.rb +134 -0
- data/lib/oci/identity/models/update_group_details.rb +9 -4
- data/lib/oci/identity/models/update_identity_provider_details.rb +12 -5
- data/lib/oci/identity/models/update_idp_group_mapping_details.rb +2 -0
- data/lib/oci/identity/models/update_policy_details.rb +12 -5
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +5 -0
- data/lib/oci/identity/models/update_state_details.rb +2 -1
- data/lib/oci/identity/models/update_swift_password_details.rb +1 -0
- data/lib/oci/identity/models/update_tag_details.rb +15 -7
- data/lib/oci/identity/models/update_tag_namespace_details.rb +15 -7
- data/lib/oci/identity/models/update_user_details.rb +9 -4
- data/lib/oci/identity/models/user.rb +38 -11
- data/lib/oci/identity/models/user_group_membership.rb +16 -6
- data/lib/oci/load_balancer/load_balancer.rb +1 -0
- data/lib/oci/load_balancer/load_balancer_client.rb +24 -9
- data/lib/oci/load_balancer/models/backend.rb +20 -10
- data/lib/oci/load_balancer/models/backend_details.rb +12 -5
- data/lib/oci/load_balancer/models/backend_health.rb +6 -2
- data/lib/oci/load_balancer/models/backend_set.rb +14 -2
- data/lib/oci/load_balancer/models/backend_set_details.rb +11 -1
- data/lib/oci/load_balancer/models/backend_set_health.rb +15 -5
- data/lib/oci/load_balancer/models/certificate.rb +10 -3
- data/lib/oci/load_balancer/models/certificate_details.rb +10 -1
- data/lib/oci/load_balancer/models/connection_configuration.rb +157 -0
- data/lib/oci/load_balancer/models/create_backend_details.rb +15 -5
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +13 -2
- data/lib/oci/load_balancer/models/create_certificate_details.rb +10 -1
- data/lib/oci/load_balancer/models/create_listener_details.rb +28 -5
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +14 -5
- data/lib/oci/load_balancer/models/health_check_result.rb +10 -4
- data/lib/oci/load_balancer/models/health_checker.rb +15 -4
- data/lib/oci/load_balancer/models/health_checker_details.rb +10 -1
- data/lib/oci/load_balancer/models/ip_address.rb +5 -2
- data/lib/oci/load_balancer/models/listener.rb +28 -5
- data/lib/oci/load_balancer/models/listener_details.rb +23 -4
- data/lib/oci/load_balancer/models/load_balancer.rb +30 -7
- data/lib/oci/load_balancer/models/load_balancer_health.rb +15 -5
- data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +5 -2
- data/lib/oci/load_balancer/models/load_balancer_policy.rb +6 -1
- data/lib/oci/load_balancer/models/load_balancer_protocol.rb +3 -1
- data/lib/oci/load_balancer/models/load_balancer_shape.rb +8 -1
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +14 -2
- data/lib/oci/load_balancer/models/ssl_configuration.rb +11 -4
- data/lib/oci/load_balancer/models/ssl_configuration_details.rb +6 -2
- data/lib/oci/load_balancer/models/update_backend_details.rb +12 -7
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +12 -1
- data/lib/oci/load_balancer/models/update_health_checker_details.rb +16 -7
- data/lib/oci/load_balancer/models/update_listener_details.rb +23 -4
- data/lib/oci/load_balancer/models/update_load_balancer_details.rb +3 -1
- data/lib/oci/load_balancer/models/work_request.rb +20 -6
- data/lib/oci/load_balancer/models/work_request_error.rb +5 -1
- data/lib/oci/object_storage/models/bucket.rb +27 -8
- data/lib/oci/object_storage/models/bucket_summary.rb +16 -6
- data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +7 -1
- data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +8 -2
- data/lib/oci/object_storage/models/create_bucket_details.rb +15 -4
- data/lib/oci/object_storage/models/create_multipart_upload_details.rb +10 -1
- data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +7 -3
- data/lib/oci/object_storage/models/list_objects.rb +8 -1
- data/lib/oci/object_storage/models/multipart_upload.rb +20 -5
- data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +13 -4
- data/lib/oci/object_storage/models/namespace_metadata.rb +8 -3
- data/lib/oci/object_storage/models/object_summary.rb +9 -1
- data/lib/oci/object_storage/models/preauthenticated_request.rb +20 -6
- data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +13 -5
- data/lib/oci/object_storage/models/rename_object_details.rb +11 -2
- data/lib/oci/object_storage/models/restore_objects_details.rb +2 -1
- data/lib/oci/object_storage/models/update_bucket_details.rb +13 -2
- data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +5 -0
- data/lib/oci/object_storage/object_storage_client.rb +26 -12
- data/lib/oci/regions.rb +8 -1
- data/lib/oci/signer.rb +5 -124
- data/lib/oci/version.rb +1 -1
- metadata +31 -2
@@ -3,8 +3,9 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# The configuration details for updating a backend server.
|
6
7
|
class LoadBalancer::Models::UpdateBackendDetails
|
7
|
-
# Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
|
8
|
+
# **[Required]** Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
|
8
9
|
# traffic to this backend server unless all other backend servers not marked as \"backup\" fail the health check policy.
|
9
10
|
#
|
10
11
|
# Example: `true`
|
@@ -12,7 +13,7 @@ module OCI
|
|
12
13
|
# @return [BOOLEAN]
|
13
14
|
attr_accessor :backup
|
14
15
|
|
15
|
-
# Whether the load balancer should drain this server. Servers marked \"drain\" receive no new
|
16
|
+
# **[Required]** Whether the load balancer should drain this server. Servers marked \"drain\" receive no new
|
16
17
|
# incoming traffic.
|
17
18
|
#
|
18
19
|
# Example: `true`
|
@@ -20,7 +21,7 @@ module OCI
|
|
20
21
|
# @return [BOOLEAN]
|
21
22
|
attr_accessor :drain
|
22
23
|
|
23
|
-
# Whether the load balancer should treat this server as offline. Offline servers receive no incoming
|
24
|
+
# **[Required]** Whether the load balancer should treat this server as offline. Offline servers receive no incoming
|
24
25
|
# traffic.
|
25
26
|
#
|
26
27
|
# Example: `true`
|
@@ -28,7 +29,7 @@ module OCI
|
|
28
29
|
# @return [BOOLEAN]
|
29
30
|
attr_accessor :offline
|
30
31
|
|
31
|
-
# The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger
|
32
|
+
# **[Required]** The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger
|
32
33
|
# proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections
|
33
34
|
# as a server weighted '1'.
|
34
35
|
# For more information on load balancing policies, see
|
@@ -42,25 +43,29 @@ module OCI
|
|
42
43
|
|
43
44
|
# Initializes the object
|
44
45
|
# @param [Hash] attributes Model attributes in the form of hash
|
46
|
+
# @option attributes [BOOLEAN] :backup The value to assign to the {#backup} property
|
47
|
+
# @option attributes [BOOLEAN] :drain The value to assign to the {#drain} property
|
48
|
+
# @option attributes [BOOLEAN] :offline The value to assign to the {#offline} property
|
49
|
+
# @option attributes [Integer] :weight The value to assign to the {#weight} property
|
45
50
|
def initialize(attributes = {})
|
46
51
|
return unless attributes.is_a?(Hash)
|
47
52
|
|
48
53
|
# convert string to symbol for hash key
|
49
54
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
50
55
|
|
51
|
-
|
56
|
+
unless attributes[:'backup'].nil?
|
52
57
|
self.backup = attributes[:'backup']
|
53
58
|
else
|
54
59
|
self.backup = false
|
55
60
|
end
|
56
61
|
|
57
|
-
|
62
|
+
unless attributes[:'drain'].nil?
|
58
63
|
self.drain = attributes[:'drain']
|
59
64
|
else
|
60
65
|
self.drain = false
|
61
66
|
end
|
62
67
|
|
63
|
-
|
68
|
+
unless attributes[:'offline'].nil?
|
64
69
|
self.offline = attributes[:'offline']
|
65
70
|
else
|
66
71
|
self.offline = false
|
@@ -3,14 +3,20 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# The configuration details for updating a load balancer backend set.
|
7
|
+
# For more information on backend set configuration, see
|
8
|
+
# [Managing Backend Sets](https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/tasks/managingbackendsets.htm).
|
9
|
+
#
|
6
10
|
class LoadBalancer::Models::UpdateBackendSetDetails
|
11
|
+
# This attribute is required.
|
7
12
|
# @return [Array<OCI::LoadBalancer::Models::BackendDetails>]
|
8
13
|
attr_accessor :backends
|
9
14
|
|
15
|
+
# This attribute is required.
|
10
16
|
# @return [OCI::LoadBalancer::Models::HealthCheckerDetails]
|
11
17
|
attr_accessor :health_checker
|
12
18
|
|
13
|
-
# The load balancer policy for the backend set. To get a list of available policies, use the
|
19
|
+
# **[Required]** The load balancer policy for the backend set. To get a list of available policies, use the
|
14
20
|
# {#list_policies list_policies} operation.
|
15
21
|
#
|
16
22
|
# Example: `LEAST_CONNECTIONS`
|
@@ -27,6 +33,11 @@ module OCI
|
|
27
33
|
|
28
34
|
# Initializes the object
|
29
35
|
# @param [Hash] attributes Model attributes in the form of hash
|
36
|
+
# @option attributes [Array<OCI::LoadBalancer::Models::BackendDetails>] :backends The value to assign to the {#backends} property
|
37
|
+
# @option attributes [OCI::LoadBalancer::Models::HealthCheckerDetails] :healthChecker The value to assign to the {#health_checker} property
|
38
|
+
# @option attributes [String] :policy The value to assign to the {#policy} property
|
39
|
+
# @option attributes [OCI::LoadBalancer::Models::SessionPersistenceConfigurationDetails] :sessionPersistenceConfiguration The value to assign to the {#session_persistence_configuration} property
|
40
|
+
# @option attributes [OCI::LoadBalancer::Models::SSLConfigurationDetails] :sslConfiguration The value to assign to the {#ssl_configuration} property
|
30
41
|
def initialize(attributes = {})
|
31
42
|
return unless attributes.is_a?(Hash)
|
32
43
|
|
@@ -3,50 +3,51 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# The health checker's configuration details.
|
6
7
|
class LoadBalancer::Models::UpdateHealthCheckerDetails
|
7
|
-
# The interval between health checks, in milliseconds.
|
8
|
+
# **[Required]** The interval between health checks, in milliseconds.
|
8
9
|
#
|
9
10
|
# Example: `30000`
|
10
11
|
#
|
11
12
|
# @return [Integer]
|
12
13
|
attr_accessor :interval_in_millis
|
13
14
|
|
14
|
-
# The backend server port against which to run the health check.
|
15
|
+
# **[Required]** The backend server port against which to run the health check.
|
15
16
|
#
|
16
17
|
# Example: `8080`
|
17
18
|
#
|
18
19
|
# @return [Integer]
|
19
20
|
attr_accessor :port
|
20
21
|
|
21
|
-
# The protocol the health check must use; either HTTP or TCP.
|
22
|
+
# **[Required]** The protocol the health check must use; either HTTP or TCP.
|
22
23
|
#
|
23
24
|
# Example: `HTTP`
|
24
25
|
#
|
25
26
|
# @return [String]
|
26
27
|
attr_accessor :protocol
|
27
28
|
|
28
|
-
# A regular expression for parsing the response body from the backend server.
|
29
|
+
# **[Required]** A regular expression for parsing the response body from the backend server.
|
29
30
|
#
|
30
31
|
# Example: `^(500|40[1348])$`
|
31
32
|
#
|
32
33
|
# @return [String]
|
33
34
|
attr_accessor :response_body_regex
|
34
35
|
|
35
|
-
# The number of retries to attempt before a backend server is considered \"unhealthy\".
|
36
|
+
# **[Required]** The number of retries to attempt before a backend server is considered \"unhealthy\".
|
36
37
|
#
|
37
38
|
# Example: `3`
|
38
39
|
#
|
39
40
|
# @return [Integer]
|
40
41
|
attr_accessor :retries
|
41
42
|
|
42
|
-
# The status code a healthy backend server should return.
|
43
|
+
# **[Required]** The status code a healthy backend server should return.
|
43
44
|
#
|
44
45
|
# Example: `200`
|
45
46
|
#
|
46
47
|
# @return [Integer]
|
47
48
|
attr_accessor :return_code
|
48
49
|
|
49
|
-
# The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply
|
50
|
+
# **[Required]** The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply
|
50
51
|
# returns within this timeout period.
|
51
52
|
#
|
52
53
|
# Example: `6000`
|
@@ -64,6 +65,14 @@ module OCI
|
|
64
65
|
|
65
66
|
# Initializes the object
|
66
67
|
# @param [Hash] attributes Model attributes in the form of hash
|
68
|
+
# @option attributes [Integer] :intervalInMillis The value to assign to the {#interval_in_millis} property
|
69
|
+
# @option attributes [Integer] :port The value to assign to the {#port} property
|
70
|
+
# @option attributes [String] :protocol The value to assign to the {#protocol} property
|
71
|
+
# @option attributes [String] :responseBodyRegex The value to assign to the {#response_body_regex} property
|
72
|
+
# @option attributes [Integer] :retries The value to assign to the {#retries} property
|
73
|
+
# @option attributes [Integer] :returnCode The value to assign to the {#return_code} property
|
74
|
+
# @option attributes [Integer] :timeoutInMillis The value to assign to the {#timeout_in_millis} property
|
75
|
+
# @option attributes [String] :urlPath The value to assign to the {#url_path} property
|
67
76
|
def initialize(attributes = {})
|
68
77
|
return unless attributes.is_a?(Hash)
|
69
78
|
|
@@ -3,19 +3,26 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# The configuration details for updating a listener.
|
6
7
|
class LoadBalancer::Models::UpdateListenerDetails
|
7
|
-
#
|
8
|
+
# @return [OCI::LoadBalancer::Models::ConnectionConfiguration]
|
9
|
+
attr_accessor :connection_configuration
|
10
|
+
|
11
|
+
# **[Required]** The name of the associated backend set.
|
12
|
+
#
|
13
|
+
# Example: `My_backend_set`
|
14
|
+
#
|
8
15
|
# @return [String]
|
9
16
|
attr_accessor :default_backend_set_name
|
10
17
|
|
11
|
-
# The communication port for the listener.
|
18
|
+
# **[Required]** The communication port for the listener.
|
12
19
|
#
|
13
20
|
# Example: `80`
|
14
21
|
#
|
15
22
|
# @return [Integer]
|
16
23
|
attr_accessor :port
|
17
24
|
|
18
|
-
# The protocol on which the listener accepts connection requests.
|
25
|
+
# **[Required]** The protocol on which the listener accepts connection requests.
|
19
26
|
# To get a list of valid protocols, use the {#list_protocols list_protocols}
|
20
27
|
# operation.
|
21
28
|
#
|
@@ -30,12 +37,21 @@ module OCI
|
|
30
37
|
|
31
38
|
# Initializes the object
|
32
39
|
# @param [Hash] attributes Model attributes in the form of hash
|
40
|
+
# @option attributes [OCI::LoadBalancer::Models::ConnectionConfiguration] :connectionConfiguration The value to assign to the {#connection_configuration} property
|
41
|
+
# @option attributes [String] :defaultBackendSetName The value to assign to the {#default_backend_set_name} property
|
42
|
+
# @option attributes [Integer] :port The value to assign to the {#port} property
|
43
|
+
# @option attributes [String] :protocol The value to assign to the {#protocol} property
|
44
|
+
# @option attributes [OCI::LoadBalancer::Models::SSLConfigurationDetails] :sslConfiguration The value to assign to the {#ssl_configuration} property
|
33
45
|
def initialize(attributes = {})
|
34
46
|
return unless attributes.is_a?(Hash)
|
35
47
|
|
36
48
|
# convert string to symbol for hash key
|
37
49
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
38
50
|
|
51
|
+
if attributes[:'connectionConfiguration']
|
52
|
+
self.connection_configuration = attributes[:'connectionConfiguration']
|
53
|
+
end
|
54
|
+
|
39
55
|
if attributes[:'defaultBackendSetName']
|
40
56
|
self.default_backend_set_name = attributes[:'defaultBackendSetName']
|
41
57
|
end
|
@@ -59,6 +75,7 @@ module OCI
|
|
59
75
|
def ==(other_object)
|
60
76
|
return true if self.equal?(other_object)
|
61
77
|
self.class == other_object.class &&
|
78
|
+
connection_configuration == other_object.connection_configuration &&
|
62
79
|
default_backend_set_name == other_object.default_backend_set_name &&
|
63
80
|
port == other_object.port &&
|
64
81
|
protocol == other_object.protocol &&
|
@@ -74,7 +91,7 @@ module OCI
|
|
74
91
|
# Calculates hash code according to all attributes.
|
75
92
|
# @return [Fixnum] Hash code
|
76
93
|
def hash
|
77
|
-
[default_backend_set_name, port, protocol, ssl_configuration].hash
|
94
|
+
[connection_configuration, default_backend_set_name, port, protocol, ssl_configuration].hash
|
78
95
|
end
|
79
96
|
|
80
97
|
# Builds the object from hash
|
@@ -140,6 +157,7 @@ module OCI
|
|
140
157
|
# Attribute mapping from ruby-style variable name to JSON key.
|
141
158
|
def self.attribute_map
|
142
159
|
{
|
160
|
+
:'connection_configuration' => :'connectionConfiguration',
|
143
161
|
:'default_backend_set_name' => :'defaultBackendSetName',
|
144
162
|
:'port' => :'port',
|
145
163
|
:'protocol' => :'protocol',
|
@@ -150,6 +168,7 @@ module OCI
|
|
150
168
|
# Attribute type mapping.
|
151
169
|
def self.swagger_types
|
152
170
|
{
|
171
|
+
:'connection_configuration' => :'OCI::LoadBalancer::Models::ConnectionConfiguration',
|
153
172
|
:'default_backend_set_name' => :'String',
|
154
173
|
:'port' => :'Integer',
|
155
174
|
:'protocol' => :'String',
|
@@ -3,8 +3,9 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# Configuration details to update a load balancer.
|
6
7
|
class LoadBalancer::Models::UpdateLoadBalancerDetails
|
7
|
-
# The user-friendly display name for the load balancer. It does not have to be unique, and it is changeable.
|
8
|
+
# **[Required]** The user-friendly display name for the load balancer. It does not have to be unique, and it is changeable.
|
8
9
|
# Avoid entering confidential information.
|
9
10
|
#
|
10
11
|
# Example: `My load balancer`
|
@@ -15,6 +16,7 @@ module OCI
|
|
15
16
|
|
16
17
|
# Initializes the object
|
17
18
|
# @param [Hash] attributes Model attributes in the form of hash
|
19
|
+
# @option attributes [String] :displayName The value to assign to the {#display_name} property
|
18
20
|
def initialize(attributes = {})
|
19
21
|
return unless attributes.is_a?(Hash)
|
20
22
|
|
@@ -3,6 +3,11 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# Many of the API requests you use to create and configure load balancing do not take effect immediately.
|
7
|
+
# In these cases, the request spawns an asynchronous work flow to fulfill the request. WorkRequest objects provide visibility
|
8
|
+
# for in-progress work flows.
|
9
|
+
# For more information about work requests, see [Viewing the State of a Work Request](https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/viewingworkrequest.htm).
|
10
|
+
#
|
6
11
|
class LoadBalancer::Models::WorkRequest
|
7
12
|
|
8
13
|
LIFECYCLE_STATE_ENUM = [LIFECYCLE_STATE_ACCEPTED = 'ACCEPTED',
|
@@ -11,25 +16,26 @@ module OCI
|
|
11
16
|
LIFECYCLE_STATE_SUCCEEDED = 'SUCCEEDED',
|
12
17
|
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
13
18
|
|
19
|
+
# This attribute is required.
|
14
20
|
# @return [Array<OCI::LoadBalancer::Models::WorkRequestError>]
|
15
21
|
attr_accessor :error_details
|
16
22
|
|
17
|
-
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request.
|
23
|
+
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request.
|
18
24
|
# @return [String]
|
19
25
|
attr_accessor :id
|
20
26
|
|
21
|
-
# The current state of the work request.
|
27
|
+
# **[Required]** The current state of the work request.
|
22
28
|
#
|
23
29
|
# @return [String]
|
24
30
|
attr_accessor :lifecycle_state
|
25
31
|
|
26
|
-
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer with which the work request
|
32
|
+
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer with which the work request
|
27
33
|
# is associated.
|
28
34
|
#
|
29
35
|
# @return [String]
|
30
36
|
attr_accessor :load_balancer_id
|
31
37
|
|
32
|
-
# A collection of data, related to the load balancer provisioning process, that helps with debugging in the event of failure.
|
38
|
+
# **[Required]** A collection of data, related to the load balancer provisioning process, that helps with debugging in the event of failure.
|
33
39
|
# Possible data elements include:
|
34
40
|
#
|
35
41
|
# - workflow name
|
@@ -41,7 +47,7 @@ module OCI
|
|
41
47
|
# @return [String]
|
42
48
|
attr_accessor :message
|
43
49
|
|
44
|
-
# The date and time the work request was created, in the format defined by RFC3339.
|
50
|
+
# **[Required]** The date and time the work request was created, in the format defined by RFC3339.
|
45
51
|
#
|
46
52
|
# Example: `2016-08-25T21:10:29.600Z`
|
47
53
|
#
|
@@ -55,7 +61,7 @@ module OCI
|
|
55
61
|
# @return [DateTime]
|
56
62
|
attr_accessor :time_finished
|
57
63
|
|
58
|
-
# The type of action the work request represents.
|
64
|
+
# **[Required]** The type of action the work request represents.
|
59
65
|
#
|
60
66
|
# @return [String]
|
61
67
|
attr_accessor :type
|
@@ -63,6 +69,14 @@ module OCI
|
|
63
69
|
|
64
70
|
# Initializes the object
|
65
71
|
# @param [Hash] attributes Model attributes in the form of hash
|
72
|
+
# @option attributes [Array<OCI::LoadBalancer::Models::WorkRequestError>] :errorDetails The value to assign to the {#error_details} property
|
73
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
74
|
+
# @option attributes [String] :lifecycleState The value to assign to the {#lifecycle_state} property
|
75
|
+
# @option attributes [String] :loadBalancerId The value to assign to the {#load_balancer_id} property
|
76
|
+
# @option attributes [String] :message The value to assign to the {#message} property
|
77
|
+
# @option attributes [DateTime] :timeAccepted The value to assign to the {#time_accepted} property
|
78
|
+
# @option attributes [DateTime] :timeFinished The value to assign to the {#time_finished} property
|
79
|
+
# @option attributes [String] :type The value to assign to the {#type} property
|
66
80
|
def initialize(attributes = {})
|
67
81
|
return unless attributes.is_a?(Hash)
|
68
82
|
|
@@ -3,22 +3,26 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# An object returned in the event of a work request error.
|
6
7
|
class LoadBalancer::Models::WorkRequestError
|
7
8
|
|
8
9
|
ERROR_CODE_ENUM = [ERROR_CODE_BAD_INPUT = 'BAD_INPUT',
|
9
10
|
ERROR_CODE_INTERNAL_ERROR = 'INTERNAL_ERROR',
|
10
11
|
ERROR_CODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
11
12
|
|
13
|
+
# This attribute is required.
|
12
14
|
# @return [String]
|
13
15
|
attr_accessor :error_code
|
14
16
|
|
15
|
-
# A human-readable error string.
|
17
|
+
# **[Required]** A human-readable error string.
|
16
18
|
# @return [String]
|
17
19
|
attr_accessor :message
|
18
20
|
|
19
21
|
|
20
22
|
# Initializes the object
|
21
23
|
# @param [Hash] attributes Model attributes in the form of hash
|
24
|
+
# @option attributes [String] :errorCode The value to assign to the {#error_code} property
|
25
|
+
# @option attributes [String] :message The value to assign to the {#message} property
|
22
26
|
def initialize(attributes = {})
|
23
27
|
return unless attributes.is_a?(Hash)
|
24
28
|
|
@@ -3,10 +3,19 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# A bucket is a container for storing objects in a compartment within a namespace. A bucket is associated with a single compartment.
|
7
|
+
# The compartment has policies that indicate what actions a user can perform on a bucket and all the objects in the bucket. For more
|
8
|
+
# information, see [Managing Buckets](https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/managingbuckets.htm).
|
9
|
+
#
|
10
|
+
# To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized,
|
11
|
+
# talk to an administrator. If you're an administrator who needs to write policies to give users access, see
|
12
|
+
# [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
|
13
|
+
#
|
6
14
|
class ObjectStorage::Models::Bucket
|
7
15
|
|
8
16
|
PUBLIC_ACCESS_TYPE_ENUM = [PUBLIC_ACCESS_TYPE_NO_PUBLIC_ACCESS = 'NoPublicAccess',
|
9
17
|
PUBLIC_ACCESS_TYPE_OBJECT_READ = 'ObjectRead',
|
18
|
+
PUBLIC_ACCESS_TYPE_OBJECT_READ_WITHOUT_LIST = 'ObjectReadWithoutList',
|
10
19
|
PUBLIC_ACCESS_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
11
20
|
|
12
21
|
|
@@ -14,40 +23,41 @@ module OCI
|
|
14
23
|
STORAGE_TIER_ARCHIVE = 'Archive',
|
15
24
|
STORAGE_TIER_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
16
25
|
|
17
|
-
# The namespace in which the bucket lives.
|
26
|
+
# **[Required]** The namespace in which the bucket lives.
|
18
27
|
# @return [String]
|
19
28
|
attr_accessor :namespace
|
20
29
|
|
21
|
-
# The name of the bucket. Avoid entering confidential information.
|
30
|
+
# **[Required]** The name of the bucket. Avoid entering confidential information.
|
22
31
|
# Example: my-new-bucket1
|
23
32
|
#
|
24
33
|
# @return [String]
|
25
34
|
attr_accessor :name
|
26
35
|
|
27
|
-
# The compartment ID in which the bucket is authorized.
|
36
|
+
# **[Required]** The compartment ID in which the bucket is authorized.
|
28
37
|
# @return [String]
|
29
38
|
attr_accessor :compartment_id
|
30
39
|
|
31
|
-
# Arbitrary string keys and values for user-defined metadata.
|
40
|
+
# **[Required]** Arbitrary string keys and values for user-defined metadata.
|
32
41
|
# @return [Hash<String, String>]
|
33
42
|
attr_accessor :metadata
|
34
43
|
|
35
|
-
# The OCID of the user who created the bucket.
|
44
|
+
# **[Required]** The OCID of the user who created the bucket.
|
36
45
|
# @return [String]
|
37
46
|
attr_accessor :created_by
|
38
47
|
|
39
|
-
# The date and time the bucket was created, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.29.
|
48
|
+
# **[Required]** The date and time the bucket was created, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.29.
|
40
49
|
# @return [DateTime]
|
41
50
|
attr_accessor :time_created
|
42
51
|
|
43
|
-
# The entity tag for the bucket.
|
52
|
+
# **[Required]** The entity tag for the bucket.
|
44
53
|
# @return [String]
|
45
54
|
attr_accessor :etag
|
46
55
|
|
47
56
|
# The type of public access enabled on this bucket.
|
48
57
|
# A bucket is set to `NoPublicAccess` by default, which only allows an authenticated caller to access the
|
49
58
|
# bucket and its contents. When `ObjectRead` is enabled on the bucket, public access is allowed for the
|
50
|
-
# `GetObject`, `HeadObject`, and `ListObjects` operations.
|
59
|
+
# `GetObject`, `HeadObject`, and `ListObjects` operations. When `ObjectReadWithoutList` is enabled on the
|
60
|
+
# bucket, public access is allowed for the `GetObject` and `HeadObject` operations.
|
51
61
|
#
|
52
62
|
# @return [String]
|
53
63
|
attr_accessor :public_access_type
|
@@ -63,6 +73,15 @@ module OCI
|
|
63
73
|
|
64
74
|
# Initializes the object
|
65
75
|
# @param [Hash] attributes Model attributes in the form of hash
|
76
|
+
# @option attributes [String] :namespace The value to assign to the {#namespace} property
|
77
|
+
# @option attributes [String] :name The value to assign to the {#name} property
|
78
|
+
# @option attributes [String] :compartmentId The value to assign to the {#compartment_id} property
|
79
|
+
# @option attributes [Hash<String, String>] :metadata The value to assign to the {#metadata} property
|
80
|
+
# @option attributes [String] :createdBy The value to assign to the {#created_by} property
|
81
|
+
# @option attributes [DateTime] :timeCreated The value to assign to the {#time_created} property
|
82
|
+
# @option attributes [String] :etag The value to assign to the {#etag} property
|
83
|
+
# @option attributes [String] :publicAccessType The value to assign to the {#public_access_type} property
|
84
|
+
# @option attributes [String] :storageTier The value to assign to the {#storage_tier} property
|
66
85
|
def initialize(attributes = {})
|
67
86
|
return unless attributes.is_a?(Hash)
|
68
87
|
|