oci 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/lib/oci.rb +2 -1
- data/lib/oci/audit/audit.rb +19 -0
- data/lib/oci/audit/audit_client.rb +176 -0
- data/lib/oci/audit/models/audit_event.rb +307 -0
- data/lib/oci/audit/models/configuration.rb +120 -0
- data/lib/oci/audit/models/update_configuration_details.rb +120 -0
- data/lib/oci/audit/util.rb +1 -0
- data/lib/oci/core/blockstorage_client.rb +69 -1
- data/lib/oci/core/compute_client.rb +106 -16
- data/lib/oci/core/core.rb +3 -0
- data/lib/oci/core/models/attach_i_scsi_volume_details.rb +2 -2
- data/lib/oci/core/models/attach_vnic_details.rb +2 -2
- data/lib/oci/core/models/attach_volume_details.rb +2 -2
- data/lib/oci/core/models/capture_console_history_details.rb +2 -2
- data/lib/oci/core/models/console_history.rb +2 -2
- data/lib/oci/core/models/cpe.rb +2 -2
- data/lib/oci/core/models/create_cpe_details.rb +2 -2
- data/lib/oci/core/models/create_cross_connect_details.rb +2 -2
- data/lib/oci/core/models/create_cross_connect_group_details.rb +2 -2
- data/lib/oci/core/models/create_dhcp_details.rb +2 -2
- data/lib/oci/core/models/create_drg_attachment_details.rb +2 -2
- data/lib/oci/core/models/create_drg_details.rb +2 -2
- data/lib/oci/core/models/create_image_details.rb +2 -2
- data/lib/oci/core/models/create_instance_console_connection_details.rb +2 -2
- data/lib/oci/core/models/create_internet_gateway_details.rb +2 -2
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +2 -2
- data/lib/oci/core/models/create_private_ip_details.rb +2 -2
- data/lib/oci/core/models/create_route_table_details.rb +2 -2
- data/lib/oci/core/models/create_security_list_details.rb +2 -2
- data/lib/oci/core/models/create_subnet_details.rb +2 -2
- data/lib/oci/core/models/create_vcn_details.rb +2 -2
- data/lib/oci/core/models/create_virtual_circuit_details.rb +5 -6
- data/lib/oci/core/models/create_vnic_details.rb +2 -2
- data/lib/oci/core/models/create_volume_backup_details.rb +2 -2
- data/lib/oci/core/models/create_volume_details.rb +20 -4
- data/lib/oci/core/models/cross_connect.rb +2 -2
- data/lib/oci/core/models/cross_connect_group.rb +2 -2
- data/lib/oci/core/models/cross_connect_location.rb +2 -2
- data/lib/oci/core/models/cross_connect_mapping.rb +2 -2
- data/lib/oci/core/models/cross_connect_port_speed_shape.rb +2 -2
- data/lib/oci/core/models/cross_connect_status.rb +2 -2
- data/lib/oci/core/models/dhcp_dns_option.rb +2 -2
- data/lib/oci/core/models/dhcp_option.rb +2 -2
- data/lib/oci/core/models/dhcp_options.rb +2 -2
- data/lib/oci/core/models/dhcp_search_domain_option.rb +2 -2
- data/lib/oci/core/models/drg.rb +2 -2
- data/lib/oci/core/models/drg_attachment.rb +2 -2
- data/lib/oci/core/models/egress_security_rule.rb +2 -2
- data/lib/oci/core/models/export_image_details.rb +3 -3
- data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +5 -5
- data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +3 -3
- data/lib/oci/core/models/fast_connect_provider_service.rb +2 -2
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +2 -2
- data/lib/oci/core/models/icmp_options.rb +2 -2
- data/lib/oci/core/models/image.rb +2 -2
- data/lib/oci/core/models/image_source_details.rb +3 -3
- data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +5 -5
- data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +3 -3
- data/lib/oci/core/models/ingress_security_rule.rb +2 -2
- data/lib/oci/core/models/instance.rb +4 -4
- data/lib/oci/core/models/instance_console_connection.rb +2 -2
- data/lib/oci/core/models/instance_credentials.rb +2 -2
- data/lib/oci/core/models/internet_gateway.rb +2 -2
- data/lib/oci/core/models/ip_sec_connection.rb +2 -2
- data/lib/oci/core/models/ip_sec_connection_device_config.rb +2 -2
- data/lib/oci/core/models/ip_sec_connection_device_status.rb +2 -2
- data/lib/oci/core/models/launch_instance_details.rb +4 -4
- data/lib/oci/core/models/letter_of_authority.rb +2 -2
- data/lib/oci/core/models/port_range.rb +2 -2
- data/lib/oci/core/models/private_ip.rb +2 -2
- data/lib/oci/core/models/route_rule.rb +2 -2
- data/lib/oci/core/models/route_table.rb +2 -2
- data/lib/oci/core/models/security_list.rb +2 -2
- data/lib/oci/core/models/shape.rb +2 -2
- data/lib/oci/core/models/subnet.rb +2 -2
- data/lib/oci/core/models/tcp_options.rb +2 -2
- data/lib/oci/core/models/tunnel_config.rb +2 -2
- data/lib/oci/core/models/tunnel_status.rb +2 -2
- data/lib/oci/core/models/udp_options.rb +2 -2
- data/lib/oci/core/models/update_console_history_details.rb +2 -2
- data/lib/oci/core/models/update_cpe_details.rb +2 -2
- data/lib/oci/core/models/update_cross_connect_details.rb +2 -2
- data/lib/oci/core/models/update_cross_connect_group_details.rb +2 -2
- data/lib/oci/core/models/update_dhcp_details.rb +2 -2
- data/lib/oci/core/models/update_drg_attachment_details.rb +2 -2
- data/lib/oci/core/models/update_drg_details.rb +2 -2
- data/lib/oci/core/models/update_image_details.rb +2 -2
- data/lib/oci/core/models/update_instance_details.rb +2 -2
- data/lib/oci/core/models/update_internet_gateway_details.rb +2 -2
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +2 -2
- data/lib/oci/core/models/update_private_ip_details.rb +2 -2
- data/lib/oci/core/models/update_route_table_details.rb +2 -2
- data/lib/oci/core/models/update_security_list_details.rb +2 -2
- data/lib/oci/core/models/update_subnet_details.rb +2 -2
- data/lib/oci/core/models/update_vcn_details.rb +2 -2
- data/lib/oci/core/models/update_virtual_circuit_details.rb +2 -3
- data/lib/oci/core/models/update_vnic_details.rb +2 -2
- data/lib/oci/core/models/update_volume_backup_details.rb +2 -2
- data/lib/oci/core/models/update_volume_details.rb +2 -2
- data/lib/oci/core/models/vcn.rb +2 -2
- data/lib/oci/core/models/virtual_circuit.rb +5 -5
- data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +2 -2
- data/lib/oci/core/models/vnic.rb +2 -2
- data/lib/oci/core/models/vnic_attachment.rb +2 -2
- data/lib/oci/core/models/volume.rb +29 -5
- data/lib/oci/core/models/volume_attachment.rb +2 -2
- data/lib/oci/core/models/volume_backup.rb +2 -2
- data/lib/oci/core/models/volume_source_details.rb +131 -0
- data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +128 -0
- data/lib/oci/core/models/volume_source_from_volume_details.rb +128 -0
- data/lib/oci/core/virtual_network_client.rb +312 -10
- data/lib/oci/database/database.rb +7 -0
- data/lib/oci/database/database_client.rb +228 -4
- data/lib/oci/database/models/backup.rb +253 -0
- data/lib/oci/database/models/backup_summary.rb +253 -0
- data/lib/oci/database/models/create_backup_details.rb +131 -0
- data/lib/oci/database/models/create_data_guard_association_details.rb +2 -2
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +2 -2
- data/lib/oci/database/models/create_database_details.rb +13 -3
- data/lib/oci/database/models/create_db_home_details.rb +2 -2
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +2 -2
- data/lib/oci/database/models/data_guard_association.rb +2 -2
- data/lib/oci/database/models/data_guard_association_summary.rb +374 -0
- data/lib/oci/database/models/database.rb +15 -3
- data/lib/oci/database/models/database_summary.rb +15 -3
- data/lib/oci/database/models/db_backup_config.rb +120 -0
- data/lib/oci/database/models/db_home.rb +2 -2
- data/lib/oci/database/models/db_home_summary.rb +2 -2
- data/lib/oci/database/models/db_node.rb +2 -2
- data/lib/oci/database/models/db_node_summary.rb +2 -2
- data/lib/oci/database/models/db_system.rb +9 -9
- data/lib/oci/database/models/db_system_shape_summary.rb +2 -2
- data/lib/oci/database/models/db_system_summary.rb +9 -9
- data/lib/oci/database/models/db_version_summary.rb +2 -2
- data/lib/oci/database/models/failover_data_guard_association_details.rb +2 -2
- data/lib/oci/database/models/launch_db_system_details.rb +2 -2
- data/lib/oci/database/models/patch.rb +4 -2
- data/lib/oci/database/models/patch_details.rb +4 -3
- data/lib/oci/database/models/patch_history_entry.rb +3 -2
- data/lib/oci/database/models/patch_history_entry_summary.rb +3 -2
- data/lib/oci/database/models/patch_summary.rb +4 -2
- data/lib/oci/database/models/reinstate_data_guard_association_details.rb +2 -2
- data/lib/oci/database/models/restore_database_details.rb +145 -0
- data/lib/oci/database/models/switchover_data_guard_association_details.rb +2 -2
- data/lib/oci/database/models/update_database_details.rb +119 -0
- data/lib/oci/database/models/update_db_home_details.rb +2 -2
- data/lib/oci/database/models/update_db_system_details.rb +9 -9
- data/lib/oci/identity/identity_client.rb +6 -5
- data/lib/oci/identity/models/add_user_to_group_details.rb +2 -2
- data/lib/oci/identity/models/api_key.rb +2 -2
- data/lib/oci/identity/models/availability_domain.rb +2 -2
- data/lib/oci/identity/models/compartment.rb +3 -3
- data/lib/oci/identity/models/create_api_key_details.rb +2 -2
- data/lib/oci/identity/models/create_compartment_details.rb +2 -2
- data/lib/oci/identity/models/create_customer_secret_key_details.rb +2 -2
- data/lib/oci/identity/models/create_group_details.rb +2 -2
- data/lib/oci/identity/models/create_identity_provider_details.rb +2 -2
- data/lib/oci/identity/models/create_idp_group_mapping_details.rb +2 -2
- data/lib/oci/identity/models/create_policy_details.rb +2 -2
- data/lib/oci/identity/models/create_region_subscription_details.rb +2 -2
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +2 -2
- data/lib/oci/identity/models/create_swift_password_details.rb +2 -2
- data/lib/oci/identity/models/create_user_details.rb +2 -2
- data/lib/oci/identity/models/customer_secret_key.rb +2 -2
- data/lib/oci/identity/models/customer_secret_key_summary.rb +2 -2
- data/lib/oci/identity/models/group.rb +2 -2
- data/lib/oci/identity/models/identity_provider.rb +4 -4
- data/lib/oci/identity/models/idp_group_mapping.rb +2 -2
- data/lib/oci/identity/models/policy.rb +2 -2
- data/lib/oci/identity/models/region.rb +4 -4
- data/lib/oci/identity/models/region_subscription.rb +4 -4
- data/lib/oci/identity/models/saml2_identity_provider.rb +2 -2
- data/lib/oci/identity/models/swift_password.rb +2 -2
- data/lib/oci/identity/models/tenancy.rb +2 -2
- data/lib/oci/identity/models/ui_password.rb +2 -2
- data/lib/oci/identity/models/update_compartment_details.rb +2 -2
- data/lib/oci/identity/models/update_customer_secret_key_details.rb +2 -2
- data/lib/oci/identity/models/update_group_details.rb +2 -2
- data/lib/oci/identity/models/update_identity_provider_details.rb +2 -2
- data/lib/oci/identity/models/update_idp_group_mapping_details.rb +2 -2
- data/lib/oci/identity/models/update_policy_details.rb +2 -2
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +2 -2
- data/lib/oci/identity/models/update_state_details.rb +2 -2
- data/lib/oci/identity/models/update_swift_password_details.rb +2 -2
- data/lib/oci/identity/models/update_user_details.rb +2 -2
- data/lib/oci/identity/models/user.rb +2 -2
- data/lib/oci/identity/models/user_group_membership.rb +2 -2
- data/lib/oci/load_balancer/load_balancer_client.rb +1 -1
- data/lib/oci/load_balancer/models/backend.rb +2 -2
- data/lib/oci/load_balancer/models/backend_details.rb +2 -2
- data/lib/oci/load_balancer/models/backend_health.rb +2 -2
- data/lib/oci/load_balancer/models/backend_set.rb +2 -2
- data/lib/oci/load_balancer/models/backend_set_details.rb +2 -2
- data/lib/oci/load_balancer/models/backend_set_health.rb +2 -2
- data/lib/oci/load_balancer/models/certificate.rb +2 -2
- data/lib/oci/load_balancer/models/certificate_details.rb +2 -2
- data/lib/oci/load_balancer/models/create_backend_details.rb +2 -2
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +2 -2
- data/lib/oci/load_balancer/models/create_certificate_details.rb +2 -2
- data/lib/oci/load_balancer/models/create_listener_details.rb +2 -2
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +2 -2
- data/lib/oci/load_balancer/models/health_check_result.rb +2 -2
- data/lib/oci/load_balancer/models/health_checker.rb +2 -2
- data/lib/oci/load_balancer/models/health_checker_details.rb +2 -2
- data/lib/oci/load_balancer/models/ip_address.rb +2 -2
- data/lib/oci/load_balancer/models/listener.rb +2 -2
- data/lib/oci/load_balancer/models/listener_details.rb +2 -2
- data/lib/oci/load_balancer/models/load_balancer.rb +2 -2
- data/lib/oci/load_balancer/models/load_balancer_health.rb +2 -2
- data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +2 -2
- data/lib/oci/load_balancer/models/load_balancer_policy.rb +2 -2
- data/lib/oci/load_balancer/models/load_balancer_protocol.rb +2 -2
- data/lib/oci/load_balancer/models/load_balancer_shape.rb +2 -2
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +2 -2
- data/lib/oci/load_balancer/models/ssl_configuration.rb +2 -2
- data/lib/oci/load_balancer/models/ssl_configuration_details.rb +2 -2
- data/lib/oci/load_balancer/models/update_backend_details.rb +2 -2
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +2 -2
- data/lib/oci/load_balancer/models/update_health_checker_details.rb +2 -2
- data/lib/oci/load_balancer/models/update_listener_details.rb +2 -2
- data/lib/oci/load_balancer/models/update_load_balancer_details.rb +2 -2
- data/lib/oci/load_balancer/models/work_request.rb +2 -2
- data/lib/oci/load_balancer/models/work_request_error.rb +2 -2
- data/lib/oci/object_storage/models/bucket.rb +44 -12
- data/lib/oci/object_storage/models/bucket_summary.rb +6 -4
- data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +2 -2
- data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +2 -2
- data/lib/oci/object_storage/models/create_bucket_details.rb +41 -11
- data/lib/oci/object_storage/models/create_multipart_upload_details.rb +9 -7
- data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +6 -7
- data/lib/oci/object_storage/models/list_objects.rb +4 -3
- data/lib/oci/object_storage/models/multipart_upload.rb +3 -3
- data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +6 -6
- data/lib/oci/object_storage/models/namespace_metadata.rb +142 -0
- data/lib/oci/object_storage/models/object_summary.rb +6 -4
- data/lib/oci/object_storage/models/preauthenticated_request.rb +13 -11
- data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +8 -10
- data/lib/oci/object_storage/models/rename_object_details.rb +164 -0
- data/lib/oci/object_storage/models/restore_objects_details.rb +120 -0
- data/lib/oci/object_storage/models/update_bucket_details.rb +20 -8
- data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +131 -0
- data/lib/oci/object_storage/object_storage.rb +4 -0
- data/lib/oci/object_storage/object_storage_client.rb +206 -94
- data/lib/oci/regions.rb +2 -1
- data/lib/oci/version.rb +1 -1
- metadata +22 -2
|
@@ -33,7 +33,7 @@ module OCI
|
|
|
33
33
|
config ||= OCI.config
|
|
34
34
|
config.validate
|
|
35
35
|
|
|
36
|
-
signer = Signer.new(config.user, config.fingerprint, config.tenancy, config.key_file, pass_phrase: config.pass_phrase, private_key_content: config.key_content)
|
|
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
37
|
@api_client = ApiClient.new(config, signer)
|
|
38
38
|
|
|
39
39
|
region ||= config.region
|
|
@@ -168,7 +168,7 @@ module OCI
|
|
|
168
168
|
:return_type => 'OCI::Core::Models::CrossConnect')
|
|
169
169
|
end
|
|
170
170
|
|
|
171
|
-
# Creates a new cross-connect group to use with Oracle
|
|
171
|
+
# Creates a new cross-connect group to use with Oracle Cloud Infrastructure
|
|
172
172
|
# FastConnect. For more information, see
|
|
173
173
|
# [FastConnect Overview](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm).
|
|
174
174
|
#
|
|
@@ -717,7 +717,7 @@ module OCI
|
|
|
717
717
|
# must not overlap with your on-premises network. You can't change the size of the VCN after creation.
|
|
718
718
|
#
|
|
719
719
|
# For the purposes of access control, you must provide the OCID of the compartment where you want the VCN to
|
|
720
|
-
# reside. Consult an Oracle
|
|
720
|
+
# reside. Consult an Oracle Cloud Infrastructure administrator in your organization if you're not sure which
|
|
721
721
|
# compartment to use. Notice that the VCN doesn't have to be in the same compartment as the subnets or other
|
|
722
722
|
# Networking Service components. For more information about compartments and access control, see
|
|
723
723
|
# [Overview of the IAM Service](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see
|
|
@@ -775,8 +775,8 @@ module OCI
|
|
|
775
775
|
:return_type => 'OCI::Core::Models::Vcn')
|
|
776
776
|
end
|
|
777
777
|
|
|
778
|
-
# Creates a new virtual circuit to use with Oracle
|
|
779
|
-
#
|
|
778
|
+
# Creates a new virtual circuit to use with Oracle Cloud
|
|
779
|
+
# Infrastructure FastConnect. For more information, see
|
|
780
780
|
# [FastConnect Overview](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm).
|
|
781
781
|
#
|
|
782
782
|
# For the purposes of access control, you must provide the OCID of the
|
|
@@ -2044,12 +2044,42 @@ module OCI
|
|
|
2044
2044
|
#
|
|
2045
2045
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
|
2046
2046
|
#
|
|
2047
|
+
# @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
|
|
2048
|
+
#
|
|
2049
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
|
2050
|
+
# TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
|
2051
|
+
# sort order is case sensitive.
|
|
2052
|
+
#
|
|
2053
|
+
# **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
|
2054
|
+
# optionally filter by Availability Domain if the scope of the resource type is within a
|
|
2055
|
+
# single Availability Domain. If you call one of these \"List\" operations without specifying
|
|
2056
|
+
# an Availability Domain, the resources are grouped by Availability Domain, then sorted.
|
|
2057
|
+
#
|
|
2058
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
|
2059
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
|
2060
|
+
# is case sensitive.
|
|
2061
|
+
#
|
|
2062
|
+
# Allowed values are: ASC, DESC
|
|
2063
|
+
# @option opts [String] :lifecycle_state A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
|
|
2064
|
+
#
|
|
2047
2065
|
# @return [Response] A Response object with data of type Array<OCI::Core::Models::CrossConnectGroup>
|
|
2048
2066
|
def list_cross_connect_groups(compartment_id, opts = {})
|
|
2049
2067
|
logger.debug "Calling operation VirtualNetworkClient#list_cross_connect_groups." if logger
|
|
2050
2068
|
|
|
2051
2069
|
fail "Missing the required parameter 'compartment_id' when calling list_cross_connect_groups." if compartment_id.nil?
|
|
2052
2070
|
|
|
2071
|
+
if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
|
|
2072
|
+
fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
|
2073
|
+
end
|
|
2074
|
+
|
|
2075
|
+
if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
|
|
2076
|
+
fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
|
2077
|
+
end
|
|
2078
|
+
|
|
2079
|
+
if opts[:'lifecycle_state'] && !OCI::Core::Models::CrossConnectGroup::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
|
|
2080
|
+
fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::CrossConnectGroup::LIFECYCLE_STATE_ENUM.'
|
|
2081
|
+
end
|
|
2082
|
+
|
|
2053
2083
|
path = "/crossConnectGroups"
|
|
2054
2084
|
|
|
2055
2085
|
# Query Params
|
|
@@ -2057,6 +2087,10 @@ module OCI
|
|
|
2057
2087
|
query_params[:'compartmentId'] = compartment_id
|
|
2058
2088
|
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
|
2059
2089
|
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
|
2090
|
+
query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name']
|
|
2091
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
|
|
2092
|
+
query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
|
|
2093
|
+
query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state']
|
|
2060
2094
|
|
|
2061
2095
|
# Header Params
|
|
2062
2096
|
header_params = {}
|
|
@@ -2129,12 +2163,42 @@ module OCI
|
|
|
2129
2163
|
#
|
|
2130
2164
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
|
2131
2165
|
#
|
|
2166
|
+
# @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
|
|
2167
|
+
#
|
|
2168
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
|
2169
|
+
# TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
|
2170
|
+
# sort order is case sensitive.
|
|
2171
|
+
#
|
|
2172
|
+
# **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
|
2173
|
+
# optionally filter by Availability Domain if the scope of the resource type is within a
|
|
2174
|
+
# single Availability Domain. If you call one of these \"List\" operations without specifying
|
|
2175
|
+
# an Availability Domain, the resources are grouped by Availability Domain, then sorted.
|
|
2176
|
+
#
|
|
2177
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
|
2178
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
|
2179
|
+
# is case sensitive.
|
|
2180
|
+
#
|
|
2181
|
+
# Allowed values are: ASC, DESC
|
|
2182
|
+
# @option opts [String] :lifecycle_state A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
|
|
2183
|
+
#
|
|
2132
2184
|
# @return [Response] A Response object with data of type Array<OCI::Core::Models::CrossConnect>
|
|
2133
2185
|
def list_cross_connects(compartment_id, opts = {})
|
|
2134
2186
|
logger.debug "Calling operation VirtualNetworkClient#list_cross_connects." if logger
|
|
2135
2187
|
|
|
2136
2188
|
fail "Missing the required parameter 'compartment_id' when calling list_cross_connects." if compartment_id.nil?
|
|
2137
2189
|
|
|
2190
|
+
if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
|
|
2191
|
+
fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
|
2192
|
+
end
|
|
2193
|
+
|
|
2194
|
+
if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
|
|
2195
|
+
fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
|
2196
|
+
end
|
|
2197
|
+
|
|
2198
|
+
if opts[:'lifecycle_state'] && !OCI::Core::Models::CrossConnect::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
|
|
2199
|
+
fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::CrossConnect::LIFECYCLE_STATE_ENUM.'
|
|
2200
|
+
end
|
|
2201
|
+
|
|
2138
2202
|
path = "/crossConnects"
|
|
2139
2203
|
|
|
2140
2204
|
# Query Params
|
|
@@ -2143,6 +2207,10 @@ module OCI
|
|
|
2143
2207
|
query_params[:'crossConnectGroupId'] = opts[:'cross_connect_group_id'] if opts[:'cross_connect_group_id']
|
|
2144
2208
|
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
|
2145
2209
|
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
|
2210
|
+
query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name']
|
|
2211
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
|
|
2212
|
+
query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
|
|
2213
|
+
query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state']
|
|
2146
2214
|
|
|
2147
2215
|
# Header Params
|
|
2148
2216
|
header_params = {}
|
|
@@ -2217,6 +2285,24 @@ module OCI
|
|
|
2217
2285
|
#
|
|
2218
2286
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
|
2219
2287
|
#
|
|
2288
|
+
# @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
|
|
2289
|
+
#
|
|
2290
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
|
2291
|
+
# TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
|
2292
|
+
# sort order is case sensitive.
|
|
2293
|
+
#
|
|
2294
|
+
# **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
|
2295
|
+
# optionally filter by Availability Domain if the scope of the resource type is within a
|
|
2296
|
+
# single Availability Domain. If you call one of these \"List\" operations without specifying
|
|
2297
|
+
# an Availability Domain, the resources are grouped by Availability Domain, then sorted.
|
|
2298
|
+
#
|
|
2299
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
|
2300
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
|
2301
|
+
# is case sensitive.
|
|
2302
|
+
#
|
|
2303
|
+
# Allowed values are: ASC, DESC
|
|
2304
|
+
# @option opts [String] :lifecycle_state A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
|
|
2305
|
+
#
|
|
2220
2306
|
# @return [Response] A Response object with data of type Array<OCI::Core::Models::DhcpOptions>
|
|
2221
2307
|
def list_dhcp_options(compartment_id, vcn_id, opts = {})
|
|
2222
2308
|
logger.debug "Calling operation VirtualNetworkClient#list_dhcp_options." if logger
|
|
@@ -2224,6 +2310,18 @@ module OCI
|
|
|
2224
2310
|
fail "Missing the required parameter 'compartment_id' when calling list_dhcp_options." if compartment_id.nil?
|
|
2225
2311
|
fail "Missing the required parameter 'vcn_id' when calling list_dhcp_options." if vcn_id.nil?
|
|
2226
2312
|
|
|
2313
|
+
if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
|
|
2314
|
+
fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
|
2315
|
+
end
|
|
2316
|
+
|
|
2317
|
+
if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
|
|
2318
|
+
fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
|
2319
|
+
end
|
|
2320
|
+
|
|
2321
|
+
if opts[:'lifecycle_state'] && !OCI::Core::Models::DhcpOptions::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
|
|
2322
|
+
fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::DhcpOptions::LIFECYCLE_STATE_ENUM.'
|
|
2323
|
+
end
|
|
2324
|
+
|
|
2227
2325
|
path = "/dhcps"
|
|
2228
2326
|
|
|
2229
2327
|
# Query Params
|
|
@@ -2232,6 +2330,10 @@ module OCI
|
|
|
2232
2330
|
query_params[:'vcnId'] = vcn_id
|
|
2233
2331
|
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
|
2234
2332
|
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
|
2333
|
+
query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name']
|
|
2334
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
|
|
2335
|
+
query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
|
|
2336
|
+
query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state']
|
|
2235
2337
|
|
|
2236
2338
|
# Header Params
|
|
2237
2339
|
header_params = {}
|
|
@@ -2395,6 +2497,24 @@ module OCI
|
|
|
2395
2497
|
#
|
|
2396
2498
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
|
2397
2499
|
#
|
|
2500
|
+
# @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
|
|
2501
|
+
#
|
|
2502
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
|
2503
|
+
# TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
|
2504
|
+
# sort order is case sensitive.
|
|
2505
|
+
#
|
|
2506
|
+
# **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
|
2507
|
+
# optionally filter by Availability Domain if the scope of the resource type is within a
|
|
2508
|
+
# single Availability Domain. If you call one of these \"List\" operations without specifying
|
|
2509
|
+
# an Availability Domain, the resources are grouped by Availability Domain, then sorted.
|
|
2510
|
+
#
|
|
2511
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
|
2512
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
|
2513
|
+
# is case sensitive.
|
|
2514
|
+
#
|
|
2515
|
+
# Allowed values are: ASC, DESC
|
|
2516
|
+
# @option opts [String] :lifecycle_state A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
|
|
2517
|
+
#
|
|
2398
2518
|
# @return [Response] A Response object with data of type Array<OCI::Core::Models::InternetGateway>
|
|
2399
2519
|
def list_internet_gateways(compartment_id, vcn_id, opts = {})
|
|
2400
2520
|
logger.debug "Calling operation VirtualNetworkClient#list_internet_gateways." if logger
|
|
@@ -2402,6 +2522,18 @@ module OCI
|
|
|
2402
2522
|
fail "Missing the required parameter 'compartment_id' when calling list_internet_gateways." if compartment_id.nil?
|
|
2403
2523
|
fail "Missing the required parameter 'vcn_id' when calling list_internet_gateways." if vcn_id.nil?
|
|
2404
2524
|
|
|
2525
|
+
if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
|
|
2526
|
+
fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
|
2527
|
+
end
|
|
2528
|
+
|
|
2529
|
+
if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
|
|
2530
|
+
fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
|
2531
|
+
end
|
|
2532
|
+
|
|
2533
|
+
if opts[:'lifecycle_state'] && !OCI::Core::Models::InternetGateway::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
|
|
2534
|
+
fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::InternetGateway::LIFECYCLE_STATE_ENUM.'
|
|
2535
|
+
end
|
|
2536
|
+
|
|
2405
2537
|
path = "/internetGateways"
|
|
2406
2538
|
|
|
2407
2539
|
# Query Params
|
|
@@ -2410,6 +2542,10 @@ module OCI
|
|
|
2410
2542
|
query_params[:'vcnId'] = vcn_id
|
|
2411
2543
|
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
|
2412
2544
|
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
|
2545
|
+
query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name']
|
|
2546
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
|
|
2547
|
+
query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
|
|
2548
|
+
query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state']
|
|
2413
2549
|
|
|
2414
2550
|
# Header Params
|
|
2415
2551
|
header_params = {}
|
|
@@ -2546,6 +2682,24 @@ module OCI
|
|
|
2546
2682
|
#
|
|
2547
2683
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
|
2548
2684
|
#
|
|
2685
|
+
# @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
|
|
2686
|
+
#
|
|
2687
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
|
2688
|
+
# TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
|
2689
|
+
# sort order is case sensitive.
|
|
2690
|
+
#
|
|
2691
|
+
# **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
|
2692
|
+
# optionally filter by Availability Domain if the scope of the resource type is within a
|
|
2693
|
+
# single Availability Domain. If you call one of these \"List\" operations without specifying
|
|
2694
|
+
# an Availability Domain, the resources are grouped by Availability Domain, then sorted.
|
|
2695
|
+
#
|
|
2696
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
|
2697
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
|
2698
|
+
# is case sensitive.
|
|
2699
|
+
#
|
|
2700
|
+
# Allowed values are: ASC, DESC
|
|
2701
|
+
# @option opts [String] :lifecycle_state A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
|
|
2702
|
+
#
|
|
2549
2703
|
# @return [Response] A Response object with data of type Array<OCI::Core::Models::RouteTable>
|
|
2550
2704
|
def list_route_tables(compartment_id, vcn_id, opts = {})
|
|
2551
2705
|
logger.debug "Calling operation VirtualNetworkClient#list_route_tables." if logger
|
|
@@ -2553,6 +2707,18 @@ module OCI
|
|
|
2553
2707
|
fail "Missing the required parameter 'compartment_id' when calling list_route_tables." if compartment_id.nil?
|
|
2554
2708
|
fail "Missing the required parameter 'vcn_id' when calling list_route_tables." if vcn_id.nil?
|
|
2555
2709
|
|
|
2710
|
+
if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
|
|
2711
|
+
fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
|
2712
|
+
end
|
|
2713
|
+
|
|
2714
|
+
if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
|
|
2715
|
+
fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
|
2716
|
+
end
|
|
2717
|
+
|
|
2718
|
+
if opts[:'lifecycle_state'] && !OCI::Core::Models::RouteTable::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
|
|
2719
|
+
fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::RouteTable::LIFECYCLE_STATE_ENUM.'
|
|
2720
|
+
end
|
|
2721
|
+
|
|
2556
2722
|
path = "/routeTables"
|
|
2557
2723
|
|
|
2558
2724
|
# Query Params
|
|
@@ -2561,6 +2727,10 @@ module OCI
|
|
|
2561
2727
|
query_params[:'vcnId'] = vcn_id
|
|
2562
2728
|
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
|
2563
2729
|
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
|
2730
|
+
query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name']
|
|
2731
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
|
|
2732
|
+
query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
|
|
2733
|
+
query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state']
|
|
2564
2734
|
|
|
2565
2735
|
# Header Params
|
|
2566
2736
|
header_params = {}
|
|
@@ -2590,6 +2760,24 @@ module OCI
|
|
|
2590
2760
|
#
|
|
2591
2761
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
|
2592
2762
|
#
|
|
2763
|
+
# @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
|
|
2764
|
+
#
|
|
2765
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
|
2766
|
+
# TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
|
2767
|
+
# sort order is case sensitive.
|
|
2768
|
+
#
|
|
2769
|
+
# **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
|
2770
|
+
# optionally filter by Availability Domain if the scope of the resource type is within a
|
|
2771
|
+
# single Availability Domain. If you call one of these \"List\" operations without specifying
|
|
2772
|
+
# an Availability Domain, the resources are grouped by Availability Domain, then sorted.
|
|
2773
|
+
#
|
|
2774
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
|
2775
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
|
2776
|
+
# is case sensitive.
|
|
2777
|
+
#
|
|
2778
|
+
# Allowed values are: ASC, DESC
|
|
2779
|
+
# @option opts [String] :lifecycle_state A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
|
|
2780
|
+
#
|
|
2593
2781
|
# @return [Response] A Response object with data of type Array<OCI::Core::Models::SecurityList>
|
|
2594
2782
|
def list_security_lists(compartment_id, vcn_id, opts = {})
|
|
2595
2783
|
logger.debug "Calling operation VirtualNetworkClient#list_security_lists." if logger
|
|
@@ -2597,6 +2785,18 @@ module OCI
|
|
|
2597
2785
|
fail "Missing the required parameter 'compartment_id' when calling list_security_lists." if compartment_id.nil?
|
|
2598
2786
|
fail "Missing the required parameter 'vcn_id' when calling list_security_lists." if vcn_id.nil?
|
|
2599
2787
|
|
|
2788
|
+
if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
|
|
2789
|
+
fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
|
2790
|
+
end
|
|
2791
|
+
|
|
2792
|
+
if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
|
|
2793
|
+
fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
|
2794
|
+
end
|
|
2795
|
+
|
|
2796
|
+
if opts[:'lifecycle_state'] && !OCI::Core::Models::SecurityList::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
|
|
2797
|
+
fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::SecurityList::LIFECYCLE_STATE_ENUM.'
|
|
2798
|
+
end
|
|
2799
|
+
|
|
2600
2800
|
path = "/securityLists"
|
|
2601
2801
|
|
|
2602
2802
|
# Query Params
|
|
@@ -2605,6 +2805,10 @@ module OCI
|
|
|
2605
2805
|
query_params[:'vcnId'] = vcn_id
|
|
2606
2806
|
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
|
2607
2807
|
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
|
2808
|
+
query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name']
|
|
2809
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
|
|
2810
|
+
query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
|
|
2811
|
+
query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state']
|
|
2608
2812
|
|
|
2609
2813
|
# Header Params
|
|
2610
2814
|
header_params = {}
|
|
@@ -2634,6 +2838,24 @@ module OCI
|
|
|
2634
2838
|
#
|
|
2635
2839
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
|
2636
2840
|
#
|
|
2841
|
+
# @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
|
|
2842
|
+
#
|
|
2843
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
|
2844
|
+
# TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
|
2845
|
+
# sort order is case sensitive.
|
|
2846
|
+
#
|
|
2847
|
+
# **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
|
2848
|
+
# optionally filter by Availability Domain if the scope of the resource type is within a
|
|
2849
|
+
# single Availability Domain. If you call one of these \"List\" operations without specifying
|
|
2850
|
+
# an Availability Domain, the resources are grouped by Availability Domain, then sorted.
|
|
2851
|
+
#
|
|
2852
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
|
2853
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
|
2854
|
+
# is case sensitive.
|
|
2855
|
+
#
|
|
2856
|
+
# Allowed values are: ASC, DESC
|
|
2857
|
+
# @option opts [String] :lifecycle_state A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
|
|
2858
|
+
#
|
|
2637
2859
|
# @return [Response] A Response object with data of type Array<OCI::Core::Models::Subnet>
|
|
2638
2860
|
def list_subnets(compartment_id, vcn_id, opts = {})
|
|
2639
2861
|
logger.debug "Calling operation VirtualNetworkClient#list_subnets." if logger
|
|
@@ -2641,6 +2863,18 @@ module OCI
|
|
|
2641
2863
|
fail "Missing the required parameter 'compartment_id' when calling list_subnets." if compartment_id.nil?
|
|
2642
2864
|
fail "Missing the required parameter 'vcn_id' when calling list_subnets." if vcn_id.nil?
|
|
2643
2865
|
|
|
2866
|
+
if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
|
|
2867
|
+
fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
|
2868
|
+
end
|
|
2869
|
+
|
|
2870
|
+
if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
|
|
2871
|
+
fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
|
2872
|
+
end
|
|
2873
|
+
|
|
2874
|
+
if opts[:'lifecycle_state'] && !OCI::Core::Models::Subnet::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
|
|
2875
|
+
fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Subnet::LIFECYCLE_STATE_ENUM.'
|
|
2876
|
+
end
|
|
2877
|
+
|
|
2644
2878
|
path = "/subnets"
|
|
2645
2879
|
|
|
2646
2880
|
# Query Params
|
|
@@ -2649,6 +2883,10 @@ module OCI
|
|
|
2649
2883
|
query_params[:'vcnId'] = vcn_id
|
|
2650
2884
|
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
|
2651
2885
|
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
|
2886
|
+
query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name']
|
|
2887
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
|
|
2888
|
+
query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
|
|
2889
|
+
query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state']
|
|
2652
2890
|
|
|
2653
2891
|
# Header Params
|
|
2654
2892
|
header_params = {}
|
|
@@ -2677,12 +2915,42 @@ module OCI
|
|
|
2677
2915
|
#
|
|
2678
2916
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
|
2679
2917
|
#
|
|
2918
|
+
# @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
|
|
2919
|
+
#
|
|
2920
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
|
2921
|
+
# TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
|
2922
|
+
# sort order is case sensitive.
|
|
2923
|
+
#
|
|
2924
|
+
# **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
|
2925
|
+
# optionally filter by Availability Domain if the scope of the resource type is within a
|
|
2926
|
+
# single Availability Domain. If you call one of these \"List\" operations without specifying
|
|
2927
|
+
# an Availability Domain, the resources are grouped by Availability Domain, then sorted.
|
|
2928
|
+
#
|
|
2929
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
|
2930
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
|
2931
|
+
# is case sensitive.
|
|
2932
|
+
#
|
|
2933
|
+
# Allowed values are: ASC, DESC
|
|
2934
|
+
# @option opts [String] :lifecycle_state A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
|
|
2935
|
+
#
|
|
2680
2936
|
# @return [Response] A Response object with data of type Array<OCI::Core::Models::Vcn>
|
|
2681
2937
|
def list_vcns(compartment_id, opts = {})
|
|
2682
2938
|
logger.debug "Calling operation VirtualNetworkClient#list_vcns." if logger
|
|
2683
2939
|
|
|
2684
2940
|
fail "Missing the required parameter 'compartment_id' when calling list_vcns." if compartment_id.nil?
|
|
2685
2941
|
|
|
2942
|
+
if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
|
|
2943
|
+
fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
|
2944
|
+
end
|
|
2945
|
+
|
|
2946
|
+
if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
|
|
2947
|
+
fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
|
2948
|
+
end
|
|
2949
|
+
|
|
2950
|
+
if opts[:'lifecycle_state'] && !OCI::Core::Models::Vcn::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
|
|
2951
|
+
fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Vcn::LIFECYCLE_STATE_ENUM.'
|
|
2952
|
+
end
|
|
2953
|
+
|
|
2686
2954
|
path = "/vcns"
|
|
2687
2955
|
|
|
2688
2956
|
# Query Params
|
|
@@ -2690,6 +2958,10 @@ module OCI
|
|
|
2690
2958
|
query_params[:'compartmentId'] = compartment_id
|
|
2691
2959
|
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
|
2692
2960
|
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
|
2961
|
+
query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name']
|
|
2962
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
|
|
2963
|
+
query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
|
|
2964
|
+
query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state']
|
|
2693
2965
|
|
|
2694
2966
|
# Header Params
|
|
2695
2967
|
header_params = {}
|
|
@@ -2710,13 +2982,9 @@ module OCI
|
|
|
2710
2982
|
|
|
2711
2983
|
# Lists the available bandwidth levels for virtual circuits. You need this
|
|
2712
2984
|
# information so you can specify your desired bandwidth level (that is, shape)
|
|
2713
|
-
# when you create a virtual circuit.
|
|
2714
|
-
#
|
|
2985
|
+
# when you create a virtual circuit.
|
|
2715
2986
|
# For the compartment ID, provide the OCID of your tenancy (the root compartment).
|
|
2716
2987
|
#
|
|
2717
|
-
# For more information about virtual circuits, see
|
|
2718
|
-
# [FastConnect Overview](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm).
|
|
2719
|
-
#
|
|
2720
2988
|
# @param [String] compartment_id The OCID of the compartment.
|
|
2721
2989
|
# @param [Hash] opts the optional parameters
|
|
2722
2990
|
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
|
@@ -2766,12 +3034,42 @@ module OCI
|
|
|
2766
3034
|
#
|
|
2767
3035
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
|
2768
3036
|
#
|
|
3037
|
+
# @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
|
|
3038
|
+
#
|
|
3039
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
|
3040
|
+
# TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
|
3041
|
+
# sort order is case sensitive.
|
|
3042
|
+
#
|
|
3043
|
+
# **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
|
3044
|
+
# optionally filter by Availability Domain if the scope of the resource type is within a
|
|
3045
|
+
# single Availability Domain. If you call one of these \"List\" operations without specifying
|
|
3046
|
+
# an Availability Domain, the resources are grouped by Availability Domain, then sorted.
|
|
3047
|
+
#
|
|
3048
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
|
3049
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
|
3050
|
+
# is case sensitive.
|
|
3051
|
+
#
|
|
3052
|
+
# Allowed values are: ASC, DESC
|
|
3053
|
+
# @option opts [String] :lifecycle_state A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
|
|
3054
|
+
#
|
|
2769
3055
|
# @return [Response] A Response object with data of type Array<OCI::Core::Models::VirtualCircuit>
|
|
2770
3056
|
def list_virtual_circuits(compartment_id, opts = {})
|
|
2771
3057
|
logger.debug "Calling operation VirtualNetworkClient#list_virtual_circuits." if logger
|
|
2772
3058
|
|
|
2773
3059
|
fail "Missing the required parameter 'compartment_id' when calling list_virtual_circuits." if compartment_id.nil?
|
|
2774
3060
|
|
|
3061
|
+
if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
|
|
3062
|
+
fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
|
3063
|
+
end
|
|
3064
|
+
|
|
3065
|
+
if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
|
|
3066
|
+
fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
|
3067
|
+
end
|
|
3068
|
+
|
|
3069
|
+
if opts[:'lifecycle_state'] && !OCI::Core::Models::VirtualCircuit::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
|
|
3070
|
+
fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::VirtualCircuit::LIFECYCLE_STATE_ENUM.'
|
|
3071
|
+
end
|
|
3072
|
+
|
|
2775
3073
|
path = "/virtualCircuits"
|
|
2776
3074
|
|
|
2777
3075
|
# Query Params
|
|
@@ -2779,6 +3077,10 @@ module OCI
|
|
|
2779
3077
|
query_params[:'compartmentId'] = compartment_id
|
|
2780
3078
|
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
|
2781
3079
|
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
|
3080
|
+
query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name']
|
|
3081
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
|
|
3082
|
+
query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
|
|
3083
|
+
query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state']
|
|
2782
3084
|
|
|
2783
3085
|
# Header Params
|
|
2784
3086
|
header_params = {}
|