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
@@ -8,14 +8,16 @@ module OCI
|
|
8
8
|
# @return [String]
|
9
9
|
attr_accessor :description
|
10
10
|
|
11
|
-
#
|
12
|
-
#
|
11
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
|
12
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
13
|
+
# Example: `{\"Department\": \"Finance\"}`
|
13
14
|
#
|
14
15
|
# @return [Hash<String, String>]
|
15
16
|
attr_accessor :freeform_tags
|
16
17
|
|
17
|
-
#
|
18
|
-
#
|
18
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
19
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
20
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
19
21
|
#
|
20
22
|
# @return [Hash<String, Hash<String, Object>>]
|
21
23
|
attr_accessor :defined_tags
|
@@ -23,6 +25,9 @@ module OCI
|
|
23
25
|
|
24
26
|
# Initializes the object
|
25
27
|
# @param [Hash] attributes Model attributes in the form of hash
|
28
|
+
# @option attributes [String] :description The value to assign to the {#description} property
|
29
|
+
# @option attributes [Hash<String, String>] :freeformTags The value to assign to the {#freeform_tags} property
|
30
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :definedTags The value to assign to the {#defined_tags} property
|
26
31
|
def initialize(attributes = {})
|
27
32
|
return unless attributes.is_a?(Hash)
|
28
33
|
|
@@ -3,6 +3,23 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# An individual employee or system that needs to manage or use your company's Oracle Cloud Infrastructure
|
7
|
+
# resources. Users might need to launch instances, manage remote disks, work with your cloud network, etc. Users
|
8
|
+
# have one or more IAM Service credentials ({ApiKey},
|
9
|
+
# {UIPassword}, and {SwiftPassword}).
|
10
|
+
# For more information, see [User Credentials](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usercredentials.htm)). End users of your
|
11
|
+
# application are not typically IAM Service users. For conceptual information about users and other IAM Service
|
12
|
+
# components, see [Overview of the IAM Service](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm).
|
13
|
+
#
|
14
|
+
# These users are created directly within the Oracle Cloud Infrastructure system, via the IAM service.
|
15
|
+
# They are different from *federated users*, who authenticate themselves to the Oracle Cloud Infrastructure
|
16
|
+
# Console via an identity provider. For more information, see
|
17
|
+
# [Identity Providers and Federation](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/federation.htm).
|
18
|
+
#
|
19
|
+
# To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized,
|
20
|
+
# talk to an administrator. If you're an administrator who needs to write policies to give users access,
|
21
|
+
# see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
|
22
|
+
#
|
6
23
|
class Identity::Models::User
|
7
24
|
|
8
25
|
LIFECYCLE_STATE_ENUM = [LIFECYCLE_STATE_CREATING = 'CREATING',
|
@@ -12,32 +29,32 @@ module OCI
|
|
12
29
|
LIFECYCLE_STATE_DELETED = 'DELETED',
|
13
30
|
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
14
31
|
|
15
|
-
# The OCID of the user.
|
32
|
+
# **[Required]** The OCID of the user.
|
16
33
|
# @return [String]
|
17
34
|
attr_accessor :id
|
18
35
|
|
19
|
-
# The OCID of the tenancy containing the user.
|
36
|
+
# **[Required]** The OCID of the tenancy containing the user.
|
20
37
|
# @return [String]
|
21
38
|
attr_accessor :compartment_id
|
22
39
|
|
23
|
-
# The name you assign to the user during creation. This is the user's login for the Console.
|
40
|
+
# **[Required]** The name you assign to the user during creation. This is the user's login for the Console.
|
24
41
|
# The name must be unique across all users in the tenancy and cannot be changed.
|
25
42
|
#
|
26
43
|
# @return [String]
|
27
44
|
attr_accessor :name
|
28
45
|
|
29
|
-
# The description you assign to the user. Does not have to be unique, and it's changeable.
|
46
|
+
# **[Required]** The description you assign to the user. Does not have to be unique, and it's changeable.
|
30
47
|
# @return [String]
|
31
48
|
attr_accessor :description
|
32
49
|
|
33
|
-
# Date and time the user was created, in the format defined by RFC3339.
|
50
|
+
# **[Required]** Date and time the user was created, in the format defined by RFC3339.
|
34
51
|
#
|
35
52
|
# Example: `2016-08-25T21:10:29.600Z`
|
36
53
|
#
|
37
54
|
# @return [DateTime]
|
38
55
|
attr_accessor :time_created
|
39
56
|
|
40
|
-
# The user's current state. After creating a user, make sure its `lifecycleState` changes from CREATING to
|
57
|
+
# **[Required]** The user's current state. After creating a user, make sure its `lifecycleState` changes from CREATING to
|
41
58
|
# ACTIVE before using it.
|
42
59
|
#
|
43
60
|
# @return [String]
|
@@ -53,15 +70,16 @@ module OCI
|
|
53
70
|
# @return [Integer]
|
54
71
|
attr_accessor :inactive_status
|
55
72
|
|
56
|
-
#
|
57
|
-
#
|
58
|
-
# Example: `{\"
|
73
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
|
74
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
75
|
+
# Example: `{\"Department\": \"Finance\"}`
|
59
76
|
#
|
60
77
|
# @return [Hash<String, String>]
|
61
78
|
attr_accessor :freeform_tags
|
62
79
|
|
63
|
-
#
|
64
|
-
#
|
80
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
81
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
82
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
65
83
|
#
|
66
84
|
# @return [Hash<String, Hash<String, Object>>]
|
67
85
|
attr_accessor :defined_tags
|
@@ -69,6 +87,15 @@ module OCI
|
|
69
87
|
|
70
88
|
# Initializes the object
|
71
89
|
# @param [Hash] attributes Model attributes in the form of hash
|
90
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
91
|
+
# @option attributes [String] :compartmentId The value to assign to the {#compartment_id} property
|
92
|
+
# @option attributes [String] :name The value to assign to the {#name} property
|
93
|
+
# @option attributes [String] :description The value to assign to the {#description} property
|
94
|
+
# @option attributes [DateTime] :timeCreated The value to assign to the {#time_created} property
|
95
|
+
# @option attributes [String] :lifecycleState The value to assign to the {#lifecycle_state} property
|
96
|
+
# @option attributes [Integer] :inactiveStatus The value to assign to the {#inactive_status} property
|
97
|
+
# @option attributes [Hash<String, String>] :freeformTags The value to assign to the {#freeform_tags} property
|
98
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :definedTags The value to assign to the {#defined_tags} property
|
72
99
|
def initialize(attributes = {})
|
73
100
|
return unless attributes.is_a?(Hash)
|
74
101
|
|
@@ -3,6 +3,9 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# An object that represents the membership of a user in a group. When you add a user to a group, the result is a
|
7
|
+
# `UserGroupMembership` with its own OCID. To remove a user from a group, you delete the `UserGroupMembership` object.
|
8
|
+
#
|
6
9
|
class Identity::Models::UserGroupMembership
|
7
10
|
|
8
11
|
LIFECYCLE_STATE_ENUM = [LIFECYCLE_STATE_CREATING = 'CREATING',
|
@@ -12,30 +15,30 @@ module OCI
|
|
12
15
|
LIFECYCLE_STATE_DELETED = 'DELETED',
|
13
16
|
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
14
17
|
|
15
|
-
# The OCID of the membership.
|
18
|
+
# **[Required]** The OCID of the membership.
|
16
19
|
# @return [String]
|
17
20
|
attr_accessor :id
|
18
21
|
|
19
|
-
# The OCID of the tenancy containing the user, group, and membership object.
|
22
|
+
# **[Required]** The OCID of the tenancy containing the user, group, and membership object.
|
20
23
|
# @return [String]
|
21
24
|
attr_accessor :compartment_id
|
22
25
|
|
23
|
-
# The OCID of the group.
|
26
|
+
# **[Required]** The OCID of the group.
|
24
27
|
# @return [String]
|
25
28
|
attr_accessor :group_id
|
26
29
|
|
27
|
-
# The OCID of the user.
|
30
|
+
# **[Required]** The OCID of the user.
|
28
31
|
# @return [String]
|
29
32
|
attr_accessor :user_id
|
30
33
|
|
31
|
-
# Date and time the membership was created, in the format defined by RFC3339.
|
34
|
+
# **[Required]** Date and time the membership was created, in the format defined by RFC3339.
|
32
35
|
#
|
33
36
|
# Example: `2016-08-25T21:10:29.600Z`
|
34
37
|
#
|
35
38
|
# @return [DateTime]
|
36
39
|
attr_accessor :time_created
|
37
40
|
|
38
|
-
# The membership's current state. After creating a membership object, make sure its `lifecycleState` changes
|
41
|
+
# **[Required]** The membership's current state. After creating a membership object, make sure its `lifecycleState` changes
|
39
42
|
# from CREATING to ACTIVE before using it.
|
40
43
|
#
|
41
44
|
# @return [String]
|
@@ -48,6 +51,13 @@ module OCI
|
|
48
51
|
|
49
52
|
# Initializes the object
|
50
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
54
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
55
|
+
# @option attributes [String] :compartmentId The value to assign to the {#compartment_id} property
|
56
|
+
# @option attributes [String] :groupId The value to assign to the {#group_id} property
|
57
|
+
# @option attributes [String] :userId The value to assign to the {#user_id} property
|
58
|
+
# @option attributes [DateTime] :timeCreated The value to assign to the {#time_created} property
|
59
|
+
# @option attributes [String] :lifecycleState The value to assign to the {#lifecycle_state} property
|
60
|
+
# @option attributes [Integer] :inactiveStatus The value to assign to the {#inactive_status} property
|
51
61
|
def initialize(attributes = {})
|
52
62
|
return unless attributes.is_a?(Hash)
|
53
63
|
|
@@ -16,6 +16,7 @@ require 'oci/load_balancer/models/backend_set_details'
|
|
16
16
|
require 'oci/load_balancer/models/backend_set_health'
|
17
17
|
require 'oci/load_balancer/models/certificate'
|
18
18
|
require 'oci/load_balancer/models/certificate_details'
|
19
|
+
require 'oci/load_balancer/models/connection_configuration'
|
19
20
|
require 'oci/load_balancer/models/create_backend_details'
|
20
21
|
require 'oci/load_balancer/models/create_backend_set_details'
|
21
22
|
require 'oci/load_balancer/models/create_certificate_details'
|
@@ -28,15 +28,29 @@ module OCI
|
|
28
28
|
# @param [Config] config A Config object.
|
29
29
|
# @param [String] region A region used to determine the service endpoint. This will usually
|
30
30
|
# correspond to a value in {OCI::Regions::REGION_ENUM}, but may be an arbitrary string.
|
31
|
-
#
|
32
|
-
|
33
|
-
|
34
|
-
|
31
|
+
# @param [OCI::BaseSigner] signer A signer implementation which can be used by this client. If this is not provided then
|
32
|
+
# a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication,
|
33
|
+
# so that the instance principals signer can be provided to the client
|
34
|
+
def initialize(config:nil, region:nil, signer:nil)
|
35
|
+
# If the signer is an InstancePrincipalsSecurityTokenSigner and no config was supplied (which is valid for instance principals)
|
36
|
+
# then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
|
37
|
+
# and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
|
38
|
+
# pass it to this constructor.
|
39
|
+
#
|
40
|
+
# If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid
|
41
|
+
# so try and load the config from the default file.
|
42
|
+
config ||= OCI.config unless signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner)
|
43
|
+
config ||= OCI::Config.new if signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner)
|
44
|
+
config.validate unless signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner)
|
45
|
+
|
46
|
+
if signer.nil?
|
47
|
+
signer = Signer.new(config.user, config.fingerprint, config.tenancy, config.key_file, pass_phrase: config.pass_phrase, private_key_content: config.key_content, signing_strategy: Signer::STANDARD)
|
48
|
+
end
|
35
49
|
|
36
|
-
signer = Signer.new(config.user, config.fingerprint, config.tenancy, config.key_file, pass_phrase: config.pass_phrase, private_key_content: config.key_content, signing_strategy: Signer::STANDARD)
|
37
50
|
@api_client = ApiClient.new(config, signer)
|
38
51
|
|
39
52
|
region ||= config.region
|
53
|
+
region ||= signer.region if signer.respond_to?(:region)
|
40
54
|
self.region = region
|
41
55
|
end
|
42
56
|
|
@@ -990,15 +1004,16 @@ module OCI
|
|
990
1004
|
#
|
991
1005
|
# Example: `full`
|
992
1006
|
# (default to full)
|
993
|
-
# @option opts [String] :sort_by The field to sort by.
|
1007
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending.
|
1008
|
+
# Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.
|
994
1009
|
#
|
995
1010
|
# Allowed values are: TIMECREATED, DISPLAYNAME
|
996
|
-
# @option opts [String] :sort_order The sort order to use, either
|
1011
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order is case sensitive.
|
997
1012
|
#
|
998
1013
|
# Allowed values are: ASC, DESC
|
999
|
-
# @option opts [String] :display_name A filter to only
|
1014
|
+
# @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
|
1000
1015
|
#
|
1001
|
-
# @option opts [String] :lifecycle_state A filter to only
|
1016
|
+
# @option opts [String] :lifecycle_state A filter to return only resources that match the given lifecycle state.
|
1002
1017
|
#
|
1003
1018
|
# @return [Response] A Response object with data of type Array<OCI::LoadBalancer::Models::LoadBalancer>
|
1004
1019
|
def list_load_balancers(compartment_id, opts = {})
|
@@ -3,8 +3,11 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# The configuration of a backend server that is a member of a load balancer backend set.
|
7
|
+
# For more information, see [Managing Backend Servers](https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingbackendservers.htm).
|
8
|
+
#
|
6
9
|
class LoadBalancer::Models::Backend
|
7
|
-
# Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
|
10
|
+
# **[Required]** Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
|
8
11
|
# traffic to this backend server unless all other backend servers not marked as \"backup\" fail the health check policy.
|
9
12
|
#
|
10
13
|
# Example: `true`
|
@@ -12,7 +15,7 @@ module OCI
|
|
12
15
|
# @return [BOOLEAN]
|
13
16
|
attr_accessor :backup
|
14
17
|
|
15
|
-
# Whether the load balancer should drain this server. Servers marked \"drain\" receive no new
|
18
|
+
# **[Required]** Whether the load balancer should drain this server. Servers marked \"drain\" receive no new
|
16
19
|
# incoming traffic.
|
17
20
|
#
|
18
21
|
# Example: `true`
|
@@ -20,21 +23,21 @@ module OCI
|
|
20
23
|
# @return [BOOLEAN]
|
21
24
|
attr_accessor :drain
|
22
25
|
|
23
|
-
# The IP address of the backend server.
|
26
|
+
# **[Required]** The IP address of the backend server.
|
24
27
|
#
|
25
28
|
# Example: `10.10.10.4`
|
26
29
|
#
|
27
30
|
# @return [String]
|
28
31
|
attr_accessor :ip_address
|
29
32
|
|
30
|
-
# A read-only field showing the IP address and port that uniquely identify this backend server in the backend set.
|
33
|
+
# **[Required]** A read-only field showing the IP address and port that uniquely identify this backend server in the backend set.
|
31
34
|
#
|
32
35
|
# Example: `10.10.10.4:8080`
|
33
36
|
#
|
34
37
|
# @return [String]
|
35
38
|
attr_accessor :name
|
36
39
|
|
37
|
-
# Whether the load balancer should treat this server as offline. Offline servers receive no incoming
|
40
|
+
# **[Required]** Whether the load balancer should treat this server as offline. Offline servers receive no incoming
|
38
41
|
# traffic.
|
39
42
|
#
|
40
43
|
# Example: `true`
|
@@ -42,14 +45,14 @@ module OCI
|
|
42
45
|
# @return [BOOLEAN]
|
43
46
|
attr_accessor :offline
|
44
47
|
|
45
|
-
# The communication port for the backend server.
|
48
|
+
# **[Required]** The communication port for the backend server.
|
46
49
|
#
|
47
50
|
# Example: `8080`
|
48
51
|
#
|
49
52
|
# @return [Integer]
|
50
53
|
attr_accessor :port
|
51
54
|
|
52
|
-
# The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger
|
55
|
+
# **[Required]** The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger
|
53
56
|
# proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections
|
54
57
|
# as a server weighted '1'.
|
55
58
|
# For more information on load balancing policies, see
|
@@ -63,19 +66,26 @@ module OCI
|
|
63
66
|
|
64
67
|
# Initializes the object
|
65
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
69
|
+
# @option attributes [BOOLEAN] :backup The value to assign to the {#backup} property
|
70
|
+
# @option attributes [BOOLEAN] :drain The value to assign to the {#drain} property
|
71
|
+
# @option attributes [String] :ipAddress The value to assign to the {#ip_address} property
|
72
|
+
# @option attributes [String] :name The value to assign to the {#name} property
|
73
|
+
# @option attributes [BOOLEAN] :offline The value to assign to the {#offline} property
|
74
|
+
# @option attributes [Integer] :port The value to assign to the {#port} property
|
75
|
+
# @option attributes [Integer] :weight The value to assign to the {#weight} property
|
66
76
|
def initialize(attributes = {})
|
67
77
|
return unless attributes.is_a?(Hash)
|
68
78
|
|
69
79
|
# convert string to symbol for hash key
|
70
80
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
71
81
|
|
72
|
-
|
82
|
+
unless attributes[:'backup'].nil?
|
73
83
|
self.backup = attributes[:'backup']
|
74
84
|
else
|
75
85
|
self.backup = false
|
76
86
|
end
|
77
87
|
|
78
|
-
|
88
|
+
unless attributes[:'drain'].nil?
|
79
89
|
self.drain = attributes[:'drain']
|
80
90
|
else
|
81
91
|
self.drain = false
|
@@ -89,7 +99,7 @@ module OCI
|
|
89
99
|
self.name = attributes[:'name']
|
90
100
|
end
|
91
101
|
|
92
|
-
|
102
|
+
unless attributes[:'offline'].nil?
|
93
103
|
self.offline = attributes[:'offline']
|
94
104
|
else
|
95
105
|
self.offline = false
|
@@ -3,6 +3,7 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# The load balancing configuration details of a backend server.
|
6
7
|
class LoadBalancer::Models::BackendDetails
|
7
8
|
# 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.
|
@@ -20,7 +21,7 @@ module OCI
|
|
20
21
|
# @return [BOOLEAN]
|
21
22
|
attr_accessor :drain
|
22
23
|
|
23
|
-
# The IP address of the backend server.
|
24
|
+
# **[Required]** The IP address of the backend server.
|
24
25
|
#
|
25
26
|
# Example: `10.10.10.4`
|
26
27
|
#
|
@@ -35,7 +36,7 @@ module OCI
|
|
35
36
|
# @return [BOOLEAN]
|
36
37
|
attr_accessor :offline
|
37
38
|
|
38
|
-
# The communication port for the backend server.
|
39
|
+
# **[Required]** The communication port for the backend server.
|
39
40
|
#
|
40
41
|
# Example: `8080`
|
41
42
|
#
|
@@ -56,19 +57,25 @@ module OCI
|
|
56
57
|
|
57
58
|
# Initializes the object
|
58
59
|
# @param [Hash] attributes Model attributes in the form of hash
|
60
|
+
# @option attributes [BOOLEAN] :backup The value to assign to the {#backup} property
|
61
|
+
# @option attributes [BOOLEAN] :drain The value to assign to the {#drain} property
|
62
|
+
# @option attributes [String] :ipAddress The value to assign to the {#ip_address} property
|
63
|
+
# @option attributes [BOOLEAN] :offline The value to assign to the {#offline} property
|
64
|
+
# @option attributes [Integer] :port The value to assign to the {#port} property
|
65
|
+
# @option attributes [Integer] :weight The value to assign to the {#weight} property
|
59
66
|
def initialize(attributes = {})
|
60
67
|
return unless attributes.is_a?(Hash)
|
61
68
|
|
62
69
|
# convert string to symbol for hash key
|
63
70
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
64
71
|
|
65
|
-
|
72
|
+
unless attributes[:'backup'].nil?
|
66
73
|
self.backup = attributes[:'backup']
|
67
74
|
else
|
68
75
|
self.backup = false
|
69
76
|
end
|
70
77
|
|
71
|
-
|
78
|
+
unless attributes[:'drain'].nil?
|
72
79
|
self.drain = attributes[:'drain']
|
73
80
|
else
|
74
81
|
self.drain = false
|
@@ -78,7 +85,7 @@ module OCI
|
|
78
85
|
self.ip_address = attributes[:'ipAddress']
|
79
86
|
end
|
80
87
|
|
81
|
-
|
88
|
+
unless attributes[:'offline'].nil?
|
82
89
|
self.offline = attributes[:'offline']
|
83
90
|
else
|
84
91
|
self.offline = false
|
@@ -3,6 +3,8 @@
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
|
+
# The health status of the specified backend server as reported by the primary and standby load balancers.
|
7
|
+
#
|
6
8
|
class LoadBalancer::Models::BackendHealth
|
7
9
|
|
8
10
|
STATUS_ENUM = [STATUS_OK = 'OK',
|
@@ -11,12 +13,12 @@ module OCI
|
|
11
13
|
STATUS_UNKNOWN = 'UNKNOWN',
|
12
14
|
STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
13
15
|
|
14
|
-
# A list of the most recent health check results returned for the specified backend server.
|
16
|
+
# **[Required]** A list of the most recent health check results returned for the specified backend server.
|
15
17
|
#
|
16
18
|
# @return [Array<OCI::LoadBalancer::Models::HealthCheckResult>]
|
17
19
|
attr_accessor :health_check_results
|
18
20
|
|
19
|
-
# The general health status of the specified backend server as reported by the primary and standby load balancers.
|
21
|
+
# **[Required]** The general health status of the specified backend server as reported by the primary and standby load balancers.
|
20
22
|
#
|
21
23
|
# * **OK:** Both health checks returned `OK`.
|
22
24
|
#
|
@@ -32,6 +34,8 @@ module OCI
|
|
32
34
|
|
33
35
|
# Initializes the object
|
34
36
|
# @param [Hash] attributes Model attributes in the form of hash
|
37
|
+
# @option attributes [Array<OCI::LoadBalancer::Models::HealthCheckResult>] :healthCheckResults The value to assign to the {#health_check_results} property
|
38
|
+
# @option attributes [String] :status The value to assign to the {#status} property
|
35
39
|
def initialize(attributes = {})
|
36
40
|
return unless attributes.is_a?(Hash)
|
37
41
|
|