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,14 +3,20 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# The configuration of 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::BackendSet
|
11
|
+
# This attribute is required.
|
7
12
|
# @return [Array<OCI::LoadBalancer::Models::Backend>]
|
8
13
|
attr_accessor :backends
|
9
14
|
|
15
|
+
# This attribute is required.
|
10
16
|
# @return [OCI::LoadBalancer::Models::HealthChecker]
|
11
17
|
attr_accessor :health_checker
|
12
18
|
|
13
|
-
# A friendly name for the backend set. It must be unique and it cannot be changed.
|
19
|
+
# **[Required]** A friendly name for the backend set. It must be unique and it cannot be changed.
|
14
20
|
#
|
15
21
|
# Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot
|
16
22
|
# contain spaces. Avoid entering confidential information.
|
@@ -20,7 +26,7 @@ module OCI
|
|
20
26
|
# @return [String]
|
21
27
|
attr_accessor :name
|
22
28
|
|
23
|
-
# The load balancer policy for the backend set. To get a list of available policies, use the
|
29
|
+
# **[Required]** The load balancer policy for the backend set. To get a list of available policies, use the
|
24
30
|
# {#list_policies list_policies} operation.
|
25
31
|
#
|
26
32
|
# Example: `LEAST_CONNECTIONS`
|
@@ -37,6 +43,12 @@ module OCI
|
|
37
43
|
|
38
44
|
# Initializes the object
|
39
45
|
# @param [Hash] attributes Model attributes in the form of hash
|
46
|
+
# @option attributes [Array<OCI::LoadBalancer::Models::Backend>] :backends The value to assign to the {#backends} property
|
47
|
+
# @option attributes [OCI::LoadBalancer::Models::HealthChecker] :healthChecker The value to assign to the {#health_checker} property
|
48
|
+
# @option attributes [String] :name The value to assign to the {#name} property
|
49
|
+
# @option attributes [String] :policy The value to assign to the {#policy} property
|
50
|
+
# @option attributes [OCI::LoadBalancer::Models::SessionPersistenceConfigurationDetails] :sessionPersistenceConfiguration The value to assign to the {#session_persistence_configuration} property
|
51
|
+
# @option attributes [OCI::LoadBalancer::Models::SSLConfiguration] :sslConfiguration The value to assign to the {#ssl_configuration} property
|
40
52
|
def initialize(attributes = {})
|
41
53
|
return unless attributes.is_a?(Hash)
|
42
54
|
|
@@ -3,14 +3,19 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# The configuration details for 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::BackendSetDetails
|
7
11
|
# @return [Array<OCI::LoadBalancer::Models::BackendDetails>]
|
8
12
|
attr_accessor :backends
|
9
13
|
|
14
|
+
# This attribute is required.
|
10
15
|
# @return [OCI::LoadBalancer::Models::HealthCheckerDetails]
|
11
16
|
attr_accessor :health_checker
|
12
17
|
|
13
|
-
# The load balancer policy for the backend set. To get a list of available policies, use the
|
18
|
+
# **[Required]** The load balancer policy for the backend set. To get a list of available policies, use the
|
14
19
|
# {#list_policies list_policies} operation.
|
15
20
|
#
|
16
21
|
# Example: `LEAST_CONNECTIONS`
|
@@ -27,6 +32,11 @@ module OCI
|
|
27
32
|
|
28
33
|
# Initializes the object
|
29
34
|
# @param [Hash] attributes Model attributes in the form of hash
|
35
|
+
# @option attributes [Array<OCI::LoadBalancer::Models::BackendDetails>] :backends The value to assign to the {#backends} property
|
36
|
+
# @option attributes [OCI::LoadBalancer::Models::HealthCheckerDetails] :healthChecker The value to assign to the {#health_checker} property
|
37
|
+
# @option attributes [String] :policy The value to assign to the {#policy} property
|
38
|
+
# @option attributes [OCI::LoadBalancer::Models::SessionPersistenceConfigurationDetails] :sessionPersistenceConfiguration The value to assign to the {#session_persistence_configuration} property
|
39
|
+
# @option attributes [OCI::LoadBalancer::Models::SSLConfigurationDetails] :sslConfiguration The value to assign to the {#ssl_configuration} property
|
30
40
|
def initialize(attributes = {})
|
31
41
|
return unless attributes.is_a?(Hash)
|
32
42
|
|
@@ -3,6 +3,11 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# The health status details for a backend set.
|
7
|
+
#
|
8
|
+
# This object does not explicitly enumerate backend servers with a status of `OK`. However, they are included in the
|
9
|
+
# `totalBackendCount` sum.
|
10
|
+
#
|
6
11
|
class LoadBalancer::Models::BackendSetHealth
|
7
12
|
|
8
13
|
STATUS_ENUM = [STATUS_OK = 'OK',
|
@@ -11,7 +16,7 @@ module OCI
|
|
11
16
|
STATUS_UNKNOWN = 'UNKNOWN',
|
12
17
|
STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
13
18
|
|
14
|
-
# A list of backend servers that are currently in the `CRITICAL` health state. The list identifies each backend server by
|
19
|
+
# **[Required]** A list of backend servers that are currently in the `CRITICAL` health state. The list identifies each backend server by
|
15
20
|
# IP address and port.
|
16
21
|
#
|
17
22
|
# Example: `1.1.1.1:80`
|
@@ -19,7 +24,7 @@ module OCI
|
|
19
24
|
# @return [Array<String>]
|
20
25
|
attr_accessor :critical_state_backend_names
|
21
26
|
|
22
|
-
# Overall health status of the backend set.
|
27
|
+
# **[Required]** Overall health status of the backend set.
|
23
28
|
#
|
24
29
|
# * **OK:** All backend servers in the backend set return a status of `OK`.
|
25
30
|
#
|
@@ -34,14 +39,14 @@ module OCI
|
|
34
39
|
# @return [String]
|
35
40
|
attr_accessor :status
|
36
41
|
|
37
|
-
# The total number of backend servers in this backend set.
|
42
|
+
# **[Required]** The total number of backend servers in this backend set.
|
38
43
|
#
|
39
44
|
# Example: `5`
|
40
45
|
#
|
41
46
|
# @return [Integer]
|
42
47
|
attr_accessor :total_backend_count
|
43
48
|
|
44
|
-
# A list of backend servers that are currently in the `UNKNOWN` health state. The list identifies each backend server by
|
49
|
+
# **[Required]** A list of backend servers that are currently in the `UNKNOWN` health state. The list identifies each backend server by
|
45
50
|
# IP address and port.
|
46
51
|
#
|
47
52
|
# Example: `1.1.1.5:80`
|
@@ -49,7 +54,7 @@ module OCI
|
|
49
54
|
# @return [Array<String>]
|
50
55
|
attr_accessor :unknown_state_backend_names
|
51
56
|
|
52
|
-
# A list of backend servers that are currently in the `WARNING` health state. The list identifies each backend server by
|
57
|
+
# **[Required]** A list of backend servers that are currently in the `WARNING` health state. The list identifies each backend server by
|
53
58
|
# IP address and port.
|
54
59
|
#
|
55
60
|
# Example: `1.1.1.7:42`
|
@@ -60,6 +65,11 @@ module OCI
|
|
60
65
|
|
61
66
|
# Initializes the object
|
62
67
|
# @param [Hash] attributes Model attributes in the form of hash
|
68
|
+
# @option attributes [Array<String>] :criticalStateBackendNames The value to assign to the {#critical_state_backend_names} property
|
69
|
+
# @option attributes [String] :status The value to assign to the {#status} property
|
70
|
+
# @option attributes [Integer] :totalBackendCount The value to assign to the {#total_backend_count} property
|
71
|
+
# @option attributes [Array<String>] :unknownStateBackendNames The value to assign to the {#unknown_state_backend_names} property
|
72
|
+
# @option attributes [Array<String>] :warningStateBackendNames The value to assign to the {#warning_state_backend_names} property
|
63
73
|
def initialize(attributes = {})
|
64
74
|
return unless attributes.is_a?(Hash)
|
65
75
|
|
@@ -3,8 +3,12 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# The configuration details of a listener certificate bundle.
|
7
|
+
# For more information on SSL certficate configuration, see
|
8
|
+
# [Managing SSL Certificates](https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingcertificates.htm).
|
9
|
+
#
|
6
10
|
class LoadBalancer::Models::Certificate
|
7
|
-
# The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.
|
11
|
+
# **[Required]** The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.
|
8
12
|
#
|
9
13
|
# Example:
|
10
14
|
#
|
@@ -19,7 +23,7 @@ module OCI
|
|
19
23
|
# @return [String]
|
20
24
|
attr_accessor :ca_certificate
|
21
25
|
|
22
|
-
# A friendly name for the certificate bundle. It must be unique and it cannot be changed.
|
26
|
+
# **[Required]** A friendly name for the certificate bundle. It must be unique and it cannot be changed.
|
23
27
|
# Valid certificate bundle names include only alphanumeric characters, dashes, and underscores.
|
24
28
|
# Certificate bundle names cannot contain spaces. Avoid entering confidential information.
|
25
29
|
#
|
@@ -28,7 +32,7 @@ module OCI
|
|
28
32
|
# @return [String]
|
29
33
|
attr_accessor :certificate_name
|
30
34
|
|
31
|
-
# The public certificate, in PEM format, that you received from your SSL certificate provider.
|
35
|
+
# **[Required]** The public certificate, in PEM format, that you received from your SSL certificate provider.
|
32
36
|
#
|
33
37
|
# Example:
|
34
38
|
#
|
@@ -46,6 +50,9 @@ module OCI
|
|
46
50
|
|
47
51
|
# Initializes the object
|
48
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
53
|
+
# @option attributes [String] :caCertificate The value to assign to the {#ca_certificate} property
|
54
|
+
# @option attributes [String] :certificateName The value to assign to the {#certificate_name} property
|
55
|
+
# @option attributes [String] :publicCertificate The value to assign to the {#public_certificate} property
|
49
56
|
def initialize(attributes = {})
|
50
57
|
return unless attributes.is_a?(Hash)
|
51
58
|
|
@@ -3,6 +3,10 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# The configuration details for a listener certificate bundle.
|
7
|
+
# For more information on SSL certficate configuration, see
|
8
|
+
# [Managing SSL Certificates](https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingcertificates.htm).
|
9
|
+
#
|
6
10
|
class LoadBalancer::Models::CertificateDetails
|
7
11
|
# The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.
|
8
12
|
#
|
@@ -19,7 +23,7 @@ module OCI
|
|
19
23
|
# @return [String]
|
20
24
|
attr_accessor :ca_certificate
|
21
25
|
|
22
|
-
# A friendly name for the certificate bundle. It must be unique and it cannot be changed.
|
26
|
+
# **[Required]** A friendly name for the certificate bundle. It must be unique and it cannot be changed.
|
23
27
|
# Valid certificate bundle names include only alphanumeric characters, dashes, and underscores.
|
24
28
|
# Certificate bundle names cannot contain spaces. Avoid entering confidential information.
|
25
29
|
#
|
@@ -68,6 +72,11 @@ module OCI
|
|
68
72
|
|
69
73
|
# Initializes the object
|
70
74
|
# @param [Hash] attributes Model attributes in the form of hash
|
75
|
+
# @option attributes [String] :caCertificate The value to assign to the {#ca_certificate} property
|
76
|
+
# @option attributes [String] :certificateName The value to assign to the {#certificate_name} property
|
77
|
+
# @option attributes [String] :passphrase The value to assign to the {#passphrase} property
|
78
|
+
# @option attributes [String] :privateKey The value to assign to the {#private_key} property
|
79
|
+
# @option attributes [String] :publicCertificate The value to assign to the {#public_certificate} property
|
71
80
|
def initialize(attributes = {})
|
72
81
|
return unless attributes.is_a?(Hash)
|
73
82
|
|
@@ -0,0 +1,157 @@
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
module OCI
|
6
|
+
# Configuration details for the connection between the client and backend servers.
|
7
|
+
#
|
8
|
+
class LoadBalancer::Models::ConnectionConfiguration
|
9
|
+
# **[Required]** The maximum idle time, in seconds, allowed between two successive receive or two successive send operations
|
10
|
+
# between the client and backend servers. A send operation does not reset the timer for receive operations. A
|
11
|
+
# receive operation does not reset the timer for send operations.
|
12
|
+
#
|
13
|
+
# The default values are:
|
14
|
+
#
|
15
|
+
# * 300 seconds for TCP
|
16
|
+
#
|
17
|
+
# * 60 seconds for HTTP and WebSocket protocols.
|
18
|
+
#
|
19
|
+
# Note: The protocol is set at the listener.
|
20
|
+
#
|
21
|
+
# Modify this parameter if the client or backend server stops transmitting data for more than the default time.
|
22
|
+
# Some examples include:
|
23
|
+
#
|
24
|
+
# * The client sends a database query to the backend server and the database takes over 300 seconds to execute.
|
25
|
+
# Therefore, the backend server does not transmit any data within 300 seconds.
|
26
|
+
#
|
27
|
+
# * The client uploads data using the HTTP protocol. During the upload, the backend does not transmit any data
|
28
|
+
# to the client for more than 60 seconds.
|
29
|
+
#
|
30
|
+
# * The client downloads data using the HTTP protocol. After the initial request, it stops transmitting data to
|
31
|
+
# the backend server for more than 60 seconds.
|
32
|
+
#
|
33
|
+
# * The client starts transmitting data after establishing a WebSocket connection, but the backend server does
|
34
|
+
# not transmit data for more than 60 seconds.
|
35
|
+
#
|
36
|
+
# * The backend server starts transmitting data after establishing a WebSocket connection, but the client does
|
37
|
+
# not transmit data for more than 60 seconds.
|
38
|
+
#
|
39
|
+
# The maximum value is 7200 seconds. Contact My Oracle Support to file a service request if you want to increase
|
40
|
+
# this limit for your tenancy. For more information, see [Service Limits](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/servicelimits.htm).
|
41
|
+
#
|
42
|
+
# Example: `1200`
|
43
|
+
#
|
44
|
+
# @return [Integer]
|
45
|
+
attr_accessor :idle_timeout
|
46
|
+
|
47
|
+
|
48
|
+
# Initializes the object
|
49
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
50
|
+
# @option attributes [Integer] :idleTimeout The value to assign to the {#idle_timeout} property
|
51
|
+
def initialize(attributes = {})
|
52
|
+
return unless attributes.is_a?(Hash)
|
53
|
+
|
54
|
+
# convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
56
|
+
|
57
|
+
if attributes[:'idleTimeout']
|
58
|
+
self.idle_timeout = attributes[:'idleTimeout']
|
59
|
+
end
|
60
|
+
|
61
|
+
end
|
62
|
+
|
63
|
+
# Checks equality by comparing each attribute.
|
64
|
+
# @param [Object] other_object to be compared
|
65
|
+
def ==(other_object)
|
66
|
+
return true if self.equal?(other_object)
|
67
|
+
self.class == other_object.class &&
|
68
|
+
idle_timeout == other_object.idle_timeout
|
69
|
+
end
|
70
|
+
|
71
|
+
# @see the `==` method
|
72
|
+
# @param [Object] other_object to be compared
|
73
|
+
def eql?(other_object)
|
74
|
+
self == other_object
|
75
|
+
end
|
76
|
+
|
77
|
+
# Calculates hash code according to all attributes.
|
78
|
+
# @return [Fixnum] Hash code
|
79
|
+
def hash
|
80
|
+
[idle_timeout].hash
|
81
|
+
end
|
82
|
+
|
83
|
+
# Builds the object from hash
|
84
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
85
|
+
# @return [Object] Returns the model itself
|
86
|
+
def build_from_hash(attributes)
|
87
|
+
return nil unless attributes.is_a?(Hash)
|
88
|
+
self.class.swagger_types.each_pair do |key, type|
|
89
|
+
if type =~ /^Array<(.*)>/i
|
90
|
+
# check to ensure the input is an array given that the the attribute
|
91
|
+
# is documented as an array but the input is not
|
92
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
93
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
94
|
+
end
|
95
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
96
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
97
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
98
|
+
end
|
99
|
+
|
100
|
+
self
|
101
|
+
end
|
102
|
+
|
103
|
+
# Returns the string representation of the object
|
104
|
+
# @return [String] String presentation of the object
|
105
|
+
def to_s
|
106
|
+
to_hash.to_s
|
107
|
+
end
|
108
|
+
|
109
|
+
# Returns the object in the form of hash
|
110
|
+
# @return [Hash] Returns the object in the form of hash
|
111
|
+
def to_hash
|
112
|
+
hash = {}
|
113
|
+
self.class.attribute_map.each_pair do |attr, param|
|
114
|
+
value = public_method(attr).call
|
115
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
116
|
+
hash[param] = _to_hash(value)
|
117
|
+
end
|
118
|
+
hash
|
119
|
+
end
|
120
|
+
|
121
|
+
private
|
122
|
+
|
123
|
+
# Outputs non-array value in the form of hash
|
124
|
+
# For object, use to_hash. Otherwise, just return the value
|
125
|
+
# @param [Object] value Any valid value
|
126
|
+
# @return [Hash] Returns the value in the form of hash
|
127
|
+
def _to_hash(value)
|
128
|
+
if value.is_a?(Array)
|
129
|
+
value.compact.map{ |v| _to_hash(v) }
|
130
|
+
elsif value.is_a?(Hash)
|
131
|
+
{}.tap do |hash|
|
132
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
133
|
+
end
|
134
|
+
elsif value.respond_to? :to_hash
|
135
|
+
value.to_hash
|
136
|
+
else
|
137
|
+
value
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
144
|
+
def self.attribute_map
|
145
|
+
{
|
146
|
+
:'idle_timeout' => :'idleTimeout'
|
147
|
+
}
|
148
|
+
end
|
149
|
+
|
150
|
+
# Attribute type mapping.
|
151
|
+
def self.swagger_types
|
152
|
+
{
|
153
|
+
:'idle_timeout' => :'Integer'
|
154
|
+
}
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
@@ -3,6 +3,10 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# The configuration details for creating a backend server in a backend set.
|
7
|
+
# For more information on backend server configuration, see
|
8
|
+
# [Managing Backend Servers](https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/tasks/managingbackendservers.htm).
|
9
|
+
#
|
6
10
|
class LoadBalancer::Models::CreateBackendDetails
|
7
11
|
# Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
|
8
12
|
# traffic to this backend server unless all other backend servers not marked as \"backup\" fail the health check policy.
|
@@ -20,7 +24,7 @@ module OCI
|
|
20
24
|
# @return [BOOLEAN]
|
21
25
|
attr_accessor :drain
|
22
26
|
|
23
|
-
# The IP address of the backend server.
|
27
|
+
# **[Required]** The IP address of the backend server.
|
24
28
|
#
|
25
29
|
# Example: `10.10.10.4`
|
26
30
|
#
|
@@ -35,7 +39,7 @@ module OCI
|
|
35
39
|
# @return [BOOLEAN]
|
36
40
|
attr_accessor :offline
|
37
41
|
|
38
|
-
# The communication port for the backend server.
|
42
|
+
# **[Required]** The communication port for the backend server.
|
39
43
|
#
|
40
44
|
# Example: `8080`
|
41
45
|
#
|
@@ -56,19 +60,25 @@ module OCI
|
|
56
60
|
|
57
61
|
# Initializes the object
|
58
62
|
# @param [Hash] attributes Model attributes in the form of hash
|
63
|
+
# @option attributes [BOOLEAN] :backup The value to assign to the {#backup} property
|
64
|
+
# @option attributes [BOOLEAN] :drain The value to assign to the {#drain} property
|
65
|
+
# @option attributes [String] :ipAddress The value to assign to the {#ip_address} property
|
66
|
+
# @option attributes [BOOLEAN] :offline The value to assign to the {#offline} property
|
67
|
+
# @option attributes [Integer] :port The value to assign to the {#port} property
|
68
|
+
# @option attributes [Integer] :weight The value to assign to the {#weight} property
|
59
69
|
def initialize(attributes = {})
|
60
70
|
return unless attributes.is_a?(Hash)
|
61
71
|
|
62
72
|
# convert string to symbol for hash key
|
63
73
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
64
74
|
|
65
|
-
|
75
|
+
unless attributes[:'backup'].nil?
|
66
76
|
self.backup = attributes[:'backup']
|
67
77
|
else
|
68
78
|
self.backup = false
|
69
79
|
end
|
70
80
|
|
71
|
-
|
81
|
+
unless attributes[:'drain'].nil?
|
72
82
|
self.drain = attributes[:'drain']
|
73
83
|
else
|
74
84
|
self.drain = false
|
@@ -78,7 +88,7 @@ module OCI
|
|
78
88
|
self.ip_address = attributes[:'ipAddress']
|
79
89
|
end
|
80
90
|
|
81
|
-
|
91
|
+
unless attributes[:'offline'].nil?
|
82
92
|
self.offline = attributes[:'offline']
|
83
93
|
else
|
84
94
|
self.offline = false
|
@@ -3,14 +3,19 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# The configuration details for creating a backend set in a load balancer.
|
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::CreateBackendSetDetails
|
7
11
|
# @return [Array<OCI::LoadBalancer::Models::BackendDetails>]
|
8
12
|
attr_accessor :backends
|
9
13
|
|
14
|
+
# This attribute is required.
|
10
15
|
# @return [OCI::LoadBalancer::Models::HealthCheckerDetails]
|
11
16
|
attr_accessor :health_checker
|
12
17
|
|
13
|
-
# A friendly name for the backend set. It must be unique and it cannot be changed.
|
18
|
+
# **[Required]** A friendly name for the backend set. It must be unique and it cannot be changed.
|
14
19
|
#
|
15
20
|
# Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot
|
16
21
|
# contain spaces. Avoid entering confidential information.
|
@@ -20,7 +25,7 @@ module OCI
|
|
20
25
|
# @return [String]
|
21
26
|
attr_accessor :name
|
22
27
|
|
23
|
-
# The load balancer policy for the backend set. To get a list of available policies, use the
|
28
|
+
# **[Required]** The load balancer policy for the backend set. To get a list of available policies, use the
|
24
29
|
# {#list_policies list_policies} operation.
|
25
30
|
#
|
26
31
|
# Example: `LEAST_CONNECTIONS`
|
@@ -37,6 +42,12 @@ module OCI
|
|
37
42
|
|
38
43
|
# Initializes the object
|
39
44
|
# @param [Hash] attributes Model attributes in the form of hash
|
45
|
+
# @option attributes [Array<OCI::LoadBalancer::Models::BackendDetails>] :backends The value to assign to the {#backends} property
|
46
|
+
# @option attributes [OCI::LoadBalancer::Models::HealthCheckerDetails] :healthChecker The value to assign to the {#health_checker} property
|
47
|
+
# @option attributes [String] :name The value to assign to the {#name} property
|
48
|
+
# @option attributes [String] :policy The value to assign to the {#policy} property
|
49
|
+
# @option attributes [OCI::LoadBalancer::Models::SessionPersistenceConfigurationDetails] :sessionPersistenceConfiguration The value to assign to the {#session_persistence_configuration} property
|
50
|
+
# @option attributes [OCI::LoadBalancer::Models::SSLConfigurationDetails] :sslConfiguration The value to assign to the {#ssl_configuration} property
|
40
51
|
def initialize(attributes = {})
|
41
52
|
return unless attributes.is_a?(Hash)
|
42
53
|
|